I'd have to see the wsdl to say for certain if the message is invalid or 
not.   If getAccountTransactions is defined as an anonymous type in an 
element, then this is definitely invalid. Again, I'd need to see the 
wsdl/schema.

Dan


On Wednesday 01 October 2008, samuel_rg wrote:
> I am using CXF 2.1.1 and when the incoming XML request has notation
> that uses xmlns:xsi the Schema Validation in CXF fails. Attached below
> is the XML request that I am sending and the response that I got. Is
> there anything wrong with the Request as it works fine with Axis and
> we are migrating to CXF and it gives  this error.
>
>
> Request:
> <?xml version="1.0" encoding="UTF-8" ?>
>  <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> <soapenv:Body>
> <getAccountTransactions xsi:type="ns1:getAccountTransactions"
> xmlns="http://api.prepaid.tsys.com/transaction/type";
> xmlns:ns1="http://api.prepaid.tsys.com/transaction/type";>
>   <ns2:accountId
> xmlns:ns2="http://api.prepaid.tsys.com/transaction";>13976358</ns2:acco
>untId> </getAccountTransactions>
>   </soapenv:Body>
>   </soapenv:Envelope>
>
> Response:
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
>   <soap:Body>
>     <soap:Fault>
>       <faultcode>soap:Client</faultcode>
>       <faultstring>Unmarshalling Error: cvc-elt.4.2: Cannot resolve
> 'ns1:getAccountTransactions' to a type definition for element
> 'getAccountTransactions'. </faultstring>
>     </soap:Fault>
>   </soap:Body>
> </soap:Envelope>



-- 
J. Daniel Kulp
Principal Engineer, IONA
[EMAIL PROTECTED]
http://www.dankulp.com/blog

Reply via email to