Why define and reference an outbound adaptor when you don't use it in your code?
I'd suggest to have a look to the documentation Using the HTTP Outbound Adapter.
Anyway, given your code, you don't need a stream, it's just waste of resources and make your code more complicated for no reason, you can simply:
....
Set httpRequest.ContentType = "application/xml"
Do httpRequest.EntityBody.Write("<?xml version=""1.0"" encoding=""UTF-8""?><getURL>"_pRequest.getURL_"</getURL>")
Set sc = httpRequest.Post("", 2)
....
Note that I assume that <Url1></Url1> is contained in the getURL string property content, as your first post suggest.
- Log in to post comments