This content has been marked as final.
Show 3 replies
-
1. Re: no arg method triggers wrong number of arguments fault
madhungarian Aug 19, 2008 4:15 PM (in response to madhungarian)So, am I the only one with this issue?
Anyone else having different results? -
2. Re: no arg method triggers wrong number of arguments fault
ropalka Sep 1, 2008 8:51 AM (in response to madhungarian)Which JBossWS CXF version are you using. It should be fixed in 3.0.3 release?
-
3. Re: no arg method triggers wrong number of arguments fault
madhungarian Sep 9, 2008 11:08 AM (in response to madhungarian)I am using jbossws-cxf-3.0.3.GA and it still occurs.
The only way I could get it to work was to use@SOAPBinding(style=Style.DOCUMENT, parameterStyle=ParameterStyle.WRAPPED)
on the interface and:@WebMethod(operationName="sayHi") @RequestWrapper(className="java.lang.Object") @WebResult(name="greetingResponse") public String sayHi();
on the method.
Only then could I send:<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.mim.com/"> <soapenv:Header/> <soapenv:Body> <ser:sayHi/> </soapenv:Body> </soapenv:Envelope>
and get back the expected response:<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns1:sayHiResponse xmlns:ns1="http://services.mim.com/"> <greetingResponse>Bonjour</greetingResponse> </ns1:sayHiResponse> </soap:Body> </soap:Envelope>