And it works, thank you very much!

I actually did try to do the same from the other end yesterday, by creating
the request wrapper classes
myself (with all annotations, not just @XmlRootElement) and referencing them
in RequestWrapper
annotations of the corresponding methods.
What I forgot, however, was commenting out the @XmlElementDecl annotations
for these elements in
ObjectFactory, which resulted in even more cryptic errors.
Strangely enough, it all works correctly if I just delete ObjectFactory
altogether.

Anyway, thanks again Dan



dkulp wrote:
> 
> 
> The problem is really that the schema is wrong.   
> 
> An element declaration of:
> <xs:element name="myRequest"/>
> does NOT mean an empty element.   Without a type, the default 
> is "xsd:anyType".   Thus, when written out, some type is created and an 
> xsi:type is outputted.     The best fix is to update the schema to look
> like:
> 
> <xs:element name="myRequest">
>    <xs:complexType>
>        <xs:sequence/>
>    </xs:complexType>
> </xs:element>
> 
> which defines an empty anonymous type for the element instead of anyType.
> 
> Dan
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Web-method-with-no-arguments%2C-request-wrapper-and-xsi%3Atype-tp20813685p20828039.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to