On 17 August 2011 23:21, Kent Närling <[email protected]> wrote:
> > On 17 August 2011 18:08, Daniel Kulp <[email protected]> wrote: > >> On Wednesday, August 17, 2011 4:17:58 PM Kent Närling wrote: >> > I tried ad-hoc and just wrote the interface myself as: >> > >> > @WebService >> > >> > public interface MyService >> > >> > { >> > >> > @WebMethod(operationName = "doSomething") >> > >> > Future<?> doSomething( >> > >> > @WebParam(name = "someParam") String someParam, >> > AsyncHandler<DoSomethingResult> asyncHandler); >> > >> > } >> > But with this I just god the error : "Could not find wsdl:binding >> operation >> > info for web method doSomething" >> > >> > So I guess this means I would have to annotate some binding information? >> or >> > is this impossible to do with annotations? >> >> You ALWAYS have to have the non-async versions there. Thus, put your >> original method signature in there. You can then optionally add the >> async >> versions as needed and only for the methods you need. >> >> Dan >> >> >> >> Does this mean that the server side will have to implement the async > version as well? > (would be a bit odd if the server has to implement the same method twice? > > Since it has to implement the same interface then it has to implement the > async version... > > Also, can the method name & SOAP operation name be the same? or should the > methods have different names? > > > ie in the above you are saying that I should declare an interface as: > > @WebService > > public interface MyService > > { > > @WebMethod(operationName = "doSomething") > > DoSomethingResult doSomething( > > @WebParam(name = "someParam") String someParam); > > @WebMethod(operationName = "doSomething") > > Future<?> doSomething( > > @WebParam(name = "someParam") String someParam, > > AsyncHandler<DoSomethingResult> handler); > > } > > > Or? > I tried to declare it as above, still get the same error as before: "Could not find wsdl:binding operation info for web method doSomething" Do I have to
