REST Based Calls From OSB Returns With SOAP Envelope and WSA Addressing Namespaces
(Doc ID 1635230.1)
Last updated on APRIL 23, 2019
Applies to:
Oracle Service Bus - Version 11.1.1.7.0 and laterInformation in this document applies to any platform.
Symptoms
You are exposing an OSB Proxy service as a RESTful service that accepts HTTP requests (GET,POST etc).
For HTTP GET method, the proxy service invokes SOA Composite Synchronous BPEL process (HelloWorldProject).
The HelloWorldProject is a simple synchronous BPEL process which returns response as "Namaste, <
OSB HTTP GET Request:
http://<
Response:
<?xml version="1.0" encoding="UTF-8"?>
<processResponse xmlns="http://xmlns.oracle.com/MySOAApplication/HelloWorldProject/HelloWorldBPEL" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing">
<result>Some resonse </result>
</processResponse>
Issue Description:
In the Response, there are 3 namespaces,
1) xmlns="http://xmlns.oracle.com/MySOAApplication/HelloWorldProject/HelloWorldBPEL" (This is NOT the problem)
2) xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" (This is the Problem)
3) xmlns:wsa="http://www.w3.org/2005/08/addressing" (This is the Problem)
For a REST Response, we expect the CORRECT Response to be,
[The Response NOT CONTAINING soap envelope and wsa addressing namaspaces]
<?xml version="1.0" encoding="UTF-8"?>
<processResponse xmlns="http://xmlns.oracle.com/MySOAApplication/HelloWorldProject/HelloWorldBPEL">
<result>Some Response</result>
</processResponse>
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |