Hi list!
I'm really desperate after some days spent on a problem.
Maybe someone can advise a way to the solution.

I'm writing a SOAP web service, and the response I should send is required
to have the following namespaces declared twice:
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";

Once in the SOAP Envelope:
<soap:Envelope 
  xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; 
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

and once in the root element inside the body:
  <soap:Body>
      <OTA_HotelResNotifRS 
        xmlns="http://www.opentravel.org/OTA/2003/05";
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
         <Errors>
            <Error Type="1">Found 1 valid reservations with CRS Confirmation
Number=52690IC0000172, there should be none.</Error>
         </Errors>
      </OTA_HotelResNotifRS>
   </soap:Body>

I think it's redundant, but the server I'm sending responses to claims to
need both.

My attempts to configure the JiBX mapping or to intercept the outgoing
response and increment it have all failed.
Any suggestion please?

I'm using Spring WS, and I don't understand if the way to go is better
configuring JiBX marshaller or better understand and apply the Axiom APIs in
the interceptor.

I'll post the same question on the Spring WS ML.

Cheers,
Vito Meuli
 
-- 
View this message in context: 
http://old.nabble.com/Declaring-xsi-and-xsd-namespaces-in-both-SOAP-Envelope-and-Body-content-tp32146703p32146703.html
Sent from the jibx-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to