5 Replies Latest reply on Mar 19, 2012 7:21 AM by spyhunter99

    RPC WSDL and load balancing problem

    fbenvegna

      I have a JBoss Cluster with two application server and an Apache with mod_jk as load balancer.
      With web application no problem but with web-services there are...
      my web-services WSDL (style RPC) reports an include on other WSDL URL that include a random identifier. Identifiers change on every deploy and are different from a machine to other.

      PROBLEM with load balancing and wsdl rewrite configured: when a client requests WSDL on host A retrieve WSDL A, with included URL on machine A, but when it tries to retrieve the included WSDL A the request goes on host B, so.... error!

      The problem only happens with JBossWS Native, no problem with JBossWS Metro because there isn't any deploy dependent identifier on generated WSDL.

        • 1. Re: RPC WSDL and load balancing problem
          asoldano

          Sorry, what identifier do you refer to? Please post an example.

          • 2. Re: RPC WSDL and load balancing problem
            fbenvegna

            WSDL report an include on a other *123456*.wsdl
            Where 123456 is a random number that change from a deploy to another!
            EAR is deployed as file (not exploded).

            • 3. Re: RPC WSDL and load balancing problem
              fbenvegna

               

              <definitions name="WMI" targetNamespace="http://impl.service.wmi.cuc.unipa.it/">
               <import location="http://immawebtest.unipa.it:8080/wmi-ws/services?wsdl&resource=Services_PortType1628.wsdl" namespace="http://service.wmi.cuc.unipa.it/"/>
               <service name="WMI">
               <port binding="ns1:ServicesBinding" name="servicesPort">
               <soap:address location="http://immawebtest.unipa.it:8080/wmi-ws/services"/>
               </port>
               </service>
              </definitions>


              You can see that there's an import (line 2) on other wsdl (with a random number) that depends on deploy!

              • 4. Re: RPC WSDL and load balancing problem
                goravuee

                any solution to this issue ?

                • 5. Re: RPC WSDL and load balancing problem
                  spyhunter99

                  working around the problem, why not include a static reference to a wsdl within a war and just have your clients use that wsdl?

                   

                  Are you building this WSDL first?

                  some of my services have import statements and when bringing up service?wsdl, i'm presented with a completely flat wsdl. No import statements.

                   

                  You might want to check for some metadata resolver errors when deploying this