on 09-10-2009 8:40 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I found the value of the namespace I have to pass in the WSDL file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.