Admittedly, I overlooked to see if it in fact followed the redirect.
However, this doesn't explain why the parser would work when it's
pointed directly to the final url. It would seem that if it were the
parser, then it would fail regardless of how it got to the wsdl. This
is of course assuming this error is coming after successfully
following the redirect. But again, the web service works perfectly
when using the url in Location. I'll have to do some further testing.
I'll also try the fixes. Thanks,
--
Robert Dale
On 3/19/07, Vivek Pandey <Vivek.Pandey_at_sun.com> wrote:
> I dont think the error is not anything to do with keep-alive. This is
> coming from sjsxp (StAX library).
>
> Stacktrace:
> 08:13:09,687 ERROR [STDERR] XML reader error:
> javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,50]
> Message: White spaces are required between publicId and systemId.
>
> This is recently fixed in sjsxp and integrated in to JAXWS 2.1 nightly.
> See https://sjsxp.dev.java.net/issues/show_bug.cgi?id=35.
>
> I can integrate the new sjsxp jar in to JAXWS 2.0 branch and then you
> can pickup the nightly.
>
> -vivek.
>
>
> Robert Dale wrote:
> > When I access a site that uses HTTP Location: I get a parse error.
> > This is with JAX-WS 2.0. Is this fixed in 2.1 or is there a workaround?
> >
> > HTTP capture:
> > GET /GenericWebService/services/GenericWebService?wsdl HTTP/1.1
> > User-Agent: Java/1.6.0
> > Host: www.xxx.org
> > Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
> > Connection: keep-alive
> >
> > HTTP/1.1 302 Found
> > Location:
> > https://www.xxx.org/GenericWebService/services/GenericWebService?wsdl
> > Content-Type: text/html; charset=iso-8859-1
> > Connection: Keep-Alive
> > Keep-Alive: timeout=5, max=999
> > Server: Oracle-Application-Server-10g/10.1.2.0.2 Oracle-HTTP-Server
> > OracleAS-Web-Cache-10g/10.1.2.0.2 (N;ecid=3869666985485,0)
> > Content-Length: 251
> > Date: Mon, 19 Mar 2007 12:54:41 GMT
> >
> > <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> > <HTML><HEAD>
> > <TITLE>302 Found</TITLE>
> > </HEAD><BODY>
> > <H1>Found</H1>
> > The document has moved <A
> > HREF="https://www.xxx.org/GenericWebService/services/GenericWebService?wsdl">here</A>.<P>
> >
> > </BODY></HTML>
> >
> >
> > Stack trace:
> > 08:13:09,687 ERROR [STDERR] XML reader error:
> > javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,50]
> > Message: White spaces are required between publicId and systemId.
> > 08:13:09,689 ERROR [STDERR] at
> > com.sun.xml.ws.streaming.XMLStreamReaderUtil.wrapException(XMLStreamReaderUtil.java:251)
> >
> > 08:13:09,689 ERROR [STDERR] at
> > com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:78)
> >
> > 08:13:09,689 ERROR [STDERR] at
> > com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextContent(XMLStreamReaderUtil.java:93)
> >
> > 08:13:09,689 ERROR [STDERR] at
> > com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextElementContent(XMLStreamReaderUtil.java:83)
> >
> > 08:13:09,689 ERROR [STDERR] at
> > com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(RuntimeWSDLParser.java:189)
> >
> > 08:13:09,689 ERROR [STDERR] at
> > com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:66)
> >
> > 08:13:09,689 ERROR [STDERR] at
> > com.sun.xml.ws.wsdl.WSDLContext.<init>(WSDLContext.java:57)
> > 08:13:09,689 ERROR [STDERR] at
> > com.sun.xml.ws.client.ServiceContextBuilder.build(ServiceContextBuilder.java:60)
> >
> > 08:13:09,689 ERROR [STDERR] at
> > com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:103)
> >
> > 08:13:09,690 ERROR [STDERR] at
> > com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:50)
> >
> > 08:13:09,690 ERROR [STDERR] at
> > javax.xml.ws.Service.<init>(Service.java:57)
> > 08:13:09,690 ERROR [STDERR] at
> > cews.ws.GenericWebServiceService.<init>(GenericWebServiceService.java:40)
> >
> > Thanks,
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jax-ws.dev.java.net
> For additional commands, e-mail: users-help_at_jax-ws.dev.java.net
>
>