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 7766409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:24:34+00:00 2026-06-01T15:24:34+00:00

I have and android client, that uses ksoap to communicate with a wsdl web

  • 0

I have and android client, that uses ksoap to communicate with a wsdl web service written in c# asp.net. I have a problem with matching the argument types between the web service and the client.
The web server expects to this kind of request (auto generated):

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetDetails xmlns="http://host.org/">
      <event_id>int</event_id>
    </GetDetails>
  </soap:Body>
</soap:Envelope>

the client sends requests using ksoap, and they look like this:

<v:Envelope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/" xmlns:v="http://schemas.xmlsoap.org/soap/envelope/">
   <v:Header />
       <v:Body>
           <n0:GetDetails id="o0" c:root="1" xmlns:n0="http://tempuri.org">
              <event_id i:type="d:int">1</event_id>
           </n0:GetDetails>
       </v:Body>
</v:Envelope>

For some reason the WS parses the following’ client’s request as 0 (I guess because of the additional type attributes – i:type=”d:int”) when the request is assembled manually to look like the first option, it works correctly.
How can i make the web service read the ksoap format correctly or how can i change it’s expected format to look like ksoap request. (the web service soap protocol is auto generated).

  • 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-06-01T15:24:35+00:00Added an answer on June 1, 2026 at 3:24 pm

    Well the solution has 2 parts:
    1. regarding removing the attribute types, I found the answer here:
    using addMapping without the "i:type=" attribute in ksoap2 for android
    I neede to set:

    envelope.implicitTypes = true;
    
    1. The name space has to end with a backspace, and i missed it.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a client and a server app on Android (that uses ZeroC -
I currently have a Service in Android that is a sample VOIP client so
I have a simple client-server app on android. the android service communicates with the
I have an Android client that needs to authenticate with a python Google App
I am working on an Android app that uses the gdata-java-client to download documents
I am coding an Android client that talks to some web services via XML
In my current app for Android I have an HTTP client that sends a
I have an Android java library that uses some native code. I have added
I have WCF RESTful service and Android client. Server replies with 400 when I
I have got my android app that uses HttpClient to reach my servlet deployed

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.