Reputation: 1
Hi I am using OSB 11g in my project.
I am receiving some data's that are not XML or there are not well formed.
When my proxy are set to "Messaging service" I am able to handle my receiving data's in JavaCallouts
But .. when I choose "Any XML service" before I handle the receiving data OSB tries to parse the data
and raises error : Failure while unmarshalling message: Failed to parse XML text.
I don't need to parse the data, I just want to check what data I received, guess who is sending
it and just print it into a file.
Is there any way to handle the receiving data when error as a string using "Any XML service" ?
Upvotes: 0
Views: 9244
Reputation: 1
You need to select "message type" as service type. In the proxy message flow use XQuery function "inlineXML()" to retrieve required information.Hope this helps.
Upvotes: 0
Reputation: 896
You can choose "messaging service" as service type and "Text" as request message type. This would prevent OSB from parsing data as XML.
you would be forced to parse the data as String but I see that is no issue for you.
Upvotes: 3