4 Replies Latest reply on Aug 1, 2010 2:01 PM by dward

    Proxy URL

    madhucm

      Hi,

      I am very new to Jboss Esb.

      I need to create a proxy Url in ESB. How do i do that . please help me.

       

      For example : my Actual url : http://fpsindi.for.net

                     and my proxy Url should be : http://fpsproxy:7777

       

      so if i enter http://fpsproxy:7777 is address url in browser it should give content of http://fpsindi.for.net

        • 1. Re: Proxy URL
          dward

          What are you proxying "to"?  An external SOAP service?  An internal ESB service? ...?

          • 2. Re: Proxy URL
            madhucm

            It an external SOAP service. I dont want to expose actual URL to my clients , instead i want to expose proxy URL.

            • 3. Re: Proxy URL
              yushanyuan

              maybe you can try HTTP Gateway  and HttpRouter or SOAPProxy. good luck!

              1 of 1 people found this helpful
              • 4. Re: Proxy URL
                dward

                If you are only proxying plain http, you can use the HttpGateway + HttpRouter, as suggested.

                 

                However, you said it's an external web service.  So, you could use the SOAPProxy:

                 

                MyApplication.esb!/META-INF/jboss-esb.xml:

                 

                <?xml version="1.0" encoding="UTF-8"?>

                <jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.2.0.xsd" parameterReloadSecs="5">

                    <services>

                        <service category="MyCategory" service="MyService" description="MyDescription">

                            <listeners>

                                <http-gateway name="MyGateway"/>

                            </listeners>

                            <actions>

                                <action name="MyProxy" class="org.jboss.soa.esb.actions.soap.proxy.SOAPProxy">

                                    <property name="wsdl" value="http://fpsindi.for.net/MyApplication/MyWebService?wsdl"/>

                                </action>

                            </actions>

                        </service>

                    </services>

                </jbossesb>

                 

                If Tomcat (inside JBoss AS + ESB) is running on fpsproxy:7777, then you are all set on the host:port.  Otherwise you can edit jbossesb-properties.xml (the ESB's main config file) and set the "org.jboss.soa.esb.http.host" and "org.jboss.soa.esb.http.port" properties in the "transports" module.

                 

                Or, you can also parameterize the http-gateway element to suite your taste: http://community.jboss.org/wiki/HttpGateway

                 

                Please check out the JBoss ESB Programmer's Guide for more information on the HttpGateway, HttpRouter and SOAPProxy.

                 

                Hope this helps,

                David

                1 of 1 people found this helpful