Dan, Thanks for taking the time to help me out. I implemented the code you suggested and the error changed. I'm still getting a 302 on the response. I think I'll need to use the standalone tcpmon, which, if I remember correctly, shows all the HTTP headers.
-Chris INFO: AutoRedirect is turned on. Mar 10, 2008 5:02:58 PM org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO: Interceptor has thrown exception, unwinding now org.apache.cxf.interceptor.Fault: Could not send Message. at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingI nterceptor.handleMessage(MessageSenderInterceptor.java:64) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorC hain.java:220) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:142) at $Proxy30.fetchSecIdParamsHist(Unknown Source) at com.ms.cis.secadmin.test.cxf.SecAdminClient.main(SecAdminClient.java:76) Caused by: java.io.IOException: /secadmin/ at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResp onse(HTTPConduit.java:1888) at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTP Conduit.java:1791) at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66) at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:575) at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingI nterceptor.handleMessage(MessageSenderInterceptor.java:62) ... 7 more Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: Could not send Message. at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:182) at $Proxy30.fetchSecIdParamsHist(Unknown Source) at com.ms.cis.secadmin.test.cxf.SecAdminClient.main(SecAdminClient.java:76) Caused by: org.apache.cxf.interceptor.Fault: Could not send Message. at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingI nterceptor.handleMessage(MessageSenderInterceptor.java:64) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorC hain.java:220) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:276) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:222) at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73) at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:142) ... 2 more Caused by: java.io.IOException: /secadmin/ -----Original Message----- From: Daniel Kulp [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2008 11:04 AM To: cxf-user@incubator.apache.org Cc: Wolf, Chris (IT) Subject: Re: Need help for "XMLStreamException: ParseError at [row,col]:[1,1] An HTTP 30x response code is usually a redirect response. By default, due to our streaming nature, we cannot honor redirects. You can configure the HTTPConduit to allow the redirects. When you do that, it no longer can stream (it must buffer the request), but it may work for you. Client client = ClientProxy.getClient(proxy); HTTPConduit http = (HTTPConduit) client.getConduit(); http.getClient().setAutoRedirect(true); Dan On Monday 10 March 2008, Wolf, Chris (IT) wrote: > I know this issue has been discussed before, because I found a > description and apparent fix here: > > http://www.mail-archive.com/cxf-user@incubator.apache.org/msg04687.htm >l > > However, putting the updated Xerces and Xalan in the > TOMCAT/common/endorsed directory did not solve the issue for me. > > If I deploy my service as a standalone service embedded in Jetty, > (generated via "wsdl2java -server")it works, but when I configure it > for WAR deployment in Tomcat-5.5, the client (generated via "wsdl2java > -client") throws the exception shown below. > > Also when deployed in standalone mode I can retrieve the WSDL via HTTP > GET, but when depoyed as a WAR in Tomcat, I just get a 404 error. > > When I used the TCP/IP Monitor (Eclipse plugin similar to tcpmon) I > see the that Client is sending the expected SOAP envelope, but is > getting nothing back, however, with HTTP 301 or 302 response codes. I > double checked my proxy settings in Eclipse and browser and have > verified that both "localhost" and the canonical hostname are excluded > from proxying. I tried both "localhost" and the canonical hostname in > the request. (overriding via > BindingProvider.ENDPOINT_ADDRESS_PROPERTY) > > Any help would be greatly appreciated. > > -Chris > > Mar 9, 2008 6:00:44 PM org.apache.cxf.phase.PhaseInterceptorChain > doIntercept > INFO: Interceptor has thrown exception, unwinding now > org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader. > at > org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleM >es sage(ReadHeadersInterceptor.java:191) > [...] > at > com.ms.cis.secadmin.services.SecAdmin_Secadmin_Client.main(SecAdmin_Se >ca dmin_Client.java:60) > Caused by: javax.xml.stream.XMLStreamException: ParseError at >[row,col]:[1,1] > Message: Premature end of file. > at com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:563) > at > com.sun.xml.stream.XMLReaderImpl.nextTag(XMLReaderImpl.java:1177) > at > org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleM >es sage(ReadHeadersInterceptor.java:85) > ... 15 more > -------------------------------------------------------- > > NOTICE: If received in error, please destroy and notify sender. Sender > does not intend to waive confidentiality or privilege. Use of this > email is prohibited when received in error. -- J. Daniel Kulp Principal Engineer, IONA [EMAIL PROTECTED] http://www.dankulp.com/blog -------------------------------------------------------- NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.