Re: [ksoap2-android] org.xmlpull.v1.XmlPullParserEx ception: expected: START_TAG using ksoap2-android

66 views
Skip to first unread message

Manfred Moser

unread,
May 2, 2012, 1:29:00 PM5/2/12
to ksoap2-...@googlegroups.com
SOAPACTION has to be the name of the soap action and not just ""

manfred

On Wed, May 2, 2012 at 12:50 AM, poltyrgaist <todor88...@gmail.com> wrote:
> Hello,
>
> I've been searching all over the internet for a solution to this error
> msg but nothing works for me.
> WSDL link:
> http://ds4.springconsulting.dk/sap/bc/srt/wsdl/bndg_E17E348A6F39CAF19A6F005056AB5DCF/wsdl11/allinone/ws_policy/document?sap-client=800
>
> Endpoint link: http://SAPDS4.TEAMR3.COM:8000/sap/bc/srt/rfc/sap/zcats_mobility_ws/800/zcats_mobility_ws/zcats_mobility_ws
>
> This is my code for trying to send a msg to the service:
> String url = "http://ds4.springconsulting.dk/sap/bc/srt/wsdl/
> bndg_E17E348A6F39CAF19A6F005056AB5DCF/wsdl11/allinone/ws_policy/
> document?sap-client=800";
>        String METHOD_NAME = "ZcatsValidateprofile";
>        String SOAP_ACTION = "";
>        String NAMESPACE = "urn:sap-com:document:sap:soap:functions:mc-
> style";
>
>        HttpTransportSE http = new HttpTransportSE(url);
>
>        http.debug = true;
>        SoapSerializationEnvelope envelope = new
> SoapSerializationEnvelope(SoapEnvelope.VER11);
>        SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
>        envelope.setOutputSoapObject(request);
>        http.setXmlVersionTag("<?xml version=\"1.0\" encoding=
> \"UTF-8\"?>");
>       http.call(SOAP_ACTION, envelope);
>
> So i keep getting this error..I've tried many different options,
> variations... and nothing. In the namespace i have different methods.
> I have tried this way : String url = "http://SAPDS4.TEAMR3.COM:8000/
> sap/bc/srt/rfc/sap/zcats_mobility_ws/800/zcats_mobility_ws/
> zcats_mobility_ws/";
>        String METHOD_NAME = "ZcatsValidateprofile";
>        String SOAP_ACTION = "http://SAPDS4.TEAMR3.COM:8000/sap/bc/srt/
> rfc/sap/zcats_mobility_ws/800/zcats_mobility_ws/zcats_mobility_ws/
> ZcatsValidateprofile/";
>        String NAMESPACE = "http://SAPDS4.TEAMR3.COM:8000/sap/bc/srt/
> rfc/sap/zcats_mobility_ws/800/zcats_mobility_ws/zcats_mobility_ws/";
>
>
> In SoapUI I enter the wsdl link and I get "ZCATS_MOBILITY_WS" with all
> the methods. Please help.
Reply all
Reply to author
Forward
0 new messages