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/[email protected]/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

Reply via email to