Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Avoid conversion of < to & lt ; during XML to String conversion

- ARJul 24 2014 — edited Jul 29 2014

I am trying to perform a XML to String conversion to send the input as string to HTTP POST from OSB Business Service.

The below input works fine when tested from the Business Service directly after setting Content-Type = application/x-www-form-urlencoded

postdata=<testxml><message>Hello World</message><priority>1</priority><sender>steve</sender></testxml>

When I have a WSDL based Proxy Service invoking the Business Service, the request sent to Business Service has "<" converted to "& lt ;" (spaces added to avoid HTML converting it back). The input to the Proxy Service is an XML:

<testxml><message>Hello World</message><priority>1</priority><sender>steve</sender></testxml>

Steps in the Proxy Service are:

1. Convert XML to String using the fn-bea:serialize function

2. Set Transport Headers/Content-Type (HTTP) = application/x-www-form-urlencoded

3. Invoke Business Service

The input to the Business Service that is sent from the Proxy Service is: postdata=& lt ;testxml>& lt ;message>Hello World& lt ;/message>& lt ;priority>1& lt ;/priority>& lt ;sender>steve& lt ;/sender>& lt ;/testxml> (without spaces between & lt ; ).

How to avoid this conversion of "<" to "& lt ;" ?

Cheers,

Arun Ramesh

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 26 2014
Added on Jul 24 2014
5 comments
1,871 views