cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sreejith Sreekumar <>
Subject Default namespace and xsi:schemaLocation in response
Date Tue, 29 Sep 2009 06:29:31 GMT

I am trying out a CXF sample. I need to ensure that the content in the 
SOAP response is valid as per an XSD.

The response I get now looks like 

<soap:Envelope xmlns:soap="">
                <Abcd xmlns:ns2="">
                        <ns2:Efgh kjml="1234">

What I really need is as below. The addition being the xmlns, xmlns:xsi 
and xsi:schemaLocation attributes.

<soap:Envelope xmlns:soap="">
                <Abcd xmlns:ns2="
xmlns:xsi="" xsi:schemaLocation=" mysample.xsd">
                <ns2:Efgh kjml="1234">

Any idea on how I can put in 

1. The default namespace (xmlns) or ensure that the namespace prefix ns2 
is applied on the root element also Eg: <ns2:Abcd ...?
2. How can I specify the  xmlns:xsi and xsi:schemaLocation attributes ?



"The information in this e-mail and any attachment is intended only for 
the person to whom it is addressed and may contain confidential and/or 
privileged material. If you have received this e-mail in error, kindly 
contact the sender and destroy all copies of the original communication. 
IBS makes no warranty, express or implied, nor guarantees the accuracy, 
adequacy or completeness of the information contained in this email or any 
attachment and is not liable for any errors, defects, omissions, viruses 
or for resultant loss or damage, if any, direct or indirect."

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message