cancel
Showing results for 
Search instead for 
Did you mean: 

web services through ABAP

Former Member
0 Kudos

Hello,

We are on WAS 6.40 / ECC6 with ABAP engine ( no J2EE).we also don't have XI.

We want to send the XML messages to our middleware using SOAP.

Now , I would like to know ,

1. How to trigger the files to destination in ABAP ?

2. Any configuration step involved ?

3. what are the system details to know , where to send the message ? How the destination system will know that they have recd XML message.

Please provide some steps.

Thanks in advance.

Best Regards

Accepted Solutions (1)

Accepted Solutions (1)

athavanraja
Active Contributor
0 Kudos

Your middleware is exposing a webserice to which you want to pass xml message and execute the same from abap program? right

for this you just need ot know the wsdl of the webservice from your middleware , using which you can create the client proxy from SE80 in ABAP (which will generate a ABAP class).

and the client proxy can ge executed which will execute the webservice and give you the result back.

Check this weblog for more details.

/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap

Regards

Raja

Former Member
0 Kudos

Hi Raja ,

Thanks for the right lead.

Another If my middleware has to pass me some data , how that can be done ?

Best Regards,

Vaibhav

athavanraja
Active Contributor
0 Kudos

<i>If my middleware has to pass me some data</i>

the data will be pushed from middleware or

you will pull it from middleware

if the data is pushed from middle ware, you can simple create a RFC fm in R/3 and expose the same as webservice and middleware can consume/execute this webservice to pass data to SAP system.

if the data has to be pulled from midleware, then the middleware has to provide a webservice which you can call from abap.

Regards

Raja

Former Member
0 Kudos

Thanks again.

I am trying to create a client proxy to consume web service , but it is giving me error 400 about client proxy not maintained . When I tried to go to SICF , and gave the proxy address / username / pwd . It still gives the same errors.

appreciate your prompt help.

Best Regards,

Vaibahv

athavanraja
Active Contributor
0 Kudos

where do you get this error? while creating the client proxy in SE80, if so just place the WSDL url in the browser and hit enter, it should show the wsdl in xml format, just save as .wsdl file in the local machine and use that to create the client proxy.

Regards

Raja

Former Member
0 Kudos

Okay , I was able to create client proxy by using file ,as you said.

But Now, when I try to execute that service from my program , it gives me error .

isn't it bcos I do not have proxy setting in SICF ?

Thanks again.

athavanraja
Active Contributor
0 Kudos

yes , you are right.

for theproxy setting to work properly apart from setting server, uid/pwd you also need set the proxy setting as active in global settings tab (sicf->client->proxy settings)

by checking the check box "proxy setting is active"

Regards

Raja

Former Member
0 Kudos

Hi ,

Do I need to put proxy server name /port ( which I use in my Internet .Explorer) ?

Do I need to put anything in HTP /HTTPS tab ?

Thanks a lot Raja for your help.

Best Regards,

athavanraja
Active Contributor
0 Kudos

1. go to

SICF->client->proxy settings,

in the resulting dialog box.

2. Global settings tab

check the check box "Proxy setting is active"

also you may want to fill "No proxy for following address" for the servers for which you dont need proxy

3. HTTP log Tab

(the same proxy desilts you use in internet explore)

host name = proxy.domain.com

port: proxy port

user name proxy user name

pwd: proxy pwd

and then click ok

Regards

Raja

Former Member
0 Kudos

HI,

Thanks, I will try that.

I have another question,

Is it possible to pass XML file from ABAP to Middleware using BAPI/RFC ?

Thanks a ton.

athavanraja
Active Contributor
0 Kudos

yes, you can pass the xml file content as a stream,

Regards

Raja

Answers (0)