REST Based Calls From OSB Returns With SOAP Envelope and WSA Addressing Namespaces (Doc ID 1635230.1)

Last updated on SEPTEMBER 09, 2017

Applies to:

Oracle Service Bus - Version 11.1.1.7.0 and later
Information 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, <<input_name>>".

OSB HTTP GET Request:

http://<<hostname>>:<<port>>/sampleREST/proxy/sampleREST

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>


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms