Where to find SOAPProcessor?
svergara Apr 26, 2010 11:07 PMHi, this is my first post about JBossESB.
I downloaded jbossesb-4.8 and deployed it in the jboss-5.1.0.GA AS. But, when I'm trying to use the SOAPProceesor class an error ocurres in the import. I don't know where to find this class.
**************************************************************************************************************************************************************************
package org.jboss.soa.esb.samples.quickstart.webserviceproducer.webservice;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.Oneway;
import javax.jws.WebParam;
import javax.jws.soap.SOAPBinding;
import org.jboss.soa.esb.message.Message;
import org.jboss.soa.esb.message.Body;
import org.jboss.soa.esb.actions.ActionUtils;
import org.jboss.soa.esb.actions.soap.SOAPProcessor; <----------- This is where it doesn't work!
/**
* @author
*/
@WebService(name = "GoodbyeWorldWS", targetNamespace = "http://webservice_producer/goodbyeworld")
// @SOAPBinding(style = SOAPBinding.Style.RPC)
public class GoodbyeWorldWS {
@WebMethod
public String sayGoodbye(@WebParam(name = "message") String message) {
Message esbMessage = SOAPProcessor.getMessage();
if (esbMessage != null) {
System.out.println("**** SOAPRequest perhaps mediated by ESB:\n" + esbMessage.getBody().get());
// System.out.println("\n" + esbMessage.toString() + "\n");
}
System.out.println("Web Service Parameter - message=" + message);
return "... Ah Goodbye then!!!! - " + message;
}
@WebMethod
public String sayAdios(String message) {
Message esbMessage = SOAPProcessor.getMessage();
if (esbMessage != null) {
System.out.println("**** SOAPRequest perhaps mediated by ESB:\n" + esbMessage.getBody().get());
// System.out.println("\n" + esbMessage.toString() + "\n");
}
System.out.println("Web Service Parameter - message=" + message);
return "... Adios Amigo!!!! - " + message;
}
@WebMethod
@Oneway
public void sayGoodbyeWithoutResponse(@WebParam(name = "message") String message) {
Message esbMessage = SOAPProcessor.getMessage();
if (esbMessage != null) {
System.out.println("**** SOAPRequest perhaps mediated by ESB:\n" + esbMessage.getBody().get());
}
System.out.println("Web Service Parameter - message=" + message);
}
}
**************************************************************************************************************************************************************************