Five steps written by WSDL

zhaozj2021-02-16  81

Five steps written by WSDL

We will explain in http://blog.9cbs.net/HONGBO781202/Archive/2004/07/21/47135.aspx.

1) The declaration namespace must be

The declarations of various namespaces are available in the elements.

????? TargetNamespace = "

http://loans.org/wsdl/loan-approval

????? xmlns = "

http://schemas.xmlsoap.org/wsdl/ "

????? xmlns: XSD = "

http://www.w3.org/2001/xmlschema "???

????? XMLns: PLNK = "

http://schemas.xmlsoap.org/ws/2003/05/partner-link/ "?????

????? xmlns: lns = "

http://loans.org/wsdl/loan-approval ">>

Three must do the external namespace statement of WSDL, SOAP and XSD (XML mode definition)

XMLNS = "

http://schemas.xmlsoap.org/wsdl/ "is the WSDL namespace

XMLns: SOAP = "

http://schemas.xmlsoap.org/wsdl/soap/ "is the SOAP namespace, because it is used to make BPEL4WS, so

No need to this name space XMLns: XSD = "http://www.w3.org/2001/xmlschema" is the XSD namespace

2) Write services

Elements contain one or more

Elements, in fact, each element is a series of you want

Operation. Alternatively, you can also view a single porttype element as a logical grouping of various methods into classes. We call

PortType is the service - this is the origin of the "Web Service".

??

?????

?????

?????

???????????? message = "lns: errorMessage" />

??

It can be seen that PortType is a collection of Operation. One Operation is a method, is that portType is not a class? One

Class, we can see as a service.

3) Specify the parameter OPERATION Specifies the parameters of the input parameters and output, in the WSDL term, all parameters are called "messages".

??

??

??

A message can have multiple part elements, the Part element specifies the name and type.

4) Binding WSDL with SOAP defines operations and messages in an abstraction method without considering the details of the implementation. In fact, the WSDL task is to define or describe the web.

Services, then provide a reference to an external framework to define how WSDL users will implement them. You can use this frame as

WSDL abstract definitions and the Binding "between their implementations. Generally, it is bound to SOAP, of course, it is not necessary.

5) Specify the implementation When you publish a web service in the UDDI Register, it uses it. The last two steps combine the WSDL with SOAP / UDDI.

?

转载请注明原文地址:https://www.9cbs.com/read-12339.html

New Post(0)