cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Web Services between two SAP systems.

Former Member
0 Kudos

Hi Experts,

I am trying to trigger a web service created in one of the SAP system from a different R/3 system through WDA.

Kindly help me out on what are the configurations to be done like linking two systems (do i require this?) etc..

I have successfully obtained the WSDL file, but could not use it in my second system. It says , it encountered an error. I wonder if i am required to do any configurations.

All suggestions are welcome.

Thanks and Regards,

Anto.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Antony,

could you be slightly more specific about the error you are getting while executing.

What is the exact error message that you are getting..?

Regards

Pushkar

Former Member
0 Kudos

Hi Pushkar,

The error is - <u><i>Error while reading from file - <WSDL URL></i></u>.

Nothing else. I tried this in a adobe form.

Thanks and Regards,

Anto.

Former Member
0 Kudos

Hi Antony,

By Proxy Object, I meant Class to consume WebService in your second system.

Lemme summarize, what you have done and lemme know where I am wrong.

System A.

You exposed an RFC enabled Func Module or BAPI as a webservice.

After this you have checked it using WSADMIN, and you have tested this as well.

And finally you saved the WSDL file of this Web Service.

System B.

you create a Proxy Object as specified in the link I provided.

you create the RFC destination n did the Logical Port Configuration as per that link.

Now you can use this proxy class any where , in any abap code.

you can use this in WDA as well.

But before doing so, I would suggest to write a test report as suggested in the link and test if your webservice is working fine.

Now please tell me where did you do the things differently.

Regards

Pushkar

Former Member
0 Kudos

Hi Pushkar,

I tested it in a program, but the web service is not providing the desired result.. any idea regarding this?

I checked the result by testing the web service.

-anto.

Former Member
0 Kudos

Hi Antony,

it means there is a system error, probably the RFC destination is not defined properly.

you can check the exact error by catching the exceptions in your code using

Catch between

Try

&

End Try.

Well, when you create your RFC Destination, just provide the hsot name and service no is 80 + your system no.

leave path prefix blank.

On logon security tab use basic authentication radio button with target sys user id n pwd.

when you create the logical port using LPCONFIG, provide the RFC destination name against the http destination and path suffix in the following format.

/sap/bc/srt/rfc/sap/<function module name>?sap-client=950

Regards

Pushkar

Former Member
0 Kudos

Dude, thank you very much :). You guessed it rite.

issue resolved

Good !!.

- anto.

Answers (2)

Answers (2)

Former Member
0 Kudos

Former Member
0 Kudos

Hi Antony,

How did you try this. I do not have much idea about WDA.

Well, my approach would be

1) Creating a Proxy Object using SE80 as suggested in the following blog.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6066fbe8-edc4-2910-9584-a9601649...

2) Using this in your method in WDA.

Regards

Pushkar

Former Member
0 Kudos

Hi,

I am able to create the proxy and linking the web service etc. but when i am using the web service from a different system, i am getting the error saying - an error has occured in the same.

Kindly help.

Thanks and Regards,

Anto.