Two questions:
1) Do you have a spring config or something that is used to setup the bus or
are you relying on the default bus loading/configuration?
2) Are you using the bundle jar? If not, is cxf-rt-javascript-2.2.9.jar on
the classpath?
Dan
On Wednesday 16 June 2010 12:31:09 pm Ian Upright wrote:
> Hello,
>
> I start my service with something like this:
>
> MYWebService restServiceImpl = new MYWebService();
> ServerFactoryBean svrFactory = new ServerFactoryBean();
> svrFactory.setServiceClass(MYWebService.class);
> svrFactory.setAddress("http://localhost:9000/myapi");
> svrFactory.setServiceBean(restServiceImpl);
> svrFactory.create();
>
> If I do a query like:
>
> http://localhost:9000/myapi?wsdl
>
> it works perfectly..
>
> However, if I do:
>
> http://localhost:9000/myapi?js
>
> It does not.
>
> How do I get the standalone service to generate Javascript?
>
> Also, since I'm starting the server behind a proxy, I want to change the
> external address that shows up in the wsdl file to something other than
> localhost:9000. How do I do that? I can't seem to find either of these
> answers in the docs.
>
> Thanks, Ian
--
Daniel Kulp
[email protected]
http://dankulp.com/blog