4 Replies Latest reply on Mar 11, 2013 5:20 AM by xbako

    How to change proxy endpoint URL

    xbako

      Hi, please help me if anybody could. My problem is that I am trying to create a simple SY proxy example,

       

      which should be available at http://localhost:<port>/<path>/DirectProxy 

       

      in the SY composite reference i address the flow to a backend service which is a WAR file with an EchoService java class in it.

       

      But while deploying my SY-example and the WAR file the server log show that the proxy is available at

       

      address=http://localhost:8080/switchyard-esbperformance/EchoService

       

      but I need to have my proxy available at

       

      address=http://localhost:8080/switchyard-esbperformance/DirectProxy

       

      How can I change my proxy URL? Thank you!

        • 1. Re: How to change proxy endpoint URL
          kcbabo

          The context path can be changed using the contexPath field in your SOAP binding configuration, e.g.

           

          https://github.com/jboss-switchyard/quickstarts/blob/master/bean-service/src/main/resources/META-INF/switchyard.xml#L8

           

          Based on the URLs you posted, you are good with the context path of "switchyard-esbperformance".  The next part of the path is based on the service name, which is taken from the composite service name in your switchyard.xml at

           

          /switchyard/composite/service/@name

           

          Using the quickstart example I posted above, I could change the last part of the path from OrderService to DirectProxy by using a different name for the composite service:

           

          <service name="DirectProxy" promote="OrderService">
          


          • 2. Re: How to change proxy endpoint URL
            kcbabo

            Hold the phones!  Ignore what I said about the composite service name.  It's the service name from the WSDL you have configured via the wsdl element of the SOAP binding.  I just double checked that with my local install.

            • 3. Re: How to change proxy endpoint URL
              kconner

              Hiya Pavol.

               

              Do you work for AdroitLogic by any chance?  We offered to help out with a much earlier version of this work, when it was being driven within WSO2, but never received a response.

               

              We then started working within the SPEC SOA performance team, of which I am currently chair, to develop a more comprehensive performance suite.  Would AdroitLogic be interested in joining the SPEC SOA work?  If so have someone drop me an email/pm and I can work with them on this.

               

              Thanks

              • 4. Re: How to change proxy endpoint URL
                xbako

                No I am not a AdroitLogic employee.. But I think they are active, because in November 2012 I had a short mail communication with Asankha Perera.. concerning one issue.. Maybe try to contact him again.. Hope It will help.