dev@jax-ws.java.net

Re: wsimport rejects WSDL accepted by Axis

From: Doug Kohlert <Doug.Kohlert_at_Sun.COM>
Date: Fri, 21 Sep 2007 08:24:07 -0700

The problem with the WSDL is that is is not Basic Profile compliant, as
stated in the error message, the "StateError" message must specify an
element, not a type. The BP 1.1 R2205 is: A |wsdl:binding| in a
DESCRIPTION MUST refer, in each of its |soapbind:header|,
|soapbind:headerfault| and |soapbind:fault| elements, only to
|wsdl:part| element(s) that have been defined using the |element| attribute.

So the following

  <wsdl:message name="StateError">
        <wsdl:part name="descr" type="typ:exceptionType"/>
  </wsdl:message>


Needs to be something like:

  <wsdl:message name="StateError">
        <wsdl:part name="descr" element="typ:exceptionElement"/>
  </wsdl:message>

and you need to define the "typ:exceptionElement" in the schema section.


StanleyAllen wrote:
> Follow-up:
>
> I just tried this with the latest (version 2.1.2) and it gave me the same
> results.
>
> Is this a known problem with JAX-WS? Is there something wrong with my WSDL?
>
> Can anyone provide some input?
>
> Thanks,
>
> Stanley
>
>
>