DB to XML mapping in DB Adapters

Hi,
I am evaluating DB Adapters. My Requirement is to get table rows as XML on which update/delete operations are being performed. XML gateway has a mechanism called db to xml mapping and an api is provided to retrieve the table row as xml by providing the transformation map code and primary key. Is there any such mechanism in DB adapters as well ? All i need is the xml representation of the table row after performing custom transformations. This capturing of xml should happen before any changes are commited to database (as i am intrested in capturing old .
Pradeep

Hi,
I am evaluating DB Adapters. My Requirement is to get table rows as XML on which update/delete operations are being performed. XML gateway has a mechanism called db to xml mapping and an api is provided to retrieve the table row as xml by providing the transformation map code and primary key. Is there any such mechanism in DB adapters as well ? All i need is the xml representation of the table row after performing custom transformations. This capturing of xml should happen before any changes are commited to database (as i am intrested in capturing old .
Pradeep

Similar Messages

  • 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

  • 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.....

  • 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.

  • 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

  • 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

  • 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 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 - 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

  • 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

  • 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>');

  • XML mapped directly into dbtable

    Hi guys,
    I've one doubt related to xml mapping. I've searched and read lots of posts on the forum about XML, but the doubt is still remaining...
    Imagine I have a XML response to an webservice and I'd like to pass it to an dbtable.
    I know I can use DOM to parse the xml, and I've even seen I can build a table based on hierarchies nodes, but what I'd like to know is if it's possible to pass all the content from the XML directly to my dbtable.
    Why do I want to do this? Because the xml which is sent is really huge, and if I'd have to parse it, there would be tons of abap code.... So, I'd like to pass it directly to my table...
    I could validate the xml with a DTD and then if there were no errors, I would pass it directly to the dbtable...
    Is there any way of doing it?
    I'm really thankful for your answers....

    Hi,
    If you are looking at passing the whole XML response into a field in the target, this would be simple.
    Convert the InputStream ( In Java Mapping) into a string and pass it to the String.
    You can use this code to convert InputStream to string,
    In this code, <b>in</b> is the inputstream to the execute() of java mapping,
    BufferedReader inp = new BufferedReader(new InputStreamReader(in));
    StringBuffer buffer = new StringBuffer();
    String line="";
    while ((line = inp.readLine()) != null) {
    buffer.append(line);
    String  source=buffer.toString();
    is this what you are looning at?
    Regards,
    Bhavesh

  • OCI XML mapping

    Hi,
    We are working on SRM 4.0 EBP 5.0 CCM 2.0 implementation project and are in process to design the system to read data from external catalog.
    The data is successfully read and mapped into OCI parameters if the data sent from external catalog is in HTML format. Now the problem is coming when the data is sent in XML format. I believe only by maintaining two parameters as 'xmltype' and 'xmlDocument' in the XML file coming back from web services (supplier's)the data can be mapped into OCI parameters. Can anyone please confirm this understanding. As before requesting suppliers for these changes I need to confirm from my end.
    Is there any way provided by SAP by which we can test the XML data punch outs.
    Thanking in advance.
    Rahul.

    Rahul,
    If you want to exchange catalog items with supplier web catalogs, they have to be OCI compliant, HTML or XML.
    And then, they should use the newest ESAPO version, i.e. ESAPO3.5.
    If this is not the case, you will have to map the XML file by yourself to get OCI structured data.
    Look at OCI 4.0 specifications (service.sap.com/srm --> mySAP SRM in detail --> SRM 4.0 --> Strategic Purch & sourcing --> Catalog Management --> PDF fiel Open Catalog Interface 4.0 ):
    The OCI can also process an XML file. Here the same architecture is used as in the pure HTML variant, this means the XML data is embedded in an HTML form for the transfer from the catalog to the SRM Server via the user’s browser.
    To transfer an XML file, besides the fields mentioned in section 3.3, two further HTML-input fields are used:
    • xmltype:
    This parameter specifies the type of the XML file used so that the correct XML mapping can be found. Up to and including SAP Enterprise Buyer 3.0 the mapping of the received XML data is done exclusively in the Business Connector which must be set up for this purpose for the relevant SAP Enterprise Buyer System.
    As of SAP Enterprise Buyer 3.5 the mapping can also be done in the SRM Server itself. A prerequisite is that the corresponding XML schema is used. The previous schemas are also supported.
    Valid values for the field type xmlType as of SRM 3.0 are:
    Value
    Description
    DTD/Schema/Mapping
    ESAPO
    Encoded SAP Object for OCI Version up to and including3.0
    PDI_OCI.dtd/PDI_OCI.xsd/BC
    ESAPO3.0
    Encoded SAP Object for OCI Version up to and including 3.0
    PDI_OCI_30.dtd/PDI_OCI_30.xsd/BC
    ESAPO3.5
    Encoded SAP Object for OCI Version as of 3.5
    OpenCatalogInterface.xsd/im SRM Server.
    • ~xmlDocument:
    In this parameter the XML file that must correspond to one of the schemas above is transferred as a Base64-coded character set. The coding can be done either directly on the server page of the catalog or, as shown in the sample application, by JavaScript on the client’s page.
    Rgds
    Christophe

  • Object XML Mapping

    Dear All,
    What is the best object XML Mapping framework
    Thanks in advance

    Castor is probably the easiest to work with but Apache Digester has better performance.

  • Excel XML Maps Problem

    When I import a Excel 2003 XLS file with a Excel 2003 XML map defined I can see the data update if I use the refresh buttom on the spreadsheet pane of Xcelsius 2008 but nothing happens when I export the file as a SWF no matter what I set the refresh properties to?
    Also when I bring up the Data > Connections Menu and try to ADD <Excel XML Maps> I do not get a dialog box on the right?  The <Excel XML Maps> shows as an Existing Connection but does no show any information in the right panel?
    Hope someone can help!
    Tom Ebert

    Thanks guys for your responces.
    Here is what I learned.  Xcelsius 2008 does indeed supports Web Services.  When I was exporting my Excel spreadsheets as XML and trying to refer to it in my SWF file it seems that the Excel XML file does not have the required mapping / schema.
    Soooooooo I'm going to work with a friend who actuall understands Web Services and XML.
    Thanks again for your reply...te

Maybe you are looking for

  • Problem calling a method in a servlet witch returns remote ejb

    Hi, I have a problem combining servlets ands ejbs, I expose my problem : What I have : 1 . I have a User table into a SGBD with two attributes login and pass. 2 . I have a UserBean linked to User table with a remote interface 3 . I have a stateless U

  • Cost of query

    Does the cost of query depends on the number of rows in the table? Also does the cost change from database version to version, like if i check the cost of query in oracle 8i and if i check same query in oracle 9i, will there be any difference in the

  • Change InfoView language (local) from URL

    Hi Everyone, We have a portal and in the portal we can click on a url to access InfoView. But in case the user change the local on the portal to view in another language like Chinese and when he/she clicks on the url to access InfoView. InfoView will

  • How do I configure a Sun One Web Server 6.1 to run JSP pages

    I have a Sun One Web server version 6.1 running on Solaris 10. The web server is not configured to run JSP pages. When I try and run a JSP page, I get an HTTP 405 error. Can somebody please point me to the configuration directions, including changes

  • Flash plug in causes Firefox 4.0.1 (on Vista Business) to hang

    Flash plug in causes Firefox4 (on Vista Business) to hang, on sites with flash content (videos, etc) I tried everything I found in firefox forums (uninstalling - reinstalling the plugin, disabling hardware accelaration, etc ), but it was useless I tr