ГОСТ Р ИСО/МЭК 29362—2013
<?xml version-1.0’ ?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="
http://schemas.xmteoap.org/soap/envelope/"
>
<SOAP-ENV:Body xmlns:types="
http://example.com/mimetypes*>
<types:ClaimDetail>
<Name>...<yName>
<!- Подробности описания претензии ~>
<rtypes:ClaimDetail>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
-MIME_boundary
Content-Type: image/jpeg
Content-Transfer-Encoding: binary
Content-ID: <ClaimPhoto=
4d7a5fa2-14af-451c-961b-5c3abf786796@example.com>
... Вложение MIME цифровой фотографии в двоичном представлении...
-MIME_boundary-
Результирующее исходящее сообщение для операции "SendClaim" для document/literal:
MIME-Version: 1.0
Content-Type: text/xml: charset=UTF-8
<?xml version-1.O’ ?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV-’
http://schemas.xmlsoap.org/soap/enveloper>
<SOAP-ENV:Body xmlns:types="
http://example.com/mimetypes*>
<types:ClaimRefNo>...............</types:ClaimRefNo>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope
4.16 Пример описания вложения с использованием swaRef
Пример
ПРАВИЛЬНО:
Описание WSDL для докумвнта/литврала (document/literal):
<?xml version="1.0’ encoding-’utf-8* ?>
<wsdl definitions xmlns:types="
http://example.com/mimetypes’
xmlns:ref="
http://ws-i.org/profiles/basia/1.1/xsd
"
xmlns:xsd=*
http://www.w3.org/2001/XMLSchema
"
xmlns:soapbind-’
http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl=*tittp://scbemas.xmlsoap.org/wsdir
xmlns:mime="http;//schemas.xmlsoap.ofg/wsdl/mime/’
targetNamespace="
http://example.com/mimewsdr
xmlns:tns="
http://example.com7mimewsdl"
>
<wsdl:types>
<xsd:schema targetNamespace=’
http://example.com/mimetypes"
xmlns:xsd="
http://v/ww.w3.ofg/2001/XMLSchema’
>
<xsd:import namespace="
http://ws-i.org/profiles/basic/1.1/xsd
" />
<xsd:element name-’ClaimDetail" type="types:ClaimDetailType7>
<xsd:comploxType name=’ClaimDetailType">
<xsd:sequence>
<xsd:element name="Name* type="xsd:string7>
<!- Подробности описания претензии ->
<xsd:element name="ClaimPhoto" type=’ref:swaRef7>
</xsd:sequence>
</xsd:complexType>
19