Returning CDATA using XQuery in ALSB

I would like to know how to pass CDATA section using XQuery in ALSB. This is required as the client application wants certain data with XML tags as string. I used the following:
<web:getFlightDetails xmlns:web="http://webservices.ods.mwcoe.united.com">
<web:getFlightDetailsResponse>
<XMLBODY>
{ fn:concat("<![CDATA[" ),  " ") }
{ $body/FML32/* }
{ fn:concat(("]]>"), " ") }
</XMLBODY>
</web:getFlightDetailsResponse>
</web:getFlightDetails>
But I get the following response:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<web:getFlightDetails xmlns:web="http://webservices.ods.mwcoe.united.com">
<web:getFlightDetailsResponse>
<XMLBODY>
" & l t ; " ![CDATA[
<STATDES>N/A</STATDES>
<BAGFIN>-1</BAGFIN>
<INBLK>2007-10-23 07:33:00</INBLK>
<FLTDETORIG>SFO</FLTDETORIG>
]] "& g t ;"
</XMLBODY>
</web:getFlightDetailsResponse>
</web:getFlightDetails>
</soapenv:Body>
</soapenv:Envelope>
Basically the question is how do I pass < & > and not " & l t ;" and " & g t ;". Please space padding is done on purpose here.
Thanks,
Channu Kambalyal
United Airlines.

here we get it done using instead of
{ fn:concat("<![CDATA[" ), " ") }
{ $body/node() }
{ fn:concat(("]]>"), " ") }
this:
{ fn:concat("<![CDATA[" ), $body/node(), "]]>") }
getting a correct response
ex:
<XMLBODY>
<![CDATA[
<STATDES>N/A</STATDES>
]]>
</XMLBODY>
but, if there's any namespace on the variable node, we get all replace by <
ex:
<XMLBODY>
" & l t ; " ![CDATA[
& l t ; a:STATDES xmlns:a="http://localhost/a">N/A & l t ; /a:STATDES>
]] "& g t ;"
</XMLBODY>
do anybody have any idea why this happens?

Similar Messages

  • Using XQuery to filder CDATA section

    How do I filter value inside CDATA section using XQUERY in SELECT statement?
    I am using value function.
    <DomainConfig>
         <typeOfDBConnection>
               <![CDATA[#MS SQL]]>
         </typeOfDBConnection>
    </DomainConfig>

    declare @x xml = '<DomainConfig>
    <typeOfDBConnection>
    <![CDATA[#MS SQL]]>
    </typeOfDBConnection>
    </DomainConfig>
    select
    ltrim(rtrim(replace(replace(replace
    (@x.value ('(/DomainConfig/typeOfDBConnection/text())[1]', 'varchar(100)') , char(10), ''), char(13), ''), char(9), '')
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

  • Output XML with a default namespace using XQuery

    I'm having a problem with namespaces in an XQuery within ALSB.
    We receive XML from a file which doesn't have any namespace and have to transform it into a different structure, giving it a default namespace such as below:
    Input XML
    <inputRoot>
         <inputAccountName>Joe Bloggs</inputAccountName>
         <inputAccountNumber>10938393</inputAccountNumber>
    </inputRoot>
    Desired output XML
    <outputRoot xmlns="http://www.example.org/outputSchema">
         <outputAccounts>
              <outputAccountName>Joe Bloggs</outputAccountName>
              <outputAccountNumber>10938393</outputAccountNumber>
         </outputAccounts>
    </outputRoot>
    When I attempt to do this using XQuery mapper tool, I end up with a namespace prefix on the outputRoot. The XQuery and result follows:
    XQuery
    declare namespace xf = "http://tempuri.org/XQueryProject/scratchTransformations/test/";
    declare namespace ns0 = "http://www.example.org/outputSchema";
    declare function xf:test($inputRoot1 as element(inputRoot))
    as element(ns0:outputRoot) {
    <ns0:outputRoot>
    <outputAccounts>
    <outputAccountName>{ data($inputRoot1/inputAccountName) }</outputAccountName>
    <outputAccountNumber>{ data($inputRoot1/inputAccountNumber) }</outputAccountNumber>
    </outputAccounts>
    </ns0:outputRoot>
    declare variable $inputRoot1 as element(inputRoot) external;
    xf:test($inputRoot1)
    Result
    <ns0:outputRoot xmlns:ns0="http://www.example.org/outputSchema">
         <outputAccounts>
              <outputAccountName>inputAccountName_1</outputAccountName>
              <outputAccountNumber>inputAccountNumber_1</outputAccountNumber>
         </outputAccounts>
    </ns0:outputRoot>
    How can I write the XQuery in such a way thay the namespace prefix isn't output? I've tried many different methods with no success. I can't declare a default element namespace because my input element doesn't have a namespace
    Thanks in advance

    I spoke too soon, it didn't work quite as perfectly as I'd thought :-) It turns out our client can't handle the xml with the namespace prefix but we've worked out the solution to return XML in the format we originally needed.
    Example below:
    XQuery
    declare namespace xf = "http://tempuri.org/XQueryProject/scratchTransformations/test/";
    declare default element namespace "http://www.example.org/outputSchema";
    declare namespace ns1 = ""
    declare function xf:test($inputRoot1 as element(ns1:inputRoot))
    as element(outputRoot) {
    <outputRoot>
    <outputAccounts>
    <outputAccountName>{ data($inputRoot1/inputAccountName) }</outputAccountName>
    <outputAccountNumber>{ data($inputRoot1/inputAccountNumber) }</outputAccountNumber>
    </outputAccounts>
    </outputRoot>
    declare variable $inputRoot1 as element(inputRoot) external;
    xf:test($inputRoot1)

  • How to group similar values using XQuery

    I have a table Employee with following columns
    EmpNo number,
    Title varchar2(100),
    First_Name varchar2(100),
    Last_Name varchar2(100),
    1, Miss, A, B (Sample record in Employee Table)
    There is an audit table Employee_A with columns
    ID number (PK),
    EmpNo number,
    Field_Name varchar2(100),
    Old_Value varchar2(100),
    New_Value varchar2(100)
    An update statement causes the Title of EmpNo=1 to change from Miss to Mrs and Last_Name from B to C. Hence the audit table has two records
    1,1,Title, Miss,Mrs
    2,1,Last_Name, B, C
    I need to generate an xml which is as follows:
    <Tag>
    <Operation>Update</Operation>
    <Key>1</Key>
    <Data>
    <Field>
    <Column>Title</Column>
    <NewValue>Mrs</NewValue>
    </Field>
    <Field>
    <Column>Last_Name</Column>
    <NewValue>C</NewValue>
    </Field>
    <Data>
    </Tag>
    How can we do this using XQuery?
    If not, can we do this using xmlelement, xmlagg?

    I tried the following:
    SELECT XMLQuery('<Dummy>
    {for $c in ora:view("Employee"),
               $ca in ora:view("Employee_A")
           let $emp := $c/ROW/EMPNO/text(),
               $emp_a := $ca/ROW/EMPNO/text(),
               $field := $ca/ROW/FIELD_NAME/text(),
               $new := $ca/ROW/NEW_VALUE/text()
               where $emp = $emp_a
           return
           <Tag>
             <operation>Update</operation>
             <key_id>$emp_a</key_id>
             <Data>
             <Field>
               <Column>{$field}</ent_id>
    <NewValue>{$new}</NewValue>
    </Field>
    </Data>
    </Tag>
    }</Dummy' RETURNING CONTENT)
    FROM dual;
    The output that I'm getting is
    <Dummy
    <Tag>
    <Operation>Update</Operation>
    <Key>1</Key>
    <Data>
    <Field>
    <Column>Title</Column>
    <NewValue>Mrs</NewValue>
    </Field>
    <Data>
    </Tag>
    <Tag>
    <Operation>Update</Operation>
    <Key>1</Key>
    <Data>
    <Field>
    <Column>Last_Name</Column>
    <NewValue>C</NewValue>
    </Field>
    <Data>
    </Tag>
    </Dummy>
    Two <Tag></Tag> gets created - one for each update entry. Please help

  • How to pass multiple records to target side using xquery

    Hi Everybody,
    I am using xquery transformation.
    Input: Source payload contains 5 variables.
    Target payload contains 5 variables.
    I have input with payload with multiple instance like:
    <Input>
    <payload1>
    <a>1<a>
    <b>2<b>
    <c>3<c>
    <d>4<d>
    <e>5<e>
    </payload1>
    <payload1>
    <a>6<a>
    <b>7<b>
    <c>8<c>
    <d>9<d>
    <e>10<e>
    </payload1>
    </Input>
    So my requirement is to pass above records into target side,
    So I am using xquery Transformation.
    I have written code as follows.
    (:: pragma bea:global-element-parameter parameter="$tHRecAdv1" element="ns0:THRecAdv" location="../XMLSchemas/THRecAdv.xsd" ::)
    (:: pragma bea:global-element-return element="ns1:ShipmentReceiptEBO" location="../../AIAReferenceModelProject/EnterpriseObjectLibrary/Core/EBO/ShipmentReceipt/V1/ShipmentReceiptEBO.xsd" ::)
    declare namespace ns2 = "http://xmlns.oracle.com/EnterpriseObjects/Core/Custom/EBO/ShipmentReceipt/V1";
    declare namespace ns1 = "http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/ShipmentReceipt/V1";
    declare namespace ns4 = "http://xmlns.oracle.com/EnterpriseObjects/Core/Common/V2";
    declare namespace ns3 = "http://xmlns.oracle.com/EnterpriseObjects/Core/Custom/Common/V2";
    declare namespace ns0 = "http://diversey.com/THRecAdv";
    declare namespace xf = "http://tempuri.org/ShipmentReceiptServicesProject/XMLTransformations/THRecAdvFile_ShipmentReceiptEBO_JDE_XQuery/";
    declare function xf:THRecAdvFile_ShipmentReceiptEBO_JDE_XQuery($tHRecAdv1 as element(ns0:THRecAdv))
    as element(ns1:ShipmentReceiptEBO) {
    for $THRecAdvFields  in $tHRecAdv1/ns0:THRecAdvFields
    return
    <ns1:ShipmentReceiptEBO>
    <ns4:Identification>
    <ns4:BusinessComponentID>{ data($THRecAdvFields/ns0:JD_WHSE_Code) }</ns4:BusinessComponentID>
    <ns4:ID schemeID = "{ (data($THRecAdvFields/ns0:JD_PO_Number)) }"
    schemeVersionID = "{ data($THRecAdvFields/ns0:JD_PO_Type) }">{ data($THRecAdvFields/ns0:WMS_InternalPONumber) }</ns4:ID>
    <ns4:ApplicationObjectKey>
    <ns4:ID>{ data($THRecAdvFields/ns0:JD_BranchPlant) }</ns4:ID>
    </ns4:ApplicationObjectKey>
    <ns4:Revision>
    <ns4:Reason>{ data($THRecAdvFields/ns0:ReturnReceiptReasonCode) }</ns4:Reason>
    </ns4:Revision>
    </ns4:Identification>
    <ns1:ExpectedReceiptDate>{ data($THRecAdvFields/ns0:WMS_ReceiptDate) }</ns1:ExpectedReceiptDate>
    <ns4:InvoiceReference>
    <ns4:InvoiceIdentification>
    <ns4:ID>{ data($THRecAdvFields/ns0:JDE_SupplierInvoiceNumber) }</ns4:ID>
    </ns4:InvoiceIdentification>
    </ns4:InvoiceReference>
    <ns1:ShipmentReceiptLine actionCode = "{ data($THRecAdvFields/ns0:ActionFlag) }">
    <ns4:Identification>
    <ns4:ID schemeID = "{ data($THRecAdvFields/ns0:JD_PO_LineNumber) }"
    schemeVersionID = "{ data($THRecAdvFields/ns0:ExternPONumber) }">{ data($THRecAdvFields/ns0:WMS_ReceiptNumber) }</ns4:ID>
    <ns4:ContextID>{ data($THRecAdvFields/ns0:WMSReceivingClerk) }</ns4:ContextID>
    <ns4:ApplicationObjectKey>
    <ns4:ID schemeID = "{ data($THRecAdvFields/ns0:BatchNumber) }"
    schemeVersionID = "{ data($THRecAdvFields/ns0:BatchLineNumber) }">{ data($THRecAdvFields/ns0:JD_LocationCode) }</ns4:ID>
    </ns4:ApplicationObjectKey>
    <ns4:AlternateObjectKey>
    <ns4:ID>{ data($THRecAdvFields/ns0:SupplierCode) }</ns4:ID>
    <ns4:ContextID>{ data($THRecAdvFields/ns0:LineNumber_Or_SequenceNumber) }</ns4:ContextID>
    </ns4:AlternateObjectKey>
    <ns4:Revision>
    <ns4:Label>{ data($THRecAdvFields/ns0:Records) }</ns4:Label>
    </ns4:Revision>
    </ns4:Identification>
    <ns1:ReceivedQuantity unitCode = "{ data($THRecAdvFields/ns0:ReceiptUOM) }">{ data($THRecAdvFields/ns0:UnitReceipt) }</ns1:ReceivedQuantity>
    <ns1:SourceDocumentTypeCode>{ data($THRecAdvFields/ns0:SKU_Code) }</ns1:SourceDocumentTypeCode>
    <ns1:DestinationTypeCode>{ data($THRecAdvFields/ns0:DestinationProcessFlag) }</ns1:DestinationTypeCode>
    <ns1:Comment>{ data($THRecAdvFields/ns0:Remarks) }</ns1:Comment>
    <ns4:Status>
    <ns4:Code>{ data($THRecAdvFields/ns0:ProcessSourceFlag) }</ns4:Code>
    <ns4:EffectiveDateTime>{ data($THRecAdvFields/ns0:ADDDATE) }</ns4:EffectiveDateTime>
    </ns4:Status>
    <ns1:ShipmentReceiptTransaction>
    <ns1:ShipmentReceiptTransactionLot>
    <ns1:ShipmentReceiptItemLotReference>
    <ns1:ExpirationDate>{ data($THRecAdvFields/ns0:ExpiryDate) }</ns1:ExpirationDate>
    <ns1:CreationDateTime>{ data($THRecAdvFields/ns0:ProductionDate) }</ns1:CreationDateTime>
    </ns1:ShipmentReceiptItemLotReference>
    </ns1:ShipmentReceiptTransactionLot>
    </ns1:ShipmentReceiptTransaction>
    </ns1:ShipmentReceiptLine>
    </ns1:ShipmentReceiptEBO>
    declare variable $tHRecAdv1 as element(ns0:THRecAdv) external;
    xf:THRecAdvFile_ShipmentReceiptEBO_JDE_XQuery($tHRecAdv1)
    But while importing this code to OSB,and tested it ,
    With 1 payload it successfully shows the data in Target side,
    But while testing with multiple line items,i am getting an error as follows.
    *Error executing the XQuery transformation: line 14, column 17: {err}FORG0005: expected exactly one item, got 2+ items*
    So please provide me the steps how to pass multiple records to target side using xquery.
    Regards,
    Jyoti Nayak

    Hi Jyoti Nayak,
    You have to do something like the example bellow, you can not just repeat the inner element, you will need an outer "container" tag. So you will have to change the target element of your xq transformation.
    declare function xf:setToList($set1 as element(ns0:set))
    as element(ns0:list) {
    <ns0:list>
    for $pair in $set1/ns0:pair
    return
    <ns0:entry>
    <ns0:key>{ data($pair/ns0:key) }</ns0:key>
    <ns0:value>{ data($pair/ns0:value) }</ns0:value>
    </ns0:entry>
    </ns0:list>
    Cheers,
    Vlad
    Give points - it is good etiquette to reward an answerer points (5 - helpful; 10 - correct) for their post if they answer your question. If you think this is helpful, please consider giving points

  • Querying RESOURCE_VIEW using XQuery

    Hi all:
    Anybody knows the best way to query RESOURCE_VIEW using XQuery to show directory listing information as an example.
    For example, I want to produce an XML Document with something like this using XQuery:
    <directoryListing>
    <dir anyPath="/public/JURRICULUM/cms/en">
    <DisplayName xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd">en</DisplayName>
    </dir>
    <dir anyPath="/public/JURRICULUM/cms/en/live">
    <DisplayName xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd">live</DisplayName>
    </dir>
    <dir anyPath="/public/JURRICULUM/cms/es">
    <DisplayName xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd">es</DisplayName>
    </dir>
    <dir anyPath="/public/JURRICULUM/cms/es/live">
    <DisplayName xmlns="http://xmlns.oracle.com/xdb/XDBResource.xsd">live</DisplayName>
    </dir>
    </directoryListing>
    I made this result by executing this query:
    SELECT XMLQuery('declare namespace res = "http://xmlns.oracle.com/xdb/XDBResource.xsd";
    <directoryListing>
    {for $i in $directoryListing/dir
    where $i/res:Resource/@Container="true"
    return
    <dir anyPath="{$i/@ANY_PATH}">
    {$i/res:Resource/res:DisplayName}
    </dir>}
    </directoryListing>'
    PASSING (
    select XMLAgg(XMLElement("dir",XMLATTRIBUTES(any_path,resid),res))
    from resource_view where
    under_path(res,'/public/JURRICULUM/cms')=1
    ) as "directoryListing" RETURNING CONTENT).getStringVal()
    FROM dual
    I had injected resource_view's content as an argument.
    Another way is to use ora:view() extension function, but I can't use under_path functionality for example.
    Is there some extension funcion like doc() or collection() but instead of returning the content of the document, returning the information of resource_view asociated to the URI?
    Is the above query optimal in term of execution plan?
    I tested it with JDeveloper and shows an execution plan similar to the query on resource_view alone.
    Best regards, Marcelo.

    Hi all:
    I had implemented an XQuery extension library ready to run inside the Oracle JVM, but it can run outside as well.
    The code is on the XQuery forums:
    How to write an XQuery Extension library
    I tested outside the database and the result is:
    /usr/java/jdk1.5.0_04/bin/java -hotspot -classpath ... com.prism.cms.xquery.Application1 /public/PCT_ADMIN/cms/es/3-AcercaParque/ 7934
    testXQL elapsed time: 3094
    testXQ elapsed time: 2164
    Running as Java Stored Procedure, it looks like this:
    SQL> exec testXQ('/public/PCT_ADMIN/cms/es/3-AcercaParque/','7934')
    testXQL elapsed time: 943
    testXQ elapsed time: 854
    PL/SQL procedure successfully completed.
    Obviously running as Java Stored procedure its around 3.5 faster than a regular application.
    Injecting the resource_view content as an argument instead of using an XQuery extension library seem to be equals (943 ~ 854), so I'll use the extension library mechanish for clearlying on the code.
    Best regards, Marcelo

  • How to connect to Oracle Database table using xquery (using 'ora:view')

    Hi,
    I am new to this forum and JDeveloper, but I am trying to use xquery accessing an Oracle database, but I can't seem to get it working, nor can I find what I am doing wrong.
    The xquery statement I (try to) use is:
    for $x in ora:view("TOU_TEST")
    return $x/txt
    (In which "TOU_TEST" is the table with column 'txt')
    But I get this "Dutch" error message:
    Er moet een JDBC-standaardverbinding beschikbaar zijn voor de functie 'ora:view'.
    (basically giving an error message about the default JDBC connection).
    I've searched a lot (Technet, Google, JDeveloper Help), but can't find out what I am doing wrong.
    Could you tell me what I am doing wrong/ how to solve this?
    Thanks a lot.
    Greetings,
    Tom

    Hi Friend,
    Try this.
    "Declaration.
    data : begin of zemployee.
               Include structure zeployee542.
    data : end of zemployee.
    *in screen give field name as <zemployee-Fieldname>
    case 'OK_CODE'.
    WHEN 'SAVE'.
          perform fill_data.
    ENDCASE.
    form FILL_DATA .
    move-corresponding zemployee  to  zeployee542.
    insert zeployee542.
    clear : zemployee, zeployee542.
    endform. " FILL_DATA
    Reward if you find usefull

  • Unable to collect Product Return History using legacy collection

    Hi,
    I am facing issue in collecting product return history using legacy collection, File Upload (User File Upload) & Loader Worker erroring out as below. As I observe, its inserting space after .ctl, .dis & .bad file path.
    Can some one guide me how to reslove below issue.
    Loader Worker
    Argument 1 (CTRL_FILE) = /u02/oracle/xxxxx/inst/apps/rights_apps/logs/appl/conc/out/5913849MSD_DEM_RETURN_HISTORY .ctl
    Argument 2 (DATA_FILE) = /u02/oracle/xxxxx/inst/apps/rights_apps/logs/appl/conc/out/5913849PrdRetHist.dat
    Argument 3 (DISCARD_FILE) = /u02/oracle/xxxxx/inst/apps/rights_apps/logs/appl/conc/out/5913849MSD_DEM_RETURN_HISTORY .dis
    Argument 4 (BAD_FILE) = /u02/oracle/xxxxx/inst/apps/rights_apps/logs/appl/conc/out/5913849MSD_DEM_RETURN_HISTORY .bad
    Argument 5 (LOG_FILE) =
    Argument 6 (NUM_OF_ERRORS) = 1000000
    ===================================================================
    plan_id:0 plan_type:0 planning_engine_type:1
    Creating dummy log file ...
    Parent Program Name: MSCLOADS
    This is NOT as part of a Plan run.
    NLS_LANG original American_America.AL32UTF8 alt American_America.UTF8
    LRM-00112: multiple values not allowed for parameter 'control'
    SQL*Loader: Release 10.1.0.5.0 - Production on Tue Mar 11 19:58:20 2014
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    SQL*Loader-100: Syntax error on command-line
    Program exited with status 1
    APP-FND-01630: Cannot open file /u02/oracle/xxxxx/inst/apps/rights_apps/appltmp/OFq98wrx.t for reading
    Cause: USDINS encountered an error when attempting to open file /u02/oracle/xxxxx/inst/apps/rights_apps/appltmp/OFq98wrx.t for reading.
    Action: Verify that the filename is correct and that the environment variables controlling that filename are correct.
    Action: If the file is opened in read mode, check that the file exists. Check that you have privileges to read the file in the file directory. Contact your system administrator to obtain read privileges.
    Action: If the file is opened in write or append mode, check that you have privileges to create and write files in the file directory. Contact your system administrator to obtain create and write privileges.
    ***** End Of Program - No title available *****
    File Upload (User File Upload)
    Tue Mar 11 19:57:52 RET 2014: Profile 'MRP_DEBUG' Value : N
    Tue Mar 11 19:57:52 RET 2014: ===============================================================
    Tue Mar 11 19:57:52 RET 2014: fileLoaderInit: paramName = pLOAD_ID; paramValue=41563
    Tue Mar 11 19:57:52 RET 2014: ===============================================================
    Tue Mar 11 19:57:52 RET 2014: The control file Path /u02/oracle/xxx/apps/apps_st/appl/msc/12.0.0/patch/115/import/MSD_DEM_RETURN_HISTORY .ctl does not exist. Please contact your System  Administrator
    Regards,
    ML

    Hi,
    Login to unix server and I believe the control file is placed in a custom top say $MSC_TOP in your environment.
    just try to rename the ctl file without the MSD_DEM_RETURN_HISTORY<space>.ctl
    And try to upload the file once again.
    Hope this helps...!!!

  • Parallel Processing : Unable to capture return results using RECIEVE

    Hi,
    I am using parallel processing in one of my program and it is working fine but I am not able to collect return results using RECIEVE statement.
    I am using
      CALL FUNCTION <FUNCTION MODULE NAME>
             STARTING NEW TASK TASKNAME DESTINATION IN GROUP DEFAULT_GROUP
             PERFORMING RETURN_INFO ON END OF TASK
    and then in subroutine RETURN_INFO I am using RECEIVE statement.
    My RFC is calling another BAPI and doing explicit commit as well.
    Any pointer will be of great help.
    Regards,
    Deepak Bhalla
    Message was edited by: Deepak Bhalla
    I used the wait command after rfc call and it worked additionally I have used Message switch in Receive statement because RECIEVE statement was returing sy-subrc 2.

    Not sure what's going on here. Possibly a corrupt drive? Or the target drive is full?
    Try running the imagex command manually from a F8 cmd window (in WinPE)
    "\\OCS-MDT\CCBShare$\Tools\X64\imagex.exe" /capture /compress maximum C: "\\OCS-MDT\CCBShare$\Captures\CCB01-8_15_14.wim" "CCB01CDrive" /flags ENTERPRISE
    Keith Garner - Principal Consultant [owner] -
    http://DeploymentLive.com

  • Null values returned when using request.getParameters(

    I have a html form which allows the user to choose options and select a file to upload. When I use method=Post I get null values returned. When I use method=Get I get my parameter values fine.. but I get an error.
    "Posted content type isn't multipart/form-data"
    I would like to know why I am getting null values returned when using Post. I am using the following to get the values from the name=value passed to the servlet.
    String strIndustry = request.getParameter("frmIndustry");
              String strCompany = request.getParameter("frmCompany");
              String strCollabType = request.getParameter("frmCollaboration");
    I have another form where the user can search information in a database that works just fine w/ either Get or Post
    Or perhaps I am using oreilly MultipartRequest incorrectly??? but I copied it directly from another discussion.. ???
    any thoughts
    Thanks

    taybon:
    you could do it like this. in this case, you submit your form with the parameters (industry, company, collaboration), and upload your file at the same time. and in the target servlet, you can build your MultipartRequest object like this:
    MultipartRequest multi = new MultipartRequest(request, temp_location, 50 * 1024);where variable temp_location stands for a temporatory diretory for file uploading.
    and then you get your parameters, so you can build the directory with them. and after that, you can move your file to that directory using File.renameTo();
    but as i've suggested in my previous posting, i just recommend you upload your file in a separate form. and then you can perform an oridianry doPost form submit with those parameters. or you may have problems with the file uploading. (this is just my personal experiences with Multipart).
    there is one other thing i'd like to mention, file.renameTo() won't work if you need to move files to a network drive in windows. it won't work if you move files across file systems in unix.
    Song xiaofei
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support

  • Creating a new document using XQuery

    Hello everyone,
    I wondered if there was a way to create a new document using XQuery. What I am trying to do is to run a query on XML file and try to print the results in HTML for viewing purpose.
    The HTML is spitted out on DOS prompt. Instead I wanted to write that HTML to a file on disk. Is this possible with the XQuery tools provided by Oracle?
    Thanks in advance for all the help
    K

    Folks,
    Kinda answering to my question. Just send the DOS output to some file. Pretty Simple huh!
    Thankyou anyways
    K

  • 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 can I return to use OSX (Yosemite) after installing Windows 8.1?

    How can I return to use OSX (Yosemite) after installing Windows 8.1?
    I cannot find Boot Camp on my iMac (late 2013) with windows installed. So I downloaded it, but I cannot run it because of an error (x64...). I tried to use my USB stick with bootcamp installed but nothing. When I turn my iMac on it starts automatically with windows. I tried to search it, but I found only the setup and it doesn't work. How can I get back to my APPLE iMac? How can I use OSX?
    Excuse me for the (maybe) uncorrect language, I speak Italian.

    Hello!
    You can start your Mac up with the [alt] (sometimes [option]) key pressed and you will get the Startup Manager.

  • How to replace numbers with text in tax return pdf using Adobe Acrobat X Pro

    How do I replace numbers with text in tax return pdf using Adobe Acrobat X Pro? The tax return was created using CCH software. Thanks for your review.

    Thanks Bill for your quick reply. CCH software is one of the major
    suppliers of tax return software. I found an internal source that helped me
    make the changes from numbers to text i.e. "$123,456" to "See Schedule O".
    I am not sure if I am working in form or final text. Thanks again! Kelly

  • Returning Cursor using WITH

    Hi
    in my procedure there is a Parameter cursor, How can I to return cursor using WITH
    my cursor is P_cursor
      open p_curosr is
      with my_tab ( select .....  from.....)
      select columns01, columns02,....etc
       from  my_tab,
               others_tabs
       where .....did not work
    How can I to open cursor returning to Client side ?

    did not workwhat is an error?
    probably you forgot to put with my_table AS
    SQL> set serveroutput on;
    SQL>
    SQL> declare
    2   cursor p is
    3   with t as (select 1 num from dual union all
    select 2 from dual)
    4    select * from t;
    5   p1 p%rowtype;
    6   --
    7  begin
    8   open p;
    9    loop
    10      fetch p into p1;
    11      exit when p%notfound;
    12      dbms_output.put_line(p1.num);
    13     end loop;
    14   close p;
    15  end;
    16  /
    1
    2
    PL/SQL procedure successfully completed
    SQL>
    Thanks
    But I need to Open P_cursor without Fetch , P_cursor is is ref cursor passed like parameter
    procedure   my_proc (P_cursor out  out  Typedefined)
       Open P_cursor
        WITH mytable as ( select ......)
      no work

Maybe you are looking for