PHP SOAP создать запрос

andrys

Новичок
Приветствую. Не могу правильно отправить SOAP сообщение. Имеется вот такой реквест:
Код:
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
  <s:Header>
<wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:eru="https://test_com.com:11443/addressing" mustUnderstand="true">
<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
<eru:org_id>100000001</eru:org_id>
 <eru:app_id>198367</eru:app_id>
</wsa:From>
 <o:Security xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" s:mustUnderstand="1">
  <o:UsernameToken u:Id="uuid-4dca2c34-0786-485b-b8a8-c90c798b9d77-2">
      <o:Username>Goshka</o:Username>
     <o:Password>pass_2014</o:Password>
</o:UsernameToken>
  </o:Security>
   </s:Header>
   <s:Body>
<trust:RequestSecurityToken xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512">
     <wsp:AppliesTo xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
   <wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing">
            <wsa:Address>https://test_com_server.com/</wsa:Address>
    </wsa:EndpointReference>
         </wsp:AppliesTo>
   <trust:KeyType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Bearer</trust:KeyType>
        <trust:OnBehalfOf>
     <UsernameToken xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" u:Id="uuid-4dca2c34-0786-485b-b8a8-c90c798b9d77-1">
           <Username>326575675</Username>
         <Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">pass_2014</Password>
      </UsernameToken>
    </trust:OnBehalfOf>
   <trust:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue</trust:RequestType>
    <trust:TokenType>http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV2.0</trust:TokenType>
   </trust:RequestSecurityToken>
  </s:Body>
</s:Envelope>
Подключаемся к WSDL
$client = new SoapClient(URL_WSDL_MAIN,array("exceptions"=>0,"trace" =>1));

$client->GetToken( $Param );


и в парам должен идти вот это реквест.....
 
Сверху