cancel
Showing results for 
Search instead for 
Did you mean: 

Accesing Webservice through MI Client.

Former Member
0 Kudos

Hi All,

I am making a MI Application in which i have to access the OracleDB using webservices, I have created a Webservice now i have to access the Webservice through my MI Client Application. I m new to this ,can anyone help me how to proceed. What shall I do to call the webservice through mi application.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Devendrakumar,

I think there a several ways to do it.

Please have a look in this thread:

If you prefer ABAP you can consume a webservice via generated client proxy(on WebAS 640) in a ABAP function module used during MI-Sync of your MI application.

Regards.

Frank

Former Member
0 Kudos

hii frank ,

i m having a scenario whee i have to fetch data from oracle database. is it possible to use WEBAS to fecth the data from oracle DB using webservices and if it so, How it can be done.

can u please elaborate.

thanks in advance

Former Member
0 Kudos

hello deven,

do you to consume your webservice directly from your device?

if this is the case, your device should have a network

connection to make this happen. the timing of the invocation

also matters. should this be called during the synchronization

process? or your application will have its own button to

invoke it?

for online case:

you can include an proxy class that will consume your web

service. MI does not include the necessary library for WS

so you have to include them with your app. here's a good

sample on how to create a WS consumer app.

http://www-128.ibm.com/developerworks/wireless/library/wi-jsr/

for offline case:

you can invoke your web service in your BAPI. create an

ABAP proxy for your web service and call/use it in your

BAPI code which is defined/mapped for your generic sync

method. if you are using smartsync, you have to use the

exits on where to include your codes. for both cases,

you might have to convert your data from the returned

SOAP message to ABAP objects.

i think you will get some tutorial and sample on how to

create an ABAP proxy from SAP Help and from some weblogs

as well.

hope this helps.

jo

Former Member
0 Kudos

Hello deven,

"is it possible to use WEBAS to fetch the data from oracle DB using webservices and if it so, How it can be done".

Yes you can fetch the data via webservice.

Joe described it in the offline case.Instead of reading data from your sap via database selection you consume a webservice in the bapi/rfc. The MI implementation is the same. The diffence is only the coding in the bapi/rfc. I think this abap chapter about consuming webservices with abap will help you.

http://help.sap.com/saphelp_nw04/helpdata/en/bf/d005244e9d1d4d92b2fe7935556b4c/content.htm

Regards

Frank

Message was edited by: Frank Brackmann

Former Member
0 Kudos

hii jo, Frank.

I wanted to know that i have created a application using EJB to access data from oracle database,after that i associated that application with webservices.Now how can i create a Mi Application using Java Webservices.Can u please Elaborate it,

also i wanted to know that which will be the better option "java webservices" or "abap webservices".

<the timing of the invocation

also matters. should this be called during the synchronization

process? or your application will have its own button to

invoke it?

>

ya jo we have to call webservice during syncronization how we can acheive that.

I m new to this field can u please elaborate it how it can be acheived using both ways"java webservices"as well as "abap webservices".

Former Member
0 Kudos

Hi deven,

if you want to call the webservice during syncronisation of the MI-Client i would recommend you to take the abab webservice. If you are using a MI 2.5 Server(WebAs 6.40) you can write a RFC Funtion on the MI server which includes the consuming webservice and mapp this function module to your generic sync application(without a destination). You can create generic sync application on the "normal way" via NWDS.The only difficulty is consuming the webservice in the mapped ABAP function module(instead of reading data froim sap database). For that there a some good sap-tutor sessions about webservices abvailabe at sdn.

Here is the link:

https://www.sdn.sap.com/irj/sdn/elearn?rid=/webcontent/uuid/3e2f3b5e-0501-0010-d39c-a3a8ff9a15a7 [original link is broken]

hope this helps.

Frank

Former Member
0 Kudos

Hii jo,Frank.

I have created a ABAP webservice but i wanted to know that how to give the path of oracle database(is it by using sm59), how to access oracle , what settings has to be done.And then how to retreive data from the database where sholu i write the query and frank in the link which u have given u have mentioned that

<<You only have to create a smartsync-project on MI-Server(MEREP_SBUILDER). Create the RFC's on MI Server(SE80) and add them to the smartsync project without using a destination(perhaps to GET_LIST and GET_Detail).In the RFC's implement a ABAP Werbservice to the non-sap systems. On 6.40 WAS MI-Server this way is very simple and very fast developed. >>>

can u please elaborateit if i have to create a smartsync application.

Thanks in advance.

Devendra Kumar Phate

Former Member
0 Kudos

Hello deven,

i'm not a specialist on webservices,you will find the specialiste in the bsp-forum,my last webservice was in the bc416 course 1 year ago;-) But as far as i remeber you can generate a proxy object direct from se80. There you have to enter the source of the WSDL(for examle URL/UDDI/XI-Repository). After that you have to create a logical port(transaction LPCONFIG).when you create the proxy in the coding of yur rfc function module you have to give the logical port for the proxy. You didn't need the sm59.

Regards

Frank

Answers (0)