Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Dimitrios Karageorgopoulos
Not valid JAX-WS wsdl file generated by Service Builder
14. Juni 2012 02:01
Antwort

Dimitrios Karageorgopoulos

Rang: New Member

Nachrichten: 18

Eintrittsdatum: 1. Juni 2012

Neue Beiträge

Dear gurus,

I use Liferay 6.0 Community edition
I have created a web service using Service Builer and a WSDL is successfully generated.
I have created a web proxy with Eclipse and I have successfully tested my web services

However, when I try to generate aJAX-WS web proxy from JDeveloper, it errors out with the following message:

The style/use of at least one binding in this wsdl is rpc/encoded. JAX-WS cannot support this binding

It sees that the WSDL document is not a valid JAX-WS document.

Has anybody else have the same issue and how you overcome it?

I attach the WSDL file
Anhänge: KinoQueries.wsdl (6,2k)
David Ilechukwu
RE: Not valid JAX-WS wsdl file generated by Service Builder
23. Januar 2013 00:06
Antwort

David Ilechukwu

Rang: Regular Member

Nachrichten: 116

Eintrittsdatum: 7. Juni 2010

Neue Beiträge

Hi Guys, I am getting exactly the same problem (using Liferay 6.1.1 GA CE).
The WSDL generated uses JAX-RPC encoding style. As a result, neither Netbeans and Eclipse can construct any valid java model from the wsdl.
I thought RPC was replaces WAY BACK with the newer JAX-RS and JAX-WS standards for RESTful and SOAP-based web services respectively.
This RPC stuff is surely ancient!
Why then is the latest version of Liferay still generating RPC-binded WSDLs?

Is there a way to change this default behaviour?
I am COMPLETELY unable to work with Web Services generated by Liferay because of this (as I am sure many others are).

I think this derserves some urgent and quick response/resolution. Any votes?

Regards All
Vilmos Papp
RE: Not valid JAX-WS wsdl file generated by Service Builder
23. Januar 2013 00:17
Antwort

Vilmos Papp

LIFERAY STAFF

Rang: Expert

Nachrichten: 467

Eintrittsdatum: 21. Oktober 2010

Neue Beiträge

Hi Guys,

Sorry to hear that, but if you think it's a bug or missing feature, please don't hesitate to open a bug/improvement ticket in our public bug tracker. I guess, the main reason for still use this solution is the backward compatibility, as many of our users are continually upgrading there production systems, and would cause major overhead on the upgrade to modify their client applications as well to change the web service calls in each implementations, regression testing, etc.

Formerly I also wanted to use JAX-WS services in a project in Liferay 5.2 and it's still possible, but the bottleneck is that you have to create the services on your own and service builder cannot do that.

Regards,
Vilmos
Vilmos Papp
RE: Not valid JAX-WS wsdl file generated by Service Builder
23. Januar 2013 00:23
Antwort

Vilmos Papp

LIFERAY STAFF

Rang: Expert

Nachrichten: 467

Eintrittsdatum: 21. Oktober 2010

Neue Beiträge

After searching a bit, I found an interesting article to workaround this problem, maybe you can try it as well : http://www.avadaj.com/2011/12/05/expose-java-classes-as-web-services-in-liferay-using-jaxws/

Anyway, please use it with caution as I haven't tried it, but it makes sense to use a wrapper to provide the requested interface if needed.
David Ilechukwu
RE: Not valid JAX-WS wsdl file generated by Service Builder
23. Januar 2013 00:27
Antwort

David Ilechukwu

Rang: Regular Member

Nachrichten: 116

Eintrittsdatum: 7. Juni 2010

Neue Beiträge

Vilmos Papp:
Hi Guys,

Sorry to hear that, but if you think it's a bug or missing feature, please don't hesitate to open a bug/improvement ticket in our public bug tracker. I guess, the main reason for still use this solution is the backward compatibility, as many of our users are continually upgrading there production systems, and would cause major overhead on the upgrade to modify their client applications as well to change the web service calls in each implementations, regression testing, etc.

Formerly I also wanted to use JAX-WS services in a project in Liferay 5.2 and it's still possible, but the bottleneck is that you have to create the services on your own and service builder cannot do that.

Regards,
Vilmos


Vilmos -
Thanks for the quick reply!
So according to you - it is a fact that latest version of ServiceBuilder generates JAX-RPC (JSON-style) web services ONLY.
Please could you point me to some kind of sample for using JAX-RS or JAX-WS in Liferay 6.1.1 (even if I have to create the services without Semoticon?

Also - I think SB could be easily modified to generate EITHER JAX-RPC or JAX-RS depending on a user-specified option, maybe something like this:
1
2<entity name="Person" local-service="true" remote-service="true" web-service="jax-rs"> OR
3<entity name="Person" local-service="true" remote-service="true" web-service="jax-ws">


Of course the default would still be JAX-RPC (so it wouldnt break the builds of those already using JAX-RPC). It would only generate other types if EXPLICITLY SPECIFIED in service.xml.
What do you say we work on this?
I'm going to open an improvement ticket on this...

Please let me know your thoughts.
Prakash Khanchandani
RE: Not valid JAX-WS wsdl file generated by Service Builder
23. Januar 2013 00:32
Antwort

Prakash Khanchandani

Rang: Expert

Nachrichten: 279

Eintrittsdatum: 10. Februar 2011

Neue Beiträge

This would be a nice improvement without breaking backward compatibility. Hoping to see the development starting soon.

Thanks for bringing this up.
David Ilechukwu
RE: Not valid JAX-WS wsdl file generated by Service Builder
23. Januar 2013 00:52
Antwort

David Ilechukwu

Rang: Regular Member

Nachrichten: 116

Eintrittsdatum: 7. Juni 2010

Neue Beiträge

Vilmos Papp:
After searching a bit, I found an interesting article to workaround this problem, maybe you can try it as well : http://www.avadaj.com/2011/12/05/expose-java-classes-as-web-services-in-liferay-using-jaxws/

Anyway, please use it with caution as I haven't tried it, but it makes sense to use a wrapper to provide the requested interface if needed.


Thanks for the link. However, this still is for generating JAX-WS (SOAP-style) web services.
Like you know RESTfull web services accounts for practically over 85% of all web services in use today, being simpler to use (in use by Facebook, Google, Amazon, etc).

Is there no workaround for generating JAX-RS web services in Liferay?

Regards
Vilmos Papp
RE: Not valid JAX-WS wsdl file generated by Service Builder
23. Januar 2013 13:50
Antwort

Vilmos Papp

LIFERAY STAFF

Rang: Expert

Nachrichten: 467

Eintrittsdatum: 21. Oktober 2010

Neue Beiträge

Sorry, recently I didn't have to develop things to use Web Services as I used to do it before joining Liferay.

I haven't used JAX-RS yet, but as far as I can see in JIRA there's no ticket for this issue yet.
Jan Mathauser
RE: Not valid JAX-WS wsdl file generated by Service Builder
11. Juni 2013 10:21
Antwort

Jan Mathauser

Rang: New Member

Nachrichten: 1

Eintrittsdatum: 11. Juni 2013

Neue Beiträge

Hi guys, is this issue somehow resolved? Some config parameter that can be set to enable jax-ws compatible wsdl generation? Thx