• Post Reply Bookmark Topic Watch Topic
  • New Topic

Attachment: how to specify the number ?

 
Olivier Mocquais
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

in the Attachment Profile 1.0 http://www.ws-i.org/Profiles/AttachmentsProfile-1.0-2004-08-24.html), you can define an operation which can receive an attachment:

<wsdl:message name="ClaimIn">
<wsdl art name="body" element="types:ClaimDetail"/>
<wsdl art name="ClaimPhoto" type="xsd:base64Binary"/>
</wsdl:message>
...
<wsdl:input>
<mime:multipartRelated>
<mime art>
<soapbind:body parts="body" use="literal"/>
</mime art>
<mime art>
<mime:content part="ClaimPhoto" type="image/jpeg"/>
</mime art>
</mime:multipartRelated>
</wsdl:input>

I want to know how to define an operation which can send an attachment in an output message and sometimes, the operation doesn't send an attachment.
How can I write this ? (maybe with minoccurs ?)

Thanks.

Olivier
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!