<?xml version="1.0" encoding="UTF-8"?>
<!-- WSDL for http://sms.diamondcard.us/ created by Pod::WSDL version: 0.05 on Thu Jan 10 16:48:46 2008 -->
<wsdl:definitions targetNamespace="http://sms.diamondcard.us/SMSapi" xmlns:impl="http://sms.diamondcard.us/SMSapi" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns1="http://sms.diamondcard.us/SMSapi">

	<wsdl:types>
		<schema elementFormDefault="qualified" targetNamespace="http://sms.diamondcard.us/SMSapi" xmlns="http://www.w3.org/2001/XMLSchema">
<element name="send">
<complexType>
<sequence>
<element minOccurs="0" maxOccurs="1" name="inParams" type="tns1:PodCustomTypesSendIn" />
</sequence>
</complexType>
</element>

<element name="sendResponse">
<complexType>
<sequence>
<element minOccurs="1" maxOccurs="1" name="out" type="tns1:PodCustomTypesSendOut" />
</sequence>
</complexType>
</element>

<element name="status">
<complexType>
<sequence>
<element minOccurs="0" maxOccurs="1" name="inParams" type="tns1:PodCustomTypesStatusIn" />
</sequence>
</complexType>
</element>

<element name="statusResponse">
<complexType>
<sequence>
<element minOccurs="1" maxOccurs="1" name="out" type="tns1:PodCustomTypesStatusOut" />
</sequence>
</complexType>
</element>



			<complexType name="PodCustomTypesSendOut">
				<sequence>
					<element name="ErrCode" nillable="true" type="xsd:string">
						<annotation>
							<documentation>ErrCode - one of the following: empty - success, INVDEST - invalid destinations error. List of invalid phone numbers available at 'InvalidDestinations' array, LOWBALANCE - Insufficient balance, NOTAVAIL - Service not available, ERR - misc errors. More details available at ErrMsg</documentation>
						</annotation>
					</element>
					<element name="ErrMsg" nillable="true" type="xsd:string">
						<annotation>
							<documentation>Error description text</documentation>
						</annotation>
					</element>
					<element name="SendingId" nillable="true" type="xsd:int">
						<annotation>
							<documentation>Sending Id in case of successfull sending</documentation>
						</annotation>
					</element>
					<element name="InvalidDestinations" minOccurs="0" maxOccurs="unbounded"  nillable="true" type="xsd:string">
						<annotation>
							<documentation>When ErrCode=INVDEST this field contains array of invalid phone numbers</documentation>
						</annotation>
					</element>
				</sequence>
			</complexType>
			<complexType name="PodCustomTypesStatusIn">
				<sequence>
					<element name="AccId" nillable="true" type="xsd:string">
						<annotation>
							<documentation>Account Id</documentation>
						</annotation>
					</element>
					<element name="PinCode" nillable="true" type="xsd:string">
						<annotation>
							<documentation>PIN code</documentation>
						</annotation>
					</element>
					<element name="SendingId" nillable="true" type="xsd:int">
						<annotation>
							<documentation>Sending Id</documentation>
						</annotation>
					</element>
				</sequence>
			</complexType>
			<complexType name="PodCustomTypesSendIn">
				<sequence>
					<element name="AccId" nillable="true" type="xsd:string">
						<annotation>
							<documentation>Account Id</documentation>
						</annotation>
					</element>
					<element name="PinCode" nillable="true" type="xsd:string">
						<annotation>
							<documentation>PIN code</documentation>
						</annotation>
					</element>
					<element name="MsgTxt" nillable="true" type="xsd:string">
						<annotation>
							<documentation>Message to sent</documentation>
						</annotation>
					</element>
					<element name="SendFrom" nillable="true" type="xsd:string">
						<annotation>
							<documentation>Send From phone number</documentation>
						</annotation>
					</element>
					<element name="Destination" minOccurs="1" maxOccurs="unbounded"  nillable="true" type="xsd:string">
						<annotation>
							<documentation>Phone number or list of phone numbers to send message to</documentation>
						</annotation>
					</element>
					<element name="IgnoreInvNumbers" nillable="true" type="xsd:int">
						<annotation>
							<documentation>If this parameter set to 1 messages will be sent to all valid phone numbers in the list</documentation>
						</annotation>
					</element>
					<element name="IgnoreInsufBalance" nillable="true" type="xsd:int">
						<annotation>
							<documentation>If this parameter set to 1 sending will start and go on till you have enough funds on your account</documentation>
						</annotation>
					</element>
				</sequence>
			</complexType>
			<complexType name="PodCustomTypesStatusOut">
				<sequence>
					<element name="ErrCode" nillable="true" type="xsd:string">
						<annotation>
							<documentation>ErrCode - one of the following: empty - success, ERR - misc errors. More details available at ErrMsg</documentation>
						</annotation>
					</element>
					<element name="ErrMsg" nillable="true" type="xsd:string">
						<annotation>
							<documentation>Error description text</documentation>
						</annotation>
					</element>
					<element name="Queue" nillable="true" type="xsd:int">
						<annotation>
							<documentation>Number of messages in queue</documentation>
						</annotation>
					</element>
					<element name="Sent" nillable="true" type="xsd:int">
						<annotation>
							<documentation>Number of sent messages</documentation>
						</annotation>
					</element>
					<element name="Delivered" nillable="true" type="xsd:int">
						<annotation>
							<documentation>Number of delivered messages (if available)</documentation>
						</annotation>
					</element>
					<element name="Failed" nillable="true" type="xsd:int">
						<annotation>
							<documentation>Number of failed messages</documentation>
						</annotation>
					</element>
					<element name="Cost" nillable="true" type="xsd:float">
						<annotation>
							<documentation>How much this sending costs</documentation>
						</annotation>
					</element>
					<element name="Currency" nillable="true" type="xsd:string">
						<annotation>
							<documentation>Currency code for Cost</documentation>
						</annotation>
					</element>
				</sequence>
			</complexType>
		</schema>
	</wsdl:types>

	<wsdl:message name="sendRequest">
		<wsdl:part name="parameters" element="tns1:send">
			<wsdl:documentation>input hash</wsdl:documentation>
		</wsdl:part>
	</wsdl:message>

	<wsdl:message name="sendResponse">
		<wsdl:part name="parameters" element="tns1:sendResponse">
			<wsdl:documentation>output hash</wsdl:documentation>
		</wsdl:part>
	</wsdl:message>

	<wsdl:message name="statusRequest">
		<wsdl:part name="parameters" element="tns1:status">
			<wsdl:documentation>input hash</wsdl:documentation>
		</wsdl:part>
	</wsdl:message>

	<wsdl:message name="statusResponse">
		<wsdl:part name="parameters" element="tns1:statusResponse">
			<wsdl:documentation>output hash</wsdl:documentation>
		</wsdl:part>
	</wsdl:message>

	<wsdl:portType name="SMSapiHandler">
		<wsdl:operation name="send" parameterOrder="parameters">
			<wsdl:documentation>Sending request</wsdl:documentation>
			<wsdl:input message="impl:sendRequest" name="sendRequest" />
			<wsdl:output message="impl:sendResponse" name="sendResponse" />
		</wsdl:operation>

		<wsdl:operation name="status" parameterOrder="parameters">
			<wsdl:documentation>Sending status request</wsdl:documentation>
			<wsdl:input message="impl:statusRequest" name="statusRequest" />
			<wsdl:output message="impl:statusResponse" name="statusResponse" />
		</wsdl:operation>

	</wsdl:portType>

	<wsdl:binding name="SMSapiSoapBinding" type="impl:SMSapiHandler">
		<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />

		<wsdl:operation name="send">
			<wsdlsoap:operation soapAction="http://sms.diamondcard.us/SMSapi#send"  style="document" />
			<wsdl:input name="sendRequest">
				<wsdlsoap:body use="literal" />
			</wsdl:input>
			<wsdl:output name="sendResponse">
				<wsdlsoap:body use="literal" />
			</wsdl:output>
		</wsdl:operation>

		<wsdl:operation name="status">
			<wsdlsoap:operation soapAction="http://sms.diamondcard.us/SMSapi#status" />
			<wsdl:input name="statusRequest">
				<wsdlsoap:body use="literal" />
			</wsdl:input>
			<wsdl:output name="statusResponse">
				<wsdlsoap:body use="literal" />
			</wsdl:output>
		</wsdl:operation>

	</wsdl:binding>

	<wsdl:service name="SMSapiHandlerService">
		<wsdl:port binding="impl:SMSapiSoapBinding" name="SMSapi">
			<wsdlsoap:address location="http://sms.diamondcard.us/" />
		</wsdl:port>
	</wsdl:service>

</wsdl:definitions>

