E
E
evil0o2014-04-11 11:45:59
PHP
evil0o, 2014-04-11 11:45:59

Soap php how to send requests to server?

You need to send this to the server from another server)

$host = "адрес";
  $login = "test";
  $password = "test";
  $client = new SoapClient($host);	
  $request = new stdClass();

  //что то еще

  $result = $client->__call("", array($request));

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<GetTariffList xmlns="http://адрес.Services.Delivery/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<login> LOGIN</login>
<password>PASSWORD </password>
<contractID>CONTRACTID </contractID>
<tariffRateTypeId> </tariffRateTypeId>
</GetTariffList>
</s:Body>
</s:Envelope>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
apasen, 2014-04-11
@evil0o

$client = new SoapClient("some.wsdl", array('login'          => "some_name",
                                            'password'       => "some_password"));

And then
$client->__soapCall("SomeFunction", array($a, $b, $c));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question