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
for this i downloaded Galileo , Jboss ESB 4.7 and installed ESB and AS Tools .
<?xml version="1.0" encoding="UTF-8"?>
<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="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
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 [""], operation [{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:Header/>"+
"<soapenv:Body>"+
"<web:GetQuote>"+
"<web:symbol>RHT</web:symbol>"+
"</web:GetQuote>"+
"</soapenv:Body>"+
"</soapenv:Envelope>";
public static void main(String args[]) throws Exception
{
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/
but still Iam getting the Same Exception
Pls help me , is there any mistake in this ..