Skip to content

Commit

Permalink
Merge pull request #3011 from chanikag/jsonPathFix
Browse files Browse the repository at this point in the history
Fixing ESBJAVA_4239_AccessHTTPSCAfterCallout
  • Loading branch information
chanikag authored Oct 26, 2023
2 parents c95bbac + 22ea525 commit 06c15ef
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2023, WSO2 LLC. (http://www.wso2.org) All Rights Reserved.
~
~ WSO2 Inc. licenses this file to you under the Apache License,
~ Version 2.0 (the "License"); you may not use this file except
~ in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<api xmlns="http://ws.apache.org/ns/synapse" name="HTTPSC500ReturnAPI" context="/HTTPSC500ReturnAPI">
<resource methods="GET" uri-template="/">
<inSequence>
<property name="HTTP_SC" value="500" scope="axis2" type="STRING"/>
<payloadFactory media-type="xml">
<format>
<message xmlns="">Internal Server Error</message>
</format>
<args/>
</payloadFactory>
<respond/>
</inSequence>
</resource>
</api>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<endpoint xmlns="http://ws.apache.org/ns/synapse" name="mockEP">
<http method="get"
uri-template="http://www.mocky.io/v2/5646b874100000e815889a82"/>
uri-template="http://localhost:8480/HTTPSC500ReturnAPI"/>
</endpoint>
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (c) 2023, WSO2 LLC. (http://www.wso2.org) All Rights Reserved.
~
~ WSO2 Inc. licenses this file to you under the Apache License,
~ Version 2.0 (the "License"); you may not use this file except
~ in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<api xmlns="http://ws.apache.org/ns/synapse" name="HTTPSC500ReturnAPI" context="/HTTPSC500ReturnAPI">
<resource methods="GET" uri-template="/">
<inSequence>
<property name="HTTP_SC" value="500" scope="axis2" type="STRING"/>
<payloadFactory media-type="xml">
<format>
<message xmlns="">Internal Server Error</message>
</format>
<args/>
</payloadFactory>
<respond/>
</inSequence>
</resource>
</api>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<endpoint xmlns="http://ws.apache.org/ns/synapse" name="mockEP">
<http method="get"
uri-template="http://www.mocky.io/v2/5646b874100000e815889a82"/>
uri-template="http://localhost:8480/HTTPSC500ReturnAPI"/>
</endpoint>

0 comments on commit 06c15ef

Please sign in to comment.