日期:2014-05-16  浏览次数:20555 次

php调用c#soap---no operations defined in the WSDL document!

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="WebSmsSrv"
 targetNamespace="http://127.0.0.1:10000/WebSmsSrv.wsdl"
 xmlns:tns="http://127.0.0.1:10000/WebSmsSrv.wsdl"
 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
 xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:ns="urn:WebSmsSrv"
 xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
 xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"
 xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"
 xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
 xmlns="http://schemas.xmlsoap.org/wsdl/">

<types>

 <schema targetNamespace="urn:WebSmsSrv"
  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:ns="urn:WebSmsSrv"
  xmlns="http://www.w3.org/2001/XMLSchema"
  elementFormDefault="unqualified"
  attributeFormDefault="unqualified">
  <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
 </schema>

</types>

<message name="SendMessageRequest">
 <part name="sUserName" type="xsd:string"/>
 <part name="sSender" type="xsd:string"/>
 <part name="sRecvs" type="xsd:string"/>
 <part name="nRecvCount" type="xsd:int"/>
 <part name="sContent" type="xsd:string"/>
 <part name="nFeeType" type="xsd:int"/>
</message>

<message name="SendMessageResponse">
 <part name="sResp" type="xsd:string"/>
</message>

<message name="QuerySendHistRequest">
 <part name="sUserName" type="xsd:string"/>
 <part name="nInMsgId" type="xsd:int"/>
</message>

<message name="QuerySendHistResponse">
 <part name="sResp" type="xsd:string"/>
</message>

<message name="RecvMessageRequest">
 <part name="sUserName" type="xsd:string"/>
 <part name="sRecv" type="xsd:string"/>
</message>

<message name="RecvMessageResponse">
 <part name="sResp" type="xsd:string"/>
</message>

<message name="SendMessageExtRequest">
 <part name="sUserName" type="xsd:string"/>
 <part name="sSender" type="xsd:string"/>
 <part name="sRecvs" type="xsd:string"/>
 <part name="nRecvCount" type="xsd:int"/>
 <part name="sContent" type="xsd:string"/>
 <part name="nFeeType" type="xsd:int"/>
</message>

<message name="SendMessageExtResponse">
 <part name="sResp" type="xsd:string"/>
</message>

<portType name="WebSmsSrvPortType">
 <operation name="SendMessage">
  <documentation>Service definition of function ns__SendMessage</documentation>
  <inpu