vb6中调用WEBSERVICE

NPHARD 2008-09-01 05:13:06

Dim s As New SoapClient

On Error GoTo err:

Call s.mssoapinit("http://10.11.65.137:8080/sdnwom/ws/TelnetService/TelnetService?wsdl")

Dim str As String


Dim bsc As String

Dim cell As String

bsc = "JNBSC35"

cell = "RLCRP:CELL=G012341;"

str = s.rexecGetResult(bsc, cell)


返回错误:


Client:Incorrect number of parameters supplied for SOAP request HRESULT=0x80070057


请问如何解决,谢谢
...全文
227 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
NPHARD 2008-09-08
  • 打赏
  • 举报
回复
但是参数个数就是两个啊,是不是还有其它问题啊
ttjacky 2008-09-07
  • 打赏
  • 举报
回复
还没搞定? 错误提示是参数个数的问题
NPHARD 2008-09-07
  • 打赏
  • 举报
回复
没有高手了吗
NPHARD 2008-09-05
  • 打赏
  • 举报
回复
参数没有问题。
NPHARD 2008-09-03
  • 打赏
  • 举报
回复
参数没有问题。WS定义如下



<xsd:element name="rexecGetResult" type="tns:rexecGetResult" />
- <xsd:complexType name="rexecGetResult">
- <xsd:sequence>
<xsd:element minOccurs="0" name="arg0" type="xsd:string" />
<xsd:element minOccurs="0" name="arg1" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
<xsd:element name="rexecGetResultResponse" type="tns:rexecGetResultResponse" />
- <xsd:complexType name="rexecGetResultResponse">
- <xsd:sequence>
<xsd:element minOccurs="0" name="return" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
- <wsdl:message name="rexecGetResult">
<wsdl:part element="tns:rexecGetResult" name="parameters" />
</wsdl:message>
- <wsdl:message name="rexecGetResultResponse">
<wsdl:part element="tns:rexecGetResultResponse" name="parameters" />
</wsdl:message>
- <wsdl:portType name="ITelnetService">
- <wsdl:operation name="rexecGetResult">
<wsdl:input message="tns:rexecGetResult" name="rexecGetResult" />
<wsdl:output message="tns:rexecGetResultResponse" name="rexecGetResultResponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="TelnetServiceServiceSoapBinding" type="tns:ITelnetService">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="rexecGetResult">
<soap:operation soapAction="" style="document" />
- <wsdl:input name="rexecGetResult">
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output name="rexecGetResultResponse">
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="TelnetServiceService">
SYSSZ 2008-09-02
  • 打赏
  • 举报
回复
客户端:SOAP请求参数数目不正确
SYSSZ 2008-09-02
  • 打赏
  • 举报
回复
客户端:SOAP请求参数数目不正确
NPHARD 2008-09-02
  • 打赏
  • 举报
回复
函数需要两个参素,均为字符串,返回值也为字符串。
yangao 2008-09-02
  • 打赏
  • 举报
回复
你先把Service提供的接口介绍下
干什么的 需要什么参数 是否返回值
shibaiyici 2008-09-01
  • 打赏
  • 举报
回复
不懂!!!!

1,502

社区成员

发帖
与我相关
我的任务
社区描述
VB 网络编程
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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