p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   BOOK: Professional Java Development with the Spring Framework (http://p2p.wrox.com/book-professional-java-development-spring-framework-181/)
-   -   I want o remove the namespace prefix "ns1" from WS response (http://p2p.wrox.com/book-professional-java-development-spring-framework/86443-i-want-o-remove-namespace-prefix-ns1-ws-response.html)

mangeshchandratre@gmail.c January 24th, 2012 06:58 AM

I want o remove the namespace prefix "ns1" from WS response
 
I want to have a response like this


Code:

<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">
  <soap:Body>
    <firstCallHireDetails xmlns="http://businessInterface.firstcall.gwy.europcar.com">
        <hireDetailsType>

.....


but I am getting



Code:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header/>
<soap:Body>
<ns1:firstCallHireDetails xmlns:ns1="http://businessInterface.firstcall.gwy.europcar.com">
<ns1:hireDetailsType>


this "ns1" is something I want to avoid

I don't have control on response
I have to make it work using the annotations


All times are GMT -4. The time now is 11:44 PM.

Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.