After a thorough search in the archives I have found that
http://www.mail-archive.com/[EMAIL PROTECTED]/msg12603.html actually
asks exactly the same question.
BUT no solution seems to be offered.

Do I really have to put a restriction on my service and say that xml with
xsi:type cannot be received?
Can't I tell Castor to ignore unknown namespaces?

/Chr





----- Original Message ----- 
From: "Christian Landbo (Presys A/S)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 11, 2004 3:11 PM
Subject: [castor-dev] The namespace associated with the prefix 'xsi' could
not be resolved


>
> Hi again
>
> I have a Apache SOAP web service that uses Castor for marshalling and
> unmarshalling.
> When a client (e.g. SOAPScope client ) not using Castor to generate the
XML
> for the parameters is used it appends xsi:type to the elements with the
xsi
> namespace declaration in the soap envelope.
> When the body is passed to Castor's unmarshaller it does not know the xsi
> namespace.
>
> And now my question: is there anyway to tell the unmarshaller about the
> missing namespace?
>
> I have enclosed the envelope
>
> <soap:Envelope
>     xmlns:mrns0="someNs"
>     xmlns:mrns1="someNs:service"
>     xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
>     xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>    <soap:Body
> soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
>       <mrns1:login>
> -- it is only this part that ends up in my method that calls the
> unmarshaller
>          <mrns0:login>
>             <mrns0:att1 xsi:type="mrns0:cvrtype"></mrns0:att1>
>             <mrns0:att2 xsi:type="mrns0:pnumbertype"></mrns0:att2>
>          </mrns0:login>
> -----
>       </mrns1:login>
>    </soap:Body>
> </soap:Envelope>
>
> /Chr
>
> ----------------------------------------------------------- 
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev
>

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to