Hallo;
Kann man in der soapMethod eine Header hinzufügen?
Ist jetzt:
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetData xmlns="http://server.webservices/" />
</soap:Body>
</soap:Envelope>
Soll aber:
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<ServiceAuthHeader xmlns="http://server.webservices/">
<Username>string</Username>
<Password>string</Password>
</ServiceAuthHeader>
</soap:Header>
<soap:Body>
<GetData xmlns="http://server.webservices/" />
</soap:Body>
</soap:Envelope>
Danke
Markus
|