spring web service issue# Java - 爪哇娇娃
c*t
1 楼
Any one here doing spring ws?
The incoming SOAP request looks like:
http://aa.com/aa/service">
abcabc
centOS
The Endpoint mapping is defined as:
@PayloadRoot(localPart= "TransactionRequest", namespace="http://aa.com/aa/service)
However, get following error:
2011-05-12 17:45:05,795 [DEBUG] (WebServiceMessageReceiverObjectSupport.java
HttpServletC [email protected]] at [http://192.168.101.24:8080/hnfsWebService2]
2011-05-12 17:45:05,828 [DEBUG] (FrameworkServlet.java:671) ----- Could not
complete request
org.springframework.ws.soap.saaj.SaajSoapEnvelopeE xception: Could not
access envelope: Unable to create envelope from given source: ; nested
exception is com.sun.xml.internal.messaging.saaj.SOAPExceptionI mpl: Unable
to create envelope from given source:
at org.springframework.ws.soap.saaj.SaajSoapMessage.g etSaajVersion(
SaajSoapMessage.java:260)
at org.springframework.ws.soap.saaj.SaajSoapMessage.g etImplementation(
SaajSoapMessage.java:342)
at org.springframework.ws.soap.saaj.SaajSoapMessage.< init>(SaajSoapMessage.
java:117)
at org.springframework.ws.soap.saaj.SaajSoapMessageFa ctory.
createWebServiceMessage(SaajSoapMessageFacto ry.java:184)
at org.springframework.ws.soap.saaj.SaajSoapMessageFa ctory.
createWebServiceMessage(SaajSoapMessageFacto ry.java:58)
at org.springframework.ws.transport.AbstractWebServic eConnection.receive(
AbstractWebServiceConnection.j ava:90)
at org.springframework.ws.transport.support.WebServic
eMessageReceiverObjectSupport.handleConnection
=====================================================
It works if I change the incoming SOAP request as:
http://aa.com/aa/service">
abcabc
centOS
==================================================
Anything I should do so the WS can handle the original request, since the
request is coming from client(trading parter), we have no control how they
generate the SOAP message.
thanks!
The incoming SOAP request looks like:
The Endpoint mapping is defined as:
@PayloadRoot(localPart= "TransactionRequest", namespace="http://aa.com/aa/service)
However, get following error:
2011-05-12 17:45:05,795 [DEBUG] (WebServiceMessageReceiverObjectSupport.java
HttpServletC [email protected]] at [http://192.168.101.24:8080/hnfsWebService2]
2011-05-12 17:45:05,828 [DEBUG] (FrameworkServlet.java:671) ----- Could not
complete request
org.springframework.ws.soap.saaj.SaajSoapEnvelopeE xception: Could not
access envelope: Unable to create envelope from given source: ; nested
exception is com.sun.xml.internal.messaging.saaj.SOAPExceptionI mpl: Unable
to create envelope from given source:
at org.springframework.ws.soap.saaj.SaajSoapMessage.g etSaajVersion(
SaajSoapMessage.java:260)
at org.springframework.ws.soap.saaj.SaajSoapMessage.g etImplementation(
SaajSoapMessage.java:342)
at org.springframework.ws.soap.saaj.SaajSoapMessage.< init>(SaajSoapMessage.
java:117)
at org.springframework.ws.soap.saaj.SaajSoapMessageFa ctory.
createWebServiceMessage(SaajSoapMessageFacto ry.java:184)
at org.springframework.ws.soap.saaj.SaajSoapMessageFa ctory.
createWebServiceMessage(SaajSoapMessageFacto ry.java:58)
at org.springframework.ws.transport.AbstractWebServic eConnection.receive(
AbstractWebServiceConnection.j ava:90)
at org.springframework.ws.transport.support.WebServic
eMessageReceiverObjectSupport.handleConnection
=====================================================
It works if I change the incoming SOAP request as:
==================================================
Anything I should do so the WS can handle the original request, since the
request is coming from client(trading parter), we have no control how they
generate the SOAP message.
thanks!