


















Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!



















z
z
z
z
z
z
z
z
z
z
of the elements used in this definition can be found in Section 2 (core language)ticker symbol of type string, and returns the price as a float. A detailed descriptionwhich is deployed using the SOAP 1.1 protocol over HTTP. The request takes astock quotes. The service supports a single operation called GetLastTradePrice,The following example shows the WSDL definition of a simple service providing1.2 WSDL Document Examplebinding extensions with WSDL.on top of the core service definition framework. Nothing precludes the use of otherAlthough defined within this document, the above language extensions are layered
z
z
(^) name="nmtoken">
(^) name="nmtoken">*
?
(^) name="nmtoken"?
(^) message="qname">?
(^) name="nmtoken"
(^) message="qname">
(^) *
(^) *
(^) name="nmtoken">
(^) name="nmtoken">
<-- (^) extensibility
(^) element
(^) -->
<-- (^) extensibility
(^) element
(^) --> (^) *
**
z
z
The2.2 Typeslanguage element.("mixed" in XSD). The documentation element is allowed inside any WSDLreadable documentation. The content of the element is arbitrary text and elements
z
<-- (^) type-system
(^) extensibility
(^) element
(^) --> (^) *
Messages consist of one or more logical 2.3 Messages
z
z
(^) name="Item">
(^) name="Invoice"
(^) type="tns:InvoiceType"/>
(^) name="PO">
(^) name="Item">
(^) name="InvoiceType">
**
(^) name="Composite">
**
**
z
z
z
z
z
for a given portType. The grammar for a binding is as follows:messages defined by a particular portType. There may be any number of bindingsA binding defines message format and protocol details for operations and2.5 Bindingsthe operation is to be used with an RPC-like binding.not concerned with RPC signatures. Also, it is not required to be present, even ifNote that this information serves as a "hint" and may safely be ignored by those **
(^) extensibility
(^) element
(^) extensibility
(^) element
(^) (2) (^) --> (^) *****
(^) name="nmtoken"?
(^) extensibility
(^) element
(^) (4) (^) --> (^) *****
(^) name="nmtoken">
(^) extensibility
(^) element
(^) (5) (^) --> (^) *****
A port defines an individual endpoint by specifying a single address for a binding.2.6 PortsA binding MUST NOT specify address information.A binding MUST specify exactly one protocol.wsdl:output elements. **
(^) extensibility
(^) element
(^) (1) (^) -->
A service groups a set of related ports together: 2.7 Services
**
z
z
z
z
z
z
z
z
encodingStyle="http://schemas.xmlsoap.org/soap
>
(^) name="StockQuoteService">
My
(^) first (^) service
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"xmlns:xsd1="http://example.com/stockquote/schema"xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"xmlns:tns="http://example.com/stockquote.wsdl"
(^) targetNamespace="http://example.com/stockquote/schema"
** **
(^) name="ArrayOfFloat">
** **
(^) name="GetTradePricesOutput">
(^) name="StockQuotePortType">
(^) name="StockQuoteSoapBinding"
(^) type="tns:StockQuotePortType">
>
(^) name="StockQuoteService">
My
(^) first
(^) service
The SOAP Binding extends WSDL with the following extension elements: 3.2 How the SOAP Binding Extends WSDL
?**
** encodingStyle="uri-list"?
(^) namespace="uri"?>*
(^) .... (^) >
The soap:binding element MUST be present when using the SOAP binding.section 5 of the SOAP 1.1 specification).claims as to the encoding or format of the message (e.g. that it necessarily followsthe SOAP protocol format: Envelope, Header and Body. This element makes noThe purpose of the SOAP binding element is to signify that the binding is bound to3.3 soap:binding Each extension element of the SOAP binding is covered in subsequent sections. **
The soap:operation element provides information for the operation as a whole.3.4 soap:operation (such as SMTP, FTP, etc.).
?**
"writer makes right".case, the writer of the message must conform exactly to the specified schema:concretely and then indicate it’s original encoding style (if any) as a hint. In thisright". To avoid having to support all variations, a message may be definedreader of the message to understand all the format variations: "reader makesvariation in the message format for a given set of abstract types, it is up to thesuch as the SOAP Encoding (http://schemas.xmlsoap.org/soap/encoding/) allowusing a list of URIs, as in the SOAP specification. Since some encoding stylessome set of rules defined by an encoding style. Each encoding style is identifiedschema definitions. If abstract definitions, the types are serialized according toThe parts of a message may either be abstract type definitions, or concreteBody element.The soap:body element specifies how the message parts appear inside the SOAP3.5 soap:bodyspecified, and the soap:operation element MAY be omitted.(it has no default value). For other SOAP protocol bindings, it MUST NOT bemaking the request. For the HTTP protocol binding of SOAP, this is value requiredheader; no attempt should be made to make a relative URI value absolute whenoperation. This URI value should be used directly as the value for the SOAPAction
(^) message="qname"
(^) part="nmtoken"
(^) use="literal|en
encodingStyle="uri-list"?
(^) namespace="uri"?>*
**
z
z
z
be as follows for each port:If the values being passed are part1=1, part2=2, part3=3, the request format wouldtype.The following example shows three ports that are bound differently for a given port4.1 HTTP GET/POST Examples port1: (^) GET, (^) URL="http://example.com/o1/A1B2/3"
port2: (^) GET, (^) URL="http://example.com/o1?p1=1&p2=2&p3=
port3: (^) POST,
(^) URL="http://example.com/o1",
(^) PAYLOAD="p1=1&p2=2&p3=3"
(^) name="m2">
(^) name="pt1">
(^) name="service1">
(^) name="port2"
(^) binding="tns:b2">
(^) name="port3"
(^) binding="tns:b3">
(^) name="b1"
(^) type="pt1">
(^) name="b2"
(^) type="pt1">
** **
** **
(^) name="b3"
(^) type="pt1">
elements:The HTTP GET/POST Binding extends WSDL with the following extension 4.2 How the HTTP GET/POST Binding Extends WSDL
**
(^) mime (^) elements
(^) .... (^) >
(^) mime (^) elements
(^) .... (^) >
The4.3 http:address These elements are covered in the subsequent sections.
The4.4 http:bindingbinding element. See section 4.5 for more details.attribute is combined with the values of the location attribute of the http:operation
(^) name="ArrayOfBinary">
(^) name="m1">
(^) name="m2">
(^) name="pt1">
(^) name="b1"
(^) type="tns:pt1">
**
**
** **
** **
(^) name="CompanyInfoService">
The MIME Binding extends WSDL with the following extension elements: 5.2 How the MIME Binding extends WSDL
(^) mime (^) element
(^) part="nmtoken"?/>
(^) mime (^) elements
(^) .... (^) >
(^) mime (^) elements
mime:content To avoid having to define a new element for every MIME format, the5.3 mime:contentmultiple appear, they are considered to be alternatives. MIME elements appear under input and output to specify the MIME format. If
mime:multipartRelated parts into one message using the MIME type "multipart/related". TheThe multipart/related MIME type aggregates an arbitrary set of MIME formatted 5.4 mime:multipartRelated
(^) mime (^) element
(^) -->
Envelope), but do have a particular schema, theTo specify XML payloads that are not SOAP compliant (do not have a SOAP5.6 mime:mimeXmlan enclosing SOAP Envelope.element as a MIME element. It indicates the content type is "text/xml", and there isWhen using the MIME binding with SOAP requests, it is legal to use the soap:body5.5 soap:bodyIf more than one MIME element appears inside a mime:part, they are alternatives.