Web Connection
wwSoap
Gravatar is a globally recognized avatar based on your email address. wwSoap
  Vincent H.
  All
  Dec 16, 2025 @ 07:21am

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!

Gravatar is a globally recognized avatar based on your email address. re: wwSoap
  Rick Strahl
  Vincent H.
  Dec 16, 2025 @ 11:19am

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 ---

Gravatar is a globally recognized avatar based on your email address. re: wwSoap
  Vincent H.
  Rick Strahl
  Dec 16, 2025 @ 10:03pm

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.

Gravatar is a globally recognized avatar based on your email address. re: wwSoap
  Rick Strahl
  Vincent H.
  Dec 17, 2025 @ 01:57pm

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 ---

© 1996-2026