cancel
Showing results for 
Search instead for 
Did you mean: 

Can we call a webservice using standalone java application ?

former_member189387
Active Contributor
0 Kudos

Hi friends,

Can we call configurd webservice in xi , using standalone java application by just giving url of webservice ?

OR

Only by means of WEBDynapro we can call ?

Can you please tell me the answer for this .

Regards .,

V.Rangarajan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ranga Rajan,

you need to create a WSDL of your webservice scenario in XI.

you can find the details of the steps in the following blog.

/people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i

Then you can create your webservice client using any java IDE.

for example to create using netbeans you can follow the following steps.

http://www.netbeans.org/kb/41/tutorial-webservice.html

Regards

Pushkar

Answers (2)

Answers (2)

former_member529475
Active Contributor
0 Kudos

HI Ranga Rajan

well, If at all if you have webservice...you can import that werbserivce as External definition in to IR.

How to import:

1) Go to IR and and move to your requied component and there you can see the option called imported objects...select on imported objects where you can give the name and you can select the webservices which you want to use it.

2) Hope you are aware of that a werbservice will have the request and response.

3) Create the mapping program accroding to your requirement.

Go through blogs of Bhavesh and Naveen which talks about calling webservice in a specific condition:

Webservice Calls From a User Defined Function - /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function

Consuming/Calling webservices from DataBases - /people/sap.user72/blog/2005/10/20/consumingcalling-webservices-from-databases

Also check this help file on Web Services:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/336365d3-0401-0010-9884-a651295a...

Cheers..

Vasu

<i>** Reward Points if found useful **</i>

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>>well, If at all if you have webservice...you can import that werbserivce as External definition in to IR.

he has a WS on XI so he doens't need to import anything into XI

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>Can we call configurd webservice in xi , using standalone java application by just giving url of webservice ?

yes and not

yes you can call from standalone java application

no - you need WSLD file from XI to call it correctly

just like any other web service

Regards,

michal

former_member189387
Active Contributor
0 Kudos

Hi Michal,

Thanks for ur reply .

My scenario is like Through stand alone java application I want to call the Webservice and get back the result .

Requet --- > SOAP < -- > xi <--- > RFC

I have used Synchronous Send .

As i specified. I did the scenarion using SOAP Sender Adapter and RFC Receiver adapter . using Tools--> define Webservices i have defined the webservice it gives me the WDSL file . <b> I have tested that using ALtovaXML Spy it is accepting the request and give back the response</b>

Now i have the WSDL File then how do i test by java application ? Can you please give me some sample code to call the using WSDL File ?

Can you please tell me asap.

Regards .,

V.Rangarajan

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>>Now i have the WSDL File then how do i test by java application ?

specify the server or your IDE

do this:

for example you use netbeans

1. google.com

2. netbeans wsld import

or eclipse

1. google.com

2. eclipse wsld import

this way you will get how to guides for different IDEs on how to call a WS with WSDL

Regards,

michal