[jboss-user] [JBossWS] - Re: SOAPElement as input param

oskar.carlstedt do-not-reply at jboss.com
Wed Feb 6 15:59:55 EST 2008


Hi!

Just use a javax.xml.ws.Provider< SOAPElement > provider. You create a class that implements the Provider interface. You'll get something like:


  | @Local
  | @Stateless
  | @WebServiceProvider(
  |     serviceName = "...",
  |     portName = "...",
  |     targetNamespace = "...",
  |     wsdlLocation = "META-INF/wsdl/...")
  | @ServiceMode(value = Service.Mode.PAYLOAD)
  | public class MyServiceBean implements Provider<SOAPElement> {
  | 
  |     public SOAPElement invoke(SOAPElement requestSOAPElement) {
  |     
  |         ...
  | 
  |     }
  | 
  | }
  | 


You can read more about this in the JBossWS documentation. Pay attention to the ServiceMode.PAYLOAD. If you change this to ServiceMode.MESSAGE you can retrieve the whole soap message.

You can only implement the javax.xml.ws.Provider with the types SOAPElement, SOAPMessage and Source (e.g. StreamSource, DOMSource, ...).

Cheers
/Oskar




View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4127172#4127172

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4127172



More information about the jboss-user mailing list