Hello-
I'm learning suds and am having a bit of trouble with the "SOAP Header". I have a php version of the customer's interface which defines a "new SoapHeader(<their url>, 'authorizationInfo', <authorizationInfo Object>)" and the "sets" the soap header in the recently created ProcessingService object.
Is there a header common to all SOAP objects or is this something that the client defines as part of their service?
Thanks for your help,
--greg
Hi,
2012. január 9. hétfő 14:05:55 dátummal Greg Lindstrom ezt írta:
I'm learning suds and am having a bit of trouble with the "SOAP Header". I have a php version of the customer's interface which defines a "new SoapHeader(<their url>, 'authorizationInfo', <authorizationInfo Object>)" and the "sets" the soap header in the recently created ProcessingService object.
Is there a header common to all SOAP objects or is this something that the client defines as part of their service?
Based on the relevant page of the PHP documentation (http://www.php.net/manual/en/class.soapheader.php), SoapHeader represents a tag in the header of the SOAP envelope. With SUDS, you can pass such headers in the SOAP request using the methods described in the relevant part of the documentation (https://fedorahosted.org/suds/wiki/Documentation#SOAPHEADERS), and handle those passed back as well, using a plugin. If you have further questions, please indicate, whether you want to add headers to the request or handle the ones passed back in the response.
Regards, András Veres-Szentkirályi
- január 9. hétfő 14:05:55 dátummal Greg Lindstrom ezt írta:
I'm learning suds and am having a bit of trouble with the "SOAP Header".
I
have a php version of the customer's interface which defines a "new SoapHeader(<their url>, 'authorizationInfo', <authorizationInfo Object>)" and the "sets" the soap header in the recently created ProcessingService object.
Is there a header common to all SOAP objects or is this something that
the
client defines as part of their service?
Based on the relevant page of the PHP documentation (http://www.php.net/manual/en/class.soapheader.php), SoapHeader represents a tag in the header of the SOAP envelope. With SUDS, you can pass such headers in the SOAP request using the methods described in the relevant part of the documentation ( https://fedorahosted.org/suds/wiki/Documentation#SOAPHEADERS), and handle those passed back as well, using a plugin. If you have further questions, please indicate, whether you want to add headers to the request or handle the ones passed back in the response.
Regards, András Veres-Szentkirályi
Thank-you. That is exactly what I needed. I am now able to hit the customer's application. Kind Regards, --greg