Добрый день. Помогите пожалуйста составить запрос используя SoapClient Я только с wsdl работал..., а с этим режимом впервые встречаюсь
Пример запроса в формате SOAP 1.2
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: http://soap.server.ua/API#GetToken
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetToken xmlns="http://soap.server.ua/API">
<login xsi:type="xsd:string">user</login>
<password xsi:type="xsd:string">********</password>
</GetToken>
</soap:Body>
</soap:Envelope>
Пример ответа в формате SOAP 1.2
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetTokenResponse xmlns="http://soap.server.ua/API">
<Session>
<hash xsi:type="xsd:string">khfjadh334ghjg3g3hg2h3g2jjgh2jj3</hash>
<session_id xsi:type="xsd:string">D7sfJ83lKP2o9Utr8ww21ZaJqqP34Sax</session_id>
</Session>
</GetTokenResponse>
</soap:Body>
</soap:Envelope>