$conn = new SoapClient('/soap/soapGateway.wsdl');
$login = '11111111111';
$password = '111111111111111';
$cardNumber = '111111111111';
$pin = '1111';
try
{
$result = $conn->sendCard($login,$password,$cardNumber,$pin);
}
catch (SoapFault $exception)
{
echo $exception;
}
print_r($smscIds);
Есть это и это :huh:
<?xml version="1.0" encoding="utf-8"?>
<definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="http://localhost/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
name="SmsWsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<xs:schema xmlns:tns="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
targetNamespace="http://localhost/">
<complexType name="Message">
<sequence>
<element name="phone" type="string" minOccurs="1" maxOccurs="1" />
<element name="text" type="string" minOccurs="1" maxOccurs="1" />
<element name="date" type="dateTime" minOccurs="1" maxOccurs="1" />
<element name="type" type="decimal" minOccurs="1" maxOccurs="1" />
</sequence>
</complexType>
<complexType name="MessageList">
<sequence>
<element minOccurs="1" maxOccurs="unbounded" name="message" type="Message"/>
</sequence>
</complexType>
<element name="Request">
<element name="messageList" type="MessageList" />
</element>
<element name="Response">
<complexType>
<sequence>
<element name="status" type="boolean" />
</sequence>
</complexType>
</element>
</xs:schema>
</types>
<message name="sendSmsRequest">
<part name="Request" element="tns:Request" />
</message>
<message name="sendSmsResponse">
<part name="Response" element="tns:Response" />
</message>
<portType name="SmsServicePortType">
<operation name="sendSms">
<input message="tns:sendSmsRequest" />
<output message="tns:sendSmsResponse" />
</operation>
</portType>
<binding name="SmsServiceBinding" type="tns:SmsServicePortType">
<soap:binding style=”rpc” transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="sendSms">
<soap:operation soapAction="" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
</binding>
<service name="SmsService">
<port name="SmsServicePort" binding="tns:SmsServiceBinding">
<soap:address location="https://194.135.22.144/GiftCardServiceWeb/GiftCardWebEx.asmx?op=GetCardInfo" />
</port>
</service>
</definitions>