Xml Mapping Query

Hi Java Team
For a calling a servlet from a HTML form that is placed inside a folder name HTML in the webcontent we need to map the welcome file as
<welcome-file>HTML\Home.html</welcome-file>
In my application I am reading an Excel file to update database
but when i am creating the input stream object i am currently giving the entire path like
FileInputStream f = new FileInputStream("E://sample1/sample1/WebContent/Files/Book10.xls")
is there any mapping which we can do in web.xml by which i need to give only the file name like
FileInputStream f = new FileInputStream ("Book10.xls")
Thanks
Santhosh

Hi Mark,
I don't think it is possible to nest the XML mapping.
This is because your table data will be just two-dimentional. Through your table return several keywords for each template, the query result will look something like:
template_key        id                         ver       keyword
tkey1                  INSTLP0001a         1.2      key 1 v1.2
tkey1                  INSTLP0001a         1.2      key 2 v1.2
tkey1                  INSTLP0001a         1.2      key 3 v1.2
Look at the above exhibit. all the column except keyword are repeated.
So, you can achieve this in two ways.
1. Change your schema to have a one level data mapping.
2. Split your schema into three so that you will have three xml files.
Hope this may help you!
Nith

Similar Messages

  • List View Bound to XML Map Data

    HI Have a list view that is bound to xml mapped data.  It seems that on connection refresh that new data is not being updated into the SWF.  My Binding is directly onto the cell ranges that are mapped into excel, so on updates the size of the maped table changes/rewrites over the old data.
    When I refresh I am not picking up the newest data in the list view.  Any thoughts on this on how I can fix.
    Regards,
    Mark

    Thank you Ganesh, but I am not on Enterprise edition.  I am successfully bringing in live xml data, however mapping more than one Query result from one xml file is giving my project some problems.  Refreshing a list View I think is causing this issue.  From within my project in design view I can Refresh the data.
    When I publish the file to html/SWF when I refresh other components are refreshing but the list view and one other is not refreshing.....

  • XML Mapping InfoPath to Excel Include metadata?

    Grabbing an InfoPath form from a SharePoint Form Library (in the form of xml files) then dragging and dropping into Excel creates a nice XML map which paves the way for a neat Import.
    This doesn't bring over the metadata though - things like "Created By" for each form.
    Anyone have any thoughts on getting this?

    Thank you Sammi for a response.
    1) You have one xml file and this xml file is the only xml data source of your excel file.
    Yes
    2) You have 4-5 queries based on this xml map. Do it mean you divide your xml map into 4-5 data ranges (or blocks) in your excel file?
    Yes I divide the mappings from the one source to 4-5 blocks on different worksheets.
    3) You use several components binding to these data respectively
    Yes
    4) All of these components only get data from the first data range.
    Yes
    I have also tried to have each query from the database export to its own xml file, map all of these xml files into the model, import, bind, add connection in data manager, add connection refresh button (one for all and also one for each) and same results.  Only one query will be updated.....
    I will e-mail you the model.
    Thanks!
    Mark

  • XML Mapping

    If anyone is an expert in XML maps maybe they can help me.  I have one xml file with 4-5 Query results streaming to it.
    When I map them to excel and refresh thru excel they all also refresh properly with new data.  All is ok here.
    I import into excelsius and bind components to the different sheets, set up connection manager and refresh button all set to refresh on load.
    Here is where it gets strange:  The first component added to the canvas works properly upon refresh but anything added second whether a value or a list view selector, spreadsheet selector they all default to the first query's maps. The bindings are clearly to the respective mappings data but on refresh thru excelsius they show values from the first mapping.
    I am stuck any help would be appreciated.
    Mark

    Thank you Sammi for a response.
    1) You have one xml file and this xml file is the only xml data source of your excel file.
    Yes
    2) You have 4-5 queries based on this xml map. Do it mean you divide your xml map into 4-5 data ranges (or blocks) in your excel file?
    Yes I divide the mappings from the one source to 4-5 blocks on different worksheets.
    3) You use several components binding to these data respectively
    Yes
    4) All of these components only get data from the first data range.
    Yes
    I have also tried to have each query from the database export to its own xml file, map all of these xml files into the model, import, bind, add connection in data manager, add connection refresh button (one for all and also one for each) and same results.  Only one query will be updated.....
    I will e-mail you the model.
    Thanks!
    Mark

  • Multiple connections via xml maps

    I am currently using Engage SP1 version of Xcelsius. (not Engage Server.)
    As noted in other posts, this version of the product does not all allow multiple connections to web services using the connectivity tools built into the Xcelsius development environment.
    However I've found there is no such limit placed on the number of web service connections if you set them up in Excel (as xml mappings) and then import that excel spreadsheet as the model for Xcelsius.
    I've tested this by connecting to three different web services using 3 xml maps in Excel and then importing that excel file as the model for Xcelsius to use.  The xcelsius model worked flawlessly displaying data from all three web services on the dashboard (swf).
    The only limitation I've found is that the excel XML mapping tool doesn't offer a way to feed a value as input for the web service.   In the example all three web services required no input values. 
    They just run when called and return data.    (no parameter required.)
    However my attempts to setup an xml mapping to a web service that requires an input parameter has failed.
    There seems to be no way to feed the web service an input value within Excel.   I realize that may be an Excel support issue, but have found no documentation in the Excel product or websites to explain how to setup the xml map to allow for the input.
    I should note, that i have connected successfully using a web service url that contains the parameter values hard coded (but no successess passing them in from excel at the time of the web service call.)
    If anyone has solved this issue any feedback would be greatly appreciated.
    Edited by: Blake  Dodds on Oct 3, 2008 5:38 PM

    Hi, when you are maping an xml file in excel you have only imported the data that contains the file but not the query, you have to update the file but i dont know if excelsius will allow to reimport the xml in the datasheet when its in a swf format. I have a similar issue because mapping its almost equal to copy the entire data base.
    I am trying to make a web service that contains more that one query and generate the xml in a schema that will be helpfull for me to make a general configuration.
    I have to make 5 or 6 drill downs whit specific information :s and i havent get any response. My limitation its that i have the same version that  you have only one conection but if i can do that web service it will be very helpfulll and i will be using like 500 rows. I dont whant to make it in diferent xcelsius templates because i havent found an alternative to conect the "filters" to each template.
    Second Xcelsius has make a point that its a waste to buy even the engage version but this is what my company whants and i have to use it.
    If you know flash you can do it in a very efficient way, also you need to have a general idea of programing an application.
    I didnt know flash but in this time 2 months have finish the project, the problem its that is not in excelsius >,>. And they what it in excelsius so they can modify the source files (.xlf).
    If i can do the web service i will post it and maybe it can help you. Good luck if you success in your idea.

  • Xcelsius Dashboard on SAP R/3 Table using BSP and XML Mapping

    Hi Experts,
    I have developed a simple dashboard on small data set (10 records) that I am fetching from a R/3 Table into BSP and generating XML from there and consuming it in Xcelsius (SAP R/3 + BSP + XML Mapping).
    Now I want to fetch data based on Variables values that should be passed from the dashboard at the runtime and should display the data  accordingly. Any help on how it can be achieved?
    Thanks..!!
    Sharad

    Hi,
    You could try doing this by using XML data connection. You would have to make use of Enable load to get the data from XML and Enable send to send data back to XML from dashboard.
    This would require you to write a script.
    Thanks,
    Amit

  • Question about XML mapping to ABAP internal table

    Hi experts.
    I'm trying to XML mapping. But it doesn't work well. Assume there are XML file as below.
    <HEADER>
      <ITEM>
        <FOO>123</FOO>
        <BAR>ABC</BAR>
      </ITEM>
      <ITEM>
        <FOO>456</FOO>
        <BAR>DEF</BAR>
      </ITEM>
    <HEADER>
    and I want to trasformation it as below.
    ITAB
    FOO       |      BAR
    123         |  ABC
    456         | DEF
    How could I trasformation using "call transformation"?
    Regards.

    Hi,
    REPORT  zind_xml_to_sap NO STANDARD PAGE HEADING.
    Data Declaration                                                    *
    DATA: client      TYPE REF TO if_http_client, "Interface
          host        TYPE string,
          port        TYPE string,
          proxy_host  TYPE string,
          proxy_port  TYPE string,
          path        TYPE string,
          scheme      TYPE i,
          xml         TYPE xstring,
          response    TYPE string.
    DATA: t_xml       TYPE smum_xmltb OCCURS 0 WITH HEADER LINE.  "XML Table structure used
                                                                  "for retreive and output XML doc
    DATA: g_stream_factory TYPE REF TO if_ixml_stream_factory.    "Interface
    DATA : return  LIKE  bapiret2 OCCURS 0 WITH HEADER LINE.      "XML Table structure used for retreive
                                                                  "and output XML doc
    Parameters                                                          *
    PARAMETER : p_add TYPE string LOWER CASE ,
                p_dfile   LIKE rlgrap-filename.
    AT Selection-Screen on value-request for file                       *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_dfile.
    Get file
      PERFORM 100_get_file.
    Start-of-Selection                                                  *
    START-OF-SELECTION.
    Perform to upload xml data from URL to SAP internal table
      PERFORM 200_xml_upload.
      IF t_xml[] IS NOT INITIAL.
      Perform to Download data from Internal Table to a text file in local drive
        PERFORM 300_download.
        write : / 'Data Uploaded to Internal Table Successfully'.
        write : / 'XML Data Downloaded to Local path', p_dfile.
      else.
        write : / 'No Data for upload'.
      ENDIF.
    *if t_xml[] is INITIAL.
    WRITE : address, 'Given URl cannot be Converted' .
    else.
    LOOP AT t_xml .
       WRITE:  t_xml-cname, t_xml-cvalue.
    ENDLOOP.
    endif.
    *&      Form  get_file
          Get File
    FORM 100_get_file .
      CALL FUNCTION 'F4_FILENAME'
      EXPORTING
        PROGRAM_NAME        = SYST-CPROG
        DYNPRO_NUMBER       = SYST-DYNNR
        FIELD_NAME          = ' '
       IMPORTING
         file_name           = p_dfile
    ENDFORM.                    " 100_get_file
    *&      Form  200_xml_upload
          form to upload xml data from URL to SAP internal table
    FORM 200_xml_upload .
    *Check HTTP:// and concatenate
      IF p_add NS 'http://' OR p_add NS 'HTTP://'.
        CONCATENATE 'http://' p_add
                    INTO p_add.
      ENDIF.
    Fetching the address of the URL
      CALL METHOD cl_http_client=>create_by_url
        EXPORTING
          url    = p_add
        IMPORTING
          client = client.
    *Structure of HTTP Connection and Dispatch of Data
      client->send( ).
    *Receipt of HTTP Response
      CALL METHOD client->receive
        EXCEPTIONS
          http_communication_failure = 1
          http_invalid_state         = 2
          http_processing_failed     = 3
          OTHERS                     = 4.
      IF sy-subrc <> 0.
        IF sy-subrc = 1.
          MESSAGE 'HTTP COMMUNICATION FAILURE' TYPE 'I' DISPLAY LIKE 'E'.
          EXIT.
        ELSEIF sy-subrc = 2.
          MESSAGE 'HTTP INVALID STATE' TYPE 'I' DISPLAY LIKE 'E'.
          EXIT.
        ELSEIF sy-subrc = 3.
          MESSAGE 'HTTP PROCESSING FAILED' TYPE 'I' DISPLAY LIKE 'E'.
          EXIT.
        ELSE.
          MESSAGE 'Problem in HTTP Request' TYPE 'I' DISPLAY LIKE 'E'.
          EXIT.
        ENDIF.
      ENDIF.
    Get data of the xml to Response
      response = client->response->get_cdata( ).
    *FM converting the XML format to abap
      CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
        EXPORTING
          text   = response
        IMPORTING
          buffer = xml.
    *FM converting XMl to readable format to a internal table.
      CALL FUNCTION 'SMUM_XML_PARSE'
        EXPORTING
          xml_input = xml
        TABLES
          xml_table = t_xml
          return    = return.
    ENDFORM.                    " 200_xml_upload
    *&      Form  300_download
    *form to Download data from Internal Table to a text file in local drive
    FORM 300_download .
      DATA filename TYPE string.
      filename = p_dfile.
      CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        filename                        = filename
        WRITE_FIELD_SEPARATOR           = 'X'
      TABLES
        data_tab                        = t_xml
    EXCEPTIONS
       FILE_WRITE_ERROR                = 1
       NO_BATCH                        = 2
       GUI_REFUSE_FILETRANSFER         = 3
       INVALID_TYPE                    = 4
       NO_AUTHORITY                    = 5
       UNKNOWN_ERROR                   = 6
       HEADER_NOT_ALLOWED              = 7
       SEPARATOR_NOT_ALLOWED           = 8
       FILESIZE_NOT_ALLOWED            = 9
       HEADER_TOO_LONG                 = 10
       DP_ERROR_CREATE                 = 11
       DP_ERROR_SEND                   = 12
       DP_ERROR_WRITE                  = 13
       UNKNOWN_DP_ERROR                = 14
       ACCESS_DENIED                   = 15
       DP_OUT_OF_MEMORY                = 16
       DISK_FULL                       = 17
       DP_TIMEOUT                      = 18
       FILE_NOT_FOUND                  = 19
       DATAPROVIDER_EXCEPTION          = 20
       CONTROL_FLUSH_ERROR             = 21
       OTHERS                          = 22
      IF sy-subrc <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.

  • Logical operation in xml path query

    Hello
    If I have this XML data
    <a>
    <b>
    <c>
         <d>United States</d>
         <f>1</f>
         <g>Creditcard</g>
         <h>Will ship only within country</h>
         <k>something</k>
    </c>
    <c>
         <d>United States</d>
         <f>2</f>
         <g>MasterCard</g>
         <h>international</h>
         <k>something</k>
    </c>
    <c>
         <d>United States</d>
         <f>2</f>
         <g>MasterCard</g>
         <h>international</h>
         <k>something</k>
    </c>
    <c>
         <d>United States</d>
         <f>2</f>
         <g>MasterCard</g>
         <h>international</h>
         <k>something</k>
    </c>
    <c>
         <d>United States</d>
         <f>2</f>
         <g>MasterCard</g>
         <h>international</h>
         <k>something</k>
    </c>
    </b>
    </a>
    and I have this query:
    Q1: //c[NOT [[[/d="United States" AND /f="1" AND /g="Creditcard"] OR h="Will ship only within country"]]]
    How to write xml/sql query for it to retrive THE COUNT of the result , count of "c"
    Q2: //c[NOT [[[/d="United States" AND /f="1" AND /g="Creditcard"] OR h="Will ship only within country"]]]/k
    How to write xml/sql query for it to retrive THE COUNT of the result , count of "c/k"
    Thank you

    For example :
    SQL> with sample_data as (
      2      select xmltype('<a>
      3      <b>
      4      <c>
      5           <d>United States</d>
      6           <f>1</f>
      7           <g>Creditcard</g>
      8           <h>Will ship only within country</h>
      9           <k>something</k>
    10      </c>
    11      <c>
    12           <d>United States</d>
    13           <f>2</f>
    14           <g>MasterCard</g>
    15           <h>international</h>
    16           <k>something</k>
    17      </c>
    18      <c>
    19           <d>United States</d>
    20           <f>2</f>
    21           <g>MasterCard</g>
    22           <h>international</h>
    23           <k>something</k>
    24      </c>
    25      <c>
    26           <d>United States</d>
    27           <f>2</f>
    28           <g>MasterCard</g>
    29           <h>international</h>
    30           <k>something</k>
    31      </c>
    32      <c>
    33           <d>United States</d>
    34           <f>2</f>
    35           <g>MasterCard</g>
    36           <h>international</h>
    37           <k>something</k>
    38      </c>
    39      </b>
    40      </a>') xmldoc
    41      from dual
    42  )
    43  select count(*)
    44  from sample_data
    45     , xmltable(
    46         '//c[not(((d="United States" and f="1" and g="Creditcard") or h="Will ship only within country"))]'
    47         passing xmldoc
    48       ) x ;
      COUNT(*)
             4

  • Oracle XML to HSBC XML mapping for R12 AP Check Printing

    Hi,
    Our environment is Oracle APPS R12.
    We need to send an electronic payment information to HSBC bank.  So this will be generated 'like' a check from the payments process, but for payment types of WIRE, ACH, etc...and the output is an XML file in a format specified by the bank HSBC.  We need to send an XML file to HSBC per their spec.  The data that needs to go in this file is the same payment information that Oracle already provides in the standard check printing.  We need to take that data and turn it into XML matching the HSBC spec (hence the XML to XML mapping).
    I am not sure how to get the source for standard check printing prog. Any idea of how to do Oracle XML- HSBC XML Mapping? Any help is really appreciated.
    Thanks
    Valli

    Review this note, you will get source of check printing program
    R12: Master Troubleshooting Guide for Oracle Payables Check Printing issues (Doc ID 1353280.1)
    thanks

  • From XML To Query

    Hi,
    This is My problem:
    I receive datas from an xml Feed and I always worked in this
    way:
    <cftry>
    <!--- fetch data from web service --->
    <cfhttp url="
    http://www.............
    method="get" charset="utf-8"/>
    <cfset xmldata = cfhttp.fileContent>
    <cftry>
    <!--- extract data from XML document and convert to query
    --->
    <cfset lstColumns =
    "KH,NH,KC,NC,KD,ND,KS,NS,KL,NL,KZ,NZ,LR"/>
    <cfset q2 = queryNew(lstColumns)/>
    <!--- <cfif isXml(cfhttp.fileContent)> avialable in
    CF7 only --->
    <cfset xmlObject = xmlParse(xmldata)/>
    <cfloop index="i" from="1"
    to="#arrayLen(xmlObject["ArrayOfHotelRoom"].xmlChildren)#">
    <cfset queryAddRow(q2,1)/>
    <cfloop index="ii" list="#lstColumns#">
    <cfset
    querySetCell(q2,ii,xmlObject["ArrayOfHotelRoom"].xmlChildren
    [ii].xmlText)/>
    </cfloop>
    </cfloop>
    <!--- </cfif> --->
    <cfcatch type="any"> <!--- any errors return empty
    result set --->
    <cfset q2 = queryNew(lstColumns)/>
    </cfcatch>
    </cftry>
    <cfcatch type="any">
    <cfoutput>There has been an internal problem. Please
    try again later</cfoutput>
    <cfexit>
    </cfcatch>
    </cftry>
    <!--- use QoQ to filter by hotel name --->
    <cfquery name="q" dbtype="query">
    select * from q2
    where SH = 'A' <!--- only show available hotels --->
    </cfquery>
    NOW THE PROBLEM IS THAT I NEED NOW TO IMPROVE MY SYSTEM USING
    A NEW VERSION OF THE XML CATALOGUE THAT NOW INCLUDE XML.CHILDREN:
    THE NEW XML:
    <?xml version="1.0" encoding="utf-8"?>
    <ArrayOfHotelRoom xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns="
    http://tempuri.org/xml/xmlService">
    <HotelRoom>
    <KH>717</KH>
    <NH>Acanto Suites & Lounge</NH>
    <KC>PDC</KC>
    <NC>Playa del Carmen</NC>
    <KD>16</KD>
    <ND>Playa del Carmen</ND>
    <KS>7E</KS>
    <NS>Special Category</NS>
    <KL>CENT</KL>
    <NL>City</NL>
    <KZ>1</KZ>
    <NZ>The Yucatan Peninsula</NZ>
    <LR>132.5000</LR>
    <Rooms>
    <RoomType>
    <KR>VLLBR1</KR>
    <NR>One Bedroom Villa</NR>
    <MP>RO</MP>
    <RR>132.5</RR>
    <IP>0</IP>
    <IL>0</IL>
    <IN>0</IN>
    <IF>0</IF>
    <PH>0</PH>
    <SH>A</SH>
    </RoomType>
    </Rooms>
    </HotelRoom>
    AS YOU SEE AFTER "LR" NOW I FIND OTHERS CHILDREN AND I DO
    NOT HOW TO REDUCE MY NEW XML TO QUERY
    Thank You
    Andrea

    Hi Charlie,
    thanks for your fast answer. I try to figure out what's are
    my doubts and need:
    1) Yes it must to be a query because i need to filter data to
    be shown in many different outputs.
    2) I understand that it should be possible to create
    something like 2 database table :
    one for the Hotel and
    one for Rooms with all the subitems( I confirm you that there
    will be situations with more RoomType Item for each Rooms. My doubt
    now is how I will be able to manage the query joining the 2 tables
    when I miss a common date to show in the statement WHERE ( Example
    : WHERE Hoteltable.#KH#( hotel ID ) = RoomsTable.#Here I will miss
    the compare data that in the second table is not provided by the
    xml#.
    How will I be able to manage the query??????
    I think this is our way but I am really lost at this level.
    Of course the solutions with only one table with multiple
    rows for each rooms type will create me problems in outputs results
    . I will have results where the selection will not be the hotel but
    the rooms type and will be inconvenient to receive dinamically 5
    times the same hotel with the different rooms type details.
    What I need is to receive each hotel only once with all the
    roomstype details inside.
    Thanks for your help
    Andrea

  • Problem with castor xml mapping

    Hi,
    we have following problem with castor xml mapping.
    How to use references in the collections(Hashmap or vector)?
    WE have a method called getAttribute map which will return a hashmap consist different type of objects. We want to keep only the
    references of objects if that object occurs more than once,instead of keeping the whole object
    Following is the the xml mapping file.
    <mapping>
    <class name="com.opvista.ndtool.core.mos.ManagedObject" identity="Id" auto-complete="false" verify-constructable="false">
    <map-to xml="ManagedObject"/>
    <field name="Id" get-method="getId" set-method="setId" type="string">
    <bind-xml name="Id" node="attribute"/>
    </field>
    <field name="AttributeMap" type="org.exolab.castor.mapping.MapItem" collection="map" get-method="getAttributeMap">
    <bind-xml name="AttributeMap" node="element">
         <class name="org.exolab.castor.mapping.MapItem">
    <field name="key" type="java.lang.Object">
         <bind-xml name="key" node="attribute"/>
    </field>
    <field name="value" type="java.lang.Object">
         <bind-xml name="value" node="element" reference="true"/>
         </field>
    </class>
         </bind-xml>
    </field>
    </class>
    </mapping>
    we are using reference=true for the values. But it will throw below exception.
    Unable to resolve ID for instance of class 'java.lang.String' due to the following error: Unable to resolve ClassDescriptor.
         at org.exolab.castor.xml.Marshaller.getObjectID(Marshaller.java:1988)
         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1628)
         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1831)
         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1814)
         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1825)
         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:821)
    Please help us to overcome from this problem?
    Thanks,
    Dileep

    for your ref here is what i think the basic mapping file would look like
    <class name="Person">
    <map-to xml="person"/>
    <field name="name" type="string">
    <bind-xml name="name" node="attribute" />
    </field>
    <field name="age" type="string">
    <bind-xml name="age" node="attribute" />
    </field>
    </class>
    <class name="MetaPerson">
    <map-to xml="person"/>
    <field name="dependents" type="string">
    <bind-xml name="dependents" node="attribute" />
    </field>
    <field name="presentAdd" type="string">
    <bind-xml name="present_add " node="attribute" />
    </field>
    <field name="permanentAdd" type="string">
    <bind-xml name="permanent_add " node="attribute" />
    </field>
    </class>
    however i am still not clear as to how i can use the metaperson object in the person class as well as in the mapping file.
    hope this gives a better idea abt my problem statement.
    Please help me out

  • Mapping query in SAP PI

    Hi Experts,
    I have a mapping query in SAP PI. Actually I am mapping the source and target fields, now the problem is.
    The sender filed is subnode of the main node, and I have mapped the two main nodes in the sender and receiver together.
    Now, whether the sender main node comes all the subnode values will come or do we need to do something else for it.
    Both the sender and target main nodes and subnodes can have multiple repetations.
    I think One to One mapping wont do in this case. What needs to be done please help??
    Thanks and regards,
    Aniruddha

    Hi Vijay,
    Thanks a lot.I will try this out. Can you help me in another mapping problem, the req. is that i need to map the source and the target.
    The condition basically is :
    If no value in LIFEX use VBELN to map to a single target field.
    But I wont use UDF in this case.
    Please help.
    Regards,
    Aniruddha

  • ExcelXML mapping---problem with XML maps in Excel sheet

    Hi Friends,
    I have one issue with ExcelXML mapping in Xcelsius.
    The problem is I have designed one dashboard using ExcelXML mapping and everything is working fine but I was afraid that  I could not able to find the mappings which were embedded in Excel.It happened many times.What I was doing is everytime Im re-mapping.I could be a big problem for me to do this procedire for everytime.How to recover my XML maps into excel sheet.Can anyone please provide the solution to achieve this.

    Shouldnt it be equivalent ? I mean, as far as I know the ns0: shouldnt be a problem
    when you have a namespace in the message then you need to associate it with some prefix....since ns0 (or any other prefix) is not present you are getting the error....having the namespace but not ns0 is the problem.
    XMLAnonymizer bean may help you to add the namespace prefix...

  • XML MAPPING - swf not updating

    When I make a change to the xml file it is not picking up the change in my published swf file.  When I open the project in CX and refresh the mapping updates.
    So it is connected but when I click on "refresh" on the sxf it is not updating.
    I have xml maps, added in the data connection manager, with a refresh button tied to the xml connection.  I also have the refresh on load checked in the connection manager.
    Need help.
    Thanks
    Mark

    Shamim my scenario was that I wanted the SWF on a network so that a call center employee could access the file from a mapped drive, open the file direct on her/his client machine.  My problem was that I developed the file on the server machine and mapped the data connection path to the XML initially from the server, not the scenario of a client machine's path looking for the file. (not sure if cache is the right term)
    Initial Path from server development..  D:\Datafiles\data.xml
    The client machine(s) network path, mapped drive was Z: for example.  In the excelsius model you need to bind the data path to the excel model and hardcode the Path that the client machines will go thru to access the data.  This solved my issue perfectly.  Z or name of the mapped drive mapped to the server.
    Z:\Datafiles\data.xml
    So now if your on the server machine and try to open the file from the swf you will incur the error message that correlates to the swf not being able to find the data.  From the clients works fine but not from the server machine as the path has to be exact for the swf to find the data file.
    Hope this helps.
    I have a question for trying to deploy this same example on th server embedded into a swf movie player to the web.  Might have been my path issue, cross domain policy file... But I could not get it to be deployed in a website, live.  If you are familiar with this please explain to me.
    Regards,
    Mark

  • oms_error Message:[oms] empty or null xml map request string.

    I'm using mapviewer. I create a stored procedure in oracle that uses the utl_http package to make the map request. The omserver response with an error but when i make a map request via internet explorer the server response its ok and show me the correspondent map. This is my pl/sql code it fails in this line:
    UTL_HTTP.SET_HEADER(l_http_req, 'Content-Type', 'application/x-www-form-urlencoded');
         UTL_HTTP.SET_HEADER(l_http_req, 'Content-Lenght', LENGTH(map_request));
         UTL_HTTP.SET_HEADER(l_http_req, 'Host', 'cobogis09');
         UTL_HTTP.SET_HEADER(l_http_req, 'Port', '8888');
    As you can see it tells to me that the map request string is empty but im sending the map request in the next way:
         UTL_HTTP.WRITE_TEXT(l_http_req, '<?xml version="1.0" encoding="UTF-8"?><map_request datasource="stream" srid="8307" basemap="" width="960" height="768" antialiasing="false" format="GIF_URL" title="Demonstration"></map_request>');
         l_http_resp := utl_http.get_response(l_http_req);
         utl_http.read_text(l_http_resp, l_value);
         response := sys.XMLTYPE.createxml(l_value);
         utl_http.end_response(l_http_resp);
         img_url := response.EXTRACT('/map_response/map_image/map_content/@url').getstringval();
    img_url := response.EXTRACT('/map_response/map_image/map_content/@url').getstringval();
    obviously because the server response its not ok
    the server response is (i get this message in my l_value variable):
    <?xml version="1.0" encoding="UTF-8"?><oms_error>Message:[oms] empty or null xml map request string.
    Tue Jul 25 10:37:43 GMT-05:00 2006
    Severity: 0
    Description:
         at oracle.lbs.mapserver.oms.getXMLDocument(oms.java:860)
         at oracle.lbs.mapserver.oms.doPost(oms.java:303)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:595)
    </oms_error>
    What i want to know its why the server says that the map request string is empty. As you can see the map request is not empty, but when i send to the server something happens that sends this map request string empty to the server.
    The next is the console of the omserver:
    C:\oc4j_extended>cd\
    C:\>cd C:\oc4j_extended\j2ee\home
    C:\oc4j_extended\j2ee\home>java -hotspot -Xmx512M -jar oc4j.jar
    06/07/25 11:00:49 INFO [oracle.lbs.mapserver.oms] oms root path: C:\oc4j_extended\j2ee\home\lbs\mapviewer\web\
    06/07/25 11:00:49 Oracle Application Server Containers for J2EE 10g (10.1.2.0.2) initialized
    06/07/25 11:00:49 INFO [oracle.lbs.mapserver.core.MapperConfig] using default config file: C:\oc4j_extended\j2ee\home\lbs\mapviewer\web\WEB-INF\conf\mapViewerConfig.xml
    06/07/25 11:00:49 WARN [oracle.lbs.mapserver.core.MapperPool] destroying ALL mapmaker instances.
    06/07/25 11:00:50 INFO [oracle.lbs.mapserver.core.MapperConfig] setting logging level to finest
    06/07/25 11:00:50 Tue Jul 25 11:00:50 GMT-05:00 2006 INFO [oracle.sdovis.CacheMgr2] In memory cache limit set to: 512MB
    06/07/25 11:00:50 Tue Jul 25 11:00:50 GMT-05:00 2006 INFO [oracle.lbs.mapserver.core.MapperConfig] Disk-based cache is no longer supported.
    06/07/25 11:00:50 Tue Jul 25 11:00:50 GMT-05:00 2006 INFO [oracle.lbs.mapserver.core.MapperConfig] setting proxy to: coboisa01.ag.ad.local:8080
    06/07/25 11:00:50 Tue Jul 25 11:00:50 GMT-05:00 2006 FINEST [oracle.lbs.mapserver.core.MapperConfig]
    Allowed IPs:
    Excluded IPs:
    06/07/25 11:00:50 Tue Jul 25 11:00:50 GMT-05:00 2006 ERROR [oracle.lbs.mapserver.core.MapperConfig] ###### [MapperConfig] clear-text passwords in the mapViewrConfig.xml file must be prefixed with a '!' (exclamation mark).
    06/07/25 11:00:50 Tue Jul 25 11:00:50 GMT-05:00 2006 INFO [oracle.lbs.mapserver.core.MapperConfig] Map Recycling thread started.
    06/07/25 11:00:50 Tue Jul 25 11:00:50 GMT-05:00 2006 INFO [oracle.lbs.mapserver.oms] *** Oracle MapViewer started. ***
    06/07/25 11:01:03 Tue Jul 25 11:01:03 GMT-05:00 2006 FINEST [oracle.lbs.mapserver.oms] request.getRemoteUser = jazn.com/admin
    06/07/25 11:01:03 Tue Jul 25 11:01:03 GMT-05:00 2006 FINEST [oracle.lbs.mapserver.oms] request= <?xml version="1.0" standalone="yes"?>
    <non_map_request>
    <add_data_source name="stream"
    jdbc_host="cobodata01"
    jdbc_sid="stream"
    jdbc_port="1521"
    jdbc_user="***"
    jdbc_password="***"
    jdbc_mode="thin"
    number_of_mappers="3"/>
    </non_map_request>
    06/07/25 11:01:03 Tue Jul 25 11:01:03 GMT-05:00 2006 FINEST [oracle.lbs.mapserver.oms] getRequestType: nodeName=add_data_source
    06/07/25 11:01:03 Tue Jul 25 11:01:03 GMT-05:00 2006 INFO [oracle.lbs.mapserver.MapServerImpl] adding a map data src [name=stream]
    06/07/25 11:01:05 Tue Jul 25 11:01:05 GMT-05:00 2006 FINEST [oracle.sdovis.SRS] loaded 748 geodetic srids.
    06/07/25 11:01:05 Tue Jul 25 11:01:05 GMT-05:00 2006 INFO [oracle.sdovis.CacheMgr2] Spatial Data Cache opened. Region=SDOVIS_DATA.
    06/07/25 11:01:05 Tue Jul 25 11:01:05 GMT-05:00 2006 INFO [oracle.sdovis.CacheMgr2] max_cache_size=512 MB.
    06/07/25 11:01:05 Tue Jul 25 11:01:05 GMT-05:00 2006 INFO [oracle.sdovis.CacheMgr2] sub region sdovis_subreg_gis_jdbc:oracle:thin:@cobodata01:1521:stream created in cache.
    06/07/25 11:01:05 Tue Jul 25 11:01:05 GMT-05:00 2006 INFO [oracle.lbs.mapserver.core.MapperPool] added a mapper instance to the pool [data src=stream]
    06/07/25 11:01:05 Tue Jul 25 11:01:05 GMT-05:00 2006 INFO [oracle.lbs.mapserver.core.MapperPool] added a mapper instance to the pool [data src=stream]
    06/07/25 11:01:06 Tue Jul 25 11:01:06 GMT-05:00 2006 INFO [oracle.lbs.mapserver.core.MapperPool] added a mapper instance to the pool [data src=stream]
    06/07/25 11:01:36 Tue Jul 25 11:01:36 GMT-05:00 2006 FINEST [oracle.lbs.mapserver.oms] request.getRemoteUser = null
    06/07/25 11:01:36 Tue Jul 25 11:01:36 GMT-05:00 2006 FINEST [oracle.lbs.mapserver.oms] request= null
    As you can see the arrive empty to the server, what can be wrong

    Hi,
    in this map request, it looks that the basemap string is empty.
    UTL_HTTP.WRITE_TEXT(l_http_req, '<?xml version="1.0" encoding="UTF-8"?><map_request datasource="stream" srid="8307" basemap="" width="960" height="768" antialiasing="false" format="GIF_URL" title="Demonstration"></map_request>');

Maybe you are looking for

  • Conversion data type error at universe level

    Hi Friends, I am trying to convert a object datatype from number to char by using cast function in Universe Designer. I am getting bellow error. Help me on this. Thanks Riaz

  • Problem with User Permission in BI Publisher.

    I have successfully managed to integrate BI Publisher with Discverer , but am facing a problem when i log in with the credentials of the SSO user biptest. The user does not have the rights to create a report.I dont understand why.I have followed all

  • Opens File Download in IE and not activating webStart

    After installing the java webstart i pressed on the link of my application on the html file. The Internet explorer open the File Download dialog insted of webstart being active. Thanks in advance, Avi.

  • How and when the database release a row lock?

    Dear experts, We are using the following statement to obtain a row lock in a table in the database(ORACLE of course), SELECT * FROM {TABLE_NAME} WHERE ID = 1 for update and if we succeed grabbing the row lock we will continue to issue a update statem

  • Display Chinese Characters

    What needs to be done to make PRS-950 display Chinese characters in MS Word format? Please help!