Hello:
I've installed the sprint-ws-1.03 and successfully run the airline sample using jetty.
But I got following error in client side when running the sample in webloigc 9.2 server
I found out that the weblogic generate a response with invalid namespaceCode:Exception in thread "main" org.springframework.ws.soap.saaj.SaajSoap EnvelopeException: Could not access envelope: Unable to create envelope from given source: ; nested exception is com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source: ... Caused by: org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create or change an object in a way which is incorrect with regard to namespaces.
Is there any way to resolve it?Code:<GetFlightsResponse xmlns="http://www.springframework.org/spring-ws/samples/airline/schemas" xmlns:="http://www.springframework.org/spring-ws/samples/airline/schemas"> <flight xmlns:="http://www.springframework.org/spring-ws/samples/airline/schemas"> <number xmlns:="http://www.springframework.org/spring-ws/samples/airline/schemas">KL1653</number> <departureTime xmlns:="http://www.springframework.org/spring-ws/samples/airline/schemas">2006 -01-31T10:05:00.000+08:00</departureTime> <from xmlns:="http://www.springframework.org/spring-ws/samples/airline/schemas"> <code xmlns:="http://www.springframework.org/spring-ws/samples/airline/schemas">AMS</code> <name xmlns:="http://www.springframework.org/spring-ws/samples/airline/schemas">Schiphol Airport</name> <city xmlns:="http://www.springframework.org/spring-ws/samples/airline/schemas">Amster dam</city> </from> <arrivalTime xmlns:="http://www.springframework.org/spring-ws/samples/airline/schemas">2006-01-31T12:25:00.000+08:00</arrivalTime> <to xmlns:="http://www.springframework.org/spring-ws/samples/airline/schemas"> <code xmlns:="http://www.springframework.org/spring-ws/samples/airline/schemas">VCE</code> <name xmlns:="http://www.springframework.org/spring-ws/samples/airline/schemas">Marco Polo Airport</name> <city xmlns:="http://www.springframework.org/spring-ws/samples/airline/schemas">Venice</city> </to><serviceClass xmlns:="http://www.springframework.org/spring-ws/samples/airline/schemas">economy</serviceClass> </flight> </GetFlightsResponse>
Thanks in advnace.


Reply With Quote