I'm developing a web service using eclipse's tools (New Web service).
Everything works fine. The issue it's that my client requires this format in the soap response.
SOAP:Envelope
xmlns:SOAP="htp://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Header />
<SOAP:Body>
<ns1:getCustomerInformationResponse xmlns:ns1="htp://www.a.com/PartStoreRequiredService">
<ns1:return>
<ns2:countryCode xmlns:ns2="htp://customerlookup.partstore.domain.webservice.midtier.websolutions.dcs.cat/xsd">US</ns2:countryCode>
<ns2:currInd xmlns:ns2="htp://customerlookup.partstore.domain.webservice.midtier.websolutions.dcs.cat/xsd">USD</ns2:currInd>
<ns2:custCityState xmlns:ns2="htp://customerlookup.partstore.domain.webservice.midtier.websolutions.dcs.cat/xsd">nevada NV</ns2:custCityState>
<ns2:custName xmlns:ns2="htp://customerlookup.partstore.domain.webservice.midtier.websolutions.dcs.cat/xsd">Las Vegas JD Dealer</ns2:custName>
And mine is in the following format
<soapenv:Envelope
xmlns:soapenv="htp://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="htp://www.w3.org/2001/XMLSchema"
xmlns:xsi="htp://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<getCustomersInformationResponse xmlns="htp://services.partstore.a.com">
<getCustomersInformationReturn>
<accStkOrders>1</accStkOrders>
<countryCode>1</countryCode>
<currInd>1</currInd>
<custAddr1>1</custAddr1>
<custAddr2>1</custAddr2>
<custAddr3>1</custAddr3>
<custCityState>1</custCityState>
I don't know how to achieve this. Im using Eclipse Galileo with WTP and Tomcat 5.5 on Java 1.6. I read post from people trying to get rid from the namespaces, while I need them. Thanks for any help.
[Updated on: Fri, 08 July 2011 21:51]
Report message to a moderator