Oracle SOA, AIA BPEL ESB and OSB knowledge base

Tuesday, February 17, 2009

Empty Namespace issue in custom xsd based adapter

Hi,

Most frequently we face issue of empty namespace in generated data from adapter based on custom xsd.

For example






So that makes our life difficult to extract data from received data using transformation or assign activity.

So solution to this problem are either make your own xsl and follow these steps:
1) Use transformation for recieved variable to same variable with following xsl
















?>



select="@*|*|comment()|processing-instruction()|text()"/>
















































































2) Now create new message variable called xx of type same received variable
3) use assign activity to assign into this variable from received variable.
4) Now name space issue would have resolved
PS: in custom xsl , please look carefully if you have different parent elements (obviously you will have that, so change name of match or add news and copy same way and put your name space there.

Solution no 2:
very easy to implement.

Open XSD and add two new namespace to your custom xsd for adapter.

nxsd:version="DTD" xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"

Happy Coding :)

No comments:

FEEDJIT Live Traffic Map

My Blog List