cancel
Showing results for 
Search instead for 
Did you mean: 

Webservices

Former Member
0 Kudos
81

I have a situation to integrate Java application(third party) to R3 using SAPXI.Client is a Java Application they created a webservice and gave to us. Is this the way or SAPXI has to create Webservice and give to client(Java Application). I am totally confused here. I really appreciate for your advice.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Vasu

I think WSDL needs to be provided by application to clients which is consumed by application. If your Java application is consuming Webservices by the client(here SAPXI), If it is wrong please some one correct me.

Regards,

Kar

Answers (5)

Answers (5)

Former Member
0 Kudos

Do any body please let me know the difference between client's wsdl and SAPXI generated wsdl's. Does't it make difference if client wants to create wsdls for this scenarios(java <-> SAPXI<->R3). I really appreciate for your valuable advice.

henrique_pinto
Active Contributor
0 Kudos

vasu,

you lack some concepts here.

A WSDL (Web Service Description Language) file is provided by someone who offers a web service to clients that want to consume this service.

So, if they had some application that you wanted to access, they had to give you a wsdl file which describes, with some code, what you need to do to access their service.

But the case here is the contrary. They are the client that want to consume a service that R/3 is providing. However, XI will be a "bridge" between Java and R/3. So, for the Java application, XI works as the provider of the service. So, if they want to consume your service, you will need to give to them a WSDL file (XI's generated wsdl) which describes how they access your service.

With this WSDL file, they need to create some code to implement a client application to consume the service. Some IDEs automatically create all the classes you need to communicate to the service (NWDS does that), and you access the remote application just as if you were reading some local variable.

Regards,

Henrique.

Former Member
0 Kudos

This Java <-> XI <-> R/3(RFC) is synchronous senario, that means javaapplication posts webservice then XI takes using SOAP Adapter and sends to R3 using RFC adapter and sends back Success or Fail string to Java Application. My question is Java guys already sent their wsdl, is their any way can I use this wsdl or do I need to ask them to use my wsdl(generated by SAPXI). I am confused I really thankfull for your value advice.

Former Member
0 Kudos

Hi ,

ASFASIK..You have to use XI generated WSDL file which includes the following URL in the Java application.

http://<host>:<j2ee-port>/XISOAPAdapter/MessageServlet?

channel=<party>:<service>:<channel>

and also check the above documents (How to develop webservice) for reference..

Sekhar

Former Member
0 Kudos

Hi ,

I mean that URL should be included in WSDL file while generating WSDL from XI.Use that WSDL file to create webapplication

Sekhar

Former Member
0 Kudos

Hi ,

Check these links for reference..

/people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1

https://websmp208.sap-ag.de/~sapdownload/011000358700006944112005E/HowToDevlopWebserviceApp.pdf

Also how to guide for web Services:

https://websmp208.sap-ag.de/~sapdownload/011000358700004358262004E/HowToGuideWebService.pdf

Sekhar

henrique_pinto
Active Contributor
0 Kudos

vasu,

if your scenario is Java <-> XI <-> R/3, and Java will access XI through a webservice, then you need to create an Outbound Synchronous interface and a Soap Adapter, to communicate to Java, and an Inbound Synchronous Interface and a RFC Adapter (RFC if you need synchronous communication to R/3; use IDOC if you only need asynchronous), to communicate to R/3.

Regards,

Henrique.

former_member206604
Active Contributor
0 Kudos

Hi,

From your java application you can create a SOAP request and configure XI with SOAP Sender. You can also check out for HTTP sync interface. Also look for the possibility of Java Proxy.

Thanks,

Prakash

Former Member
0 Kudos

Hi Vasu,

If your java application is a web application, then you would need to create a webservice, and from that webservice, you can create a SOAP request to connect the java application to XI.

cheers,

Prashanth

P.S Please mark helpful answers