Thanks for the reply Glen!

I should have included my namespace declarations.  Here is the relevant one:

   xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";

And Array is defined in this namespace:

   <xs:element name="Array" type="tns:Array"/>
   <xs:complexType name="Array">
   [snip]
   </xs:complexType>

So what I am I missing?  Do I need to provide more of the WSDL to diagnose the 
problem?

Cheers
Steve

-----Original Message-----
From: Glen Mazza [mailto:[email protected]]
Sent: 07 July 2010 19:09
To: [email protected]
Subject: RE: Use of SOAP encoding with CXF



Steve Mackenzie wrote:
>
> I understand JAXB won't handle SOAP encoding, and while Aegis can, it
> isn't well-suited to generating clients from WSDLs.  Is this correct?
>
> Just to confirm this is my problem:
>    - wsdl2java gives this error for the WSDL: "WSDLToJava Error: Thrown by
> JAXB : undefined
>      simple or complex type 'soapenc:Array'"
>
>           <s:restriction base="soapenc:Array">
>

I think you're reading too much into this problem--the issue is that JAXB
simply doesn't know what soapenc:Array is because you haven't defined either
the namespace soapenc and/or the element Array.  This isn't a JAX-WS issue.

There is an issue with JAX-WS implementations like CXF or Metro not working
with RPC/encoded WSDLs, in that case you have a choice of the old JAX-RPC
from Sun, Axis 1.x, or using the JAX-WS Dispatch interface:
http://www.jroller.com/gmazza/entry/calling_rpc_encoded_web_services .  I
don't think this is your problem though.

HTH,
Glen

--
View this message in context: 
http://cxf.547215.n5.nabble.com/Use-of-SOAP-encoding-with-CXF-tp1044689p1044807.html
Sent from the cxf-user mailing list archive at Nabble.com.



Practical Law Company has been named as the 2009 InnovAction Award Winner for 
creating efficiency for business lawyers.


This e-mail from Practical Law Company (http://www.practicallaw.com) is subject 
to our terms of use (http://www.practicallaw.com/9-103-0884). Information about 
our companies: Practical Law Company Limited. Registered in England and Wales. 
Registered Number: 02889191. Registered Office: 19 Hatfields, London SE1 8DJ. 
Telephone: +44(0)20 7202 1200.
Practical Law Company, Inc. Incorporated in Delaware, USA.  Corporate Office: 
747 Third Avenue, 36th Floor, New York, NY 10017. Telephone: +1(646) 562-3400.

Reply via email to