Thanks to all for your comments so far. With your help I’ve been able to narrow this down a bit.
Using the same WM Service to test against, I changed my ASP page to use HTTP GET instead of POST to communicate with WM, and got the results I was looking for. That led me to believe that the content-type is somehow different when doing a POST, so I wrote a small test but it is in fact sending the data to WM as “text/xml” so I guess that’s not the problem.
I’ve mucked around with all the parameters for documentToRecord and recordToDocument (encode seemed to be the only one that looked promising), but it’s still ignoring my XML output template and using its own one.
Here’s how I’m calling/sending xml to WM:
Set oXMLH = Server.CreateObject(“MSXML2.ServerXMLHTTP”)
oXMLH.setRequestHeader “Content-Type”, “text/xml”
oXMLH.open “POST”, sFunctionURL, false, C_SAPBCUSERNAME, C_SAPBCPASSWORD
oXMLH.send oRequest
Response.Write oXMLH.responseXML.xml
Response.End
As I mentioned, if I change the method to GET on line 3, I receive the desired results (but I can’t send data, so a bit useless).
Cheers,
James
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB