wsdl实例

 1 <?xml version=‘1.0‘ encoding=‘UTF-8‘?>
 2 <wsdl:definitions name="HelloWorldService"
 3     targetNamespace="http://test.demo1/"
 4     xmlns:ns1="http://schemas.xmlsoap.org/soap/http"
 5     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
 6     xmlns:tns="http://test.demo1/"
 7     xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
 8     xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 9   <wsdl:types>
10     <xs:schema elementFormDefault="unqualified" targetNamespace="http://test.demo1/" version="1.0" xmlns:tns="http://test.demo1/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
11         <xs:element name="sayHello" type="tns:sayHello"/>
12         <xs:element name="sayHelloResponse" type="tns:sayHelloResponse"/>
13         <xs:complexType name="sayHello">
14             <xs:sequence>
15               <xs:element minOccurs="0" name="arg0" type="xs:string"/>
16             </xs:sequence>
17         </xs:complexType>
18         <xs:complexType name="sayHelloResponse">
19             <xs:sequence>
20               <xs:element minOccurs="0" name="return" type="xs:string"/>
21             </xs:sequence>
22         </xs:complexType>
23     </xs:schema>
24   </wsdl:types>
25
26   <wsdl:message name="sayHelloResponse">
27     <wsdl:part element="tns:sayHelloResponse" name="parameters"></wsdl:part>
28   </wsdl:message>
29   <wsdl:message name="sayHello">
30     <wsdl:part element="tns:sayHello" name="parameters"></wsdl:part>
31   </wsdl:message>
32
33   <wsdl:portType name="HelloWorld">
34     <wsdl:operation name="sayHello">
35       <wsdl:input message="tns:sayHello" name="sayHello"></wsdl:input>
36       <wsdl:output message="tns:sayHelloResponse" name="sayHelloResponse"></wsdl:output>
37     </wsdl:operation>
38   </wsdl:portType>
39
40   <wsdl:binding name="HelloWorldServiceSoapBinding" type="tns:HelloWorld">
41     <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
42     <wsdl:operation name="sayHello">
43       <soap:operation soapAction="" style="document"/>
44       <wsdl:input name="sayHello">
45         <soap:body use="literal"/>
46       </wsdl:input>
47       <wsdl:output name="sayHelloResponse">
48         <soap:body use="literal"/>
49       </wsdl:output>
50     </wsdl:operation>
51   </wsdl:binding>
52
53   <wsdl:service name="HelloWorldService">
54     <wsdl:port binding="tns:HelloWorldServiceSoapBinding" name="HelloWorldPort">
55       <soap:address location="http://localhost:8080/helloWorld"/>
56     </wsdl:port>
57   </wsdl:service>
58 </wsdl:definitions>  
时间: 2024-08-28 12:29:44

wsdl实例的相关文章

WSDL实例解析

WSDL的主要文档元素 WSDL文档可以分为两部分.顶部分由抽象定义组成,而底部分则由具体描述组成.抽象部分以独立于平台和语言的方式定义SOAP消息,它们并不包含任何随 机器或语言而变的元素.这就定义了一系列服务,截然不同的应用都可以实现.具体部分,如数据的序列化则归入底部分,因为它包含具体的定义.在上述的文档元 素中,<types>.<message>.<portType>属于抽象定义 层,<binding>.<service>属于具体定义层.

Atitit wsdl的原理attilax总结

1.1. 在 W3C 的 WSDL 发展史1 1.2. 获取wsdl,可能需要url后面加wsdl,也可能直接url1 1.3. Wsdl的作用2 1.4. WSDL 文档结构2 1.5. WSDL 端口2 1.6. WSDL 消息2 1.7. WSDL types2 1.8. WSDL Bindings2 1.9. WSDL 实例3 1.10. 操作类型3 1.11. 绑定到 SOAP4 1.1. 在 W3C 的 WSDL 发展史 在 2001 年 3 月,WSDL 1.1 被 IBM.微软作

WSDL 知识点

WSDL WSDL(网络服务描述语言,WebServices Description Language)是一门基于 XML 的语言,用于描述 Web Services 以及如何对它们进行访问. WSDL简介 WSDL是基于 XML 的WebService的描述语言,是一种接口定义语言,用于描述Web Service的接口信息等. WSDL文档可以分为两部分.顶部分由抽象定义组成,而底部分则由具体描述组成. 在继续学习之前,您需要对下面的知识有基本的了解: ?  XML ?  XML 命名空间 ?

WSDL教程

您应当具备的基础知识 在继续学习之前,您需要对下面的知识有基本的了解: XML XML 命名空间 XML Schema 如果您希望首先学习这些项目,请访问我们的 XML 系列教程. 什么是 WSDL? WSDL 指网络服务描述语言 WSDL 使用 XML 编写 WSDL 是一种 XML 文档 WSDL 用于描述网络服务 WSDL 也可用于定位网络服务 WSDL 还不是 W3C 标准 WSDL 可描述网络服务(Web Services) WSDL 指网络服务描述语言 (Web Services D

WebService-php- 2(17)

wsdl实例 <?xml version ='1.0' encoding ='UTF-8' ?> <definitions targetNamespace='http://localhost/00/' xmlns:tns='http://localhost/00/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soapenc='h

全国人口 信息(NCIIC)接口开发纪要

阶段一:根据wsdl2java命令解析https://ws.nciic.org.cn/nciic_ws/services/NciicServices?wsdl以生成接口调用的对象类: wsdl2java用法: wsdl2java -p com -d src -all wsdl 实例1.:wsdl2java -p com -client -d d:/src https://ws.nciic.org.cn/nciic_ws/services/NciicServices?wsdl实例2.:wsdl2j

SoapUI学习(1)- WebService基础

转载:http://luyongxin88.blog.163.com/blog/static/92558072011320101454287/ WebService 它是一种构建应用程序的普遍模型,可以在任何支持网络通信的操作系统中实施运行; 它是一种新的web应用程序分支,是自包含.自描述.模块 化的应用,可以发布.定位.通过web调用. Web Service是一个应用组件,它逻辑性的为其他应用程序提供数据与服务.各应用程序通过网络协议和规定的一些标准数据格式(Http,XML,Soap)来

php学习之道:php中soap的使用实例以及生成WSDL文件,提供自动生成WSDL文件的类库——SoapDiscovery.class.php类

1. web service普及: Webservice soap wsdl区别之个人见解 Web Service实现业务诉求:  Web Service是真正"办事"的那个,提供一种办事接口的统称. WSDL提供"能办的事的文档说明":  对要提供的服务的一种描述格式.我想帮你的忙,但是我要告诉你我都能干什么,以及干这些事情需要的参数类型. SOAP提供"请求"的规范:  向服务接口传递请求的格式,包括方法和参数等.你想让人家办事,总得告诉人家

WSDL WebService的创建和使用实例

一. WSDL WebService的创建: 1.创建[Web Service Project]: WebServices Framework要选JAX-WS: 2.写一个简单的测试用例: package com.webservice; public class WebService{ public String printData(String printerName){ String strRet = "Welcome to use WebService, " + printerN