Hi Rick,
I'm using wwSoap, which I know is deprecated.
In my case, the operation name (on the WSDL/code side) is different from the expected root element in the body.
How can I modify my query so that the body contains the expected root element and not the invoked SOAP method ?
Can the XML be modified before the query ?
Thanks in advance!
You can subclass wwSoap and override the CreateSoapRequestXml() method. Call the base behavior and then capture the generated XML in the .RequestXml property and modify as needed.
+++ Rick ---
Thanks for your reply.
cRequestXml is only populated after the SOAP method call.
Ultimately, I preferred to generate the SOAP envelope in a third-party tool (Postman) and use wwHttp with nHTTPConnectType = 3, and it works perfectly.
That's why I mentioned overriding the method - in the method you have access to cRequestXml after it's been generated but before the call is made.
Regardless - if you can send a plain HTTP request that's probably preferable especially for one off requests - just make sure your XML is properly generated and encoded.
If you're doing a bunch of requests you might want to look into the Web Service Proxy Generator , which creates a service client for a WSDL based SOAP service.
+++ Rick ---