Send JDBC - XI - Recv SOAP
HI,
I want to retrieve the data from Database and send this into Webservice ?
I dont have any Idea How to configure the receiver SOAP adaptor and the creation of WSDL file
Can anyone help me with the complete example of Sender Jdbc -> XI -> Receiver SOAP scenario
Abhsihek,
Sender JDBC adapter is fine, but why u wanna create WSDL? Since the receiving system is webservice, they have to give the URL. So that u can post the data to the URL (which is WSDL). U can see the URL action in SOAP receiver adapter right,there u've to give.
Refer the doc to configure Receiver SOAP Adapter:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873a22024f79
Hope it helps.
Best regards,
raj.
Similar Messages
-
Sender JDBC Adapter and Synchronous Interfaces
Hello
I have a Oracle/JDBC -> XI -> ECC/RFC scenario. The communication mode is Synchronous.
In the Oracle database I have a table with a "STATUS" field. When JDBC Adapter Sends the rows from this table to the Integration Engine, it updates the "STATUS" from "G" (GENERATED) to "R" (READ).
The response from the RFC contains for each row sent to RFC a "STATUS_from_RFC" field, that I would like to use to update Oracle STATUS field to "S" (SUCCESS) or "E" (ERROR).
Can the Sender JDBC Adapter use the response from the Synchronous RFC to update Oracle "STATUS" field itself ?
Or do I need a Receiver JDBC Adapter? In this case, I have to use asynchronous communication and BPM, ok ?
thanks
JulioBhavesh,
<i>>>>But, the online help states it supports QOS of BE and so it does support Synchronous Processing.</i>
Even File adapter has QOS of BE
To my understanding response back is possible only if it is PUSH + Sync
Adapters PUSH + Sync
HTTP
SOAP
RFC
XI
etc...
For the above response is possible
Adapter PULL + Sync
File
JDBC
etc..
In general there can be a response if there is a request. In the case of File and JDBC there is no request message coming to the adapter, its the adapter which is actually requesting.
This is just an idea and my understanding.. might not be true If possible do try it and let everyone know I will also give it a try when time permits
Thanks,
Prakash -
Can some one help me with the following error please?
I just want to read store column from Oracle database table SA_BO_SALES_TEST and create a Flat File. I have JDBC-XI-FILE scenario. I use the same Data Type for Sender(JDBC) and receiver(FILE) Message Type.
the data type is
DT_STSSales_SA_BO_SALES
resultset
row
STORE
The message type is
MT_STSSales_SA_BO_SALES
resultset
row
STORE
The message mapping is between the same message type(MT_STSSales_SA_BO_SALES) for source interface and destination interface.
The sender JDBC Adapter has
Query SQL Statement -
SELECT STORE FROM SA_BO_SALES_TEST WHERE PROCESS_DATE IS NULL
Update SQL Statement -
UPDATE SA_BO_SALES_TEST SET PROCESS_DATE='01-JAN-2006' WHERE PROCESS_DATE IS NULL
Document Name -
resultset
When i execute this scenario, The payload from any pipeline steps is
<?xml version="1.0" encoding="utf-8" ?>
- <resultset>
- <row>
<STORE>1021</STORE>
</row>
- <row>
<STORE>1021</STORE>
</row>
- <row>
<STORE>1021</STORE>
</row>
</resultset>
and it updates the Oracle table with PROCESS_DATE='01-JAN-2006' . But
One of the pipe line step "Request Message Mapping" is failed with the error.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Request Message Mapping
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_MM_STSSales_IDOC_BAPI_POSTR_CREATE~</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
<SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>During the application mapping com/sap/xi/tf/_MM_STSSales_IDOC_BAPI_POSTR_CREATE~ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>Hi Prasad,
<i>converted into the following XML wihtout any errors</i>
<i><?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_STSSales_SA_BO_SALES xmlns:ns0="http://zalecorp.com/sts_posdm_sales_10"><resultset><row><STORE>1021</STORE></row><row><STORE>1021</STORE></row><row><STORE>1021</STORE></row></resultset></ns0:MT_STSSales_SA_BO_SALES></i>
If you have given the name for your Datatype as "<ns0:MT_STSSales_SA_BO_SALES xmlns:ns0="http://zalecorp.com/sts_posdm_sales_10">", then the RESULTSET tag is not to be used.
You will have to enter this Value <b>MT_STSSales_SA_BO_SALES</b> in the SENDER JDBC ADAPTER > DOCUMENT NAME and <b>http://zalecorp.com/sts_posdm_sales_10</b> in SENDER JDBC ADAPTER> DOCUMENT NAMESPACE and then <b>Remove the Result Set tag.</b>
just take a look at the Document Name part of the JDBC adapter in this link,
http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
Regards,
Bhavesh -
Error while executing the stored procedure through sender JDBC adapter
Hi All,
I am getting below error while executing the stored procedure through sender JDBC adapter.
Database-level error reported by JDBC driver while executing statement 'exec SapgetNextEntity 'SalesOrder''. The JDBC driver returned the following error message: 'com.microsoft.sqlserver.jdbc.SQLServerException: The statement did not return a result set.'. For details, contact your database server vendor.
what is the problem? any idea to anyone...
regards
Rameshhi Dharamveer,
I am not getting below statement for your reply
Try to use Refrence Cursor it will return u reference of resultset.
I mention SP like this
exec SapgetNextEntity 'SalesOrder'
SapgetNextEntity -
> SP Name
SalesOrder----
> Parameter I am passing...
regards
Ramesh -
We have a scenario for sender JDBC adapter returning close to 2000 rows in a single snapshot. But I would like to split these at these into 2000 messages instead of 1 single message without using BPM. Any suggestions.
Juan> Hello,
>
> What you are implying is that I can have a single
> interface and use multi-mapping to split the messages
> coming inbound, into different messages ? i.e One
> interface getting 1000 ROWS by using multi mapping
> the AE would split it into 1 message per row and
> persist it.
Juan,
Yep..!! Use multimappingso that each of the 1000 record in the source is split into a separate target message . Isnt this what you need?
Regards,
Bhavesh -
Sender JDBC Communication Update SQL Command Problem!
Hi all,
I am trying to do a SENDER JDBC Scenario in XI.
I fetch the Records from the table Once per day based on the Current Date.
I do not have any Update Credentials in the table.
I can only perform Select Querry.
But when i am trying to configure the SENDER JDBC Channel its asking me to enter value for Update SQL Command in Sender JDBC communication channel Process Parameters.
Its not accepting BLANK or ' * ' Values.
But i have only Select Querry credentials in the table. I can only pick the values cant Update the tables but.
In the Above scenario how can i configure the Sender JDBC CC without Updating the Table after fetching the value?
Please Advice
Regards,
Senthilprakash.Hi,
Specify the Update SQL Statement value as .
http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
Thanks
SaNv...
Edited by: Sãnthosh Kûmãr V on Oct 8, 2008 10:44 AM
Edited by: Sãnthosh Kûmãr V on Oct 8, 2008 10:45 AM -
Sender JDBC channel stop send messages
Hi,
We have a sender JDBC scenario which is working correctly time ago.
However, sometimes this channel stop sending messages although the Adapter Monitor shows that they regularly execute the polling interval.
We have confirmed that there isn't any connection from XI to target BD.
In other ocasions, we are required to restart XI and, after that, this scenario works without any problem.
What could be the cause?
How to solve it?
thanks, in advance
CarmeThis is rather strange.
A few of my observations -
1. When the sender jdbc adapter polls , and there is no data matching the select query, you will still see a message id in Comm Channel Monitoring but with no hyper link.
2. The actual message id / message is created only if there is data in the database and also the hyper link is enabled.
3. If you are confident that the data is being commited on the database and that it is XI not pulling the right data, one issue might be - driver issues. Can you check if you have the right compatible drivers for your database on XI server - is there a new'er driver available?
We hit a similar issue with JMS adapters and we learnt that the JMS server had been updated as a result of which a new driver had to be installed which we did not until we hit intermittent problems like these.
Hope this helps
Regards
Bhavesh -
Sender JDBC to Receiver RFC scenario
Hi All,
I have to configure an scenario of sender JDBC to receiver RFC wherein SAP PI will be pulling data from third party database (Oracle).
Since I am configuring such scenario of sender JDBC, I want help on every important key aspects/prerequisites of configuring sender JDBC adapter/channel. I want to understand about Database Connection, Processing Parameters, etc. details while configuring sender JDBC channel and their significance/relevance.
Also I need guidelines about the source data structure (message type or external definition) to be used/created in ESR.
How sender JDBC channel and receiver JDBC channel differs from each other?
Please guide me on this.
Thanks & Regards,
Amit PatilHi Amit,
First of all you should read the sap.help documentation:
Configuring the Sender JDBC Adapter - Advanced Adapter Engine - SAP Library
Configuring the Receiver JDBC Adapter - Advanced Adapter Engine - SAP Library
Later, you can read Rajs's blog to advance concepts and perfomance JDBC Receiver scenarios best practices part-1
Finally, search the other blogs and documents in the SCN.
How sender JDBC channel and receiver JDBC channel differs from each other?
JDBC sender always does a poll to a DB table (with join some tables) in wich table you will need a field checkbox to mark the registers read, and the the receiver JDBC you can do a typical SQL construction like SELECT, INSERT, DELETE, etc. Both cases need the JDBC DB driver installed (check the SAP notes for this, also you can find some examples in the SCN:http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8000cffc-6b92-2d10-3493-f2ac1399242f?quicklink=index&… PI/XI: deploy a JMS/JDBC driver without JSPM? ).
Regards. -
Dynamic query configuration in sender jdbc adapter
Hi,
According my undertsnading in XI.3.0 dynamic query in sender JDBC adapter is not possible.
could any one confirms the possibility of this feature in XI 7.0 .
Thanks,
venuHi VJ,
sorry for late responding to your answer.
One of our requirements is the query statement that we write in sender communication channel should be changed dynamically, for example in where condition the condition parameters values required to change.
Thanks,
venu -
Stored procedure in Sender JDBC Adapter
Hi All,
My Scenrio goes like this ...
Stored Procedure(SQL Server) --- PI -
File
I need to write the results of stored procedure to File.Here I don't need any mapping.So how many DT , MT and MI need to be created?
The interface need to run by 6AM from Monday to Thrusday, how can i achieve this ?
Stored Procedure has only select statement and no Update statement , but it takes Date as Input parameter , so what i need to provide in sender JDBC adapter.
Thanks,
MonishHi Monish,
As per your requirement it is JDBC to File. Please be careful with the structure to be created for sender JDBC. I am unable to understand why you donot require a mapping for this. How XI will send the data to a file then.As per my knowledge if it's file to file and just pick and drop then we can neglect IR and go for ID.But here you are working with JDBC and File so you will be in need of it.
IR:
DT: 2
JDBC_Sender_DT
File_Output_DT(Optional)
You can use the JDBC sender data type structure for File output also.
MT as per your DT
MI:2
Outbound MI: JDBC structure
Inbound MI : File structure
MM: 1
IM: 1
ID as similar to other scenarios.All 1 objects for RD,ID,Sender Agreement and Receiver Agreement.
Sender JDBC channel:
Query: Select * from table where date
But I have a query how are you providing date in input paramerter.It will be dynamically entered into the query right.
You can mention the Avalibility planning for your interface to work in RWB.
Go to RWB>Component Monitoring>Adapter Engine->Communication Channel Monitoring>Avaliablity Planning
Please explain.
Regards,
Nutan -
Problem in sender JDBC adapter
hello,
I am facing one typical problem in sender JDBC adapter.
Here is the issue,
JDBC API method getString threw an exception: java.sql.SQLException: Cursor state not valid.
Can anyone please help me out in solving this problem?
Actually after a retry of 3 times the message has been successfully sent. Till then i am getting these error
On 1st attempt ,
Error during conversion of query result to XML java.sql.SQLException: Cursor state not valid
On 2nd attempt,
Error during conversion of query result to XML java.sql.SQLException: Internal driver error
(class.java.lang.InterruptedException)
On 3rd attempt,
Processing finished successfully.
This is the scenario that i can see in the audit log.
Can you please help me out in solving this issue.
Thanks,
SooryaHi gaurav,
It was a good response from your side.
I have gone through the FAQ but could not able to find anything.
Can you please help me out in this regard ?
Also i am using select query of this kind,
SELECT
SEFVHRC.VHRBRCD,SEFVHRC.VHRCUCD,SEFVHRC.VHRVIN,SEFVHRC.VHRMOCD,SEFVHRC.VHRCHAS,
SEFVHRC.VHRSLOR,SEFVHRC.VHRDIVI,SEFVHRC.VHRMGCD,SEFVHRC.VHRMOCH,SEFVHRC.VHRVHTY,
SEFVHRC.VHRBDTY,SEFVHRC.VHRMFYR,SEFVHRC.VHRMOYR,SEFVHRC.VHRMODS,
SEFVHRC.VHRMDTL,SEFVHRC.VHRCLBR,SEFVHRC.VHRRCID,SEFVHRC.VHRARDT,
SEFVHRC.VHRLUTM,SEFVHRC.VHRLUDT,SEFVHRC.VHRKEYN,SEFVHRC.VHRCTORN,
SEFVHRC.VHRCTIMP,SEFVHRC.VHRPRDT,SEFVHRC.VHRPRDT,SEFVHRC.VHRRCDT,
SEFVHFT.VHFCLCD,SEFVHFT.VHFCAT,SEFVHFT.VHFCADSC,SEFVHFT.VHFKEY,SEFVHFT.VHFTEXT1,
SEFVHFT.VHFTEXT2,SEFVHFT.VHFTEXT3,SEFVHFT.VHFTEXT4
FROM
SAPTESTLIB.SEFVHRC,SAPTESTLIB.SEFVHFT
WHERE
SEFVHRC.VHRVIN = SEFVHFT.VHFVIN AND SEFVHRC.VHRSTTS = ' '
and update query of this kind,
Update SEFVHRC SET VHRSTTS = 'R' WHERE VHRSTTS = ' '
I am using prity big select query. is there any option to optimize it?
Can you please help me out in solving this problem
urs,
Soorya -
Problem with Sender JDBC adapter using StoredProcedures
Hi All,
I am facing some prblem when i am using StoredProcedure. Please look at the error which i observe in the traces when i try to execute a stored procedure using Sender JDBC channel.
SQLException during query 'execute MAG_C0210.dbo.biz_mag_ubicaciones @data="MAG_C0210" , @idciclovida=" ", @idmaestro=" ", @idtiporeplicacion=" "':com.microsoft.sqlserver.jdbc.SQLServerException: The statement did not return a result set
Please help me in this regard ASAP.
Cheers,
SooryaHi Praveen,
It is working fine when i executed the same in the SQL editor but when I use with XI it is failing with error
mentioned earlier. Please check this and help in solving this asap.
Regards,
Soorya -
I have a select query as
SELECT * FROM ULIDTA2.F5631505 where QSINTF ='Y'
update query is
Update ULIDTA2.F5631505 set QSINTF='Y' where QSINTF ='N'
i get the following error in my Adapater .
Sender Adapter v2108 for Party '', Service 'BS_Database_to_RFC_BPM':
Configured at 2006-03-10 12:31:18 GMT+08:00
History:
- 2006-03-10 12:33:06 GMT+08:00: Retry interval started. Length: 60.000 s
- 2006-03-10 12:33:05 GMT+08:00: Error: SQLException during update 'Update ULIDTA2.F5631505 set QSINTF='Y' where QSINTF ='N'': SQLException: [SQL7008] F5631505 in ULIDTA2 not valid for operation.
- 2006-03-10 12:33:00 GMT+08:00: Processing started
- 2006-03-10 12:32:05 GMT+08:00: Error: SQLException during update 'Update ULIDTA2.F5631505 set QSINTF='Y' where QSINTF ='N'': SQLException: [SQL7008] F5631505 in ULIDTA2 not valid for operation.
- 2006-03-10 12:32:00 GMT+08:00: Processing startedHi Amit,
A JDBC sender adapter has 2 essential fields,
1. SQL Statement
2. Update Statement
Your SQL statement will contain your SELECT statement and once your SQL statement is executed, UPDATE statement is executed. This is done so that records that have been selected by the SQL statement should not be selected again as the JDBC sender adapter will poll over the database for every poll interval.
If you want to SELECT something from your Database, then you will have to go for a JDBC sender adapter.
But, if you want to insert/update your Database, then you can go for a JDBC receiver adapter.
Multiple insertions are possible for a JDBC receiver, but multiple Selection queries (different select queries) are not possible for a single JDBC sender adapter.
Just check these links to understand how JDBC adapters work,
If you wanna do update/insert you will have to follow the
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm">Document Formats for the Receiver JDBC Adapter</a>
For Configuring the Receiver JDBC Adapter refer:
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm">Configuring the Receiver JDBC Adapter</a>
For Configuring the Sender JDBC Adapter refer:
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm">Configuring the Sender JDBC Adapter</a>
Regards,
Abhy -
Stored procedure : how to call SP in sender JDBC adapter for mysql
HI friends ,
we have JDBC---->XI--
>SAP scenario. For some business requirement, we have to call STORED PROCEDURE , please let me know how to call SP in sender JDBC adapter for mysql .
Thanks
mojibHi Mojib,
Please create a sample stored procedure like this which contains select statement and in communication channel give
wite stored procedure name only to sql query statment and in update statement write <test>.
I am executing this stored procedure successfully.
Create Proc GetResultX As
Begin
Select * From TESTX
End
Execute statement for stored procedure is :
Exec GetResultX
Regards
Laxmi Bhushan Jha
Rewards point if found usful
I have given same answer to one of the same thread -
Namespace issue in Sender JDBC message
Hi All,
My scenario is pulling data from Oracle DB(3rd party) and pushing it to SAP ECC system. Here I am using the table metadata in the form of an External Definition.I am directly using this ED in my message mapping and service interface. I am able to test the mapping locally, when I run the scenario the target message type is generated but the main element node inside is automatically suppressed. The structure examples are given as below(been taken from message mapping test tab):
Source
<?xml version="1.0" encoding="UTF-8"?>
<ns0:TABLE_NAME.resultSet xmlns:ns0="urn:sap.com:jdbcAdapter">
<row>
<A/>
<BV/>
</row>
</ns0:TABLE_NAME.resultSet>
Target:
<?xml version="1.0" encoding="UTF-8"?>
<MT_Inbound>
<Main_Node>
<X/>
<Y/>
</Main_Node>
</MT_Inbound>
I guess the problem is with the namespace and prefix which is coming along with the table metadata(ns0). I tried removing it by XML AnonymizerBean module in my sender JDBC channel but this did not solve the purpose.
Request you all to help in solving this.
Thanks in Advance
Lalitkumar.As you should have already noticed, the structure of sender JDBC adapter does not match the meta data.
The structure of the ED imported is :
TABLE_NAME.resultSet
TABLE_NAME.resultSet
row
A
BV
The structure getting generated after polling the JDBC adapter is as given below(structure from moni inbound payload):
<?xml version="1.0" encoding="utf-8" ?>
- <TABLE_NAME.resultSet>
- <row>
<A>20110206</A>
<BV>06:38:56</BV>
</row>
I am not able to make out the difference here. I am able to also see the namespace when i check the same in the message mapping test tab.
I am also a little lost now as abhishek is on a different track.
Please comment.
Maybe you are looking for
-
2 iphones on one mac? Is this possible?
If I were to buy 2 iphones (one for me and one for my wife), could we have both phones linked to the same iMac? Are there any limitations to this? Would we share itunes library, etc? Thanks!
-
I used to be able to print from the browser, specifically Amazon...hit print and I would get the print/preview from windows. In IE it worked perfectly, but IE start messing up and grinding to halt, taking MINUTES to load a page, like dial-up! Firefox
-
I can't play a video from apple website..."missing plug-in" message appears but no link to click for download...help please...thanks!
-
Switching, quick question, google calendar
ive been using google cal, now im getting my macbook and will porbably want to use ical for synching with my cell. will i have to manually input everything into ical or can i import from google cal. or at least vice versa? any help is appreciated, th
-
I cannot build an xml document as a combination of nodes. pls tell me if i am doing something wrong here. PROCEDURE BUILD_XML IS doc dbms_xmldom.DOMDocument; RootNode dbms_xmldom.DOMNode; node dbms_xmldom.DOMNode; docelem dbms_xmldom.DOMElement; buf