WSDL文件:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://IP/CallBack" xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://IP/CallBack" xmlns:intf="http://IP/CallBack" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns1="http://net.jboss.org/jmx" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><wsdl:types>
<schema targetNamespace="http://net.jboss.org/jmx" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/><complexType name="AttributeType">
<attribute name="name" type="xsd:string"/><complexContent><sequence><element name="value" nillable="true" type="xsd:anyType"/>
</sequence></complexContent></complexType><complexType name="ObjectNameType"><simpleContent><extension base="string"/>
</simpleContent></complexType></schema></wsdl:types>
<wsdl:message name="RecvSMSRequest">
<wsdl:part name="caller" type="xsd:string"/>
<wsdl:part name="time" type="xsd:string"/>
<wsdl:part name="cont" type="xsd:string"/>
<wsdl:part name="ucNum" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="EchoOfSendSMSResponse">
<wsdl:part name="EchoOfSendSMSReturn" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="RecvSMSResponse">
<wsdl:part name="RecvSMSReturn" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="writeFileResponse">
</wsdl:message>
<wsdl:message name="EchoOfSendFaxResponse">
<wsdl:part name="EchoOfSendFaxReturn" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="EchoOfSendSMSRequest">
<wsdl:part name="ucNum" type="xsd:string"/>
<wsdl:part name="cee" type="xsd:string"/>
<wsdl:part name="msgid" type="xsd:int"/>
<wsdl:part name="res" type="xsd:int"/>
<wsdl:part name="recvt" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="NotifyStatusRequest">
<wsdl:part name="eventID" type="xsd:int"/>
<wsdl:part name="sessionID" type="xsd:string"/>
<wsdl:part name="res" type="xsd:int"/>
<wsdl:part name="para1" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="NotifyStatusResponse">
<wsdl:part name="NotifyStatusReturn" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="CallBack">
<wsdl:operation name="NotifyStatus" parameterOrder="eventID sessionID res para1">
<wsdl:input message="impl:NotifyStatusRequest" name="NotifyStatusRequest"/>
<wsdl:output message="impl:NotifyStatusResponse" name="NotifyStatusResponse"/>
</wsdl:operation>
<wsdl:operation name="RecvSMS" parameterOrder="caller time cont ucNum">
<wsdl:input message="impl:RecvSMSRequest" name="RecvSMSRequest"/>
<wsdl:output message="impl:RecvSMSResponse" name="RecvSMSResponse"/>
</wsdl:operation>
<wsdl:operation name="EchoOfSendSMS" parameterOrder="ucNum cee msgid res recvt">
<wsdl:input message="impl:EchoOfSendSMSRequest" name="EchoOfSendSMSRequest"/>
<wsdl:output message="impl:EchoOfSendSMSResponse" name="EchoOfSendSMSResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="CallBackSoapBinding" type="impl:CallBack">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="NotifyStatus">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="NotifyStatusRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservice.ser3rd.com" use="encoded"/>
</wsdl:input>
<wsdl:output name="NotifyStatusResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://IP/CallBack" use="encoded"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="RecvSMS">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="RecvSMSRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservice.ser3rd.com" use="encoded"/>
</wsdl:input>
<wsdl:output name="RecvSMSResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://IP/CallBack" use="encoded"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="EchoOfSendSMS">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="EchoOfSendSMSRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservice.ser3rd.com" use="encoded"/>
</wsdl:input>
<wsdl:output name="EchoOfSendSMSResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://IP/CallBack" use="encoded"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="CallBackService">
<wsdl:port binding="impl:CallBackSoapBinding" name="CallBack">
<wsdlsoap:address location="http://IP/CallBack"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
CS文件:
public class CallBack
{
private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); public void NotifyStatus (int eventID, String sessionID, int res, String para1)
{
//实现方法
} public static String RecvSMS(String caller, String time,String cont,String ucNum)
{
//实现方法
} public void EchoOfSendSMS(String ucNum,String cee,int msgid,int res,String recvt)
{
//实现方法
}
}
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://IP/CallBack" xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://IP/CallBack" xmlns:intf="http://IP/CallBack" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns1="http://net.jboss.org/jmx" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><wsdl:types>
<schema targetNamespace="http://net.jboss.org/jmx" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/><complexType name="AttributeType">
<attribute name="name" type="xsd:string"/><complexContent><sequence><element name="value" nillable="true" type="xsd:anyType"/>
</sequence></complexContent></complexType><complexType name="ObjectNameType"><simpleContent><extension base="string"/>
</simpleContent></complexType></schema></wsdl:types>
<wsdl:message name="RecvSMSRequest">
<wsdl:part name="caller" type="xsd:string"/>
<wsdl:part name="time" type="xsd:string"/>
<wsdl:part name="cont" type="xsd:string"/>
<wsdl:part name="ucNum" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="EchoOfSendSMSResponse">
<wsdl:part name="EchoOfSendSMSReturn" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="RecvSMSResponse">
<wsdl:part name="RecvSMSReturn" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="writeFileResponse">
</wsdl:message>
<wsdl:message name="EchoOfSendFaxResponse">
<wsdl:part name="EchoOfSendFaxReturn" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="EchoOfSendSMSRequest">
<wsdl:part name="ucNum" type="xsd:string"/>
<wsdl:part name="cee" type="xsd:string"/>
<wsdl:part name="msgid" type="xsd:int"/>
<wsdl:part name="res" type="xsd:int"/>
<wsdl:part name="recvt" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="NotifyStatusRequest">
<wsdl:part name="eventID" type="xsd:int"/>
<wsdl:part name="sessionID" type="xsd:string"/>
<wsdl:part name="res" type="xsd:int"/>
<wsdl:part name="para1" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="NotifyStatusResponse">
<wsdl:part name="NotifyStatusReturn" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="CallBack">
<wsdl:operation name="NotifyStatus" parameterOrder="eventID sessionID res para1">
<wsdl:input message="impl:NotifyStatusRequest" name="NotifyStatusRequest"/>
<wsdl:output message="impl:NotifyStatusResponse" name="NotifyStatusResponse"/>
</wsdl:operation>
<wsdl:operation name="RecvSMS" parameterOrder="caller time cont ucNum">
<wsdl:input message="impl:RecvSMSRequest" name="RecvSMSRequest"/>
<wsdl:output message="impl:RecvSMSResponse" name="RecvSMSResponse"/>
</wsdl:operation>
<wsdl:operation name="EchoOfSendSMS" parameterOrder="ucNum cee msgid res recvt">
<wsdl:input message="impl:EchoOfSendSMSRequest" name="EchoOfSendSMSRequest"/>
<wsdl:output message="impl:EchoOfSendSMSResponse" name="EchoOfSendSMSResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="CallBackSoapBinding" type="impl:CallBack">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="NotifyStatus">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="NotifyStatusRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservice.ser3rd.com" use="encoded"/>
</wsdl:input>
<wsdl:output name="NotifyStatusResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://IP/CallBack" use="encoded"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="RecvSMS">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="RecvSMSRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservice.ser3rd.com" use="encoded"/>
</wsdl:input>
<wsdl:output name="RecvSMSResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://IP/CallBack" use="encoded"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="EchoOfSendSMS">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="EchoOfSendSMSRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservice.ser3rd.com" use="encoded"/>
</wsdl:input>
<wsdl:output name="EchoOfSendSMSResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://IP/CallBack" use="encoded"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="CallBackService">
<wsdl:port binding="impl:CallBackSoapBinding" name="CallBack">
<wsdlsoap:address location="http://IP/CallBack"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
CS文件:
public class CallBack
{
private static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); public void NotifyStatus (int eventID, String sessionID, int res, String para1)
{
//实现方法
} public static String RecvSMS(String caller, String time,String cont,String ucNum)
{
//实现方法
} public void EchoOfSendSMS(String ucNum,String cee,int msgid,int res,String recvt)
{
//实现方法
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货