cancel
Showing results for 
Search instead for 
Did you mean: 

Get SAP data using web services in Eclipse ADT

Former Member
0 Kudos

I want to create a simple app in android/Java which should display details for an order number.

I have created a web service for a Function Module. Now, I have to consume this web service in Eclipse ADT.

I went through many documents, but failed to get a clear picture of how to begin with.

Any documentation / sample code on how to get SAP data on my android device will be helpful.


Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Midhun,

I imported KSOAP library in project workspace and tried to print sum of two digits.

But, the app got crashed.

I went through many links where they were creating WebServiceClient but I didn't a clear picture.

So, please share some documentation or links on how should I consume web service in Java /android.

midhun_vp
Active Contributor
0 Kudos

Hi Shilpi,

I haven't tried it myself, kSOAP is not an SAP solution. Hope that you could find information in the web itself. You can post your kSOAP related questions in stackoverflow.

Regards, Midhun

SAP Customer Experience Group - CEG

midhun_vp
Active Contributor
0 Kudos

Hi Shilpi,

I assume that you are not using SAP Mobile Platform to develop your enterprise app. You can use SOAP manager to create SOAP web service that can be consumed in an android application, ex. using kSOAP library (open source).

Regards, Midhun

SAP Customer Experience Group - CEG

Former Member
0 Kudos

I am not using SAP Mobile Platform.

The web service that I have created is by using "WSADMIN" and not "SOAMANAGER". Following is a part of web service.

|||

<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"

xmlns:n0="urn:sap-com:document:sap:rfc:functions"

xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"

xmlns:tns="urn:sap-com:document:sap:soap:functions:mc-style"

xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

targetNamespace="urn:sap-com:document:sap:soap:functions:mc-style">

|||

So, will that affect the web service?

And, if not then which library should I use for eclipse if "KSOAP" is restricted only for SOAP manager.

midhun_vp
Active Contributor
0 Kudos

Hi Shilpi,

kSOAP is an open source library to parse SOAP service, it is not restricted to SOAP manager or any other tools. If you have a SOAP service with the help of kSOAP or any other library you can parse it.

kSOAP is a reference I given, you may find other libraries too to parse the SOAP service.

Regards, Midhun

SAP Customer Experience Group - CEG