You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by flat-out <fl...@horae.dti.ne.jp> on 2007/11/08 05:42:57 UTC
Re: WSDL not recognized by vs net
Hi.
This way might be another way to get doc/literal bare WSDL.
We just need to add annotation @SOAPBinding.
import javax.jws.soap.SOAPBinding;
import javax.jws.WebService;
import javax.jws.WebParam;
@SOAPBinding(style=SOAPBinding.Style.DOCUMENT,
use=SOAPBinding.Use.LITERAL,
parameterStyle=SOAPBinding.ParameterStyle.BARE)
@WebService
public interface HelloWorld {
String sayHi(@WebParam(name="text") String text);
}
So we can write client-side code like this:
//doc/lit wrapped
HelloWorldImplService service = new HelloWorldImplService();
CXFSpring.sayHi hi = new CXFSpring.sayHi();
hi.text = "Client";
CXFSpring.sayHiResponse response = service.sayHi( hi);
Console.Out.WriteLine("response=" + response.@return);
//doc/lit bare
HelloWorldImplService service = new HelloWorldImplService();
String response = service.sayHi("Client");
Console.Out.WriteLine("response=" + response);
flat-out
--
View this message in context: http://www.nabble.com/WSDL-not-recognized-by-vs-net-tf4599448.html#a13641274
Sent from the cxf-user mailing list archive at Nabble.com.