10 Replies Latest reply on Feb 14, 2007 12:49 PM by claprun

    wsrp and wsdl problem! Thanks

    shijiangpeng

      Hi, pals,
      I just figured out that firewall/proxy issue. Now there are no any error information at JBoss Portal start process anymore! Isn't life beautiful?
      But there is another problem. i will use JBoss protal as portlet producer and another portal framework is going to be portlet consumer. I can open link: http://hostIP:8888/portal-wsrp/MarkupService?wsdl by web browser. Here is sample of wsdl.xml:

      <wsdl:definitions targetNamespace="urn:oasis:names:tc:wsrp:v1:wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:bind="urn:oasis:names:tc:wsrp:v1:bind" xmlns:intf="urn:oasis:names:tc:wsrp:v1:intf" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="urn:oasis:names:tc:wsrp:v1:wsdl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
      <wsdl:import location="http://hostIP:8888/portal-wsrp/MarkupService?wsdl&resource=wsrp_v1_bindings.wsdl" namespace="urn:oasis:names:tc:wsrp:v1:bind" />
      - <wsdl:service name="WSRPService">
      - <wsdl:port binding="bind:WSRP_v1_PortletManagement_Binding_SOAP" name="WSRPPortletManagementService">
      <soap:address location="http://www21:8080/portal-wsrp/PortletManagementService" />
      </wsdl:port>
      - <wsdl:port binding="bind:WSRP_v1_Registration_Binding_SOAP" name="WSRPRegistrationService">
      <soap:address location="http://www21:8080/portal-wsrp/RegistrationService" />
      </wsdl:port>
      - <wsdl:port binding="bind:WSRP_v1_Markup_Binding_SOAP" name="WSRPBaseService">
      <soap:address location="http://www21:8080/portal-wsrp/MarkupService" />
      </wsdl:port>
      - <wsdl:port binding="bind:WSRP_v1_ServiceDescription_Binding_SOAP" name="WSRPServiceDescriptionService">
      <soap:address location="http://www21:8080/portal-wsrp/ServiceDescriptionService" />
      </wsdl:port>
      </wsdl:service>
      </wsdl:definitions>
      There are two thing really confused me: first, i have change jboss port to 8888 instead of 8080, how come in <soap:address location>, it still picks up 8080 as web service port?
      then, in this wsdl file, www21 is host name of jboss server. why that hostip not shown up here? Because www21 is not a fully qualified name, so I think portlet consumer can't find service by this. How can i set soap address location to hostIP instead of this host name?
      Thank you very much for the help!

        • 1. Re: wsrp and wsdl problem! Thanks
          theute

          You will have to let us know the version of JBoss Portal you use.

          I don;t know much about WSRP Chris might come and help. In the meantime, you can check the forums and Jira, i think i remember issues like that, that have been fixed.

          • 2. Re: wsrp and wsdl problem! Thanks
            shijiangpeng

             

            "thomas.heute@jboss.com" wrote:
            You will have to let us know the version of JBoss Portal you use.

            I don;t know much about WSRP Chris might come and help. In the meantime, you can check the forums and Jira, i think i remember issues like that, that have been fixed.


            I am using jboss-portal-2.6-ALPHA2 under JBoss4.0.5. thanks a lot for the help! I am going to search the forum to see if I can find something new!

            • 3. Re: wsrp and wsdl problem! Thanks
              shijiangpeng

               

              "shijiangpeng" wrote:
              "thomas.heute@jboss.com" wrote:
              You will have to let us know the version of JBoss Portal you use.

              I don;t know much about WSRP Chris might come and help. In the meantime, you can check the forums and Jira, i think i remember issues like that, that have been fixed.


              I am using jboss-portal-2.6-ALPHA2 under JBoss4.0.5. thanks a lot for the help! I am going to search the forum to see if I can find something new!


              From some old posts, seems the file portal-wsrp.jse can deside the wsdl.xml. could anyone tell me how to read or modify .jse file? it looks like an encoded file. Thanks a lot.

              • 4. Re: wsrp and wsdl problem! Thanks
                shijiangpeng

                 

                "shijiangpeng" wrote:
                "shijiangpeng" wrote:
                "thomas.heute@jboss.com" wrote:
                You will have to let us know the version of JBoss Portal you use.

                I don;t know much about WSRP Chris might come and help. In the meantime, you can check the forums and Jira, i think i remember issues like that, that have been fixed.


                I am using jboss-portal-2.6-ALPHA2 under JBoss4.0.5. thanks a lot for the help! I am going to search the forum to see if I can find something new!


                From some old posts, seems the file portal-wsrp.jse can deside the wsdl.xml. could anyone tell me how to read or modify .jse file? it looks like an encoded file. Thanks a lot.


                And, from post http://www.jboss.com/index.html?module=bb&op=viewtopic&t=100461, it says portal-wsrp.jse is a folder. But in my JBoss server, the portal-wsrp.jse is just a file. Did miss something?

                • 5. Re: wsrp and wsdl problem! Thanks
                  shijiangpeng

                  Hi, pals, the problem is solved, partly! After server started, seems like it create a file wsrp_services.wsdl. I modifed the endpoint setting in this file, then all problems are gone!
                  But there must be something i can do that I don't have to modify this file everytime after I restart server, right?

                  • 6. Re: wsrp and wsdl problem! Thanks
                    claprun

                     

                    "shijiangpeng" wrote:

                    And, from post http://www.jboss.com/index.html?module=bb&op=viewtopic&t=100461, it says portal-wsrp.jse is a folder. But in my JBoss server, the portal-wsrp.jse is just a file. Did miss something?


                    You can expand portal-wsrp.jse just like you would a jar file (jar xvf portal-wsrp.jse).

                    • 7. Re: wsrp and wsdl problem! Thanks
                      claprun

                       

                      "shijiangpeng" wrote:
                      Hi, pals, the problem is solved, partly! After server started, seems like it create a file wsrp_services.wsdl. I modifed the endpoint setting in this file, then all problems are gone!
                      But there must be something i can do that I don't have to modify this file everytime after I restart server, right?


                      See: http://wiki.jboss.org/wiki/Wiki.jsp?page=WSRPChangePorts

                      • 8. Re: wsrp and wsdl problem! Thanks
                        shijiangpeng

                         

                        "chris.laprun@jboss.com" wrote:
                        "shijiangpeng" wrote:
                        Hi, pals, the problem is solved, partly! After server started, seems like it create a file wsrp_services.wsdl. I modifed the endpoint setting in this file, then all problems are gone!
                        But there must be something i can do that I don't have to modify this file everytime after I restart server, right?


                        See: http://wiki.jboss.org/wiki/Wiki.jsp?page=WSRPChangePorts

                        Thank you so much, man! I will try it soon!

                        • 9. Re: wsrp and wsdl problem! Thanks
                          shijiangpeng

                          It's a problem here. I modified wsrp-services.wsdl file, but do i need to change extracted folder back to .jse file?
                          Actually i tried it in two ways: make a folder named portal-wsrp.jse; and created a portal-wsrp.jse file using jar command.
                          But when I start Jboss, seems not work, and even worse: the portal main page can't load at all.
                          Here is want I did:
                          1. Jar -xvf portal-wsrp.jse, then modifed wsdl file
                          2a. named a new folder portal-wsrp.jse, and put extracted content into this new folder OR
                          2b. using jar -cf to create a new portal-wsrp.jse file
                          3. put the new folder or file into original place
                          4. run jboss
                          JBoss can start, but portal can't be accessed. Did I do something wrong? Thanks a lot!

                          • 10. Re: wsrp and wsdl problem! Thanks
                            claprun

                            I'll look into it ASAP. I'd recommend using JBoss WS 1.0.4 and not manually changing the ports in wsrp-services.wsdl. However, it seems that there are issues with that as well. I'm trying to get a definitive answer from the WS team...