本講義の「Web Architecture」の資料を読んでください
適用分野は
<soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope" soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"> <soap:Header> ... </soap:Header> <soap:Body> ... <soap:Fault> ... </soap:Fault> </soap:Body> </soap:Envelope>
<soap:Body>の内容はユーザーが定義する、XMLスキーマによるXML文書<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
<soap:Header> ... </soap:Header>
<soap:Body>
<getPartInfo xmlns="some-ns.example.com">00345</getPartInfo>
</soap:Body>
</soap:Envelope>
<soap:Body>の内容は「SOAP ENCODING」の規則に従うXML文書<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
<soap:Header> ... </soap:Header>
<soap:Body>
<getPartInfo xmlns="some-ns.example.com>
<partID>00345</partID>
</getPartInfo>
</soap:Body>
</soap:Envelope>
<soap:Body> <p:Part xmlns:p="http://www.parts-depot.com" xmlns:xlink="http://www.w3.org/1999/xlink"> <Part-ID>00345</Part-ID> <Name>Widget-A</Name> <Description>...</Description> <Specification xlink:href="http://www.parts-depot.com/parts/00345/specification"/> <UnitCost currency="USD">0.10</UnitCost> <Quantity>10</Quantity> </p:Part> </soap:Body>
<definitions> <types> ... </types> <message> ... </message> <portType> ... </portType> <binding> ... </binding> </definitions>
<types><message><portType><binding><definitions> <types> <xs:element name="getPartInfo"> ... </types> <message name="GetPartInfoSoap"> <part name="parameters" element="tns:getPartInfo"/> ... </message> <portType name="GetPartInfoSoap> <operation name="GetPartInfo"> <input message="tns:GetPartInfoSoap"> ... </operation> ... </portType> <binding> ... </binding> </definitions>
<wsa:EndpointReference xmlns:wsa="..." xmlns:example="...">
<wsa:Address>http://www.parts-depot.com/parts/</wsa:Address>
<wsa:ReferenceProperties>
<example:ServiceLevel>Basic</example:ServiceLevel>
</wsa:ReferenceProperties>
</wsa:EndpointReference>
部品のリストの問い合わせ
http://www.parts-depot.com/parts
部品の詳細の情報を問う
http://www.parts-depot.com/parts/00345
<p:Part xmlns:p="http://www.parts-depot.com" xmlns:xlink="http://www.w3.org/1999/xlink"> <Part-ID>00345</Part-ID> <Name>Widget-A</Name> <Description>...</Description> <Specification xlink:href="http://www.parts-depot.com/parts/00345/specification"/> <UnitCost currency="USD">0.10</UnitCost> <Quantity>10</Quantity> </p:Part>
http://www.parts-depot.com/parts/00345
http://www.parts-depot.com/parts?action=getParts&partID=00345
<binding name="SecureBinding" ...>
<PolicyReference URI="#secure" />...</wsdl:binding>
<Policy wsu:Id=”secure”>
<All>
<ExactlyOne>
<sp:TransportBinding>...</sp:TransportBinding>
<sp:AsymmetricBinding>...</sp:AsymmetricBinding >
</ExactlyOne>
</All>
</Policy>
これから紹介する技術は
SOAPのheaderに国際化の情報を追加
<i18n:international> <tz>GMT-0300</tz> <i18n:locale>en-US</i18n:locale> <i18n:preferences> <ldml:measurementSystem type="metric" /> </i18n:preferences> </i18n:international>
ロケールの「WS Policy expression」をWSDLに追加
