OSB 12c: Not Able To Test REST Web Service From SOAP UI (Doc ID 2251252.1)

Last updated on APRIL 10, 2017

Applies to:

Oracle Service Bus - Version 12.2.1.0.0 and later
Information in this document applies to any platform.

Symptoms

We are able to test REST services from the OSB Test Console, but SOAP UI is returning a 400 error. Analysis shows that the payloads passed to OSB are both valid and should return the same, but different responses are received

The OSB logs show the following behavior:

Successful call from OSB Test Console

[2016-10-24T22:25:48.272+00:00] [osb_server1] [TRACE] [] [oracle.osb.debug.transports] [tid: [ACTIVE].ExecuteThread: '35' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: aaf5e4c1-8eeb-49af-b6d3-e3fa71b690f4-00000353,0:3:1] [APP: Service Bus Framework Starter Application] [partition-name: DOMAIN] [tenant-name: GLOBAL] [FlowId: 0000LVsnBFyFw000jzwkno1O3boi00000O] [SRC_CLASS: com.bea.wli.sb.transports.http.HttpUtil] [SRC_METHOD: debug] JerseyOutboundMessageContext: Response MetaData: <xml-fragment xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:http="http://www.bea.com/wli/sb/transports/http">[[
<tran:headers xsi:type="http:HttpResponseHeaders">
<tran:user-header name="X-Powered-By" value="PHP/5.5.29"/>
<http:Content-Length>6012</http:Content-Length>
<http:Content-Type>application/json</http:Content-Type>
<http:Vary>Accept-Encoding</http:Vary>
</tran:headers>
<tran:response-code>0</tran:response-code>
<tran:encoding>iso-8859-1</tran:encoding>
<http:http-response-code>200</http:http-response-code>
</xml-fragment>

 

Failed call from SoapUI

[2016-10-24T22:06:32.228+00:00] [osb_server1] [TRACE] [] [oracle.osb.debug.transports] [tid: [ACTIVE].ExecuteThread: '29' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 502e105a-c5f1-4712-9555-e1b34ebb06d8-0000047d,0:1] [APP: Service Bus Framework Starter Application] [partition-name: DOMAIN] [tenant-name: GLOBAL] [FlowId: 0000LVsikwlFw000jzwkno1O3boi00000N] [SRC_CLASS: com.bea.wli.sb.transports.http.HttpUtil] [SRC_METHOD: debug] JerseyOutboundMessageContext: Response MetaData: <xml-fragment xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:http="http://www.bea.com/wli/sb/transports/http">[[
<tran:headers xsi:type="http:HttpResponseHeaders">
<http:Connection>close</http:Connection>
<http:Content-Length>226</http:Content-Length>
<http:Content-Type>text/html; charset=iso-8859-1</http:Content-Type>
</tran:headers>
<tran:response-code>1</tran:response-code>
<tran:encoding>iso-8859-1</tran:encoding>
<http:http-response-code>400</http:http-response-code>
</xml-fragment>

 

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