[jboss-dev-forums] [JBoss ESB Development] - SoapProxy issue while calling Client Program

lackki rao do-not-reply at jboss.com
Mon May 24 10:14:34 EDT 2010


lackki rao [http://community.jboss.org/people/lackki9] created the discussion

"SoapProxy issue while calling Client Program"

To view the discussion, visit: http://community.jboss.org/message/544504#544504

--------------------------------------------------------------
I am a beginer to JBOSS ESB, it's really wonderful to work on different features of it .
pls help me to solve this issue. 



 I successfully deployed a sample  example  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

*  for this i downloaded Galileo , Jboss ESB 4.7 and installed ESB and AS Tools .*


<?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 http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.2.0.xsd" parameterReloadSecs="5">
 
 <services>
 <service category="Proxy_Basic" name="Proxy"
  description="Basic WebService Proxy"
  invmScope="GLOBAL">
 <listeners>
 <http-gateway name="Proxy_Basic-GwListener" />
 </listeners>
 <actions mep="RequestResponse">
 <action name="echo-request"
 class="org.jboss.soa.esb.actions.SystemPrintln">
 <property name="message" value="Message before SOAPProxy" />
 </action>
 <action name="proxy"
 class="org.jboss.soa.esb.actions.soap.proxy.SOAPProxy">
 <property name="wsdl" value=" http://www.webservicex.net/stockquote.asmx?WSDL http://www.webservicex.net/stockquote.asmx?WSDL"/>
 <property name="http.proxyHost" value="XXXX"/>
 <property name="http.proxyPort" value="XXXX"/>
 </action>
 <action name="echo-response"
 class="org.jboss.soa.esb.actions.SystemPrintln">
 <property name="message" value="Message after SOAPProxy" />
 </action>
 </actions>
 </service>
 </services>
 
</jbossesb>
 
 
Application deployed succesfully 
 
 mapped operation [{ http://www.webserviceX.NET/ http://www.webserviceX.NET/}GetQuote] to binding [{ http://www.webserviceX.NET/ http://www.webserviceX.NET/}StockQuoteHttpPost]
 mapped soapaction [" http://www.webserviceX.NET/GetQuote http://www.webserviceX.NET/GetQuote"] to binding [{ http://www.webserviceX.NET/ http://www.webserviceX.NET/}StockQuoteSoap]
 could not map binding [{ http://www.webserviceX.NET/ http://www.webserviceX.NET/}StockQuoteHttpPost] to transport with endpoint address: [dummy]
 mapped binding [{ http://www.webserviceX.NET/ http://www.webserviceX.NET/}StockQuoteSoap] to transport [org.jboss.soa.esb.actions.soap.proxy.HttpSOAPProxyTransport] with endpoint address: [ http://www.webservicex.net/stockquote.asmx http://www.webservicex.net/stockquote.asmx]
 could not map binding [{ http://www.webserviceX.NET/ http://www.webserviceX.NET/}StockQuoteHttpGet] to transport with endpoint address: [dummy]
 mapped binding [{ http://www.webserviceX.NET/ http://www.webserviceX.NET/}StockQuoteSoap12] to transport [org.jboss.soa.esb.actions.soap.proxy.HttpSOAPProxyTransport] with endpoint address: [ http://www.webservicex.net/stockquote.asmx http://www.webservicex.net/stockquote.asmx]
 
*i find wsdl also   http://localhost:8080/Proxy/http/Proxy_Basic/Proxy?wsdl http://localhost:8080/Proxy/http/Proxy_Basic/Proxy?wsdl*
 
but while calling from client program its giving *Response Code 500* and 
 
 
</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 [{ http://www.webservicex.net/ http://www.webservicex.net/}GetQuote], binding [null]
 
 
Here is my Client code but nothing great.
 
public class ClientTest
{
 
 private static final String SOAP_SAMPLE =
 "<soapenv:Envelope xmlns:soapenv=\" http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/\" xmlns:web=\" http://www.webservicex.net/ http://www.webservicex.net/\">"+
  "<soapenv:Header/>"+
   "<soapenv:Body>"+
   "<web:GetQuote>"+
    "<web:symbol>RHT</web:symbol>"+
    "</web:GetQuote>"+
     "</soapenv:Body>"+
   "</soapenv:Envelope>";
 
 public static void main(String args[]) throws Exception
 {
 String url = " http://localhost:8080/Proxy/http/Proxy_Basic/Proxy http://localhost:8080/Proxy/http/Proxy_Basic/Proxy";
 System.out.println("****  REQUEST  URL: " + url);
 PostMethod method = new PostMethod(url);
 method.setRequestHeader("Content-Type", "text/xml;charset=UTF-8");
 //method.addParameter("proxyHost", "10.48.133.184");
 //method.addParameter("proxyPort", "6588");
 //method.addParameter("proxySet", "true");
 
 //System.setProperty("proxyHost", "10.48.133.184");
 //System.setProperty("proxyPort", "6588");
 //method.
 
 method.setRequestHeader("SOAPAction", "\"\"");
 
 //String request = SOAP_SAMPLE;
 System.out.println("****  REQUEST BODY: " + SOAP_SAMPLE);
 method.setRequestEntity( new StringRequestEntity(SOAP_SAMPLE) );
 
 HttpClient client = new HttpClient();
 InputStream response = null;
 try
 {
 int code = client.executeMethod(method);
 System.out.println("**** RESPONSE CODE: " + code);
 
 response = method.getResponseBodyAsStream();
 byte[] bytes = StreamUtils.readStream(response);
 System.out.println("**** RESPONSE BODY: " + new String(bytes, method.getResponseCharSet()));
 }
 finally
 {
 method.releaseConnection();
 if (response != null)
 {
 response.close();
 }
 }
 }
 
}
 
 
 i couldn't find *org.jboss.soa.esb.actions.soap.proxy.SOAPProxy class in ESB 4.7 jars,* i downloaded all  needed classes from    http://fisheye.jboss.org/ http://fisheye.jboss.org/ 
 
but still Iam getting the Same Exception
 
Pls help me , is there any mistake in this ..
 

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/544504#544504]

Start a new discussion in JBoss ESB Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2032]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20100524/f56ba761/attachment.html 


More information about the jboss-dev-forums mailing list