Hi LeRoy,
See section 5.3.1 on the Basic Profile [1]
R2201 A document-literal binding in a DESCRIPTION MUST, in each of its
soapbind:body element(s), have at most one part listed in the parts
attribute, if the parts attribute is specified.
R2210 If a document-literal binding in a DESCRIPTION does not specify
the parts attribute on a soapbind:body element, the corresponding
abstract wsdl:message MUST define zero or one wsdl:parts.
Paul.
[1]
http://www.ws-i.org/Profiles/BasicProfile-1.0-2004-04-16.html#refinement16574232
LeRoy Hall wrote:
> Perhaps I'm missing something, but I'm pretty sure that binding multiple
> parts to a body in a WSDL directly relates to having a soap message with
> multiple parts. You're talking about adding support to jax-ws to
> support the processing of a soap message who's body contains multiple
> parts. What's the point of supporting that if wsimport can't consume a
> WSDL that defines the message to have multiple parts in the soap message
> body?
>
> */Vivek Pandey <Vivek.Pandey_at_Sun.COM>/* wrote:
>
> This is a separate issue. Here in doclit style, you can bind only one
> part to Body. IOW, if your binding binds only one part to the body (you
> have to explicitly say which part you want to bind with the body)
> wsimport will work fine.
>
> -vivek.
>
> LeRoy Hall wrote:
> > FYI - Similarly there is a problem with jax-ws consuming a wsdl
> where
> > a message is defined to have multiple parts.
> >
> > For example, the following parts of a wsdl will cause jax-ws to fail
> > when generating artifacts:
> >
> >
> >
> >
> >
> > ...
> >
> >
> >
> >
> >
> >
> > ...
> >
> >
> >
> > */Vivek Pandey /* wrote:
> >
> > Hi Paul/Kohsuke,
> >
> > There is an issue regarding jaxws not able to consume SOAP message
> > body
> > having multiple parts. For example message such as :
> >
> >
> >
> > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
> >
> >
> >
> >
> >
> >
> >
> > This should work atleast for Dispatch and
> > Provider mode given there is no intermediate message
> > conversion other than to SAAJMessage etc.
> >
> > With some changes its kind of working except when there is a
> > DumpTube,
> > which calls StreamMessage.copy(). This is what I am trying to do
> > inside
> > StreamMessage.copy():
> >
> > -----
> > MutableXMLStreamBuffer xsb = new MutableXMLStreamBuffer();
> > StreamReaderBufferCreator c = new
> > StreamReaderBufferCreator(xsb);
> >
> > //write all the soapenv:Body parts
> > while(reader.getEventType() !=
> > XMLStreamConstants.END_DOCUMENT){
> > String name = reader.getLocalName();
> > String nsUri = reader.getNamespaceURI();
> > if(name.equals("Body") &&
> > nsUri.equals(soapVersion.nsUri) || (reader.getEventType() ==
> > XMLStreamConstants.END_DOCUMENT))
> > break;
> >
> > c.create(reader);
> > }
> >
> > reader = xsb.readAsXMLStreamReader();
> > clone = xsb.readAsXMLStreamReader();
> >
> > ------
> >
> > Above I assume that c.create() will append the second body part to
> > the
> > document being created. Meaning when I do nextTag() in a loop till
> > END_DOCUMENT event is reach I will get 2 tages. Latter on when I get
> > StreamReaderBufferProcessor from XMLStreamBuffer, then while
> > reading the
> > elements from it I will get both the body parts.
> >
> > Problem is that when I read latter from
> > StreamReaderBufferProcessor, it
> > gives me only one body part. After reading the first element it gives
> > the next event as END_DOCUMENT and somehow does not give me the
> > second
> > one, even though it was written on the XMLStreamBuffer.
> >
> > What do I need to do to get such functionality?
> >
> > -vivek.
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe_at_jax-ws.dev.java.net
> > For additional commands, e-mail: dev-help_at_jax-ws.dev.java.net
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: dev-help_at_jax-ws.dev.java.net
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
--
| ? + ? = To question
----------------\
Paul Sandoz
x38109
+33-4-76188109