There should be a "Caused By:..."  type thing with more stack traces to that 
exception.   

On Friday 11 June 2010 7:52:31 am william he wrote:
> Henry,
> 
> Thanks for your response.
> 
> I am sorry, I am using JAXRSServerFactoryBean not JaxWsServerFactoryBean,
> this is my server code:
> 
>         JAXRSServerFactoryBean sf2 = new JAXRSServerFactoryBean();
>         sf2.setResourceClasses(CustomerServiceImpl.class);
>         sf2.setResourceProvider(CustomerServiceImpl.class,
>             new SingletonResourceProvider(service));
>         sf2.setAddress("http://localhost:8080/xml/";);
>         sf2.create();
> 
> When I tried to access: http://localhost:8080/xml/?wsdl to get the WSDL,
> but got the following error:

Uhh....   You are using JAXRS, but asking for a WSDL?    That won't work.   
With 2.2.9, I think you can do ?wadl for the wadl for the REST service.

Dan



> 
> ---------------------
> Jun 11, 2010 4:49:38 PM
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination doService
> WARNING: writeResponse failed:
> org.apache.cxf.transport.http.WSDLQueryException: Exception occurred while
> trying to process http://localhost:8080/xml/?wsdl
>     at
> org.apache.cxf.transport.http.WSDLQueryHandler.writeResponse(WSDLQueryHandl
> er.java:235) at
> org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTT
> PDestination.java:251) at
> org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandle
> r.java:70) at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
>     at
> org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCol
> lection.java:230) at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>     at org.mortbay.jetty.Server.handle(Server.java:326)
> ---------------------
> 
> Do you know how to get the wsdl for my case? Thanks a lot.
> 
> William
> 
> On Fri, Jun 11, 2010 at 7:22 PM, Henry Lu <[email protected]> wrote:
> > How do you generate the client code? What you should do is to use some
> > software tools (Java SDK, Apache CXF, Apache Axis, NetBean,...) to
> > generate the client code automatically for you to use.
> > 
> > -Henry
> > 
> > On 6/11/2010 5:33 AM, william he wrote:
> >> Hi there,
> >> 
> >> I am using the JaxWsServerFactoryBean to publish the web service,
> >> everything
> >> is going well, I can get the result from the browser by the specified
> >> URL. I
> >> want to know, where can I get the result format (xsd)?
> >> 
> >> When I publish the service, the end users do not know the format, it is
> >> hard
> >> to parse the result for them.
> >> 
> >> Thanks,
> >> William

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to