Tuesday, August 31, 2010

Dealing with Opaque messages in 11g BPEL - Part2

Once the opaque message was decoded into a string , we faced another challenge of converting that string into a valid XML and use that XML in BPEL transformations. Here the problem is that the incoming XML often doesn't have a namespace!

So we did the following to make it usable in XSLT transformations



1.       Generated an XSD with the incoming XML and  added a custom targetnamespace to the that xsd
2.       Attached that namespace to the decoded string.
3.       Created a BPEL variable with the XSD generated in step1.
4.       Used oraext:parseXML function to parse the decoded string and assigned it to the BPEL variable created in step3.
5.       Used that BPEL Variable in a transformation.


Please write to me if you require the sample code.

Have a nice day.


9 comments:

  1. Hi Surya,

    I am struggling with a similar issue like yours. would be a great help if you could give more details on how you managed to attach a name space to your xml.

    ReplyDelete
  2. Hi Santosh,

    I have used string concat xpath function to the incoming XML to attach a namespace to it.

    Surya.

    ReplyDelete
    Replies
    1. hi Surya:

      Can you please ellobrate on it? I dont understand how you used a concat function to attach namespace to a XML? If possible can you mail your code to my mail? roadking4699@yahoo.com.au

      Delete
  3. Hello

    Can you please send the sample code to sharat.math@gmail.com

    ReplyDelete
  4. Hi Surya,

    Can you please share your code to ash.prasad89@gmail.com

    ReplyDelete
  5. hi surya can you please send the sample code to karnatiramu1987@gmail.com

    ReplyDelete
  6. hello Surya, I've followed this from the first part, could you kindly send the sample code to kenneths.mail@gmail.com

    ReplyDelete
  7. hi surya can u send sample code to mvphani@gmail.com

    ReplyDelete
  8. Hi can you share sample code sumalatha07@gmail.com.
    Regards
    sumalatha

    ReplyDelete