[jboss-user] [JBoss Web Services] - how to build Document/Literal (Wrapped)
everson .
do-not-reply at jboss.com
Fri May 27 10:57:57 EDT 2011
everson . [http://community.jboss.org/people/everjava] created the discussion
"how to build Document/Literal (Wrapped)"
To view the discussion, visit: http://community.jboss.org/message/607508#607508
--------------------------------------------------------------
I didn't understand very well the example from docs. My doubt is about @RequestWrapper and @ResponseWrapper. How is the SubmitPO and SubmitPOResponde implementation ?
@WebService
*public* *class* DocWrappedServiceImpl
{
@WebMethod
@RequestWrapper (className="org.somepackage.SubmitPO")
@ResponseWrapper (className="org.somepackage.SubmitPOResponse")
*public* String submitPO(String product, *int* quantity)
{
...
}
}
I have this code below. I'm using jboss 5.1 + esb4.9 + jbossws native 3.1.2.GA. But I got the error
"*Endpoint .... does not contain operation meta data for ...*"
myMethod(object param) gets an array from client written in php
@WebService(name="PessoaWS" ,targetNamespace=" http://scxx http://scxx" )
@SOAPBinding(style = Style.DOCUMENT, use=Use.LITERAL, parameterStyle=ParameterStyle.WRAPPED)
public class PessoaWS {
@WebMethod
public void myMethod( Object param){
try {
Message esbMessage = SOAPProcessor.getMessage();
String soap = esbMessage.getBody().get().toString();
System.out.println(soap);
} catch (Exception e) {
e.printStackTrace();
}
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/607508#607508]
Start a new discussion in JBoss Web Services at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110527/65692e40/attachment-0001.html
More information about the jboss-user
mailing list