5 Replies Latest reply on Apr 27, 2010 5:30 AM by GateIn User

    WSRP Issue- Liferay and GateIn

    GateIn User Newbie

      I am trying to implement WSRP feature with Liferay5.2.3(with JBoss 5.0) as producer and GateIn3.0 as consumer. I am using the WSRP configuration portlet in GateIn and tried doing the consumer configuration as mentioned in the documentation in this site. Specifing the endpoint url and clicking the refresh and save gives me an error like in the UI :


      java.lang.IllegalArgumentException: Cannot obtain wsdl service: {urn:oasis:names:tc:wsrp:v1:wsdl}WSRPService we have

      [{urn:oasis:names:tc:wsrp:v2:wsdl}WSRP_v2_Service] Cause:Cannot obtain wsdl service:

      {urn:oasis:names:tc:wsrp:v1:wsdl}WSRPService we have [{urn:oasis:names:tc:wsrp:v2:wsdl}WSRP_v2_Service]


      But I could open the WSDL file with the url in the explorer. So my endpoint url is correct. What is that i am missing out to get this error?



        • 1. Re: WSRP Issue- Liferay and GateIn
          Chris Laprun Master

          It looks like Liferay only provides a WSRP 2 endpoint and GateIn currently doesn't support WSRP 2.

          • 2. Accessing the WSRP portlet
            GateIn User Newbie

            Thanks for the reply Chris.

            Now i am trying to access a remote portlet deployed in another GateIn server thro WSRP in my local GateIn server.

            I have deployed a HelloWorld portlet in GateIn Server1 and made it remotable(jus by adding <remotable>true</remotable> in portlet.xml) and configured the WSRP producer for registration.

            In GateIn server2, i used the WSRP configuration portlet and did the consumer configuration and it showed successful and i activated it aslo.

            But now i want to add this configured remote portlet to one of my pages. Here i am stuck. I am not clear where i can find this configured portlet?

            Also at what location can we find the WSDL of the remotable portlet in Server1?

            • 3. Re: WSRP Issue
              GateIn User Newbie

              Hi Chris,

              Could you let know where we can find the WSRP configured portlet on the consumer side.

              Thanks in Advance

              • 4. Re: WSRP Issue
                Michal Vanco Newbie



                for GateIn on producer side, you have to specify remotable portlet in portlet.xml like that:




                WSDL for producer can be found at http://hostname:8080/wsrp-producer/MarkupService?wsdl


                After you create consumer, you can see remote portlets in Application registry:

                - click Portlets, on left side click Remote menu

                - or click Categories and do Auto import - category with remote portlet is created.

                Then you can simply add remote portlets on page as any other portlets.



                • 5. Re: WSRP Issue
                  GateIn User Newbie


                  Thanks for your detailed response....it helps lot!