You need to sign in to do that
Don't have an account?

SOAP callout using HttpRequest- Issues with External schemas in WSDL
Hi,
I'm trying to import a service WSDL that uses external schemas. I tried flatenning the WSDL but it uses 5 different xsds all with their own namespaces and all of them are qualified. I can try and change the name spaces but I think the service will not be able to recongnize it as the elements will not have any namespace qualifiers. Including xlms:"service url" might work but I'm not sure how to iclude a namespace in apex for a request generated by wsdl2apex.
Another option I'm trying to explore would make use of XML DOM class and HttpRequest/Response classes to manually build the SOAP enveloper and handle responses. Has any one had experiences using Http classes for SOAP callouts? What would the req.setMethod be?
Any help would be appreciated.
Thank you
The important things here are setMethod to POST, SOAP Action header to "", content type to text/xml. Don't forget to add certs to req headers when doing SSL.
Thanks,
Saraag
All Answers
The important things here are setMethod to POST, SOAP Action header to "", content type to text/xml. Don't forget to add certs to req headers when doing SSL.
Thanks,
Saraag
Can you please example of String s that had Header and body details and how to populate the values in XML using apex.
Regards,
Mallikarjuna