Hi, thanks for the test.

Please open a JIRA against 2.3.4 only (with the 2.3.4 stacktrace). I'd
appreciate if you could try 2.4.0-SNAPSHOT as well, what may've happened I
did not merge the changes to 2.3.4, as I also committed the changes to do
with improving the auto-generated documentation, as part of the same commit,
but I can apply few minor updates tp 2.3.4 only to prevent NPE

thanks, Sergey

On Wed, Apr 13, 2011 at 11:15 AM, Ivan Vitoria Sanchez <
[email protected]> wrote:

>  Hi,
>
>
>
> I’ve seen the NPE with both CXF 2.3.2 and 2.3.3. I’ve tried upgrading to
> 2.3.4 SNAPSHOT from
> https://repository.apache.org/content/groups/snapshots/org/apache/cxf/apache-cxf/2.3.4-SNAPSHOT/apache-cxf-2.3.4-SNAPSHOT.zip
>  but
> the result is still the same…
>
>
>
> Do you think that I should open a JIRA?
>
>
>
> Regards,
>
>
>
> Ivan
>
>
>
> *De:* Sergey Beryozkin [mailto:[email protected]]
> *Enviado el:* miércoles, 13 de abril de 2011 10:51
>
> *Para:* Ivan Vitoria Sanchez
> *CC:* [email protected]
> *Asunto:* Re: Generating WSDL from JAX-RS server
>
>
>
> Ouch...I've never seen NPE thrown by the WADL generator, which CXF version
> it is ?
> Actually, in CXF 2.3.4, being released now, I did update the code to make
> sure WADL is generated properly when the model is used, in some case a
> current op info is used to get to the annotated method, which is null in
> case of using models, can you try 2.3.4 SNAPSHOT please
>
> thanks, Sergey
>
> On Wed, Apr 13, 2011 at 8:57 AM, Ivan Vitoria Sanchez <
> [email protected]> wrote:
>
> Thanks Sergey, the custom WADL provider is quite interesting for me and
> I’ll investigate if it’s possible to autogenerate the XSD from my code and
> include it to the WADL.
>
>
>
> Trying to get the WADL from my resources, I’ve added the flag
> “staticSubresourceResolution” to my generic server:
>
>
>
>     <jaxrs:server id="genericServer"
> staticSubresourceResolution="true"modelRef="classpath:/WEB-INF/model/GenericModel.xml"
> abstract="true">…</jaxrs:server>
>
>
>
> But a NullPointerException is thrown when accessing to the WADL (
> http://localhost:8000/JaxrsTransactional/mobile/fields?_wadl&_type=xml)!
>
>
>
> Interceptor for {
> http://generic.service.mobile.mobility.ica.com/}IRestService has thrown
> exception, unwinding now
>
> java.lang.NullPointerException
>
>         at
> org.apache.cxf.jaxrs.model.wadl.WadlGenerator.handleOperation(WadlGenerator.java:310)
>
> …
>
>
>
> Let me know if you want the whole stacktrace…
>
>
>
> Cheers,
>
>
>
> Ivan
>
>
>
> *De:* Sergey Beryozkin [mailto:[email protected]]
> *Enviado el:* martes, 12 de abril de 2011 23:07
> *Para:* Ivan Vitoria Sanchez
> *CC:* [email protected]
>
>
> *Asunto:* Re: Generating WSDL from JAX-RS server
>
>
>
> XSD is good enough as it captures the service requirements to some extent,
> WADL gives much more info, it shows the whole application graph/tree with
> all the useful metadata (consumes/produces, etc). The only problem it won't
> generate a schema for you if you have a generic service provider, but you
> can customize the WADLGenerator to reference the external schemas:
>
>
> http://cxf.apache.org/docs/jaxrs-services-description.html#JAXRSServicesDescription-CustomWADLproviders
>
> cheers, Sergey
>
> On Tue, Apr 12, 2011 at 4:41 PM, Ivan Vitoria Sanchez <
> [email protected]> wrote:
>
> I’m currently using soapUI and it’s a good tool for testing but,what about
> non-java plataforms (such as SAP or .NET…)? should I send them the XSD of my
> payloads and optionally the WADL if they want to be integrated with my
> RESTful services?
>
>
>
> Thanks again Sergey!
>
>
>
> Ivan
>
>
>
> *De:* Sergey Beryozkin [mailto:[email protected]]
> *Enviado el:* martes, 12 de abril de 2011 16:38
>
>
> *Para:* [email protected]
>
> *CC:* Ivan Vitoria Sanchez
>
>
> *Asunto:* Re: Generating WSDL from JAX-RS server
>
>
>
> Hi
>
> On Tue, Apr 12, 2011 at 8:02 AM, Ivan Vitoria Sanchez <
> [email protected]> wrote:
>
> Thanks Benson.
>
> I need to integrate my server with other system, which will provide me
> their WSDL file (i guess i'll have to build a WS client). Do you think that
> WADL contract should be enough if someone needs to integrate with JAX-RS
> server?
>
>
> At the moment consumers like SOAPUi can use WADL to test endpoints - which
> is a very useful thing.
> Otherwise, one does not need WADL in order to integrate, HTTP centric
> clients use the explicit knowledge of the endpoint's restful interface,
> proxies get all the info they need from annotations.
>
> However, we can use WADL to convey policies too, it is just a bit early for
> this kind of advanced integration to occur, but stay tined, the WADL-related
> will resume shortly in CXF.
>
> thanks, Sergey
>
>
> Cheers,
>
> Ivan
>
>
>
> -----Mensaje original-----
> De: Benson Margulies [mailto:[email protected]]
> Enviado el: lunes, 11 de abril de 2011 17:59
> Para: [email protected]
> Asunto: Re: Generating WSDL from JAX-RS server
>
> WSDL 1.x does not support JAX-RS, and CXF only supports WSDL 1.x. The
> JAX-RS Module can on the other hand generate a WADL file.
>
>
> On Mon, Apr 11, 2011 at 11:43 AM, Ivan Vitoria Sanchez
> <[email protected]> wrote:
> > Hello,
> >
> >
> >
> > How can I generate a WSDL file from all the JAX-RS endpoints? Should I
> use
> > java2ws tool? I'm quite confused about this...
> >
> >
> >
> > Cheers,
> >
> >
> >
> > Ivan
> >
> >
> >
> >
> >
> >
>
>
>
>
> --
> Sergey Beryozkin
>
> Application Integration Division of Talend <http://www.talend.com/>
> http://sberyozkin.blogspot.com
>
>
>
>
> --
> Sergey Beryozkin
>
> Application Integration Division of Talend <http://www.talend.com/>
> http://sberyozkin.blogspot.com
>
>
>
>
> --
> Sergey Beryozkin
>
> Application Integration Division of Talend <http://www.talend.com/>
> http://sberyozkin.blogspot.com
>



-- 
Sergey Beryozkin

Application Integration Division of Talend <http://www.talend.com/>
http://sberyozkin.blogspot.com

Reply via email to