javax.xml.ws.soap.SOAPFaultException: Could not send Message - at JaxWsClientProxy.invoke - caused by HTTP response code: 401 for URL

Posted by Mikkis on Stack Overflow See other posts from Stack Overflow or by Mikkis
Published on 2012-03-28T05:26:18Z Indexed on 2012/03/28 5:28 UTC
Read the original article Hit count: 225

Filed under:
|
|

I moved a working code from dev to test and encountered the following error(s) in test:

javax.xml.ws.soap.SOAPFaultException: Could not send Message. at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:143) ...... at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:236) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:472) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:302) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:254) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:123) at $Proxy739.copyIntoItems(Unknown Source)

Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: http:///_vti_bin/Copy.asmx at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1436) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:2046)

Environment specs:

Java 1.6 Tomcat 6 Eclipse Helios Maven2 CXF 2.2.3

As a background work, tried to explore about the error in similar category

  1. bad URL (ruled out as i am using same URL in dev and test. and the url, userid, password are all accessible from both the machines),
  2. connection timeout( error is not 404 or it doesnt specify connection timed out... it says 401 response code for url)
  3. Checked if all the jars and same versions are included in the test environment.

Can someone shed some light to understand and resolve the error?

please let me know if any more details are to be included.

© Stack Overflow or respective owner

Related posts about soap

Related posts about jax-ws