View Single Post
  #1 (permalink)  
Old January 24th, 2012, 06:58 AM
mangeshchandratre@gmail.c mangeshchandratre@gmail.c is offline
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote