BPEL Invoke Activity Namespace Issue; Not a valid SOAP Content-Type

(Doc ID 1269206.1)

Last updated on OCTOBER 18, 2016

Applies to:

Oracle SOA Platform - Version 10.1.3.5.0 and later
Information in this document applies to any platform.

Symptoms

BPEL Process is trying to call a third party webservice. The invoke appears
to be removing the namespace prefix from the call and then adding another
namespace with no prefix. The web service rejects the call because of this.

<testUpdateRequest xmlns= class=oz-txt-link-rfc2396E"
href=ttp://xml.abccompany.xyz.com">"http://xml.abccompany.xyz.com">
<username>user123
</username>
<password>pass123
</password>
</testUpdateRequest>

If we do a transform, it adds a prefix but not on the testUpdate element.

<testUpdateRequest xmlns:br= class=oz-txt-link-rfc2396E"
href=ttp://xml.abccompany.xyz.com">"http://xml.abccompany.xyz.com" xmlns=
class=oz-txt-link-rfc2396E"
href=ttp://xml.abccompany.xyz.com">"http://xml.abccompany.xyz.com">
<br:username>user123
</br:username>
<br:password>pass123
</br:password>
</testUpdateRequest>

We observe this version of the invoke successful with ESB or other tools.

<br:testUpdateRequest xmlns:br= class=oz-txt-link-rfc2396E"
href=http://xml.abccompany.xyz.com">"http://xml.abccompany.xyz.com" >
<br:username>user123
</br:username>
<br:password>pass123
</br:password>
</br:testUpdateRequest>


Sample Error Stack:

com.oracle.bpel.client.BPELFault: faultName:
{{http://schemas.oracle.com/bpel/extension}remoteFault}
messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}parts: {{summary=<summary>exception on JaxRpc invoke: HTTP transport error:
javax.xml.soap.SOAPException: java.security.PrivilegedActionException:
oracle.j2ee.ws.saaj.ContentTypeException: Not a valid SOAP Content-Type:
text/html; charset=utf-8</summary>
}}

at
com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:66
8)
at
com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:529)
at
com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:286)
at
com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:828)

at
com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWM
P.java:411)
at
com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:2
00)
at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:4174)
at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1680)
at
com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handle
Local(PerformMessageHandler.java:75)
at
com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHel
per.java:238)
at
com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java
:335)

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