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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:47:48+00:00 2026-05-24T04:47:48+00:00

In my application I want to send a SOAP request to some url, the

  • 0

In my application I want to send a SOAP request to some url, the SOAP request to be sent is as below

POST /TelLink/WrenchENTService.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://WrenchGlobal/GetToDoList"

<?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>
<GetToDoList xmlns="http://WrenchGlobal/">
    <viPeriod>int</viPeriod>
    <vsUserID>string</vsUserID>
  </GetToDoList>
</soap:Body>
</soap:Envelope>

In the above code, I will have to replace “int” and “string” with actual values and it will invoke GetToDoList on the server. My problem is, I dont know how to send this request to the server? (using httppost) Could anyone help me out?

  • 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-24T04:47:48+00:00Added an answer on May 24, 2026 at 4:47 am
    int viPeriod;
    String vsUserID;
    String NAMESPACE = "http://WrenchGlobal/";
    String SOAP_ACTION = "http://WrenchGlobal/GetToDoList";
    String METHOD_NAME = "GetToDoList";
    
    String result = null;
    Object resultRequestSOAP = null;
    
    SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
    
    request.addProperty("viPeriod", viPeriod);
    request.addProperty("vsUserID", vsUserID);
    
    SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
                    SoapEnvelope.VER11);
    
    envelope.dotNet = true;
    envelope.setOutputSoapObject(request);
    
    HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
    androidHttpTransport.debug = true;
    
    try {
        androidHttpTransport.call(SOAP_ACTION, envelope);
    
        String requestDumpString = androidHttpTransport.requestDump;
        System.out.println("requestDump : " + requestDumpString);
    
        resultRequestSOAP = envelope.getResponse(); // Output received
        result = resultRequestSOAP.toString(); // Result string
    
        System.out.println("OUTPUT : " + result);
    } catch (Exception e) {
        e.printStackTrace();
    }
    

    Hope this would help.

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

Sidebar

Related Questions

In my web application I want to send some text back in the addActionError(User
In my application i want to send mail to some one. If i use
I want to send stored RMS data using an HTTP connection when the application
In my application I want to send some alerts to the client. I want
I've got an application which i want to send some alerts information. Currently, it's
I want to send an Application Key Presses, To Automate some stuff that has
I want to send some keystroke to the external application, and it's work fine,
We want to send mail from inside my tomcat web application. I inherited some
In my application i want send a email to one account.in one button click
I want to send notification from PHP application and same time it should be

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.