[jboss-dev-forums] [JBoss ESB Development] - Where to find SOAPProcessor?
Sebastian Vergara
do-not-reply at jboss.com
Mon Apr 26 23:08:04 EDT 2010
Sebastian Vergara [http://community.jboss.org/people/svergara] created the discussion
"Where to find SOAPProcessor?"
To view the discussion, visit: http://community.jboss.org/message/539656#539656
--------------------------------------------------------------
Hi, 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 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);
}
}
**************************************************************************************************************************************************************************
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539656#539656]
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/20100426/d1a4d08a/attachment.html
More information about the jboss-dev-forums
mailing list