Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XPath Error, XPath Error

590835Jul 31 2007 — edited Aug 1 2007
Hi,

I created a BPEL do call a PeopleSoft Web Service. The call to services works fine, but I'm having problems when I try to copy the values returned by the service to the output variable.

I'm getting
Error in evaluate <from> expression at line "116". The result is empty for the XPath expression : "/ns4:Fornecedor/ns4:Endereco/ns4:Rua"

The service I created call PS to retrieve the vendor address. Follow the xsd created to the reply message.

<?xml version="1.0" encoding="windows-1252" ?>
<schema attributeFormDefault="unqualified"
xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://xmlns.oracle.com/Enterprise/Tools/schemas/HB_VNDR_ADDR_SYNC_RESP.V1"
elementFormDefault="qualified">
<element name="Fornecedor">
<complexType>
<sequence>
<element name="Setid" type="string"/>
<element name="IdFornecedor" type="string"/>
<element name="Endereco">
<complexType>
<sequence>
<element name="Rua" type="string"/>
<element name="Numero" type="string"/>
<element name="Complemento" type="string"/>
<element name="Bairro" type="string"/>
<element name="Cidade" type="string"/>
<element name="Estado" type="string"/>
<element name="Pais" type="string"/>
<element name="CEP" type="string"/>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
</element>
</schema>


Follow the bpel xml created by JDeveloper

<?xml version = "1.0" encoding = "UTF-8" ?>
<!--
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Oracle JDeveloper BPEL Designer

Created: Fri Jul 27 15:54:56 PDT 2007
Author: arthur
Purpose: Synchronous BPEL Process
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-->
<!--xmlns:ns3="http://xmlns.oracle.com/EnderecoFornecedorResp"-->
<process name="ConsultaFornecedor"
targetNamespace="http://xmlns.oracle.com/ConsultaFornecedor"
xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:ns4="http://xmlns.oracle.com/Enterprise/Tools/schemas/HB_VNDR_ADDR_SYNC_RESP.V1"
xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:client="http://xmlns.oracle.com/ConsultaFornecedor"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
xmlns:ns1="http://xmlns.oracle.com/Enterprise/Tools/services/HB_VNDR_ADDR.1"
xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
xmlns:ns3="http://xmlns.oracle.com/EnderecoFornecedorResp"
xmlns:ns2="http://xmlns.oracle.com/Enterprise/Tools/schemas/HB_VNDR_ADDR_SYNC_REQ.V1"
xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
<!--
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
PARTNERLINKS
List of services participating in this BPEL process
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-->
<partnerLinks>
<!--
The 'client' role represents the requester of this service. It is
used for callback. The location and correlation information associated
with the client role are automatically set using WS-Addressing.
-->
<partnerLink name="client" partnerLinkType="client:ConsultaFornecedor"
myRole="ConsultaFornecedorProvider"/>
<partnerLink name="HB_VNDR_ADDR.1" partnerRole="HB_VNDR_ADDR_Provider"
partnerLinkType="ns1:HB_VNDR_ADDR_PartnerLinkType"/>
</partnerLinks>
<!--
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
VARIABLES
List of messages and XML documents used within this BPEL process
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////forumID=212, Hi,

I created a BPEL do call a PeopleSoft Web Service. The call to services works fine, but I'm having problems when I try to copy the values returned by the service to the output variable.

I'm getting
Error in evaluate <from> expression at line "116". The result is empty for the XPath expression : "/ns4:Fornecedor/ns4:Endereco/ns4:Rua"

The service I created call PS to retrieve the vendor address. Follow the xsd created to the reply message.

<?xml version="1.0" encoding="windows-1252" ?>
<schema attributeFormDefault="unqualified"
xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://xmlns.oracle.com/Enterprise/Tools/schemas/HB_VNDR_ADDR_SYNC_RESP.V1"
elementFormDefault="qualified">
<element name="Fornecedor">
<complexType>
<sequence>
<element name="Setid" type="string"/>
<element name="IdFornecedor" type="string"/>
<element name="Endereco">
<complexType>
<sequence>
<element name="Rua" type="string"/>
<element name="Numero" type="string"/>
<element name="Complemento" type="string"/>
<element name="Bairro" type="string"/>
<element name="Cidade" type="string"/>
<element name="Estado" type="string"/>
<element name="Pais" type="string"/>
<element name="CEP" type="string"/>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
</element>
</schema>


Follow the bpel xml created by JDeveloper

<?xml version = "1.0" encoding = "UTF-8" ?>
<!--
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Oracle JDeveloper BPEL Designer

Created: Fri Jul 27 15:54:56 PDT 2007
Author: arthur
Purpose: Synchronous BPEL Process
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
-->
<!--xmlns:ns3="http://xmlns.oracle.com/EnderecoFornecedorResp"-->
<process name="ConsultaFornecedor"
targetNamespace="http://xmlns.oracle.com/ConsultaFornecedor"
xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:ns4="http://xmlns.oracle.com/Enterprise/Tools/schemas/HB_VNDR_ADDR_SYNC_RESP.V1"
xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:client="http://xmlns.oracle.com/ConsultaFornecedor"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
xmlns:ns1="http://xmlns.oracle.com/Enterprise/Tools/services/HB_VNDR_ADDR.1"
xmlns:ehdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
xmlns:ns3="http://xmlns.oracle.com/EnderecoFornecedorResp"
xmlns:ns2="http://xmlns.oracle.com/Enterprise/Tools/schemas/HB_VNDR_ADDR_SYNC_REQ.V1"
xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc">
<!--
///////////////////////////////////////////////////////////////////////////////////////////2
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 29 2007
Added on Jul 31 2007
3 comments
793 views