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

  • Home
  • SEARCH
  • 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 8207085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:53:26+00:00 2026-06-07T08:53:26+00:00

I sent a resquest in android to webservice PHP with ksoap2 as: String NAMESPACE=http://www.localhost:81/wsdl;

  • 0

I sent a resquest in android to webservice PHP with ksoap2
as:

  String NAMESPACE="http://www.localhost:81/wsdl";
             String METHOD_NAME="insertUser";
             String SOAP_ACTIONS="http://www.localhost:81/wsdl#insertUser";
             String URL="http://10.0.2.2:81/phpWebservice/pgsql.php";
             SoapObject request=new SoapObject(NAMESPACE, METHOD_NAME);
             **request.addProperty("name","地獄");**       
             request.addProperty("birthday", "2012/02/01");     
             SoapSerializationEnvelope envelope=new   SoapSerializationEnvelope(SoapEnvelope.VER11);
             //envelope.dotNet=true;
             envelope.setOutputSoapObject(request);
             HttpTransportSE androidhttpTranport=new HttpTransportSE (URL);
androidhttpTranport.call(SOAP_ACTIONS, envelope);

Webservicde php as:

  require("nusoap.php");
  $server = new soap_server();
  $server->register('insertUser',                    // method name     
  array('name' => 'xsd:string','birthday'=>'xsd:string'),          // input parameters
  array('return' => 'xsd:int'),    // output parameters
  $namespace,                         // namespace
  $namespace . '#insertUser',                   // soapaction
  'rpc',                                    // style
  'encoded',                                // use
  'Get all user id dua vao =0'        // documentation
);  

function insertUser($name,$birthday)
{
value of $name=?? Why
}

value of ‘name’ from android is “地獄”
but webserver $name=’??’
value of $name at webservice is error.
Can you help me?

  • 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-07T08:53:27+00:00Added an answer on June 7, 2026 at 8:53 am

    You can encode and decode

    String encoded =URLEncoder.encode("地獄", "UTF-8"); at app            
    String de= URLDecoder.decode(encoded, "UTF-8"); at server
    

    ( http://php.net/manual/en/function.urldecode.php)

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

Sidebar

Related Questions

i'm trying to send an http request from an Android app to a Java
I have added the library ksoap2-android-assembly-2.4-jar-with-dependencies.jar but i am getting below error : Exception
i have sent method in objective-c of sending http post and in the body
I never see how is PUT/DELETE request sent. How to do it in PHP?
I have a JSON string : [{\is_translator\:false,\follow_request_sent\:false,\statuses_count\:1058}] Using PHP's json_decode() on the string and
I am writing a SOAP webservice with java-axis which is interacting with an Android
I'm using DefaultHttpClient with a ThreadSafeClientConnManager on Android (2.3.x) to send HTTP requests to
Im writing an android app that connects to my own Jersey rest client. HTTP
Problem : Can't receive a file sent to my android app via XMPP and
I'm creating a CMS, and want all request sent to Default.aspx except for the

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.