HTTP to JDBC

Hi Experts,
I am doing a HTTP to JDBC synchronous interface, while testing it from the Component Monitoring using the Test Message, i get the status as Message Sent . But when i check it in the SXMB_MONI i am getting the following error
com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'kss_activity_stg kas' (structure 'STATEMENT'): java.sql.SQLException: FATAL ERROR document format: structure 'STATEMENT', no key element
I have done the interface using this blog, but the thing is i did not use the BPM which were mentioned in the Blog.
/people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
Can any one help me out in this regard?
Regards,
PC

Raj,
The request Structure is of the following way
STATEMENT
      TABLENAME
         ACTION
         TABLE
        ACCESS
           empno
           empname
           empsal
sorry for the delayed response, i was out of the office.
Thanks,
PC

Similar Messages

  • Reg http to jdbc Scenario

    Hi all,
    I am trying to execute a synchronous Http to Jdbc Scenario using MS Access  table as my back end.
    In design part ,I have followed the steps like
    1. Created a http req ,jdbc req, jdbc response ,and then http response in Data types and the in Message types.
    2.Created Outbound MI with http req and http response as input and output messages  respectively,then Inbound message interface with jdbc req and jdbc response as input and output messages respectively.
    3.In Message mapping with  Http req and jdbc req as request mappings and jdbc response and http response as Response mappings following the Action and access Steps.
    Thats Fine with design part
    IN Configuration Part, Since it is a Http Sender ,i didnt create any sender agreement and sender communicatin channel.
    Then Configured Jdbc adapter properly and i am able to access my table with that.
    While Executing ,I can find that my message is sent in Runtime workbench and can find that Jdbc adapter is Running by showing green flag.
    I was trying to send an empid of a table as  key and expecting to  retrieve  the complete row of the corresponding key.
    But I could not find the response even though everything is fine with XI.
    Where Could be the problem ,where can I see the response from jdbc adapter .
    Please help me out in solving this .
    Thanks and Regards,
    Kalpana

    Hi Kalpana,
    Can you check this weblog
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    This should help you...
    Check the Response Mapping,also you have one IM with Reqest and Response mapping...
    Also if you have SP16 then you can have sender CC for HTTP also ...
    Regards,
    sridhar

  • Http--- Xi-- JDBC scenario?

    can the forum provide me a blog for doing    http--->XI-->jdbc scenario......

    Dhar,
    Get the data into XI using the HTTP adapter. Check this blog on how to get data into XI:
    /people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit
    Once you get the data into XI use this blogs to send data into the database:
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
    /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1725 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    /people/william.li/blog/2007/03/30/using-jdbc-connection-pool-in-xi-message-mapping
    ---Satish

  • Http to jdbc sync scenario needed

    hi all,
         Can any one give me certain example of http to jdbc sync scenario
    Thanks in advance.

    Hi,
    Refer this link.
    For JDBC receiver side settings
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/406642ea59c753e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
    JDBC Receiver Adapter -- Synchronous Select – Step by Step
    For HTTP
    http://help.sap.com/saphelp_nw2004s/helpdata/en/44/79973cc73af456e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b1/f29e7a56e18a439984a3c6630951d2/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/14/ef2940cbf2195de10000000a1550b0/content.htm
    JDBC Receiver Adapter -- Synchronous Select – Step by Step
    HTTP Queue
    error in HTTP to file scenario
    Regards,
    Sharanya.
    Edited by: sharanya devaraj on Aug 5, 2008 8:09 AM

  • HTTP to JDBC Scenario

    Can any one tel me how to implement  Http to Jdbc scenario.
    Thanks in advance

    Refer this link also while designing the JDBC MT.
    http://help.sap.com/saphelp_nw04/helpdata/en/22/b4d13b633f7748b4d34f3191529946/content.htm
    Thanks
    Farooq.

  • HTTP and JDBC communication

    I have to develop a scenario with HTTP and JDBC communication. Please let me know if there are any tutorials available on it.

    Dear Rana,
    jdbc sender(theory)
    /people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
    JDBC receiver
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30 - File to JDBC
    How to use SELECT statement in JDBC scenario's.
    Ref : https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1725 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    stored procedures
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures by siva
    1278 by sriram
    Sender adapter
    /people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
    and also ref jdbc adapter in sap xi help.
    Best Regards,
    Srikanth
    Reward the useful answers and you will get one point yourself

  • Help needed in HTTP to JDBC synchronous

    Hi,
    I am doing a interface which involves the HTTP and Database (JDBC), i need to send some two fields as request and based on the certain condition of these two fields i need to get some 4 fields as response.
    Can any one please help me out in this regard so that i can atleast frame an idea and start doing the interface?
    Thanks,
    PSV.

    Hi PSV,
    BPM Not Required.., just go through the blog and see how you can use JDBC Receiver adapter for Synchronous select...
    Information provided in the blog is sufficient to solve your problem.
    Regards,

  • Message Interface for HTTP to JDBC synchronous scenario

    Hi Experts,
    Could you please explain the Message Interface from the below blog. Actually, I am confused with the Outbound Interface. Is it correct?
    /people/siva.maranani/blog/2005/09/16/xi-how-to-on-jdbc-receiver-response
    1. LoginData_Sync_OUT_MI
    Input Message : Role_MT
    Output Message : LoginData_MT  
    2. LoginData_DB_Sync_IN_MI
    Input Message : LoginData_DB_DT
    Output Message : Dummy_DT
    Regards
    Sara

    Hi All,
    Here is my Interface mapping's problem details.
    Scenario : I have to pass EmpId as a request from webservice to JDBC, If we have the EmpId address in the JDBC then we have to return the address of the employee as a response to Webservice.
    Please find the below datatype, message type and etc., which I have used it for the scenario.
    1. Data Types:
    a) DT_REQUEST ( Webservice to XI request)               
         1. EmpId
    b) DT_JDBC_REQUEST  ( XI to JDBC request)               
         1. EmpId ,2. EmpName, 3. Company,4. AddressLine1
         5. AddressLine2,6. City,7. State
    c) DT_JDBC_RESPONSE (JDBC to XI response)          
         1. EmpId ,2. EmpName, 3. Company,4. AddressLine1
         5. AddressLine2,6. City,7. State
    d) DT_RESPONSE  (XI  to Webservice response)               
         1. EmpId ,2. EmpName, 3. Company,4. AddressLine1
         5. AddressLine2,6. City,7. State
    2. Message Type created according to the Data Type.
    3. Message Interface:
    a) MI_Outbound
    <b>Output Message :</b> MT_REQUEST
    <b>Input Message :</b> MT_JDBC_RESPONSE
    b) MI_Inbound
    Input Message : MT_JDBC_REQUEST
    Output Message : MT_RESPONSE
    4. Message Mapping:
    a) MM_REQUEST[EmpId mapping]
    Source Message : MT_ REQUEST
    Target Message : MT_JDBC_REQUEST
    b) MM_RESPONSE [Mapping for all the fields]
    <b>Source Message : MT_JDBC_RESPONSE
    Target Message : MT_RESPONSE</b>
    5. Interface Mapping
    IM_WEB_DB
    Source Interface : MI_Outbound
    Target Interface : MI_Inbound
    Request :
    Source Message : MT_REQUEST
    Target Message : MT_JDBC_REQUEST
    Response :
    <b>Source Message : MT_RESPONSE
    Target Message : MT_JDBC_RESPONSE</b>
    Here the source Message should be MT_JDBC_RESPONSE and the Target Message should be MT_RESPONSE. But when I tried to create the Interface Mapping I am getting the above bolded Response Messages automatically populated by XI.
    Actually, I have followed Siva's blog to do this scenario. Finally confused with the Interface Mapping's response messages. So, please help me out with this scenario steps.
    Regards
    Sara

  • Routing error for HTTP to JDBC scenarion

    Getting following error: please advise.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Technical Routing
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="OUTBINDING">CO_TXT_OUTBINDING_NOT_FOUND</SAP:Code>
      <SAP:P1>-BS_POC_TEMP_Sender</SAP:P1>
      <SAP:P2>-POC_DB_Temp_Receiver_Channel,http://xys.com/xi/projects/syn/n1.IM_POC_TEMP_DB</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>No receiver agreement found for sender -BS_POC_TEMP_Sender to receiver -POC_DB_Temp_Receiver_Channel,http://xys.com/xi/projects/syn/n1.IM_POC_TEMP_DB</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

    Hey
    Check the URL you have provided the sender system for HTTP.then check if you have configured receiver agreement/receiver determination for that combination of sender and receiver
    The messages which is coming in sxmb_moni is unable to find any receiver side configuration for the sender attributes( like sender party/service or sender interface name).
    Thanx
    Aamir

  • Error in http-jdbc

    with reference to blog
    /people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
    i completed http to jdbc scenerio
    but in moni i got this error
    com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'pra' (structure 'recordset'): java.sql.SQLException: FATAL ERROR document format: structure 'recordset', no key element found</SAP:AdditionalText>
    can any body post suggestions,
    thanks & regards
    sandeep

    hai bhavesh, with reference to u r mesage , i uncheck the key mandatory in jdbc receiver adapter.
    now i got some different error i.e
    com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'pra' (structure 'recordset'): java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 1
    my jdbc request data type is as follows.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn://http2db" targetNamespace="urn://http2db">
         <xsd:element name="jdbc_req_mt" type="jdbc_req_dt" />
         <xsd:complexType name="jdbc_req_dt">
              <xsd:annotation>
                   <xsd:appinfo source="http://sap.com/xi/TextID">
                   40e3cd4020b611dcb6da0014221c4454
                   </xsd:appinfo>
              </xsd:annotation>
              <xsd:sequence>
                   <xsd:element name="recordset" maxOccurs="unbounded">
                        <xsd:annotation>
                             <xsd:appinfo source="http://sap.com/xi/TextID">
                             726c80600b4311dcc762fe4aac121c42
                             </xsd:appinfo>
                        </xsd:annotation>
                        <xsd:complexType>
                             <xsd:sequence>
                                  <xsd:element name="pra">
                                       <xsd:annotation>
                                            <xsd:appinfo source="http://sap.com/xi/TextID">
                                            726c80610b4311dca1c0fe4aac121c42
                                            </xsd:appinfo>
                                       </xsd:annotation>
                                       <xsd:complexType>
                                            <xsd:sequence>
                                                 <xsd:element name="access">
                                                      <xsd:annotation>
                                                           <xsd:appinfo source="http://sap.com/xi/TextID">
                                                           726c80630b4311dc8cccfe4aac121c42
                                                           </xsd:appinfo>
                                                      </xsd:annotation>
                                                      <xsd:complexType>
                                                           <xsd:sequence>
                                                                <xsd:element name="lifnr" type="xsd:string" minOccurs="0">
                                                                     <xsd:annotation>
                                                                          <xsd:appinfo source="http://sap.com/xi/TextID">
                                                                          726c80640b4311dc9f7bfe4aac121c42
                                                                          </xsd:appinfo>
                                                                     </xsd:annotation>
                                                                </xsd:element>
                                                                <xsd:element name="name1" type="xsd:string" minOccurs="0">
                                                                     <xsd:annotation>
                                                                          <xsd:appinfo source="http://sap.com/xi/TextID">
                                                                          726c80650b4311dcb353fe4aac121c42
                                                                          </xsd:appinfo>
                                                                     </xsd:annotation>
                                                                </xsd:element>
                                                                <xsd:element name="ort01" type="xsd:string" minOccurs="0">
                                                                     <xsd:annotation>
                                                                          <xsd:appinfo source="http://sap.com/xi/TextID">
                                                                          726c80660b4311dcb603fe4aac121c42
                                                                          </xsd:appinfo>
                                                                     </xsd:annotation>
                                                                </xsd:element>
                                                                <xsd:element name="key">
                                                                     <xsd:annotation>
                                                                          <xsd:appinfo source="http://sap.com/xi/TextID">
                                                                          09a635201e4011dcb3cafa21ac121c48
                                                                          </xsd:appinfo>
                                                                     </xsd:annotation>
                                                                     <xsd:complexType>
                                                                          <xsd:sequence>
                                                                               <xsd:element name="lifnr" type="xsd:string" minOccurs="0">
                                                                                    <xsd:annotation>
                                                                                         <xsd:appinfo source="http://sap.com/xi/TextID">
                                                                                         09a635211e4011dccfa0fa21ac121c48
                                                                                         </xsd:appinfo>
                                                                                    </xsd:annotation>
                                                                               </xsd:element>
                                                                          </xsd:sequence>
                                                                     </xsd:complexType>
                                                                </xsd:element>
                                                           </xsd:sequence>
                                                      </xsd:complexType>
                                                 </xsd:element>
                                            </xsd:sequence>
                                            <xsd:attribute name="action" type="xsd:string">
                                                 <xsd:annotation>
                                                      <xsd:appinfo source="http://sap.com/xi/TextID">
                                                      83dac9b01f2f11dcc0f7ee74ac121b94
                                                      </xsd:appinfo>
                                                 </xsd:annotation>
                                            </xsd:attribute>
                                       </xsd:complexType>
                                  </xsd:element>
                             </xsd:sequence>
                        </xsd:complexType>
                   </xsd:element>
              </xsd:sequence>
         </xsd:complexType>
    </xsd:schema>
    plz help me regarding this.

  • Problem with Stored procedure in JDBC Synch scenario

    Hello Experts,
    I am working on the scenario which is from HTTP <-> to <-> JDBC. It is a synchronouse scenario. We are using Stored procedure in this scenario.
    1) Please send the response structure for it.
    2) here when i am sending request to the Database it is giving me below error :
    Delivery of the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'TCS.PKG_BMF_MANAGE_SERVICE_DATA.PROC_GET_ACTIVE_MF_ESIIDS' (structure 'statement'): java.sql.SQLException: Oracle CLOB Helper: java.lang.AbstractMethodError: java/sql/Clob.setString(JLjava/lang/String;)I. Setting message to status failed.
    One of the field in Database stored procedure is of type CLOB. So can you ppl guide me that what might be the solution for this.
    Any help appriciated.
    Thanks,
    Hetal

    I am using Stored procedure and that is working fine in Oracle
    This is my XI Request structure :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:read_PROC_GET_ACTIVE_ESIIDS xmlns:ns0="http://reliant.com/xi/BMFR2">
    - <statement>
    - <PROC_GET_ACTIVE_ESIIDS action="EXECUTE">
      <table>TCS.PKG_BMF_MANAGE_SERVICE_DATA.PROC_GET_ACTIVE_MF_ESIIDS</table>
      <in_bmf_partner_id isInput="true" type="VARCHAR">994</in_bmf_partner_id>
      <in_esids isInput="true" type="CLOB">1008901001155950587100:1008901001155950545100:1008901001155950671100:1008901001155950114100</in_esids>
      </PROC_GET_ACTIVE_ESIIDS>
      </statement>
      </ns0:read_PROC_GET_ACTIVE_ESIIDS>
    This is oracle Stored procedure signature :
    PROCEDURE PROC_GET_ACTIVE_ESIIDS
    in_bmf_partner_id           IN   kss_activity_stg_curr_stat.BMF_PARTNER_ID%TYPE,
    in_esids                    IN   CLOB,
    out_recordset               OUT  sys_refcursor
    Let me know if you need any further information.
    Thanks,
    Hetal

  • JDBC Receiver Adapter - Stored Procedure - Error Illegal Parameter

    Hi experts,
    I have a problem with the next scenario:
    HTTP <-> XI -> JDBC
    XI sends the following message to JDBC Adapter in mode Receiver to execute a Stored Procedure in a Informix database:
    <ns0:mt_messageTestSP xmlns:ns0="urn:test">
      <statement>
        <hastus_exporta_dia action="execute">
          <fechaEnvio isInput="true" type="DATE">11/17/2008</fechaEnvio>
        </hastus_exporta_dia>
      </statement>
    </ns0:mt_messageTestSP>
    Note: The format that accepts the SP Informix in the field of type date is: MM/dd/yyyy
    The SP is running on an Informix database, and the parameter (fechaEnvio) that receive the SP is of type DATE. At runtime the SP does not run, and in the Component Monitoring of the Runtime Workbench I see the following error:
    Unable to execute statement for table or stored procedure. 'hastus_exporta_dia' (Structure 'statement') due to java.lang.IllegalArgumentException
    Any idea?
    Thanks,
    Jose.

    Hi,
        Check the date format...once again...
    In oracle date format is DD/MM/YYYY but if the same is sent from PI its throwing the error....
    but when i send the format as DD-Mon-YYYY its accepting and showing as DD/MM/YYYY in oracle tables
    so just try fetching the date field from the informix database and see how it is get converted into..and based on that send the format
    HTH
    Rajesh

  • Unknown channel type: JDBC

    dear everyone:
    my Scenario is  HTTP-XI-JDBC synchronous select
    Database: oracle Version: 10.2.0.2.0
    JDBC Adapter communication channel configuration as follow list:
    jdbc driver: oracle.jdbc.driver.OracleDriver
    connection: jdbc:oracle:thin:@192.168.0.180:1521:dstest
    we have configure jdbc driver and test by notes 1085539, the test result is ok.
    when we implement this scenario, i meet some error information as
    follow list:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!-- Call Adapter
    -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30"
    xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"
    SOAP:mustUnderstand="1">
    <SAP:Category>XIAdapterFramework</SAP:Category>
    <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
    <SAP:P1 />
    <SAP:P2 />
    <SAP:P3 />
    <SAP:P4 />
    <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException</SAP:AdditionalText>
    <SAP:ApplicationFaultMessage namespace="" />
    <SAP:Stack />
    <SAP:Retry>M</SAP:Retry>
    </SAP:Error>
    when i change trace_level to 3, i get detail error information:
    Unknown channel type: JDBC
    please give me some advise

    Hi,
    If This is errored out along with below message also,
    "'Transport protocol not supported in adapter XI' " then there is problem as the 'Transport protocol' in Adapter is usually 'JDBC 2.0' and not just 'JDBC'. Which SP are you on? Also, please check the JDBC Query string.
    Thanks
    Swarup

  • Jdbc synchronous not work

    I design a test scenario, http to jdbc synchronous.
    I send a test message in rwb, integration Engine. but I can't see message entry in sxmb_moni, and rwb message monitoring.
    When I send  error sql, I can see message in sxmb_moni.
    I don't know why.
    Reciever sql request message is
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:sd025QR xmlns:ns0="http://topfine.com/TG/BPM"><ST1><DML action="SQL_QUERY"><access>select  * from o_tns16_base where sapflag=&apos;0&apos;</access></DML></ST1></ns0:sd025QR>
    response message structure is:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:sd025QR_response xmlns:ns0="http://topfine.com/TG/BPM">
       <ST1_response>
          <row>
             <compcd/>
             <custcd/>
             <cigcd/>
             <baseqty/>
             <unitid/>
             <upddate/>
             <mq_lsh/>
          </row>
       </ST1_response>
    </ns0:sd025QR_response>

    got to SXMB_ADM -- > integration engine -- > specific configuration -- > change your logging_synch parameter value to 1

  • Http 2 file

    hi i have to test http2file or http 2 jdbc or http 2 rfc
    1.How to test the Http 2 file or http 2 jdbc senarios
    2.What are file required for http senario
    3.where at which location i want to place files
    4.send me the http request files.

    search the forum for http blogs lot you will find.
    For test case you need to do the follwoing
    IR
    Datatype creation (input and output)
    MessageType creation(use dt created above)
    Message interface of inbound type and outbound type
    Messagemapping
    interfacemapping
    ID
    CC for File receiver
    Receiver Determination
    Receiver agrement
    Interface determination
    Once done activate all objects
    Check the configuration with test tab in ID from menu some option you can get this
    Go to RWB and use test tab with proper test data
    Everything goes file gets generated in respective folder configured in your cc
    Rajesh

Maybe you are looking for

  • When attempting to view the date track history for one employee, errors out

    Hi All When I attempt to view the date track history for one employee, it gives errors. To get the details, the navigation is : 1. Search for employee xxxxxx 2. click on Assignment button 3. click on Date Track History. 4. Receive error APP-DT-52554.

  • What type of SCR to use?

    i need to construct a three phase full converter without using a three phase transformer to control my output voltage, but i should use the firing angle to meet: *Voltage source RMS value L-L : 750 V *Source Frequency                    : 5000Hz *Loa

  • Unlocking iPhone 5s

    I am considering upgrading to an iPhone 5s from my iPhone 4s.  I want to be able to use it overseas with a SIM card from another country (Spain, primarily).  What must I do to have the phone unlocked?

  • Is there a way to edit rules in underline options?

    A client is asking for more space between double rules being used in underline options. Does anybody know if the preset rules in InDesign can be modified or is there a way I can create/customize my own?

  • New itunes is telling me my music can not be located when i try to play

    I have upgraded to the new itunes. now when i try to play any of ny music it just tells me the file can not be located and would i like to locate it. this is really annoying.