My header method (AuthHeader) is being called on the server side but the param value is an object and prints out as '1'. I am expecting a 'ticket' string (as in $header->ticket) as defined in the wsdl below.
public function AuthHeader($header)
{
try {
error_log(print_r($header));
...
wsdl definition...
<element name="AuthHeader">
<complexType>
<sequence>
<element name="ticket" type="xsd:string"/>
</sequence>
</complexType>
</element>
I think I have everything setup correctly and dumping the incoming request shows that the header is correct.
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.example.com/SOAP/"><SOAP-ENV:Header><ns1:AuthHeader><ns1:ticket>myticketval</ns1:ticket></ns1:AuthHeader></SOAP-ENV:Header><SOAP-ENV:Body>...
What am I doing wrong?