各位能否帮我看看我这个WSDL写的是否有错,谢谢

IzualX 2009-07-31 11:17:24
用C#客户端调用的时候,一直报Procedure 'string' not present,很奇怪~~
服务器是PHP的SoapServer~~

我对WSDL也不过是一知半解,请教各位高手啦~~谢谢


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions
name="userService"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.example.org/userService/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.example.org/userService/">
<wsdl:types>
<xsd:schema targetNamespace="http://www.example.org/userService/">
<xsd:element name="UserLogin">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="in" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="UserLoginResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="out" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</wsdl:types>
<wsdl:message name="UserLoginRequest">
<wsdl:part name="Username" type="xsd:string"/>
<wsdl:part name="Password" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="UserLoginResponse">
<wsdl:part name="parameters" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="userService">
<wsdl:operation name="UserLogin">
<wsdl:input message="tns:UserLoginRequest"/>
<wsdl:output message="tns:UserLoginResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="userServiceSOAP" type="tns:userService">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="UserLogin">
<soap:operation soapAction="http://www.example.org/userService/UserLogin"/>
<wsdl:input>
<soap:body namespace="http://www.example.org/userService/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:input>
<wsdl:output>
<soap:body namespace="http://www.example.org/userService/" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="userService">
<wsdl:port binding="tns:userServiceSOAP" name="userServiceSOAP">
<soap:address location='http://xxxxxx'/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

...全文
97 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
「已注销」 2009-08-03
  • 打赏
  • 举报
回复
不懂,帮顶。
老Key 2009-08-01
  • 打赏
  • 举报
回复
不知道,但是可以帮lz顶一个
slimboy123 2009-08-01
  • 打赏
  • 举报
回复
貌似你的服务端wsdl有问题,我用wsdl.exe根据你提供的服务端生成webservice代理类报错

12,162

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧