从没做过web services求帮忙

JPF1024 2015-09-16 11:31:58
有一个wsdl文件,已经用axis2生成了服务端代码(客户端代码听说比较简单一些),但是不知道具体怎么实现了。

求详细实现方法,也看了网上的一些教程,但是生成的代码里面根本没有实体。。具体是不明白大概流程,每个类的每个方法到底是做什么的。。



wsdl文件如下:


<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://wst.sc/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns0="urn:hl7-org:v3" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="urn:hl7-org:v3">
<wsdl:documentation>HIPMessageServer</wsdl:documentation>
<wsdl:types>
<xs:schema xmlns:ns="urn:hl7-org:v3" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="urn:hl7-org:v3">
<xs:element name="HIPMessageServer">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="action" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="message" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="HIPMessageServerResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="HIPMessageServerXml">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="action" nillable="true" type="xs:string"/>
<xs:element minOccurs="0" name="message" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="HIPMessageServerXmlResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="xs:anyType"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
<wsdl:message name="HIPMessageServerRequest">
<wsdl:part name="parameters" element="ns0:HIPMessageServer"/>
</wsdl:message>
<wsdl:message name="HIPMessageServerResponse">
<wsdl:part name="parameters" element="ns0:HIPMessageServerResponse"/>
</wsdl:message>
<wsdl:portType name="HIPMessageServerPortType">
<wsdl:operation name="HIPMessageServer">
<wsdl:input message="ns0:HIPMessageServerRequest" wsaw:Action="urn:HIPMessageServer"/>
<wsdl:output message="ns0:HIPMessageServerResponse" wsaw:Action="urn:HIPMessageServerResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="HIPMessageServerSOAP12Binding" type="ns0:HIPMessageServerPortType">
<soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="HIPMessageServer">
<soap12:operation soapAction="urn:HIPMessageServer" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="HIPMessageServerHttpBinding" type="ns0:HIPMessageServerPortType">
<http:binding verb="POST"/>
<wsdl:operation name="HIPMessageServer">
<http:operation location="HIPMessageServer/HIPMessageServer"/>
<wsdl:input>
<mime:content part="parameters" type="text/xml"/>
</wsdl:input>
<wsdl:output>
<mime:content part="parameters" type="text/xml"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="HIPMessageServer">
<wsdl:port name="HIPMessageServerSOAP11port_http" binding="ns0:HIPMessageServerHttpBinding">
<http:address location="http://192.168.0.1:9000/axis2/services/HIPMessageServer.HIPMessageServerSOAP11port_http/"/>
</wsdl:port>
<wsdl:port name="HIPMessageServerSOAP12port_http" binding="ns0:HIPMessageServerSOAP12Binding">
<soap12:address location="http://192.168.0.1:9000/axis2/services/HIPMessageServer.HIPMessageServerSOAP12port_http/"/>
</wsdl:port>
<wsdl:port name="HIPMessageServerHttpport" binding="ns0:HIPMessageServerHttpBinding">
<http:address location="http://192.168.0.1:9000/axis2/services/HIPMessageServer.HIPMessageServerHttpport/"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>


...全文
259 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
wsdl:message 是方法参数 wsdl:operation 方法名

12,166

社区成员

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

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