You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "Kasim Sert (Ibtech-Software Infrastructure)" <ka...@ibtech.com.tr> on 2015/11/05 08:16:47 UTC

camel cxf web service returning empty response

Hi,

I am new to camel and cxf. Trying to expose a basic web service from java interface.

Everything seem to be fine except returning response.

Here is my route

    public void configure() {
        from("cxf:http://localhost:9000/sampleService"+"?serviceClass="+GenericService.class.getName())
        .process(new Processor() {

                    @Override
                    public void process(Exchange in) throws Exception {
                           System.out.println(in.getIn().getBody(MyInput.class).getName());
                           MyOutput out = new MyOutput();
                           out.setMyName("myname");
                           out.setSurName("surname");
                           in.getOut().setBody(out);
                    }
             })
        .log("${body.surName}");
    }

When I debug I can see everything is working fine in processor but I get the following empty soap as response.

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns1:sampleMethodResponse xmlns:ns1="http://ws.kasim.com/"/>
   </soap:Body>
</soap:Envelope>

Can anybody help me about what is wrong here? May be some missing jars ?





[Facebook]<http://www.facebook.com/Finansbank>  [Twitter] <http://twitter.com/finansbank>

[https://www.finansbank.com.tr/Disclaimer/BannerImages.aspx?date=05.11.201510:1600]<https://www.finansbank.com.tr/Disclaimer/Bannerlink.aspx?date=05.11.201510:1600>


Bu e-posta'n?n i?erdi?i bilgiler (ekleri dahil olmak ?zere) gizlidir. Onay?m?z olmaks?z?n ???nc? ki?ilere a?iklanamaz. Bu mesaj?n g?nderilmek istendi?i ki?i de?ilseniz, l?tfen mesaj? sisteminizden derhal siliniz. IBTech A.?. bu mesaj?n i?erdi?i bilgilerin do?rulu?u veya eksiksiz oldu?u konusunda bir garanti vermemektedir. Bu nedenle bilgilerin ne ?ekilde olursa olsun i?eri?inden, iletilmesinden, al?nmas?ndan, saklanmas?ndan sorumlu de?ildir. Bu mesaj?n i?eri?i yazar?na ait olup, IBTech A.?.'nin g?r??lerini i?ermeyebilir.

The information contained in this e-mail (including any attachments)is confidential. It must not be disclosed to any person without our authority. If you are not the intended recipient, please delete it from your system immediately. IBTech A.S. makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any kind for the information contained therein or for the information transmission, reception, storage or use of such in any way whatsoever. Any opinions expressed in this message are those of the author and may not necessarily reflect the opinions of IBTech A.S.