OSB posting to a HTTP form
Hi guys,
The situation is: I'm using OSB 10gR3. I need to perform an HTTP POST to a web form that takes in an xml. So far, what I got is:
- I've created an business service that points to the web page in question and set the request method to POST
- I've also created a proxy service that changes the HTTP header content-type to "application/x-www-form-urlencoded".
Now what I need to do is change the body of the HTTP request so that it'll take the shape of key=value pairs, key being the name of the web form and value the xml payload. The problem is that the xml needs to be URL encoded, ie all the special characters have to be scaped. There is a java class for doing just that (java.net.URLEncoder), so I'm now considering using a java callout to call this class and get my encoded payload.
Anyway, I'm just wondering, would there be any simpler way to achieve what I need? Any thoughts are appreciated.
Cheers,
Pedro Ivo