0 Replies Latest reply on Jun 21, 2009 11:25 PM by bingozzz bingozzz

    expose the  esb service throuth web service endpoints

    bingozzz bingozzz Newbie

      hi all,
      i expose my esb service throuth web service endpoints.i am facing problem how return values of the esb service match the return of calling the web service.
      the coonfiguration file of my esb service :

      <action name="JBossWSAdapter" class="org.jboss.soa.esb.actions.soap.SOAPProcessor">
       <property name="jbossws-endpoint" value="GoodbyeWorldWS" />
       </action>
      
       <action name="print-after" class="org.jboss.soa.esb.actions.SystemPrintln">
       <property name="message"
       value="[Quickstart_webservice_producer] AFTER invoking jbossws endpoint" />
       </action>
       <action name="request-mapper"
       class="org.jboss.soa.esb.samples.quickstart.webserviceproducer.webservice.MyRequestAction">
       </action>
       <action name="soapui-client-action"
       class="org.jboss.soa.esb.actions.soap.SOAPClient">
       <property name="wsdl"
       value="http://10.100.8.26:8080/EHT/QueryService.jws?wsdl" />
       <property name="responseAsOgnlMap" value="true" />
       <property name="SOAPAction" value="CCFunction"/>
       </action>
      
       <action name="response-mapper"
       class="org.jboss.soa.esb.samples.quickstart.webserviceproducer.webservice.MyResponseAction">
       </action>
      

      for returning right format ,i nead to change the content of the esb message:
      String returnStr = "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body>
       <ns2:sayGoodbyeResponse xmlns:ns2=\"http://webservice_producer/goodbyeworld\"><return>" +
       "<![CDATA["
       + responseMsg.get("CCFunctionResponse.CCFunctionReturn")
       + "]]></return></ns2:sayGoodbyeResponse></env:Body></env:Envelope>";
      
       message.getBody().add(returnStr);
      
      

      give some suggestion,thanks.