WSDL service元素介绍
发布时间:2023-09-26 10:56:02 所属栏目:教程 来源:
导读:WSDL <service>元素定义Web服务支持的端口。 对于每个支持的协议,都有一个<port>元素。 service元素是端口的集合。
service元素包含一个文档元素,用于提供人类可读的文档。
下面是示例章节中的一段代码 -
<
service元素包含一个文档元素,用于提供人类可读的文档。
下面是示例章节中的一段代码 -
<
WSDL <service>元素定义Web服务支持的端口。 对于每个支持的协议,都有一个<port>元素。 service元素是端口的集合。 service元素包含一个文档元素,用于提供人类可读的文档。 下面是示例章节中的一段代码 - <service name = Hello_Service> <documentation>WSDL File for HelloService</documentation> <port binding = tns:Hello_Binding name = Hello_Port> <soap:address location = http://www.examples.com/SayHello/> </port> </service> port元素的绑定属性将服务的地址与Web服务中定义的绑定元素相关联。 在这个例子中,它绑定的是Hello_Binding。 <binding name = Hello_Binding type = tns:Hello_PortType> <soap:binding style = rpc transport = http://schemas.xmlsoap.org/soap/http/> <operation name = sayHello> <soap:operation soapAction = sayHello/> <input> <soap:body encodingStyle = http://schemas.xmlsoap.org/soap/encoding/ namespace = urn:examples:helloservice use = encoded/> </input> <output> <soap:body encodingStyle = http://schemas.xmlsoap.org/soap/encoding/ namespace = urn:examples:helloservice use = encoded/> </output> </operation> </binding> (编辑:汽车网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |