cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: Client side; service returns fault; Unmarshalling Error: unexpected element
Date Tue, 02 Feb 2010 18:15:58 GMT

Oh.  You are putting what should be in a soap:Fault into the soap:Body.   
Since it's not a soap:Fault, it's trying to process it as a reponse, not a 
fault.  Thus, the message really isn't valid.   If it's a fault, it shoudl be 
a soap:Fault.

Dan


On Tue February 2 2010 1:10:51 pm KnutIvar wrote:
> It looks like this...;
> 
> <element name="createAndStartRequestByValueException">
>     <complexType>
>         <choice>
>             <element name="ossIllegalArgumentException"
> type="co-v1-5:OssIllegalArgumentException"/>
>             <element name="remoteException"
>  type="co-v1-5:RemoteException"/> <element name="objectNotFoundException"
> type="co-v1-5:ObjectNotFoundException"/>
>             <element name="duplicateKeyException"
> type="co-v1-5:DuplicateKeyException"/>
>             <element name="createException"
>  type="co-v1-5:CreateException"/> </choice>
>     </complexType>
> </element>
> 
> As you can see; it has the createExceptionElement as a choice.
> 
> However; the requestKey appears here;
> 
> <element name="createAndStartRequestByValueResponse">
>     <complexType>
>         <sequence>
>             <element name="requestKey" type="om-v1-0:RequestKey"  />
>         </sequence>
>     </complexType>
> </element>
> 
> ... and more about the request (from the wsdl);
> <wsdl:operation name="createAndStartRequestByValue">
>     <soap:operation soapAction="createAndStartRequestByValue"
> style="document"/>
>     <wsdl:input name="createAndStartRequestByValueRequest">
> 	<soap:body parts="parameters" use="literal"/>
>     </wsdl:input>
>     <wsdl:output name="createAndStartRequestByValueResponse">
> 	<soap:body parts="parameters" use="literal"/>
>     </wsdl:output>
>     <wsdl:fault name="createAndStartRequestByValueException">
> 	<soap:fault name="createAndStartRequestByValueException" use="literal"/>
>     </wsdl:fault>
> </wsdl:operation>
> 
> ... It looks ok to me...
> 
> dkulp wrote:
> > What does the schema look like for the
> > createAndStartRequestByValueException
> > element?    From that error message, it looks like
> > createAndStartRequestByValueException is not allowed to have a
> > "createException" child element.   The only expected element is a
> > "requestKey"
> > element.
> >
> > Dan
> 
> -----
> http://www.knutivars.net www.knutivars.net
> "http://www.knutivars.net/cxf/index.html Document first Apache CXF and
> XMLBeans with Spring.
> 

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog

Mime
View raw message