加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

Axis2 WebService WSDL

发布时间:2020-12-17 00:34:56 所属栏目:安全 来源:网络整理
导读:访问WEBSERVICE服务:http://localhost:8080/.../.../.../createFtpFileIndexService?wsdl返回信息如下: This XML file does not appear to have any style information associated with it. The document tree is shown below. wsdl:definitions xmlns:wsd
访问WEBSERVICE服务:http://localhost:8080/.../.../.../createFtpFileIndexService?wsdl返回信息如下:
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:ax21="http://io.java/xsd" xmlns:ns="http://fulltextIndex.service.test.cn" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://fulltextIndex.service.test.cn">
<wsdl:documentation>createFtpFileIndexService</wsdl:documentation>
<wsdl:types>
<xs:schema xmlns:ax22="http://fulltextIndex.service.test.cn" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://io.java/xsd">
<xs:import namespace="http://fulltextIndex.service.test.cn"/>
<xs:complexType name="IOException">
<xs:complexContent>
<xs:extension base="ax22:Exception">
<xs:sequence/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>
<xs:schema xmlns:ax23="http://io.java/xsd" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://fulltextIndex.service.test.cn">
<xs:import namespace="http://io.java/xsd"/>
<xs:element name="readFtpFileByWebService">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="filePath" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="readFtpFileByWebServiceResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="Exception">
<xs:sequence>
<xs:element minOccurs="0" name="Exception" nillable="true" type="xs:anyType"/>
</xs:sequence>
</xs:complexType>
<xs:element name="IOException">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="IOException" nillable="true" type="ax21:IOException"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="main">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0" name="args" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
<wsdl:message name="readFtpFileByWebServiceRequest">
<wsdl:part name="parameters" element="ns:readFtpFileByWebService"/>
</wsdl:message>
<wsdl:message name="readFtpFileByWebServiceResponse">
<wsdl:part name="parameters" element="ns:readFtpFileByWebServiceResponse"/>
</wsdl:message>
<wsdl:message name="mainRequest">
<wsdl:part name="parameters" element="ns:main"/>
</wsdl:message>
<wsdl:message name="IOException">
<wsdl:part name="parameters" element="ns:IOException"/>
</wsdl:message>
<wsdl:portType name="createFtpFileIndexServicePortType">
<wsdl:operation name="readFtpFileByWebService">
<wsdl:input message="ns:readFtpFileByWebServiceRequest" wsaw:Action="urn:readFtpFileByWebService"/>
<wsdl:output message="ns:readFtpFileByWebServiceResponse" wsaw:Action="urn:readFtpFileByWebServiceResponse"/>
</wsdl:operation>
<wsdl:operation name="main">
<wsdl:input message="ns:mainRequest" wsaw:Action="urn:main"/>
<wsdl:fault message="ns:IOException" name="IOException" wsaw:Action="urn:mainIOException"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="createFtpFileIndexServiceSoap11Binding" type="ns:createFtpFileIndexServicePortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="readFtpFileByWebService">
<soap:operation soapAction="urn:readFtpFileByWebService" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="main">
<soap:operation soapAction="urn:main" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:fault name="IOException">
<soap:fault use="literal" name="IOException"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="createFtpFileIndexServiceSoap12Binding" type="ns:createFtpFileIndexServicePortType">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="readFtpFileByWebService">
<soap12:operation soapAction="urn:readFtpFileByWebService" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="main">
<soap12:operation soapAction="urn:main" style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:fault name="IOException">
<soap12:fault use="literal" name="IOException"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="createFtpFileIndexServiceHttpBinding" type="ns:createFtpFileIndexServicePortType">
<http:binding verb="POST"/>
<wsdl:operation name="readFtpFileByWebService">
<http:operation location="createFtpFileIndexService/readFtpFileByWebService"/>
<wsdl:input>
<mime:content type="text/xml" part="readFtpFileByWebService"/>
</wsdl:input>
<wsdl:output>
<mime:content type="text/xml" part="readFtpFileByWebService"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="main">
<http:operation location="createFtpFileIndexService/main"/>
<wsdl:input>
<mime:content type="text/xml" part="main"/>
</wsdl:input>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="createFtpFileIndexService">
<wsdl:port name="createFtpFileIndexServiceHttpSoap11Endpoint" binding="ns:createFtpFileIndexServiceSoap11Binding">
<soap:address location="http://localhost:8080/tmp-fileservice/services/createFtpFileIndexService.createFtpFileIndexServiceHttpSoap11Endpoint/"/>
</wsdl:port>
<wsdl:port name="createFtpFileIndexServiceHttpSoap12Endpoint" binding="ns:createFtpFileIndexServiceSoap12Binding">
<soap12:address location="http://localhost:8080/tmp-fileservice/services/createFtpFileIndexService.createFtpFileIndexServiceHttpSoap12Endpoint/"/>
</wsdl:port>
<wsdl:port name="createFtpFileIndexServiceHttpEndpoint" binding="ns:createFtpFileIndexServiceHttpBinding">
<http:address location="http://localhost:8080/tmp-fileservice/services/createFtpFileIndexService.createFtpFileIndexServiceHttpEndpoint/"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>


WSDL 是一种XML Application,他将Web服务描述定义为一组服务访问点,客户端可以通过这些服务访问点对包含面向文档信息或面向过程调用的服务进行访问(类似远程过程调用)。WSDL首先对访问的操作和访问时使用的请求/响应消息进行抽象描述,然后将其绑定到具体的传输协议和消息格式上以最终定义具体部署的服务访问点。相关的具体部署的服务访问点通过组合就成为抽象的Web服务。
在具体使用中,我们可以对 WSDL 进行扩展(类似SOAP的可扩展性),这样无论通信时使用何种消息格式或网络协议,都可以对服务访问点及其使用的消息格式进行描述。在WSDL的框架中,可以使用任意的消息格式和网络协议,如同SOAP中可以使用任意的网络协议一样。在WSDL规范中,定义了如何使用SOAP消息格式、HTTP GET/POST消息格式以及MIME格式来完成Web服务交互的规范。
WSDL 文档在Web服务的定义中使用下列元素:

Types - 数据类型定义的容器,它使用某种类型系统(一般地使用XML Schema中的类型系统)。? Message - 通信消息的数据结构的抽象类型化定义。使用Types所定义的类型来定义整个消息的数据结构。? Operation - 对服务中所支持的操作的抽象描述,一般单个Operation描述了一个访问入口的请求/响应消息对。? PortType - 对于某个访问入口点类型所支持的操作的抽象集合,这些操作可以由一个或多个服务访问点来支持。? Binding - 特定端口类型的具体协议和数据格式规范的绑定。? Port - 定义为协议/数据格式绑定与具体Web访问地址组合的单个服务访问点。? Service- 相关服务访问点的集合。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读