cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From flat-out <flat-...@horae.dti.ne.jp>
Subject Re: WSDL not recognized by vs net
Date Thu, 08 Nov 2007 04:42:57 GMT

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.


Mime
View raw message