Q
Q
Created from same WSDL yet when gsoap implementation calls my
webservice I can not get the header value!
GSOAP
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:s0="http://tempuri.org/"><SOAP-ENV:Header><AuthenticationHeader
xsi:type="s0:AuthenticationHeader"><Key
xsi:type="xsd:string">2FHGT4E3GH9</Key></AuthenticationHeader></SOAP-ENV:Header><SOAP-ENV:Body
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
id="_0"><s0:CreateAnonymousUser></s0:CreateAnonymousUser></SOAP-ENV:Body></SOAP-ENV:Envelope>
C#.NET
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header><AuthenticationHeader
xmlns="http://tempuri.org/"><Key>2FHGT4E3GH9</Key></AuthenticationHeader></soap:Header>
<soap:Body><CreateAnonymousUser
xmlns="http://tempuri.org/" /></soap:Body>
</soap:Envelope>
webservice I can not get the header value!
GSOAP
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:s0="http://tempuri.org/"><SOAP-ENV:Header><AuthenticationHeader
xsi:type="s0:AuthenticationHeader"><Key
xsi:type="xsd:string">2FHGT4E3GH9</Key></AuthenticationHeader></SOAP-ENV:Header><SOAP-ENV:Body
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
id="_0"><s0:CreateAnonymousUser></s0:CreateAnonymousUser></SOAP-ENV:Body></SOAP-ENV:Envelope>
C#.NET
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header><AuthenticationHeader
xmlns="http://tempuri.org/"><Key>2FHGT4E3GH9</Key></AuthenticationHeader></soap:Header>
<soap:Body><CreateAnonymousUser
xmlns="http://tempuri.org/" /></soap:Body>
</soap:Envelope>