[jboss-dev-forums] [Design of JBoss Web Services] - Re: Soap with Attachments and document/literal

darran.lofthouse@jboss.com do-not-reply at jboss.com
Wed Jan 17 16:11:35 EST 2007


Related to my last post should we be able to support complex types that contain elements of type swaRef?

Taking the following extract from my WSDL: -


  |   <schema targetNamespace='http://www.jboss.org/support/photoalbum/types' 
  |           xmlns='http://www.w3.org/2001/XMLSchema' 
  |           xmlns:soap11-enc='http://schemas.xmlsoap.org/soap/encoding/' 
  |           xmlns:tns='http://www.jboss.org/support/photoalbum/types' 
  |           xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
  |    <complexType name='Photo'>
  |     <sequence>
  |      <element name='caption' nillable='true' type='string'/>
  |      <element name='image' nillable='true' type='string'/>
  |     </sequence>
  |    </complexType>
  |    <element name='publishPhoto' type='tns:Photo'/>
  |    <element name='publishPhotoResponse' type='int'/>
  |   </schema>
  |  </types>
  | 
  |  <message name='AlbumEndpoint_publishPhoto'>
  |   <part element='ns1:publishPhoto' name='publishPhoto'/>
  |   <part name='mimepart' type='xsd:hexBinary'/>    
  |  </message>

If swaRef is supported I would have though that mapping the attachment to a parameter on the SEI should be mandatory as in this case the swaRef can reference the attachment instead.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4003036#4003036

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4003036



More information about the jboss-dev-forums mailing list