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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:03:11+00:00 2026-05-30T16:03:11+00:00

I look at the following is a sample SOAP 1.1 request to SP server,

  • 0

I look at the following is a sample SOAP 1.1 request to SP server, but its does not matter.

POST /_vti_bin/lists.asmx HTTP/1.1
Host: 192.168.0.25
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://schemas.microsoft.com/sharepoint/soap/GetList"

<?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>
    <GetList xmlns="http://schemas.microsoft.com/sharepoint/soap/">
      <listName>string</listName>
    </GetList>
  </soap:Body>
</soap:Envelope>

The field Content-Length: length need to be replaced with actual values. What its value? Where is I can see it? Or how to calculate it value before request?

UPD1.
I use ksoap lib

 headerPropertyObj = new HeaderProperty("Content-Length", "383"); // should be calc before
 headerList.add(headerPropertyObj);

    transport.setUrl(URL);
    request = new SoapObject(NAMESPACE, METHOD_NAME);

   request.addProperty("listName", "Tasks");


    envelope.setOutputSoapObject(request);

    transport.call(SOAP_ACTION, envelope, headerList);
  • 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-30T16:03:12+00:00Added an answer on May 30, 2026 at 4:03 pm

    I solved this problem. I wrote myself class

    public class MyHttpTransportSE extends Transport
    

    where is I reloaded call method like below

         public List call(String soapAction, SoapSerializationEnvelope envelope, List headers)
         throws IOException, XmlPullParserException {
    
                 if (soapAction == null)
                         soapAction = "\"\"";
    
                 byte[] requestData = createRequestData(envelope);
    
                 requestDump = debug ? new String(requestData) : null;
                 responseDump = null;
    
                 connection = getServiceConnection();
    
                 connection.setRequestProperty("User-Agent", "kSOAP/2.0");
    //           connection.setRequestProperty("SOAPAction", soapAction);
    //           connection.setRequestProperty("Content-Type", "text/xml");
                 connection.setRequestProperty("Content-Type", "application/soap+xml");
                 connection.setRequestProperty("Connection", "close");
                 connection.setRequestProperty("Content-Length", "" + requestData.length);
    

    Its helped for me, I hope this helps for smb.

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

Sidebar

Related Questions

Have a look at the following code you are not required to read the
I've been following Apple's TableSearch code example, but it's not working for me and
Please have a look a the following code sample, executed on a Windows-32 system
If you look at this MSDN documentation there is a sample with the following
Please look at the following test page : sample page showing two images .
Look at the following picture, which is showing a smart tag for DataGridView. DataGridView
Take a look that the following code snippet: A a = null try {
Please take a look at the following .htaccess ErrorDocument 404 /404/ RewriteEngine On RewriteRule
I need to import sheets which look like the following: March Orders ***Empty Row
I have a data source with about 2000 lines that look like the following:

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.