WSDL,ETTK,WEBService的问题,在这里也贴一个,希望求解!

huangsongli 2003-09-03 05:36:02
我在做WSDL和AXIS项目里面遇到一个问题,我的客户都是VB的环境,但是服务是JAVA的,我已经生成了一个WSDL文档,里面的PORT还有错误。

我使用的服务环境是IBM的ETTK,里面含有AXIS。我只用修改WSDD以及让WSDL描述正确就可以用客户的VB程序链接上我的服务类吗?还是需要UDDI的支持呢?我现在对这些概念有些不清楚,而且IBM的ETTK套件也用的不是很熟悉。我尝试在ETTK的WSTK目录底下用JWS文件让服务器自己生成WSDL文件结果也失败。

那是不是意味着客户端不管是什么环境必须有STUB,服务端必须有SKELETON呢?


<?xml version="1.0" encoding="UTF-8"?>
<definitions name="StockQuoteService"
targetNamespace="http://www.getquote.com/StockQuoteService"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://www.getquote.com/StockQuoteService"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">


<message name="SymbolRequest">
<part name="symbol" type="xsd:string"/>
</message>

<message name="QuoteResponse">
<part name="getQuoteReturn" type="xsd:float" />
</message>

<portType name="StockQuoteService">
<operation name="getQuote">
<input message="tns:SymbolRequest"/>
<output message="tns:QuoteResponse"/>
</operation>
</portType>

<binding name="StockQuoteServiceBinding1"
type="tns:StockQuoteService">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="getQuote">
<soap:operation soapAction="http://www.getquote.com/GetQuote"/>
<input>
<soap:body use="encoded"
namespace="http://tempuri.org/live-stock-quotes"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded"
namespace="http://tempuri.org/live-stock-quotes"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>

<service name="SimpleStockQuoteService">
<documentation>Stock Quote Service</documentation>

<port binding="StockQuoteServiceBinding1" name="Demo">
<soap:address location="http://192.168.0.131:8080/wstk/basicWS/services/SimpleStockQuoteService"/>
</port>
</service>

</definitions>
...全文
19 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

81,092

社区成员

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

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