<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
SoapProxy issue while calling Client Program
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/lackki9">lackki rao</a> in <i>JBoss ESB Development</i> - <a href="http://community.jboss.org/message/544504#544504">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>I am a beginer to JBOSS ESB, it's really wonderful to work on different features of it .</p><p>pls help me to solve this issue. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p> I successfully deployed a sample  example <a class="jive-link-external-small" href="http://jbossesb.blogspot.com/2009/11/proxying-soap-web-services-in-jbossesb.html">http://jbossesb.blogspot.com/2009/11/proxying-soap-web-services-in-jbossesb.html</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>  for this i downloaded Galileo , Jboss ESB 4.7 and installed ESB and AS Tools .</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><div id="_mcePaste"><div id="_mcePaste"><?xml version="1.0" encoding="UTF-8"?></div><div id="_mcePaste"><span><jbossesb xmlns="</span><a class="jive-link-external-small" href="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.2.0.xsd" target="_blank">http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.2.0.xsd</a><span>" parameterReloadSecs="5"></span></div><div id="_mcePaste"> </div><div id="_mcePaste"><span> </span><services></div><div id="_mcePaste"><span> </span><service category="Proxy_Basic" name="Proxy"</div><div id="_mcePaste"><span> </span> description="Basic WebService Proxy"</div><div id="_mcePaste"><span> </span> invmScope="GLOBAL"></div><div id="_mcePaste"><span> </span><listeners></div><div id="_mcePaste"><span> </span><http-gateway name="Proxy_Basic-GwListener" /></div><div id="_mcePaste"><span> </span></listeners></div><div id="_mcePaste"><span> </span><actions mep="RequestResponse"></div><div id="_mcePaste"><span> </span><action name="echo-request"</div><div id="_mcePaste"><span> </span>class="org.jboss.soa.esb.actions.SystemPrintln"></div><div id="_mcePaste"><span> </span><property name="message" value="Message before SOAPProxy" /></div><div id="_mcePaste"><span> </span></action></div><div id="_mcePaste"><span> </span><action name="proxy"</div><div id="_mcePaste"><span> </span>class="org.jboss.soa.esb.actions.soap.proxy.SOAPProxy"></div><div id="_mcePaste"><span> </span><span><property name="wsdl" value="</span><a class="jive-link-external-small" href="http://www.webservicex.net/stockquote.asmx?WSDL" target="_blank">http://www.webservicex.net/stockquote.asmx?WSDL</a><span>"/></span></div><div id="_mcePaste"><span> </span><property name="http.proxyHost" value="XXXX"/></div><div id="_mcePaste"><span> </span><property name="http.proxyPort" value="XXXX"/></div><div id="_mcePaste"><span> </span></action></div><div id="_mcePaste"><span> </span><action name="echo-response"</div><div id="_mcePaste"><span> </span>class="org.jboss.soa.esb.actions.SystemPrintln"></div><div id="_mcePaste"><span> </span><property name="message" value="Message after SOAPProxy" /></div><div id="_mcePaste"><span> </span></action></div><div id="_mcePaste"><span> </span></actions></div><div id="_mcePaste"><span> </span></service></div><div id="_mcePaste"><span> </span></services></div><div id="_mcePaste"> </div><div id="_mcePaste"></jbossesb></div><div> </div></div><div> </div><div>Application deployed succesfully </div><div> </div><div><div><span> mapped operation [{</span><a class="jive-link-external-small" href="http://www.webserviceX.NET/" target="_blank">http://www.webserviceX.NET/</a><span>}GetQuote] to binding [{</span><a class="jive-link-external-small" href="http://www.webserviceX.NET/" target="_blank">http://www.webserviceX.NET/</a><span>}StockQuoteHttpPost]</span></div><div><span> mapped soapaction ["</span><a class="jive-link-external-small" href="http://www.webserviceX.NET/GetQuote" target="_blank">http://www.webserviceX.NET/GetQuote</a><span>"] to binding [{</span><a class="jive-link-external-small" href="http://www.webserviceX.NET/" target="_blank">http://www.webserviceX.NET/</a><span>}StockQuoteSoap]</span></div><div><span> could not map binding [{</span><a class="jive-link-external-small" href="http://www.webserviceX.NET/" target="_blank">http://www.webserviceX.NET/</a><span>}StockQuoteHttpPost] to transport with endpoint address: [dummy]</span></div><div><span> mapped binding [{</span><a class="jive-link-external-small" href="http://www.webserviceX.NET/" target="_blank">http://www.webserviceX.NET/</a><span>}StockQuoteSoap] to transport [org.jboss.soa.esb.actions.soap.proxy.HttpSOAPProxyTransport] with endpoint address: [</span><a class="jive-link-external-small" href="http://www.webservicex.net/stockquote.asmx" target="_blank">http://www.webservicex.net/stockquote.asmx</a><span>]</span></div><div><span> could not map binding [{</span><a class="jive-link-external-small" href="http://www.webserviceX.NET/" target="_blank">http://www.webserviceX.NET/</a><span>}StockQuoteHttpGet] to transport with endpoint address: [dummy]</span></div><div><span> mapped binding [{</span><a class="jive-link-external-small" href="http://www.webserviceX.NET/" target="_blank">http://www.webserviceX.NET/</a><span>}StockQuoteSoap12] to transport [org.jboss.soa.esb.actions.soap.proxy.HttpSOAPProxyTransport] with endpoint address: [</span><a class="jive-link-external-small" href="http://www.webservicex.net/stockquote.asmx" target="_blank">http://www.webservicex.net/stockquote.asmx</a><span>]</span></div></div><div> </div><div><strong><span>i find wsdl also  </span><a class="jive-link-external-small" href="http://localhost:8080/Proxy/http/Proxy_Basic/Proxy?wsdl" target="_blank">http://localhost:8080/Proxy/http/Proxy_Basic/Proxy?wsdl</a></strong></div><div> </div><div><div>but while calling from client program its giving<strong> Response Code 500</strong> and </div><div> </div><div><div> </div><div><span></pre></p><p><b>root cause</b> <pre>org.jboss.soa.esb.couriers.FaultMessageException: org.jboss.soa.esb.actions.ActionProcessingException: null transport for soapaction [&quot;&quot;], operation [{</span><a class="jive-link-external-small" href="http://www.webservicex.net/" target="_blank">http://www.webservicex.net/</a><span>}GetQuote], binding [null]</span></div></div></div><div> </div><div> </div><div>Here is my Client code but nothing great.</div><div> </div><div>public class ClientTest</div><div><div>{</div><div> </div><div><span> </span>private static final String SOAP_SAMPLE =</div><div><span> </span><span>"<soapenv:Envelope xmlns:soapenv=\"</span><a class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" target="_blank">http://schemas.xmlsoap.org/soap/envelope/</a><span>\" xmlns:web=\"</span><a class="jive-link-external-small" href="http://www.webservicex.net/" target="_blank">http://www.webservicex.net/</a><span>\">"+</span></div><div><span> </span> "<soapenv:Header/>"+</div><div><span> </span>  "<soapenv:Body>"+</div><div><span> </span>  "<web:GetQuote>"+</div><div><span> </span>   "<web:symbol>RHT</web:symbol>"+</div><div><span> </span>   "</web:GetQuote>"+</div><div><span> </span>    "</soapenv:Body>"+</div><div><span> </span>  "</soapenv:Envelope>";</div><div> </div><div><span> </span>public static void main(String args[]) throws Exception</div><div><span> </span>{</div><div><span> </span><span>String url = "</span><a class="jive-link-external-small" href="http://localhost:8080/Proxy/http/Proxy_Basic/Proxy" target="_blank">http://localhost:8080/Proxy/http/Proxy_Basic/Proxy</a><span>";</span></div><div><span> </span>System.out.println("****  REQUEST  URL: " + url);</div><div><span> </span>PostMethod method = new PostMethod(url);</div><div><span> </span>method.setRequestHeader("Content-Type", "text/xml;charset=UTF-8");</div><div><span> </span>//method.addParameter("proxyHost", "10.48.133.184");</div><div><span> </span>//method.addParameter("proxyPort", "6588");</div><div><span> </span>//method.addParameter("proxySet", "true");</div><div><span> </span></div><div><span> </span>//System.setProperty("proxyHost", "10.48.133.184");</div><div><span> </span>//System.setProperty("proxyPort", "6588");</div><div><span> </span>//method.</div><div> </div><div><span> </span>method.setRequestHeader("SOAPAction", "\"\"");</div><div><span> </span></div><div><span> </span>//String request = SOAP_SAMPLE;</div><div><span> </span>System.out.println("****  REQUEST BODY: " + SOAP_SAMPLE);</div><div><span> </span>method.setRequestEntity( new StringRequestEntity(SOAP_SAMPLE) );</div><div><span> </span></div><div><span> </span>HttpClient client = new HttpClient();</div><div><span> </span>InputStream response = null;</div><div><span> </span>try</div><div><span> </span>{</div><div><span> </span>int code = client.executeMethod(method);</div><div><span> </span>System.out.println("**** RESPONSE CODE: " + code);</div><div><span> </span></div><div><span> </span>response = method.getResponseBodyAsStream();</div><div><span> </span>byte[] bytes = StreamUtils.readStream(response);</div><div><span> </span>System.out.println("**** RESPONSE BODY: " + new String(bytes, method.getResponseCharSet()));</div><div><span> </span>}</div><div><span> </span>finally</div><div><span> </span>{</div><div><span> </span>method.releaseConnection();</div><div><span> </span>if (response != null)</div><div><span> </span>{</div><div><span> </span>response.close();</div><div><span> </span>}</div><div><span> </span>}</div><div><span> </span>}</div><div> </div><div>}</div><div> </div></div><div> </div><div> i couldn't find <strong>org.jboss.soa.esb.actions.soap.proxy.SOAPProxy class in ESB 4.7 jars,</strong><span> i downloaded all  needed classes from   </span><a class="jive-link-external-small" href="http://fisheye.jboss.org/" target="_blank">http://fisheye.jboss.org/</a><span> </span></div><div> </div><div>but still Iam getting the Same Exception</div><div> </div><div>Pls help me , is there any mistake in this ..</div><div> </div></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/544504#544504">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss ESB Development at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2032">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>