七、附录
WSDL文件样例
<?xml version="1.0" encoding="UTF-8" ?>
<wsdl:definitions targetNamespace="http://localhost:8090/webserviceTest/services/wstest" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8090/webserviceTest/services/wstest" xmlns:intf="http://localhost:8090/webserviceTest/services/wstest" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema targetNamespace="http://localhost:8090/webserviceTest/services/wstest" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<complexType name="WsBean">
<sequence>
<element name="name" nillable="true" type="xsd:string" />
<element name="age" type="xsd:int" />
</sequence>
</complexType>
</schema>
</wsdl:types>
<wsdl:message name="getWsBeanResponse">
<wsdl:part name="getWsBeanReturn" type="impl:WsBean" />
</wsdl:message>
<wsdl:message name="getWsBeanRequest">
<wsdl:part name="name" type="xsd:string" />
<wsdl:part name="age" type="xsd:int" />
</wsdl:message>
<wsdl:message name="getNameResponse">
<wsdl:part name="getNameReturn" type="xsd:string" />
</wsdl:message>
<wsdl:message name="getNameRequest" />
<wsdl:portType name="WsTest">
<wsdl:operation name="getName">
<wsdl:input message="impl:getNameRequest" name="getNameRequest" />
<wsdl:output message="impl:getNameResponse" name="getNameResponse" />
</wsdl:operation>
<wsdl:operation name="getWsBean" parameterOrder="name age">
<wsdl:input message="impl:getWsBeanRequest" name="getWsBeanRequest" />
<wsdl:output message="impl:getWsBeanResponse" name="getWsBeanResponse" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="wstestSoapBinding" type="impl:WsTest">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="getName">
<wsdlsoap:operation soapAction="" />
<wsdl:input name="getNameRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservice.ufgov.com" use="encoded" />
</wsdl:input>
<wsdl:output name="getNameResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8090/webserviceTest/services/wstest" use="encoded" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getWsBean">
<wsdlsoap:operation soapAction="" />
<wsdl:input name="getWsBeanRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://webservice.ufgov.com" use="encoded" />
</wsdl:input>
<wsdl:output name="getWsBeanResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8090/webserviceTest/services/wstest" use="encoded" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="WsTestService">
<wsdl:port binding="impl:wstestSoapBinding" name="wstest">
<wsdlsoap:address location="http://localhost:8090/webserviceTest/services/wstest" />
</wsdl:port>
</wsdl:service></wsdl:definitions>
(完)
分享到:
相关推荐
MyEclipse下开发Web Service(Axis)
Axis开发Web Service实例,介绍AXIS的三种方法
Web Service WebService Axis一个完整的客户端代码
web service axis 1.6。配置说明,客户端,服务端代码
MyEclipse下开发Web Service(Axis2)
web service 使用 axis2 框架使用的插件 必不可少的
web service axis1.4所有的jar
Web Service (Axis 1.1) step by step.ppt 用AXIS开发webservice一步
Web Service Axis1.4 完整的实例,WebService Axis1.4 完整的实例。
MyEclipse下开发Web Service(Axis)2,步骤简单清晰。
用axis2开发web service,过程比用axis1开发web service简单
Web Service Axis2-1.6.2框架使用 压缩包里有:文档说明,axis2-1.6.2-bin.zip、axis2-1.6.2-war.zip、axis2-eclipse-codegen-plugin-1.6.2.zip、axis2-eclipse-service-plugin-1.6.2.zip。文档里用的所有jar压缩包...
.Web Service简介 .如何开发一个Web Service .Axis2简介 .Axis2安装与部署 .Web Service开发步骤
本资源是Web Service 的框架之一 Axis 集成Web网站示例代码
基于AXIS2实现Web Service开发
axis web service client 源码
web service Axis2相关jar 里面包含了Axis2 java调用.net接口所需jar包
Axis2与Eclipse整合开发的Web Service的服务端