0 Replies Latest reply on Apr 20, 2010 2:25 AM by ganeshkhakare

    org.apache.cxf.interceptor.Fault: no jbi message element

    ganeshkhakare

      I have created and deployed 2 cxf pojo services in same JVM. I want to call service B from service A. My code is

       

                 

      QName umsServiceName = new                                                              QName("http://licensesite.eqtechnologic.com/UserManagement/",  "UserManagementService");

      ServiceEndpoint se = getContext().getEndpoint(umsServiceName,                                                                       "UserManagementPort");

      try{

            DeliveryChannel channel = context.getDeliveryChannel();

            InOut umsInOut= channel.createExchangeFactory().createInOutExchange();                       

                         umsInOut.setEndpoint(se);

            NormalizedMessage msg = umsInOut.createMessage();           

            try {

                     msg.setContent(getContentForUMS());

               } catch (Exception ex) {

                     ex.printStackTrace();

               }

            

      QName opName =  new QName("http://licensesite.eqtechnologic.com/UserManagement/", "validateCredentials");

                      

      umsInOut.setOperation(opName);

      umsInOut.setMessage(msg, "in");

      umsInOut.setInterfaceName(interfaceName);

      channel.sendSync(umsInOut);

      System.out.println(umsInOut.getOutMessage());     

       

       

       

      Is it write way to call cxf service engine having no binding component? If not please suggest me other.

       

      I'm getting the error message as "org.apache.cxf.interceptor.Fault: no jbi message element" when i called the service.

       

      Edited by: ganeshkhakare on Apr 20, 2010 6:24 AM