3 Replies Latest reply on Jan 11, 2013 5:51 AM by carre

    Questions on SOAPProxy Warnings / Proxy

    carre

      Hi,

       

      i try an SOAPProxy example on a free webservice:

       

      part from the jboss-esb.xml

       

      <listeners>

          <jms-listener busidref="serviceEsbChannel" name="GatServiceListener" />

      </listeners>

      <actions mep="RequestResponse">

          <action class="org.aaa.bbb.ccc.JMSListenerAction"

              name="action1" process="handleMessage" />

          <action name="proxy"

              class="org.jboss.soa.esb.actions.soap.proxy.SOAPProxy">

              <property name="wsdl" value="http://www.webservicex.net/geoipservice.asmx?WSDL"/>

          </action>

       

      and in the code i have the following request:

       

      message = "<soap:Envelope xmlns:soap=\"http://www.w3.org/2003/05/soap-envelope\"" +

                   " xmlns:web=\"http://www.webservicex.net/\">" +

                      "<soap:Header/>" +

                      "<soap:Body>" +

                      "<web:GetGeoIP>" +

                      "<web:IPAddress>122.134.123.123</web:IPAddress>" +

                      "</web:GetGeoIP>" +

                      "</soap:Body>" +

                      "</soap:Envelope>";

       

      1.) on the JBoss ESB (jbossesb-server-4.10) startup i receive the following lines

       

      16:57:11,015 INFO  [SOAPProxy] mapped soapaction ["http://www.webservicex.net/GetGeoIP"] to binding [{http://www.webservicex.net/}GeoIPServiceSoap12]

      16:57:11,015 INFO  [SOAPProxy] mapped operation [{http://www.webservicex.net/}GetGeoIP] to binding [{http://www.webservicex.net/}GeoIPServiceSoap12]

      16:57:11,015 INFO  [SOAPProxy] mapped soapaction ["http://www.webservicex.net/GetGeoIPContext"] to binding [{http://www.webservicex.net/}GeoIPServiceSoap12]

      16:57:11,015 INFO  [SOAPProxy] mapped operation [{http://www.webservicex.net/}GetGeoIPContext] to binding [{http://www.webservicex.net/}GeoIPServiceSoap12]

      16:57:11,015 WARN  [SOAPProxy] Unprocessed extension element: {http://schemas.xmlsoap.org/wsdl/http/}address

      16:57:11,015 WARN  [SOAPProxy] could not map binding [{http://www.webservicex.net/}GeoIPServiceHttpPost] to transport with endpoint address: [dummy]

      16:57:11,015 WARN  [SOAPProxy] Unprocessed extension element: {http://schemas.xmlsoap.org/wsdl/http/}address

      16:57:11,015 WARN  [SOAPProxy] could not map binding [{http://www.webservicex.net/}GeoIPServiceHttpGet] to transport with endpoint address: [dummy]

      16:57:11,015 INFO  [SOAPProxy] mapped binding [{http://www.webservicex.net/}GeoIPServiceSoap] to transport [org.jboss.soa.esb.actions.soap.proxy.HttpSOAPProxyTransport] with endpoint address: [http://www.webservicex.net/geoipservice.asmx]

      16:57:11,031 INFO  [SOAPProxy] mapped binding [{http://www.webservicex.net/}GeoIPServiceSoap12] to transport [org.jboss.soa.esb.actions.soap.proxy.HttpSOAPProxyTransport] with endpoint address: [http://www.webservicex.net/geoipservice.asmx]

       

      and on sending of the request, i receive this on the console

       

      17:16:44,661 WARN  [SOAPProxy] null binding for soapaction [null]; parsing envelope to find element or operation...

       

      Request goes OK - only as question is there something to do, to avoid this warnings?

       

      2.) I try the same behind a proxy

       

           - i try it with to expand the JAVA_OPTS="-Dhttp.proxyHost=xxxx -Dhttp.proxyPort=1234 $JAVA_OPTS"

           - i try it with to add this to the action

                          <property name="http-client-properties">

                          <http-client-property name="http.proxyHost" value="xxxx"/>

                          <http-client-property name="http.proxyPort" value="1234"/>

                          </property>

       

      nothing helps - JBoss ESB ignore each setting - on the WSDL mapping -> Connection refused

      What is the right way to add a proxy setting in case of SOAPProxy?

       

      Thanks and Best regards

      Tom