JAX-WS client with AXIS server; namespace problem?
Posted
by Jarno
on Stack Overflow
See other posts from Stack Overflow
or by Jarno
Published on 2009-04-27T13:02:24Z
Indexed on
2010/05/21
4:00 UTC
Read the original article
Hit count: 402
I'm having a problem related to JAX-WS and AXIS. JAX-WS (2.1.7) as a client, Axis (1.4.x) as server.
Everything works OK, but the response can't be read to Java.
Response:
<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <ns1:myserviceResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://my/service"> <ns1:myserviceReturn xsi:type="xsd:string">responsestring</ns1:myserviceReturn> </ns1:myserviceResponse> </soapenv:Body> </soapenv:Envelope>
The problem is that if "ns1:"-namespace declaration is removed from myserviceReturn, JAX-WS is able to return else than null.
Does anyone have a clue how to force JAX-WS to ignore namespaces, how to modify SOAP response manually to exclude "ns1", or other ideas for this kind of problem? Any help is appreciated!!!
© Stack Overflow or respective owner