You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by ad...@gmail.com on 2009/06/23 23:05:57 UTC

Access Fault data

Hi everyone,

What I need to do in order to access the data of a Fault message? Currently  
I have a process that defines a fault message, and inside this message  
there are 2 values:

Fault in WSDL
--------------------------------------------------------------
<element name="FaultMsg">
<complexType>
<sequence>
<element name="errorTime" type="string"/>
<element name="errorDescription" type="string"/>
</sequence>
</complexType>
</element>

For example, I'm triying to modify the value of errorDescription like this:

</bpws:copy>
<bpws:copy>
<bpws:from>
<bpws:literal>Error found</bpws:literal>
</bpws:from>
<bpws:to part="payload" variable="error">
<bpws:query  
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns:errorDescription]]></bpws:query>
</bpws:to>
</bpws:copy>

but it's getting me error like this:
"selectionFailure: No results for expression:"

What I need to do?

Best regards

Re: Access Fault data

Posted by Waruna Ranasinghe <wa...@gmail.com>.
I think you need to initialise the variable before you copy something to
that variable

-----------------------------------------------------
Regards,
Waruna Ranasinghe
BLOG: http://warunapw.blogspot.com


2009/6/24 <ad...@gmail.com>

> Hi everyone,
>
> What I need to do in order to access the data of a Fault message? Currently
> I have a process that defines a fault message, and inside this message there
> are 2 values:
>
> Fault in WSDL
> --------------------------------------------------------------
> <element name="FaultMsg">
> <complexType>
> <sequence>
> <element name="errorTime" type="string"/>
> <element name="errorDescription" type="string"/>
> </sequence>
> </complexType>
> </element>
>
> For example, I'm triying to modify the value of errorDescription like this:
>
> </bpws:copy>
> <bpws:copy>
> <bpws:from>
> <bpws:literal>Error found</bpws:literal>
> </bpws:from>
> <bpws:to part="payload" variable="error">
> <bpws:query
> queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[/tns:errorDescription]]></bpws:query>
> </bpws:to>
> </bpws:copy>
>
> but it's getting me error like this:
> "selectionFailure: No results for expression:"
>
> What I need to do?
>
> Best regards
>