cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <>
Subject [jira] Commented: (CXF-631) Regression in simple front end WSDL auto-generation
Date Thu, 03 May 2007 21:40:15 GMT


Daniel Kulp commented on CXF-631:

Digging into the code some more, it's not QUITE as bad as I thought.   The tools are using
the service model and stuff, but there is an issue in the SOAP code.

Basically, the SoapTransportFactory is whats going through and adding all the SOAP extensors.
  However, that only works if the transport you are using is the SoapTransportFactory.   At
runtime, the transport could be something else (like straight HTTP).   Thus, the extensors
aren't added.  

This needs to be cleaned up.   The binding extensors need to be created in the SoapBindingFactory.
  The only one the SoapTransportFactory should care about is the soap:address in the port.

That said, much of the code for creating the extensors is in tools/common.   i think most
of that should be moved into the soap binding.   The tools shouldn't really have much "soap"
code in them.

> Regression in simple front end WSDL auto-generation
> ---------------------------------------------------
>                 Key: CXF-631
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.0-RC
>         Environment: Windows XP
>            Reporter: Oisin Hurley
>         Assigned To: Bozhong Lin
> since rev 532926 it is not possible to generate the wsdl at runtime anymore.
> I start the server with 
> JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean();
> factory.setServiceClass(JaxWsService.class);
> factory.setAddress("http://localhost:9001/jaxwstest");
> factory.setServiceBean(service);
> Server server = factory.create();
> The JaxWsService is a JAX-WS annotated class. With rev 532895 and below I can get the
wsdl with
> http://localhost:9001/jaxwstest?wsdl
> Now, the error message is
> java.lang.ClassCastException: org.xmlsoap.schemas.wsdl.http.AddressType cannot be cast
to javax.wsdl.extensions.http.HTTPAddress
>         at Source)
>         at Source)
>         at Source)
>         at Source)
>         at Source)
>         at Source)
>         at Source)
>         at org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(
>         at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(
>         at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(
>         at org.mortbay.jetty.handler.ContextHandler.handle(
>         at org.mortbay.jetty.handler.ContextHandlerCollection.handle(
>         at org.mortbay.jetty.handler.HandlerWrapper.handle(
>         at org.mortbay.jetty.Server.handle(
>         at org.mortbay.jetty.HttpConnection.handleRequest(
>         at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(
>         at org.mortbay.jetty.HttpParser.parseNext(
>         at org.mortbay.jetty.HttpParser.parseAvailable(
>         at org.mortbay.jetty.HttpConnection.handle(
>         at
>         at org.mortbay.thread.BoundedThreadPool$

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message