XQuery Transformation in OSB for array of values

Hi,
I have followed the below tuts on the OSB tutorial.
http://www.oracle.com/technetwork/articles/jumpstart-for-osb-development-page--097357.html
Everything works fine. Except for the "GetAllCustomer" branch node.
Step1 : Configured the BusinessService invoking the exposed WebService at localhost:7001 --> it works & returns proper values, testing through both SOAP Ui & OSB business service.
Step 2 : Similarly configured the Proxy services with XQuery Transformation in place. --> it works with no error but not returning any values.
Step 3 : after configuring XQuery Transformation tested it through OEPE --> returns result as expected.
Please suggest where am going ??

use a for loop or position for this..
please check the below threads, for the same..
Re: Assign activity erros with XPath query string returns multiple nodes.
Re: OSB:for-each action working procedure with a sample.

Similar Messages

  • XQuery transformation in OSB

    Hi
    can any body tell how to make xquery transformation for the requirement like source as xml and target as schema,please provide related links if any
    Thanks
    Mani

    http://docs.oracle.com/cd/E13160_01/wli/docs10gr3/dtguide/
    http://docs.oracle.com/cd/E13159_01/osb/docs10gr3/userguide/xquery.html
    Already a thread is available.
    sample examples for doing XQuery transformation within OSB
    Hope this helps.
    Thanks,
    Vijay

  • Convertion of String to XML node using Xquery transformation in OSB

    How to convert string to XML node elementusing a built in function using Xquery transformation in OSB?

    check this out - http://www.javamonamour.org/2011/06/fn-beainlinedxml.html
    if in SOA (BPEL & Mediator) you can use oraext:parseXML.
    you should thoroughly analyse where to implement your requirement as some good practices advise to implement more complex logic in SOA and leave OSB to only connect to the services' endpoints.
    Hope this helps,
    A.

  • How to call business service from xquery transformation in OSB ??

    Hi All,
    How to call business service from xquery transformation in OSB ??
    I need to assign the response variable of Business Service to a target element in XQuery Transformation Mapper file.
    It's urgent.
    Regards,
    Jyoti Nayak

    Transformation is to mapping the source and target of 2 different schemas.
    In your case you should have a XQuery transformation between, your Business Service output schema and the target schema.
    Thanks,
    Vijay

  • Convertion of XML node to string using Xquery transformation in OSB

    How to convert XML node to string using a built in function using Xquery transformation in OSB? In BPEL we have the Xpath extension function ora:getContentAsString() to do the same.

    fn:bea-serialize() function converts xml node to string. but it assigns namespace prefix in every xml node during the conversion. So is there any function to remove the namespace prefix from XML node using Xquery built in function?

  • Problem with Xquery transformation in OSB

    hi,
    My scenario is that I have to break the data in a single tag of xml A, to populate multiple tags of xml B.I am using Xquery transformation and substring function to achieve this. The problem comes when i import the xquery resource in OSB and try to do the transformation in a proxy service it gives the following error
    <con:fault xmlns:con="http://www.bea.com/wli/sb/context">
    <con:errorCode>BEA-382510</con:errorCode>
    <con:reason>
    *OSB Assign action failed updating variable "message": com.bea.wli.common.xquery.XQueryException: Error parsing XML: {err}XP0006: "element {http://schemas.xmlsoap.org/soap/envelope/}Body { {http://www.w3.org/2004/07/xpath-datatypes}untypedAny }": bad value for type element {http://www.example.org/data}data { {http://www.w3.org/2001/XMLSchema}anyType }*
    </con:reason>
    <con:location>
    <con:node>PipelinePairNode1</con:node>
    <con:pipeline>PipelinePairNode1_request</con:pipeline>
    <con:stage>stage1</con:stage>
    <con:path>request-pipeline</con:path>
    </con:location>
    </con:fault>
    the configuration i have done in the proxy service is this::_
    Assign: [XQuery resource..] to [message]
    Delete: [.] in [body]
    Insert [$message] [as first child of][.] in [body]
    The Xquery resource is the .xq file that i have generated for Xquery transformation.
    and i m routing this proxy service to a business service that wud take the XML and dump it to my D drive using file protocol.
    Edited by: rahulc on Oct 12, 2010 12:40 AM
    Edited by: rahulc on Oct 12, 2010 12:41 AM

    My Xquery is this::
    (:: pragma bea:global-element-parameter parameter="$data1" element="ns0:data" location="data.xsd" ::)
    (:: pragma bea:global-element-return element="note" location="note.xsd" ::)
    declare namespace ns0 = "http://www.example.org/data";
    declare namespace xf = "http://tempuri.org/OSB_Try/tag_break/";
    declare function xf:tag_break($data1 as element(ns0:data))
    as element(note) {
    <note>
    <to>
    fn:substring(data($data1),
    1 ,
    6)
    </to>
    <from>
    fn:substring(data($data1),
    7 ,
    6)
    </from>
    <heading>
    fn:substring(data($data1),
    13 ,
    6)
    </heading>
    <body>
    fn:substring(data($data1),
    19 ,
    11)
    </body>
    </note>
    declare variable $data1 as element(ns0:data) external;
    xf:tag_break($data1)
    and my data is this::
    <?xml version="1.0"?>
    <ns0:data xmlns:ns0="http://www.example.org/data">DON'T FORGET ME THIS WEEKEND!</ns0:data>
    and i have tested this zquery for the above data and this is the transformation its doing::
    <note>
    <to>DON'T </to>
    <from>FORGET</from>
    <heading> ME TH</heading>
    <body>IS WEEKEND!</body>
    </note>
    Edited by: rahulc on Oct 12, 2010 1:57 AM

  • Caching XQuery Result in OSB for Performance Improvement

    Hi,
    I have written a custom XPath function in Java to pick the IP address of the machine and registered the same with Oracle Service Bus 11g.
    In the Proxy Message Flow, the server IP is picked at run time by using XQuery that refers to the Custom Function.
    Now, is there a way to cache this result some where in OSB so that in the subsequent execution, the XQuery will pick the cached value from Cache instead of making a call to Custom Function registered with OSB.
    I'm asking this question to understand if performance optimization is possible here by caching the result.
    Thanks,
    CC

    Hi All,
    Have implemented Java Callout and Custom XPath in the same flow and kept current datetime stamp before and after each of these steps to calculate the difference b/w timestamps thereby finding the execution times of Java Callout and Custom XPath steps (this may not be an elegant way of calculating the execution time of each step in OSB message flow, request someone to suggest the most recommended approach here!) ...
    For a load of 10 users, each submitting 10 requests (total 100 requests), following are the execution times (in milliseconds) collected for 10 requests (Server is not occupied with any other activity at this time):
    Java Callout(milliseconds) |     Custom XPath(milliseconds)
    13 |     1
    4 |     0
    5 |     1
    1 |     2
    0 |     1
    1 |      0
    1 |     0
    1 |     0
    1 |     0
    1 |     2
    Where the value of '0' is appearing, I assume it could be some micro seconds. The difference happens to be zero in some cases as we don't have microsecond level logging.
    Thanks,
    CC
    Edited by: Chandu on 19-Jul-2011 22:02

  • Is there a way to use a OSB variable into an XQuery Transformation?

    Hi,
    I´m trying to access to a variable that I declared in the OSB with an Assign, but I´m gettin and Error that the variabe is used but not declared, I also tried to use a OSB variable like $messageID and still have the same Error, has somebody used a previous declared variable into an XQuery Transformation?
    Thanx in Advanced!
    Kind Regards!

    Hi,
    In order to use a varible into a XQuery transformation you need to declare it as an input.
    When you are defining the source types (in the 'new XQuery Transformation' wizard) you should add the variable that you want to use.
    So if you assigned a variable called messageId and you want to use it in your message transformation using a XQuery resource you should add the following in the source types screen:
    - On the Available source targets click 'XML' and then select the xml message that you want to transform and click 'Add'
    - On the Available source targets click 'Simple' and then select 'string' and click 'Add'
    This should declare the xml that you want to transform and the variable that you want to use during the transformation.
    Hope it helps.
    Regards,
    Rodrigo

  • 'Incorrect value type for array element in index N'

    Please help.  Preflight is flagging multiple 'Incorrect value type for array element in index N" > Required key /F is missing >Array element at index 0 is of wrong type' messages for pages throughout my text document with embedded navigation and annotations.What does it mean? Is there anything I can do?
    The origins of the file are from a selection of emails taken from Mail and gmail, and letters probably written on pc (Office) and converted to pdf...
    I'm on Mac Mavericks.
    Thanks for reading.

    What problem are you trying to solve with preflighting? What are you checking for?

  • OSB XQuery transformation help in Proxy Service

    Hi,
    Need help in transformation of the below input to a proxy service
    <soapenv:Body  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
       <InputParams>
         <queryParams>
           <quer:query-params  xmlns:quer="http://www.example.org/QueryParams">
            <param name="test51" value="val3353" />
            <param name="test1" value="val2" />
            <param name="test3" value="val3" />
            <param name="test4" value="val4" />
            <param name="test1" value="val1" />
            <param name="test1" value="val11" />
            <param name="test8" value="val33" />
            <param name="test1" value="val34" />
            <param name="test8" value="val33" />
            <param name="test81" value="val33" />
            <param name="test1" value="val333" />
            <param name="test38" value="val33" />
           </quer:query-params>
         </queryParams>
       </InputParams>
    </soapenv:Body> and want to have the below output after running the below XQuery transformation
    <ns0:mparams>
      <ns0:param name="test1" value="val2" />
      <ns0:param name="test1" value="val1" />
      <ns0:param name="test1" value="val11" />
      <ns0:param name="test1" value="val34" />
      <ns0:param name="test1" value="val333" />
    </ns0:mparams>this is the xquery transformation file
    (:: pragma  parameter="$InputQuery" type="anyType" ::)
    (:: pragma bea:global-element-return element="ns0:mparams" location="../xsd/TargetParams.xsd" ::)
    declare namespace ns0 = "http://www.example.org/QueryParams";
    declare namespace xf = "http://tempuri.org/Simple/transformation/listparams/";
    declare function xf:listparams($InputQuery as element(*))
        as element(ns0:mparams) {
            <ns0:mparams>
                { $InputQuery/ns0:params/param[@name="test1"] }
            </ns0:mparams>
    declare variable $InputQuery as element(*) external;
    xf:listparams($InputQuery)and here is the input to the above .qs
    $body/InputParams/queryParams/qp:query-paramsbut it's the output is always empty and here is what it comes out no matter what the input I give even tried the below inputs but no use
    $body/InputParams/queryParams/qp:query-params
    $body/InputParams/queryParamshere is the output it always prints when logging in the log file
    <quer:mparams xmlns:quer="http://www.example.org/QueryParams"/>Any help is appreciated.
    Thanks

    $InputQuery/ns0:params/param[@name="test1"]Input doesn't have a ns0:params node ..so the xpath here should be $InputQuery/param[@name="test1"]

  • Error in transformation in OSB

    Hi all,
    I am getting following error in transformation in OSB console:
    <con:reason>
        OSB Assign action failed updating variable "PaymentRequestsPCMToEBS": com.bea.wli.common.xquery.XQueryException: Error parsing XML: {err}XP0006: "element {http://schemas.xmlsoap.org/soap/envelope/}Body { {http://www.w3.org/2004/07/xpath-datatypes}untypedAny }": bad value for type element {http://xmlns.oracle.com/pcbpel/adapter/db/top/PollPaymentStatusDB}StgPcmInPaymentReqCollection { {http://www.w3.org/2001/XMLSchema}anyType }
        </con:reason>
    If I test the same in OEPE then there are no errors.
    Here is the payload:
    <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    </soap:Header>
    <pay:InputParameters xmlns:pay="http://xmlns.oracle.com/pcbpel/adapter/db/sp/PaymentStatus">
        <!--Optional:-->
        <pay:P_INT_NAME>string</pay:P_INT_NAME>
        <!--Optional:-->
        <pay:P_SOURCE_MESSAGE_REF>string</pay:P_SOURCE_MESSAGE_REF>
        <!--Optional:-->
        <pay:P_SOURCE_ENTITY_REF>string</pay:P_SOURCE_ENTITY_REF>
        <!--Optional:-->
        <pay:P_HEADER_REC>
            <!--Optional:-->
            <pay:INTERFACE_SOURCE_CODE>string</pay:INTERFACE_SOURCE_CODE>
            <!--Optional:-->
            <pay:BATCH_ID>string</pay:BATCH_ID>
            <!--Optional:-->
            <pay:GROUP_CODE>string</pay:GROUP_CODE>
            <!--Optional:-->
            <pay:HEADER_DESCRIPTION>string</pay:HEADER_DESCRIPTION>
            <!--Optional:-->
            <pay:PR_NUMBER>string</pay:PR_NUMBER>
            <!--Optional:-->
            <pay:HEADER_ATTRIBUTE3>string</pay:HEADER_ATTRIBUTE3>
            <!--Optional:-->
            <pay:HEADER_ATTRIBUTE4>string</pay:HEADER_ATTRIBUTE4>
            <!--Optional:-->
            <pay:NOTE_TO_BUYER>string</pay:NOTE_TO_BUYER>
            <!--Optional:-->
            <pay:DELIVER_TO_REQUESTOR_NAME>string</pay:DELIVER_TO_REQUESTOR_NAME>
            <!--Optional:-->
            <pay:CURRENCY_CODE>string</pay:CURRENCY_CODE>
            <!--Optional:-->
            <pay:EXPENDITURE_ORGANIZATION_CODE>string</pay:EXPENDITURE_ORGANIZATION_CODE>
            <!--Optional:-->
            <pay:ORGANIZATION_CODE>string</pay:ORGANIZATION_CODE>
            <!--Optional:-->
            <pay:SUGGESTED_VENDOR_NAME>string</pay:SUGGESTED_VENDOR_NAME>
            <!--Optional:-->
            <pay:SUGGESTED_VENDOR_ID>1000.00</pay:SUGGESTED_VENDOR_ID>
            <!--Optional:-->
            <pay:SUGGESTED_VENDOR_SITE>string</pay:SUGGESTED_VENDOR_SITE>
            <!--Optional:-->
            <pay:SUGGESTED_VENDOR_SITE_ID>1000.00</pay:SUGGESTED_VENDOR_SITE_ID>
            <!--Optional:-->
            <pay:SUGGESTED_VENDOR_CONTACT>string</pay:SUGGESTED_VENDOR_CONTACT>
            <!--Optional:-->
            <pay:SUGGESTED_VENDOR_CONTACT_ID>1000.00</pay:SUGGESTED_VENDOR_CONTACT_ID>
            <!--Optional:-->
            <pay:SUGGESTED_VENDOR_PHONE>string</pay:SUGGESTED_VENDOR_PHONE>
            <!--Optional:-->
            <pay:ACCRUAL_ACCOUNT_ID>1000.00</pay:ACCRUAL_ACCOUNT_ID>
            <!--Optional:-->
            <pay:VARIANCE_ACCOUNT_ID>1000.00</pay:VARIANCE_ACCOUNT_ID>
            <!--Optional:-->
            <pay:BUDGET_ACCOUNT_ID>1000.00</pay:BUDGET_ACCOUNT_ID>
            <!--Optional:-->
            <pay:AMOUNT>1000.00</pay:AMOUNT>
            <!--Optional:-->
            <pay:CERTIFIED_DATE>2008-09-29T02:49:45</pay:CERTIFIED_DATE>
        </pay:P_HEADER_REC>
        <!--Optional:-->
        <pay:P_LINES_TAB>
            <!--Zero or more repetitions:-->
            <pay:P_LINES_TAB_ITEM>
                <!--Optional:-->
                <pay:QUANTITY>1000.00</pay:QUANTITY>
                <!--Optional:-->
                <pay:UNIT_OF_MEASURE>string</pay:UNIT_OF_MEASURE>
                <!--Optional:-->
                <pay:UNIT_PRICE>1000.00</pay:UNIT_PRICE>
                <!--Optional:-->
                <pay:ITEM_SEGMENT1>string</pay:ITEM_SEGMENT1>
                <!--Optional:-->
                <pay:CHARGE_ACCOUNT_SEGMENT1>string</pay:CHARGE_ACCOUNT_SEGMENT1>
                <!--Optional:-->
                <pay:CHARGE_ACCOUNT_SEGMENT2>string</pay:CHARGE_ACCOUNT_SEGMENT2>
                <!--Optional:-->
                <pay:CHARGE_ACCOUNT_SEGMENT3>string</pay:CHARGE_ACCOUNT_SEGMENT3>
                <!--Optional:-->
                <pay:CHARGE_ACCOUNT_SEGMENT4>string</pay:CHARGE_ACCOUNT_SEGMENT4>
                <!--Optional:-->
                <pay:CHARGE_ACCOUNT_SEGMENT5>string</pay:CHARGE_ACCOUNT_SEGMENT5>
                <!--Optional:-->
                <pay:CHARGE_ACCOUNT_SEGMENT6>string</pay:CHARGE_ACCOUNT_SEGMENT6>
                <!--Optional:-->
                <pay:CHARGE_ACCOUNT_SEGMENT7>string</pay:CHARGE_ACCOUNT_SEGMENT7>
                <!--Optional:-->
                <pay:PROJECT_NUM>string</pay:PROJECT_NUM>
                <!--Optional:-->
                <pay:TASK_NUM>string</pay:TASK_NUM>
                <!--Optional:-->
                <pay:EXPENDITURE_TYPE>string</pay:EXPENDITURE_TYPE>
                <!--Optional:-->
                <pay:DESTINATION_ORGANIZATION_CODE>str</pay:DESTINATION_ORGANIZATION_CODE>
                <!--Optional:-->
                <pay:LINE_ATTRIBUTE2>string</pay:LINE_ATTRIBUTE2>
                <!--Optional:-->
                <pay:NEED_BY_DATE>2014-09-19T00:18:33</pay:NEED_BY_DATE>
                <!--Optional:-->
                <pay:DISTRIBUTION_ATTRIBUTE5>string</pay:DISTRIBUTION_ATTRIBUTE5>
                <!--Optional:-->
                <pay:CURRENCY_UNIT_PRICE>1000.00</pay:CURRENCY_UNIT_PRICE>
                <!--Optional:-->
                <pay:CURRENCY_AMOUNT>1000.00</pay:CURRENCY_AMOUNT>
                <!--Optional:-->
                <pay:ITEM_DESCRIPTION>string</pay:ITEM_DESCRIPTION>
                <!--Optional:-->
                <pay:CATEGORY_SEGMENT1>string</pay:CATEGORY_SEGMENT1>
                <!--Optional:-->
                <pay:TAX_CODE>string</pay:TAX_CODE>
                <!--Optional:-->
                <pay:DISTRIBUTION_ATTRIBUTE9>string</pay:DISTRIBUTION_ATTRIBUTE9>
                <!--Optional:-->
                <pay:REMARKS>string</pay:REMARKS>
                <!--Optional:-->
                <pay:LIABLE_FOR_WHT>string</pay:LIABLE_FOR_WHT>
            </pay:P_LINES_TAB_ITEM>
        </pay:P_LINES_TAB>
    </pay:InputParameters>
    In transformation I am using following code for converting String to Decimal
                        for $vendorSiteId in $stgPcmInPaymentReqCollection1/ns1:StgPcmInPaymentReq[1]/ns1:vendorSiteId
                        return
                            <ns0:SUGGESTED_VENDOR_SITE_ID>{ xs:decimal(data($vendorSiteId)) }</ns0:SUGGESTED_VENDOR_SITE_ID>
    Please let me know if I am missing anything.

    your payload doesn't seem to be correct.
    if you're trying to parse a soap envelop i would expect a soap:Body tag
    <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    </soap:Header>
    <soap:Body>
    <pay:InputParameters xmlns:pay="http://xmlns.oracle.com/pcbpel/adapter/db/sp/PaymentStatus">
    </soap:Body>

  • Using XQuery Transformations

    Hi,
    I am new to OSB and have been trying my hand creating XQuery transformations.
    I have been getting the following error while testing the proxy service:
              (receiving request)
    Initial Message Context
    *          added $body*
    *     <soapenv:Body      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">*
    *     <ord:shipOrder      xmlns:ord="http://com/mycompany/order">*
    *     <ord:ord      xmlns:java="java:com.mycompany.order">*
    *     <java:City>string</java:City>*
    *     <java:FirstName>string</java:FirstName>*
    *     <java:LastName>string</java:LastName>*
    *     <java:OrderNumber>123</java:OrderNumber>*
    *     <java:PhoneNumber>string</java:PhoneNumber>*
    *     <java:PostalCode>string</java:PostalCode>*
    *     <java:ShippingType>ups</java:ShippingType>*
    *     <java:StateProvince>string</java:StateProvince>*
    *     <java:StreetAddress>string</java:StreetAddress>*
    *     <java:StreetAddress2>string</java:StreetAddress2>*
    *     </ord:ord>*
    *     </ord:shipOrder>*
    *     </soapenv:Body>*
    *          added $header*
    *     <soap:Header      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">*
    *     </soap:Header>*
    *          added $inbound*
    *     <con:endpoint      name="ProxyService$Shipping$proxy services$ShippingService_proxy" xmlns:con="http://www.bea.com/wli/sb/context">*
    *     <con:service>*
    *     <con:operation>shipOrder</con:operation>*
    *     </con:service>*
    *     <con:transport>*
    *     <con:uri>*
    *     /Shipping/proxy_services/ShippingService_proxy*
    *     </con:uri>*
    *     <con:mode>request-response</con:mode>*
    *     <con:qualityOfService>best-effort</con:qualityOfService>*
    *     <con:request      xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">*
    *     <tran:headers      xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">*
    *     <http:Content-Type>text/xml; charset=utf-8</http:Content-Type>*
    *     <http:SOAPAction>""</http:SOAPAction>*
    *     </tran:headers>*
    *     <tran:encoding      xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>*
    *     </con:request>*
    *     <con:response      xsi:type="http:HttpResponseMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">*
    *     <tran:headers      xsi:type="http:HttpResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">*
    *     <http:Content-Type>text/xml</http:Content-Type>*
    *     </tran:headers>*
    *     <tran:response-code      xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>*
    *     </con:response>*
    *     </con:transport>*
    *     <con:security>*
    *     <con:transportClient>*
    *     <con:username>weblogic</con:username>*
    *     <con:principals>*
    *     <con:group>AdminChannelUsers</con:group>*
    *     <con:group>Administrators</con:group>*
    *     <con:group>IntegrationAdministrators</con:group>*
    *     </con:principals>*
    *     </con:transportClient>*
    *     </con:security>*
    *     </con:endpoint>*
    *          added $messageID*
    *2984534489141211043-6ec55042.129f907b433.-7fb0*
    *          RouteTo_ShippingTestService*
    Routed Service
    *          Route to: "ShippingTestService"*
    *     $outbound:*
    *     <con:endpoint      name="BusinessService$Shipping$business services$ShippingTestService" xmlns:con="http://www.bea.com/wli/sb/context">*
    *     <con:service>*
    *     <con:operation>shipOrder</con:operation>*
    *     </con:service>*
    *     <con:transport>*
    *     <con:mode>request-response</con:mode>*
    *     <con:qualityOfService>best-effort</con:qualityOfService>*
    *     <con:request      xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">*
    *     <tran:headers      xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">*
    *     <http:Content-Type>text/xml</http:Content-Type>*
    *     <http:SOAPAction>""</http:SOAPAction>*
    *     </tran:headers>*
    *     </con:request>*
    *     </con:transport>*
    *     <con:security>*
    *     <con:doOutboundWss>false</con:doOutboundWss>*
    *     </con:security>*
    *     </con:endpoint>*
    *     $body (request):*
    *     <soapenv:Body      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">*
    *     <ser:shipOrder      xmlns:ser="http://com/mycompany/shipping/services">*
    *     <ser:upsOrder>*
    *     <java:Adr      xmlns:java="java:com.ups.model">*
    *     <java:AddressLine1>string</java:AddressLine1>*
    *     <java:AddressLine2>string</java:AddressLine2>*
    *     <java:City>string</java:City>*
    *     <java:PostalCode>string</java:PostalCode>*
    *     <java:StateProvince>string</java:StateProvince>*
    *     </java:Adr>*
    *     <java:FName      xmlns:java="java:com.ups.model">string</java:FName>*
    *     <java:LName      xmlns:java="java:com.ups.model">string</java:LName>*
    *     <java:OrderID      xmlns:java="java:com.ups.model">123</java:OrderID>*
    *     <java:PhoneNumber      xmlns:java="java:com.ups.model">string</java:PhoneNumber>*
    *     </ser:upsOrder>*
    *     </ser:shipOrder>*
    *     </soapenv:Body>*
    *     $header (request):*
    *     <soap:Header      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">*
    *     </soap:Header>*
    *     $attachments (request):*
    *     <con:attachments      xmlns:con="http://www.bea.com/wli/sb/context"/>*
    Message Context Changes
    *          added $outbound*
    *     <con:endpoint      name="BusinessService$Shipping$business services$ShippingTestService" xmlns:con="http://www.bea.com/wli/sb/context">*
    *     <con:service>*
    *     <con:operation>shipOrder</con:operation>*
    *     </con:service>*
    *     <con:transport>*
    *     <con:uri>*
    *     http://localhost:7051/ShippingServices/Order*
    *     </con:uri>*
    *     <con:mode>request-response</con:mode>*
    *     <con:qualityOfService>best-effort</con:qualityOfService>*
    *     <con:request      xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">*
    *     <tran:headers      xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">*
    *     <http:Content-Type>text/xml; charset=utf-8</http:Content-Type>*
    *     <http:SOAPAction>""</http:SOAPAction>*
    *     </tran:headers>*
    *     <tran:encoding      xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>*
    *     </con:request>*
    *     <con:response      xsi:type="http:HttpResponseMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">*
    *     <tran:headers      xsi:type="http:HttpResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">*
    *     <tran:user-header      name="X-Powered-By" value="Servlet/2.5 JSP/2.1"/>*
    *     <http:Content-Type>text/xml; charset=utf-8</http:Content-Type>*
    *     <http:Date>Fri, 23 Jul 2010 09:05:25 GMT</http:Date>*
    *     <http:Transfer-Encoding>chunked</http:Transfer-Encoding>*
    *     </tran:headers>*
    *     <tran:response-code      xmlns:tran="http://www.bea.com/wli/sb/transports">2</tran:response-code>*
    *     <tran:response-message      xmlns:tran="http://www.bea.com/wli/sb/transports">Internal Server Error</tran:response-message>*
    *     <tran:encoding      xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>*
    *     <http:http-response-code>500</http:http-response-code>*
    *     </con:response>*
    *     </con:transport>*
    *     <con:security>*
    *     <con:doOutboundWss>false</con:doOutboundWss>*
    *     </con:security>*
    *     </con:endpoint>*
    *          added $transformMsg*
    *     <ser:shipOrder      xmlns:ser="http://com/mycompany/shipping/services">*
    *     <ser:upsOrder>*
    *     <java:Adr      xmlns:java="java:com.ups.model">*
    *     <java:AddressLine1>string</java:AddressLine1>*
    *     <java:AddressLine2>string</java:AddressLine2>*
    *     <java:City>string</java:City>*
    *     <java:PostalCode>string</java:PostalCode>*
    *     <java:StateProvince>string</java:StateProvince>*
    *     </java:Adr>*
    *     <java:FName      xmlns:java="java:com.ups.model">string</java:FName>*
    *     <java:LName      xmlns:java="java:com.ups.model">string</java:LName>*
    *     <java:OrderID      xmlns:java="java:com.ups.model">123</java:OrderID>*
    *     <java:PhoneNumber      xmlns:java="java:com.ups.model">string</java:PhoneNumber>*
    *     </ser:upsOrder>*
    *     </ser:shipOrder>*
    *          changed $body*
    *     <env:Body      xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">*
    *     <SOAP-ENV:Fault      xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">*
    *     <faultcode>SOAP-ENV:Client</faultcode>*
    *     <faultstring>*
    *     Failed to get operation name from incoming request*
    *     </faultstring>*
    *     </SOAP-ENV:Fault>*
    *     </env:Body>*
    *          changed $attachments*
    *     <con:attachments      xmlns:con="http://www.bea.com/wli/sb/context"/>*
    *          changed $inbound*
    *     <con:endpoint      name="ProxyService$Shipping$proxy services$ShippingService_proxy" xmlns:con="http://www.bea.com/wli/sb/context">*
    *     <con:service>*
    *     <con:operation>shipOrder</con:operation>*
    *     </con:service>*
    *     <con:transport>*
    *     <con:uri>*
    *     /Shipping/proxy_services/ShippingService_proxy*
    *     </con:uri>*
    *     <con:mode>request-response</con:mode>*
    *     <con:qualityOfService>best-effort</con:qualityOfService>*
    *     <con:request      xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">*
    *     <tran:headers      xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">*
    *     <http:Content-Type>text/xml; charset=utf-8</http:Content-Type>*
    *     <http:SOAPAction>""</http:SOAPAction>*
    *     </tran:headers>*
    *     <tran:encoding      xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>*
    *     </con:request>*
    *     <con:response      xsi:type="http:HttpResponseMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">*
    *     <tran:headers      xsi:type="http:HttpResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">*
    *     <http:Content-Type>text/xml</http:Content-Type>*
    *     </tran:headers>*
    *     <tran:response-code      xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>*
    *     </con:response>*
    *     </con:transport>*
    *     <con:security>*
    *     <con:transportClient>*
    *     <con:username>weblogic</con:username>*
    *     <con:principals>*
    *     <con:group>AdminChannelUsers</con:group>*
    *     <con:group>Administrators</con:group>*
    *     <con:group>IntegrationAdministrators</con:group>*
    *     </con:principals>*
    *     </con:transportClient>*
    *     </con:security>*
    *     </con:endpoint>*
    *          changed $header*
    *     <env:Header      xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"/>*
    *          System Error Handler*
    *$fault:      *
    *     <con:fault      xmlns:con="http://www.bea.com/wli/sb/context">*
    *     <con:errorCode>BEA-380001</con:errorCode>*
    *     <con:reason>Internal Server Error</con:reason>*
    *     <con:location>*
    *     <con:node>RouteTo_ShippingTestService</con:node>*
    *     <con:path>response-pipeline</con:path>*
    *     </con:location>*
    *     </con:fault>*
    Any pointers on why this error is occuring and what needs to be done to resolve it.
    Thanks
    Priya.

    Hi Eric,
    Sorry for the delay in responding.
    I tested just the XQuery with the payload I used in the example. It works perfectly fine. No errors or warnings were raised.
    Regards
    Priya.

  • Urgent-Xquery transform complexType to soapenc-ArrayType

    Gurus,
    I have a requirement wher I need to invoke RPC style webservice from OSB service.
    For this I made following components in OSB
    1.Business service based on rpcstyle wsdl provided by the service provider
    2.Proxy service based on document style wsdl created by me that is exposed to client.
    Now i need to transform input message of my proxy service to the soapenc:arrayType input message of the Business service.
    Looks like xquery does not support soapenc-array type .
    please suggest me work around for this.

    Can you please paste a sample request for both Proxy Service(SOAP-Document) and Business Service(SOAP-RPC)

  • XSL transformation in OSB

    Hi all,
    I am new to OSB. I am having trouble to understand how to do XSL transformation in OSB.
    I have created a business service which targets wsdl with a particular schema for the input message. I have created a separate wsdl for the proxy service with another schema the input message.
    I have to invoke the business service from proxy service. For this, I have added a route node and then a routing activity. In the request line of the routing activity i have used an assign where i will use XSLT to map input message of the proxy wsdl to the input message of the business service.
    How do we access other variables when creating an XSLT?
    Is my approach to the problem correct?
    John

    Hi,
    I am doing that in an replace action.
    In my flow I have the proxy service, then a pipeline, then I have the route.
    In the pipeline I have replaced the input request using a XQuery transformation. When I test it, I see the input is coming till the route.
    But the same pay load is valid and workin if I pass it when I invoke the route service independently. when i use it in the flow its not working.
    Simply it says the system error
    Below is the complete trace data
    (receiving request)
    Initial Message Context
    added $body
    <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <proj:alertReportDataRequestMessage xmlns:proj="http://www.projgis.org/PROJGISMessageSchema">
    <proj:header>
    <proj:RequestId>3333</proj:RequestId>
    <proj:ReqTransactionId>333</proj:ReqTransactionId>
    <proj:ConsumerId>string</proj:ConsumerId>
    <proj:ReqTimestamp>2008-09-29T07:19:45</proj:ReqTimestamp>
    </proj:header>
    <proj:NameOfTenant>string</proj:NameOfTenant>
    <proj:AddressOfTenant>string</proj:AddressOfTenant>
    <proj:RentalAmount>string</proj:RentalAmount>
    <proj:StartDateOfRent>2014-09-19T04:48:33</proj:StartDateOfRent>
    <proj:EndDateOfRent>2006-08-19T22:57:14+05:30</proj:EndDateOfRent>
    <proj:SalesOfOrder>string</proj:SalesOfOrder>
    </proj:alertReportDataRequestMessage>
    </soapenv:Body>
    added $header
    <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    </soap:Header>
    added $inbound
    <con:endpoint name="ProxyService$PROJGISProject$PROXYSERVICE$GetRentalExpiryAlertsData" xmlns:con="http://www.bea.com/wli/sb/context">
    <con:service>
    <con:operation>insertClientReport</con:operation>
    </con:service>
    <con:transport>
    <con:uri>
    /PROJGISProject/PROXYSERVICE/GetRentalExpiryAlertsData
    </con:uri>
    <con:mode>request-response</con:mode>
    <con:qualityOfService>best-effort</con:qualityOfService>
    <con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <http:Content-Type>text/xml; charset=utf-8</http:Content-Type>
    <http:SOAPAction>
    "http://xmlns.bodhtree.com/GetRentalExpiryAlertsData/insertClientReport"
    </http:SOAPAction>
    </tran:headers>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
    </con:request>
    <con:response xsi:type="http:HttpResponseMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <http:Content-Type>text/xml</http:Content-Type>
    </tran:headers>
    <tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
    </con:response>
    </con:transport>
    <con:security>
    <con:transportClient>
    <con:username><anonymous></con:username>
    </con:transportClient>
    </con:security>
    </con:endpoint>
    added $messageID
    2570677769696620240-29ef401f.12cef26de6e.-7ef1
    PipelinePairNode1
    stage2
    Message Context Changes
    changed $body
    <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <ins:ClientReportCollection xmlns:ins="http://xmlns.oracle.com/pcbpel/adapter/db/top/InsertClientReportTable">
    <ins:ClientReport>
    <ins:alertNo>1</ins:alertNo>
    <ins:tenentName>string</ins:tenentName>
    <ins:address>string</ins:address>
    <ins:rentalAmt>string</ins:rentalAmt>
    <ins:startDate>2014-09-19T04:48:33</ins:startDate>
    <ins:endDate>2006-08-19T22:57:14+05:30</ins:endDate>
    <ins:salesDocument>string</ins:salesDocument>
    <ins:transId>333</ins:transId>
    </ins:ClientReport>
    </ins:ClientReportCollection>
    </soapenv:Body>
    changed $inbound
    <con:endpoint name="ProxyService$PROJGISProject$PROXYSERVICE$GetRentalExpiryAlertsData" xmlns:con="http://www.bea.com/wli/sb/context">
    <con:service>
    <con:operation>insert</con:operation>
    </con:service>
    <con:transport>
    <con:uri>
    /PROJGISProject/PROXYSERVICE/GetRentalExpiryAlertsDataPush
    </con:uri>
    <con:mode>request</con:mode>
    <con:qualityOfService>best-effort</con:qualityOfService>
    <con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <http:Content-Type>text/xml; charset=utf-8</http:Content-Type>
    <http:SOAPAction>
    "http://xmlns.bodhtree.com/GetRentalExpiryAlertsData/insertClientReport"
    </http:SOAPAction>
    </tran:headers>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
    </con:request>
    <con:response xsi:type="http:HttpResponseMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <http:Content-Type>text/xml</http:Content-Type>
    </tran:headers>
    <tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
    </con:response>
    </con:transport>
    <con:security>
    <con:transportClient>
    <con:username><anonymous></con:username>
    </con:transportClient>
    </con:security>
    </con:endpoint>
    changed $header
    <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    </soap:Header>
    RouteNode1
    Routed Service
    Route to: "GetRentalExpiryAlertsDataPush"
    $outbound:
    <con:endpoint name="ProxyService$PROJGISProject$PROXYSERVICE$GetRentalExpiryAlertsDataPush" xmlns:con="http://www.bea.com/wli/sb/context">
    <con:service>
    <con:operation>insertClientReport</con:operation>
    </con:service>
    <con:transport>
    <con:mode>request</con:mode>
    <con:qualityOfService>best-effort</con:qualityOfService>
    <con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <http:Content-Type>text/xml</http:Content-Type>
    </tran:headers>
    </con:request>
    </con:transport>
    <con:security>
    <con:doOutboundWss>false</con:doOutboundWss>
    </con:security>
    </con:endpoint>
    $body (request):
    <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <ins:ClientReportCollection xmlns:ins="http://xmlns.oracle.com/pcbpel/adapter/db/top/InsertClientReportTable">
    <ins:ClientReport>
    <ins:alertNo>1</ins:alertNo>
    <ins:tenentName>string</ins:tenentName>
    <ins:address>string</ins:address>
    <ins:rentalAmt>string</ins:rentalAmt>
    <ins:startDate>2014-09-19T04:48:33</ins:startDate>
    <ins:endDate>2006-08-19T22:57:14+05:30</ins:endDate>
    <ins:salesDocument>string</ins:salesDocument>
    <ins:transId>333</ins:transId>
    </ins:ClientReport>
    </ins:ClientReportCollection>
    </soapenv:Body>
    $header (request):
    <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    </soap:Header>
    $attachments (request):
    <con:attachments xmlns:con="http://www.bea.com/wli/sb/context"/>
    Message Context Changes
    added $outbound
    <con:endpoint name="ProxyService$PROJGISProject$PROXYSERVICE$GetRentalExpiryAlertsDataPush" xmlns:con="http://www.bea.com/wli/sb/context">
    <con:service>
    <con:operation>insertClientReport</con:operation>
    </con:service>
    <con:transport>
    <con:uri>
    /PROJGISProject/PROXYSERVICE/GetRentalExpiryAlertsDataPush
    </con:uri>
    <con:mode>request</con:mode>
    <con:qualityOfService>best-effort</con:qualityOfService>
    <con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <http:Content-Type>text/xml; charset=utf-8</http:Content-Type>
    </tran:headers>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
    </con:request>
    <con:response xsi:type="http:HttpResponseMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <http:Content-Type>text/xml</http:Content-Type>
    </tran:headers>
    <tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">1</tran:response-code>
    </con:response>
    </con:transport>
    <con:security>
    <con:doOutboundWss>false</con:doOutboundWss>
    </con:security>
    </con:endpoint>
    changed $body
    <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <ins:ClientReportCollection xmlns:ins="http://xmlns.oracle.com/pcbpel/adapter/db/top/InsertClientReportTable">
    <ins:ClientReport>
    <ins:alertNo>1</ins:alertNo>
    <ins:tenentName>string</ins:tenentName>
    <ins:address>string</ins:address>
    <ins:rentalAmt>string</ins:rentalAmt>
    <ins:startDate>2014-09-19T04:48:33</ins:startDate>
    <ins:endDate>2006-08-19T22:57:14+05:30</ins:endDate>
    <ins:salesDocument>string</ins:salesDocument>
    <ins:transId>333</ins:transId>
    </ins:ClientReport>
    </ins:ClientReportCollection>
    </soapenv:Body>
    changed $inbound
    <con:endpoint name="ProxyService$PROJGISProject$PROXYSERVICE$GetRentalExpiryAlertsData" xmlns:con="http://www.bea.com/wli/sb/context">
    <con:service>
    <con:operation>insert</con:operation>
    </con:service>
    <con:transport>
    <con:uri>
    /PROJGISProject/PROXYSERVICE/GetRentalExpiryAlertsDataPush
    </con:uri>
    <con:mode>request</con:mode>
    <con:qualityOfService>best-effort</con:qualityOfService>
    <con:request xsi:type="http:HttpRequestMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpRequestHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <http:Content-Type>text/xml; charset=utf-8</http:Content-Type>
    <http:SOAPAction>
    "http://xmlns.bodhtree.com/GetRentalExpiryAlertsData/insertClientReport"
    </http:SOAPAction>
    </tran:headers>
    <tran:encoding xmlns:tran="http://www.bea.com/wli/sb/transports">utf-8</tran:encoding>
    </con:request>
    <con:response xsi:type="http:HttpResponseMetaData" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <tran:headers xsi:type="http:HttpResponseHeaders" xmlns:tran="http://www.bea.com/wli/sb/transports">
    <http:Content-Type>text/xml</http:Content-Type>
    </tran:headers>
    <tran:response-code xmlns:tran="http://www.bea.com/wli/sb/transports">0</tran:response-code>
    </con:response>
    </con:transport>
    <con:security>
    <con:transportClient>
    <con:username><anonymous></con:username>
    </con:transportClient>
    </con:security>
    </con:endpoint>
    changed $header
    <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    </soap:Header>
    Service Error Handler
    $fault: <con:fault xmlns:con="http://www.bea.com/wli/sb/context">
    <con:errorCode>BEA-380000</con:errorCode>
    <con:location>
    <con:node>RouteNode1</con:node>
    <con:path>response-pipeline</con:path>
    </con:location>
    </con:fault>
    System Error Handler
    $fault: <con:fault xmlns:con="http://www.bea.com/wli/sb/context">
    <con:errorCode>BEA-380000</con:errorCode>
    <con:location>
    <con:node>RouteNode1</con:node>
    <con:path>response-pipeline</con:path>
    </con:location>
    </con:fault>
    Is there any place where I can refer how to work with passing data from current flow to the next flow.
    Do i need to do the transformation before invoking the route, or inside the route service request pipeline?
    Do I need to change the method, URI etc as wells? before invoking the routing?
    --Khaleel                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to validate a date in xquery transformation

    i am doing the xquery transformation for mfl(non-xml) and xml
    i have a date-pickup and i should validate this field as my datatype is date , instead of date i am getting the data as 00000000 ,my date-pickup format is yyyymmdd
    can we do a validation for this specific field and all the failed date validations should be written as blank tag in xsd
    Please give me a suggestion for this

    Hi,
    There's a xquery extension function that you can use for that
    fn-bea:date-from-string-with-format
    The fn-bea:date-from-string-with-format() function returns a new date value from a string source value according to the specified pattern.
    The function has the following signature:
    fn-bea:date-from-string-with-format($format as xs:string?, $dateString as xs:string?) as xs:date?
    where $format is the pattern and $dateString is the date. For more information about specifying patterns, see Date and Time Patterns.
    Examples:
    fn-bea:date-from-string-with-format("yyyy-MM-dd G", "2005-06-22 AD") returns the specified date in the current time zone.
    fn-bea:date-from-string-with-format("yyyy-MM-dd", "2002-July-22") generates an error because the date string does not match the specified format.
    fn-bea:date-from-string-with-format(“yyyy-MMM-dd”, “2005-JUL-22”) returns the specified date in the current time zone.
    http://docs.oracle.com/cd/E13162_01/odsi/docs10gr3/xquery/extensions.html#wp1297249
    Cheers,
    Vlad
    It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts)
    https://forums.oracle.com/forums/ann.jspa?annID=893

Maybe you are looking for

  • What is the patfrom_id for linux_x86_64

    HI I am trying to find out what is the platform_id for a database running on the linux_x86_64 platform? I do not have a database if this type available to me and need to know as we are looking to use data guard to migrate an existing 10.2.0.3 databas

  • Secondary Axis Disappears in Pivot Table Chart

    I'm using Excel 2010 and have a pivot chart based off of a PowerPivot table with multiple slicers. The X or secondary axis disappears randomly and the only way to get it to reappear is to go back into the chart property and re-assign the value to the

  • Pdf viewer/editor queries

    I am currently using Okular and acroread. Occasionally pdfedit though I don't like it much - the typewriter-type tool isn't as convenient as Acrobat's and I find Acrobat infuriating to being with. Okular is pretty nice but has a couple of drawbacks:

  • Can't query sql data

    I'm connecting fine to a SQL DB. Used the "help" sample in LS 8.0 help to enter an ID that should query the data for a specific data set. Using "click" and "FormCalc", I get an error. This is my code: //Change the commandType from TABLE to TEXT. TEXT

  • Can we be done loading driver and registering driver by Using 'new" Operat.

    Dear Sir.. Can we directly create the instance of any driver class by using the "new" operator and by this object can we call any method like getConnection() etc,will it return connection instance. Is it necessary these all task from loading to regis