2

我在 Eclipse 中以调试模式测试了代理服务,它工作正常,但是当我在 Sb 控制台中测试它时,我遇到了上述错误。

下面是我的 Xquery

(:: pragma bea:global-element-parameter parameter="$lookupTradeInRequest1" element="ns2:lookupTradeInRequest" location="../../../../../Interfaces/Schemas/DeviceTradeInService.xsd" ::)
(:: pragma bea:global-element-return element="ns0:InputParameters" location="../../../../../../TargetEER/Resources/DBAdapter/LookupTradeIn/xsd/LookupTradeIn_sp.xsd" ::)

declare namespace ns2 = "http://esp.t-mobile.com/mo";
declare namespace ns1 = "http://esp.t-mobile.com/2012/eo";
declare namespace ns0 = "http://xmlns.oracle.com/pcbpel/adapter/db/sp/lookupTradeIn";
declare namespace xf = "http://tempuri.org/ProductManagement/Transformation/DeviceTradeInService/lookupTradeIn/Request/lookupTradeInRequest_To_cancelTradeInDbRequest/";

declare function xf:lookupTradeInRequest_To_cancelTradeInDbRequest($lookupTradeInRequest1 as element(ns2:lookupTradeInRequest))
as element(ns0:InputParameters) {
    <ns0:InputParameters>
        <ns0:POFFERID>{ data($lookupTradeInRequest1/offerId) }</ns0:POFFERID>
        <ns0:PRMAID>{ data($lookupTradeInRequest1/RMANumber) }</ns0:PRMAID>
        <ns0:PACCOUNTNUMBER>{ data($lookupTradeInRequest1/accountNumber) }</ns0:PACCOUNTNUMBER>
        <ns0:PMSISDN>{ data($lookupTradeInRequest1/MSISDN) }</ns0:PMSISDN>
        <ns0:PSERIALNUMBER>{ data($lookupTradeInRequest1/serialNumber) }</ns0:PSERIALNUMBER>
        <ns0:PHIST>{ data($lookupTradeInRequest1/includeHistory) }</ns0:PHIST>
    </ns0:InputParameters>
};

declare variable $lookupTradeInRequest1 as element(ns2:lookupTradeInRequest) external;

xf:lookupTradeInRequest_To_cancelTradeInDbRequest($lookupTradeInRequest1)
4

2 回答 2

3

问题是 $lookupTradeInRequest1 里面没有任何东西。检查是否正确提取。

于 2012-12-13T14:02:46.077 回答
0

大多数时候命名空间可能没有正确添加。请确保在 osb 中添加了 lookupTradeInRequest1 命名空间的来源。

于 2014-10-06T07:53:11.023 回答