cancel
Showing results for 
Search instead for 
Did you mean: 

ksoap2 parameters and SAP Web Services

Former Member
0 Kudos

Hi,

I was able to call a [Web Service|http://www.dataaccess.nl/wk2006/footballpoolwebservice.wso?op=StadiumNames] using ksoap2 however I don't know which parameters I should use for SAP Web Services.

I try to consume a standard portal WS but I don't know if the parameters are ok. I got an error during the call :

SoapFault - faultcode: 'wsse:InvalidSecurity' faultstring: '001EC9B440CF005C0000028800001F200004733417ACFF21 : Found 0 operation definitions using keys: Key name:'first-body-element-ns' key value:'urn:GRMGWSTestBeanWSD/GRMGWSTestBeanVI/document'; Key name:'SoapRequestWrapper' key value:'testWebServices'; ' faultactor: 'null' detail: org.kxml2.kdom.Node@437c2e30

Here's my code :

private static final String SOAP_ACTION = "";
private static final String METHOD_NAME = "testWebServices";
private static final String NAMESPACE = "urn:GRMGWSTestBeanWSD/GRMGWSTestBeanVI/document";
private static final String URL = "http://<hostname>:<port>/GRMGWSTest/service/porttypes?wsdl&style=document";

SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(request);

HttpTransportSE httpTransportSE = new HttpTransportSE(URL);
httpTransportSE.call(SOAP_ACTION, envelope);

Does anyone know how to use ksoap2 to consume SAP WS?

Regards,

Pierre

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Dont know much about KSOAP2, but have tried using axis2 to call SAP web services with eclipse as netbeans ide. Need not to do much other than supplying correct credential (userid and password ) as per the configuration maintained for web service.

you can try posting this in SOA forum as well.

regards

pradeep

Former Member
0 Kudos

Hi Pradeep,

Well, I was able to consume SAP Web Services from ABAP backends or using BlackBerry MDS Studio or soapUI but I don't know how to do it with ksoap2.

Regards,

Pierre

Former Member
0 Kudos

Hi

On a quick glance ksoap2 ,java based, appears to be meant for constraint devices. I could not find whether it specifically follows jsr for webservices for j2me/mobile devices.

May be that information can help how to go about the issue you are facing.

regards

pradeep

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Pierre,

I am also facing same problem of how to use abap webservices (BAPI_Flight_getList) in android using Ksoap2. Can you please explain how you solved problem and how to determine values for different Ksoap2 inputs.

Thanks

Former Member
0 Kudos

Hi,

I wrote a blog about this topic last year : /people/pierre.dominique2/blog/2009/10/30/consuming-soap-web-services-with-android

Regards,

Pierre

Former Member
0 Kudos

I found the value of the namespace I have to pass in the WSDL file.