cxf-users mailing list archives

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

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;

    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);


View this message in context:
Sent from the cxf-user mailing list archive at

View raw message