Santhosh,

This is certainly a little complex!!

Some initial thoughts inline...

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>

I note that the second (nested) processResponse element is stated to be in the 
namespace
"http://com.company.app.types";

- however, no alias is used for this namespace

The <return/> element is not explicitly stated as being in any namespace, 
despite the presence of
xmlns:ns2="http://cmpx.component.dta.app.company.com/";

- ns2 is not used anywhere
- this namespace is curious - where does it come from?

As you noticed, <name/> is explicitly stated to be in the namespace ""

I note that your itin_types.xsd states elementFormDefault="qualified" - and from this I would have expected all the elements within <processResponse/> to have a qualifier for their namespace

- I can suggest changing the setting to elementFormDefault="unqualified"

 >>>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*.*


Can you debug the contents of the TravelRequestVO object? I suspect that you will find it contains nothing at all, probably because the namespaces of the returned XML elements don't match.


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.

What makes you think that an error is occurring during Node2JAXB transformation?


Best Regards,


Yours,  Mike.

Reply via email to