请帮我帮测试一下WSDL文件

ZMS1972 2010-02-09 08:57:10
要求平台:VS2008

<?xml version="1.0" encoding="utf-8"?>
<WSDL:definitions xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://www.hectrix.com/ACTAtek.service" xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.hectrix.com/ACTAtek.xsd" xmlns="http://schemas.xmlsoap.org/wsdl/" name="ACTAtek" targetNamespace="http://www.hectrix.com/ACTAtek.service" xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/">
<WSDL:types>
<documentation>
</documentation>
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://www.hectrix.com/ACTAtek.xsd">
<xsd:element name="sessionID" type="xsd:long" />
<xsd:element name="username" type="xsd:string" />
<xsd:element name="password" type="xsd:string" />
</xsd:schema>
</WSDL:types>
<WSDL:message name="loginRequest">
<WSDL:part name="username" element="ns:username" />
<WSDL:part name="password" element="ns:password" />
</WSDL:message>
<WSDL:message name="loginResponse">
<WSDL:part name="sessionID" element="ns:sessionID" />
</WSDL:message>
<WSDL:portType name="ACTAtekPortType">
<WSDL:operation name="login">
<documentation>Return sessionID for subsequent calls</documentation>
<WSDL:input message="tns:loginRequest" />
<WSDL:output message="tns:loginResponse" />
</WSDL:operation>
</WSDL:portType>
<WSDL:binding name="ACTAtek" type="tns:ACTAtekPortType">
<SOAP:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" />
<WSDL:operation name="login">
<SOAP:operation soapAction="" style="rpc" />
<WSDL:input>
<SOAP:body use="literal" namespace="http://www.hectrix.com/ACTAtek.xsd" />
</WSDL:input>
<WSDL:output>
<SOAP:body use="literal" namespace="http://www.hectrix.com/ACTAtek.xsd" />
</WSDL:output>
</WSDL:operation>
</WSDL:binding>
<WSDL:service name="ACTAtek">
<documentation>WebService API for ACTAtek</documentation>
<WSDL:port name="ACTAtek" binding="tns:ACTAtek">
<SOAP:address location="http://www.hectrix.com/ACTAtek.wsdl" />
</WSDL:port>
</WSDL:service>
</WSDL:definitions>


我在测试时发生错误:
命名空间“http://www.hectrix.com/ACTAtek.service”中的操作绑定“login”已被忽略。在 use=literal style=rpc 消息的每个消息部分都必须指定类型。

我已经指定了类型,
<WSDL:part name="username" element="ns:username" />
<WSDL:part name="password" element="ns:password" />

为什么说没有指定?
有哪位高手指点一下,困绕我好久了,谢谢!
...全文
103 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
liyf155 2010-03-02
  • 打赏
  • 举报
回复
我用的是vs2005,关注下!

12,165

社区成员

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

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