-
1. Re: Proxy URL
dward Jul 28, 2010 11:07 AM (in response to madhucm)What are you proxying "to"? An external SOAP service? An internal ESB service? ...?
-
2. Re: Proxy URL
madhucm Jul 28, 2010 11:04 PM (in response to dward)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 Aug 1, 2010 5:41 AM (in response to madhucm)1 of 1 people found this helpfulmaybe you can try HTTP Gateway and HttpRouter or SOAPProxy. good luck!
-
4. Re: Proxy URL
dward Aug 1, 2010 2:01 PM (in response to madhucm)1 of 1 people found this helpfulIf 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