I need to invoke action on a web service, but i have no idea what the request envelope will look like (the services are attached at runtime by users).
Generally I’d like to generate soap envelope programmatically based on wsdl link. With given link get list of operation and such result for specific one:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:webservice.contentinn.com">
<soapenv:Header>
<urn:AuthHeaderElement>
<token></company>
</urn:AuthHeaderElement>
</soapenv:Header>
<soapenv:Body>
<urn:TestMethod>
<id></id>
</urn:TestMethod>
</soapenv:Body>
</soapenv:Envelope>
Anyone have idea how to do that?
Answers to this question suggests a couple of approaches:
The example here is probably what you’re after:
There is a Java example here, too.