Reading the spec looks like a bug to me. What version of JAX-WS rI you
used - 2.0 or 2.1? you can find it by running wsimport -version. I will
let kohsuke comment on this as JAXB RI determines this part of logic to
tell wsimport whether a global element is wrapper style.
-vivek.
James Mao wrote:
> Hi,
>
> According to the jaxws spec section 2.3.1.2 Wrapper Style
> criteria (v), the following schema snippet should not result to a
> valid wrapper style
> Because the (v) tells us that the "substitution groups (element
> references are not permitted)
>
> <element name="FooCallbackPollResponse">
> <complexType>
> <sequence>
> <element ref="ch:WSResponseHeader"/>
> <element name="return" type="xsd:string"/>
> </sequence>
> </complexType>
> </element>
>
> But when i use the RI wsimport, the generated code show me it's a
> wrapper style, and signature of the method is:
>
> @WebMethod(operationName = "FooCallbackPoll")
> @WebResult(targetNamespace = "")
> @RequestWrapper(localName = "FooCallbackPoll", targetNamespace =
> "...", className = "...")
> @ResponseWrapper(localName = "FooCallbackPollResponse",
> targetNamespace = "...", className = "...")
> public String fooCallbackPoll(
> ...
> @WebParam(name = "WSResponseHeader", targetNamespace = "...",
> mode = Mode.OUT)
> Holder<WSResponseHeader> wsResponseHeader)
> throws WSException
> ;
>
> Is it a bug?
>
>
> Cheers,
> James.
>
> ---------------------------------------------------------------------
> 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
>