Santhosh,

Which version of Tuscany are you running?

We shall also need to see the WSDL which applies to the BPEL service interface that you are invoking here...


Yours,  Mike.

Santhosh T R wrote:
Hi All,

I'm trying to build a POC with Tuscany with its BPEL capabilities, now I'm stuck at problem where I'm not getting expected result in my JSP client, but I can see the response in my tomcat console.


*Response Printed on the console*
============================
 >>>Invocation status:RESPONSE
 >>>Response:
<?xml version="1.0" encoding="UTF-8"?>
<message><processResponse><processResponse xmlns="http://com.company.app.types <http://com.company.app.types/>"><return xmlns:ns2="http://cmpx.component.dta.app.company.com/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:type="travelRequestVO"><name xmlns="">invoke-bpel-engine</name></return></processResponse></processResponse></message>
 >>>Response:
<?xml version="1.0" encoding="UTF-8"?>
<message><processResponse><processResponse xmlns="http://com.company.app.types <http://com.company.app.types/>"><return xmlns:ns2="http://cmpx.component.dta.app.company.com/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:type="travelRequestVO"><name xmlns="">invoke-bpel-engine</name></return></processResponse></processResponse></message>

In this I can see the attribute <name> in the response message has no name space *[<name xmlns="">invoke-bpel-engine</name>]*, is this the reason behind this issue ?


*Type Definitions - XML Schema used*
============================================
*Please find the attachment [app_types.xsd]  *



*Client JSP *
==========
<%@ page contentType=/"text/html;charset=UTF-8"/ language=/"java"/ %>
<%@ taglib uri=/"//http://www.osoa.org/sca/sca_jsp.tld//"/ prefix=/"sca"/ %>
<%...@page import=/"com.company.app.dta.message.TravelRequestVO"/%>

<sca:reference name=/"DtaManagerComponent"/ type=/"com.company.app.dta.process.DTAProcessManagerService"/ />
<%= "Trying to invoke the BPEL process !!"%>
<%
    TravelRequestVO tVO =  *new* TravelRequestVO();
        tVO.setName("invoke-bpel-engine");
        out.write(DtaManagerComponent.process(tVO)+"");
        out.write(" "+DtaManagerComponent.process(tVO).getName());
        out.write("<hr>");
%>

In JSP, out.write(DtaManagerComponent.process(tVO)+""); is printing an Object of TravelVO [*com.company.app.dta.message.travelreques...@e19158* ] But when we try to print *out.write(**" "**+DtaManagerComponent.process(tVO).getName());,* it is printing null*.*


We are trying our level best to debug this issue, mean time looking forward your guidance find a way out.During the debugging, we feel that the problem occurs during the Node2JAXB transform process. Please find the debug stack attached.


Best Regards,

Reply via email to