Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7578519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:27:04+00:00 2026-05-30T17:27:04+00:00

When I run this application I got the exception: 02-04 09:31:37.213: WARN/System.err(538): org.xmlpull.v1.XmlPullParserException: expected:

  • 0

When I run this application I got the exception:

02-04 09:31:37.213: WARN/System.err(538): org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope

(position:START_TAG <{http://schemas.xmlsoap.org/wsdl/}wsdl:definitions targetNamespace=’urn:sap-com:document:sap:soap:functions:mc-style’>@1:686 in java.io.InputStreamReader@4052d188)

How can i resolve it ? here i am using Ksoap2.jar for calling webservices is there any alternative to call sap soap webservices with android ?
thanks in Advance…

package com.appu.pack;

import org.ksoap2.SoapEnvelope;
import org.ksoap2.serialization.SoapObject;
import org.ksoap2.serialization.SoapSerializationEnvelope;
import org.ksoap2.transport.HttpTransportSE;

import android.app.Activity;
import android.os.Bundle;

public class SampleFinalSapActivity extends Activity {
    /** Called when the activity is first created. */
    private final String NAMESPACE ="urn:sap-com:document:sap:soap:functions:mc-style";//this is my server namespace..
    private final String METHOD_NAME ="ZMATERIALS_GROUP_LIST";
    private final String SOAP_ACTION = NAMESPACE + "/" + METHOD_NAME;
    private final String URL ="http://************:8000/sap/bc/srt/wsdl/srvc_14DAE9C8D79F1EE197AD09B4D05C4345/wsdl11/allinone/ws_policy/document?sap-client=800&sap-user=*****&sap-password=******";
            @Override
        public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        SoapObject Request = new SoapObject(NAMESPACE, METHOD_NAME);
        
        Request.addProperty("Language", "d"); //this is the one of the property in wsdl file 
        
        System.out.println("the  Request is :::::"+Request);
         
       SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
       envelope.setOutputSoapObject(Request);
       
        HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
        
        System.out.println("TRANSPORT:"+androidHttpTransport);
 
 try
        {   
     
         androidHttpTransport.call(SOAP_ACTION, envelope);
        androidHttpTransport.debug = true;  //this is optional, use it if you don't want to use a packet sniffer to check what the sent message was (httpTransport.requestDump)
         
        //Object result = envelope.getResponse(); //getting response here
                
        //SoapPrimitive result1 = (SoapPrimitive)envelope.bodyIn;
        
       // System.out.println("Result : " + result1.toString());

     SoapObject response = (SoapObject)envelope.getResponse();
     
     System.out.println("RESPONSE:"+response);
        }
       catch(Exception e)
        {
            e.printStackTrace();
        }
    }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T17:27:05+00:00Added an answer on May 30, 2026 at 5:27 pm

    may be a little mistake in code.I couldn’t understand find that mistake.I think there may be problem in the URL.
    may be you can refer my answer.
    Android Java connect to online database
    working code is posted there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Application.Run(form); Actually I tried to call this from my project. I got this exception.
This is the exception that I am getting when I run my application with
While migrating a legacy application to spring security I got the following exception: org.springframework.beans.factory.BeanCreationException:
when i run my application it is the error i get... This application has
I was wondering how to get this to run. In my application I have
This is the ability to run your application on a cluster of servers with
I get this error when I run the application Incorrect syntax near 12 ,
when I call Application.Run() on a form, this command halts the program until the
when i run the my asp.net application it is showing this message can u
This is an odd thing I've just run into. I have a web application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.