You need to sign in to do that
Don't have an account?
Bms270
How to send SOAP header info to the Apex class generated with an esternal WSDL file?
In normal usage of webservices I can put soap header info into <soapenv:Header> in the xml request. Now I want to know how I can set those information when using the Apex class that is generated with my WSDL file.
Thanks!
I defined the SOAP header in the WSDL but dont know how I can include my custom Tokens in it. my custom tokens are:
<VendorToken xmlns="urn:commerce:vendor">
<VendorId xmlns="urn:commerce:vendor">xxxx</VendorId>
</VendorToken>
<AuthenticationToken xmlns="urn:commerce:authentication">
<Username xmlns="urn:commerce:authentication">xxxx</Username>
<Password xmlns="urn:commerce:authentication">yyyy</Password>
</AuthenticationToken>
I dont know if I have to define this in my wsdl document or I can set the content of the header from the apex class that is generated from the wsdl. I appreciate your help.
Thanks.
Did you ever get an answer on this? I'm working on a similar issue and can't seem to get the answer.
Thanks.