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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:29:12+00:00 2026-06-10T17:29:12+00:00

I must make the following soap request, but we can not succeed, I tried

  • 0

I must make the following soap request, but we can not succeed, I tried in several ways and fails, I always get a blank field in response.

Request should look like this:

POST /service.asmx HTTP/1.1
Host: host
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "SOAPAction"

<?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>
    <GetQuickParkEvents xmlns="NAMESPACE">
      <User>
        <ID>int</ID>
        <Name>string</Name>
        <UserName>string</UserName>
        <Password>string</Password>
      </User>
      <Filter>
        <TimeSpan>
          <Since>dateTime</Since>
          <To>dateTime</To>
        </TimeSpan>
        <Reg>string</Reg>
        <Nalog>string</Nalog>
        <Status>string</Status>
        <Value>string</Value>
      </Filter>
    </GetQuickParkEvents>
  </soap:Body>
</soap:Envelope>

I have this code for now:

public static Object vrati_ds(String id, String name, String username, String password, String since, String to, String reg, String korisnik, String nalog, String nameString status, String value){
    try{
        SoapObject _client = new SoapObject(Konstante.NAMESPACE1, Konstante.METHOD_NAME);
        _client.addProperty("ID", id);
        _client.addProperty("Name", name);
        _client.addProperty("UserName", username);
        _client.addProperty("Password", password);
        _client.addProperty("Since", since);
        _client.addProperty("To", to);
        _client.addProperty("Reg", reg);
        _client.addProperty("Korisnik_app", korisnik);
        _client.addProperty("Nalog", nalog);
        _client.addProperty("Status", status);
        _client.addProperty("Value", value);
        SoapSerializationEnvelope _envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
        _envelope.dotNet = true;
        _envelope.setOutputSoapObject(_client);
        HttpTransportSE _ht = new HttpTransportSE(Konstante.URL1);
        _ht.call(Konstante.SOAP_ACTION, _envelope);
        return _envelope.getResponse();
    } catch(Exception e) {
        return null;
    }
}

I thank you in advance if anyone can 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-10T17:29:14+00:00Added an answer on June 10, 2026 at 5:29 pm

    For now I hardcoded xml request manually, so if anyone can help, here are the source code which works:

    public static Object getEvent2(int id, String name, String username, String password, String since, String to, 
            String reg, String nalog, String status, String value ) throws Exception {
    
        String response= null;
        String xml = null;
    
        HttpClient httpClient = new DefaultHttpClient();
        HttpPost httpPost = new HttpPost(Konstante.URL);
    
        SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
        envelope.encodingStyle = SoapSerializationEnvelope.ENC;
    
        String bodyOut = "<?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/\">";
        bodyOut += "<soap:Body><"+Konstante.EVENS_METHOD_NAME+" xmlns=\"" + Konstante.NAMESPACE + "\">";
        bodyOut += "<User><ID>" + id + "</ID><Name>" + name + "</Name><UserName>";
        bodyOut += username + "</UserName><Password>" + password + "</Password></User>";
        bodyOut += "<Filter><TimeSpan><Since>" + since + "+02:00" + "</Since><To>" + to + "+02:00" +"</To></TimeSpan>";
        bodyOut += "<Reg>" + reg + "</Reg><Nalog>" + nalog + "</Nalog><Status>" + status + "</Status><Value>" + value + "</Value></Filter>";
        bodyOut += "</"+Konstante.EVENS_METHOD_NAME+"></soap:Body></soap:Envelope>";
    
        xml = bodyOut;
    
        StringEntity se = new StringEntity(xml, HTTP.UTF_8);
        se.setContentType("text/xml");
        httpPost.addHeader(Konstante.EVENS_SOAP_ACTION, Konstante.URL);
        httpPost.setEntity(se);
    
        HttpResponse httpResponse = httpClient.execute(httpPost);
        HttpEntity resEntity = httpResponse.getEntity();
        response = EntityUtils.toString(resEntity);
    
        return response;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make the following code work, but I get an compile error:
This must be really obvious, but how do I make a winsock listen to
In my following code, I am calling function Make Request that is located in
I have a project where I must make the following; You have a small
is there any way i can make the following work, or is there a
Let's say I make the following cursor to get the call log of someone:
i want to make my table can filtering in each column. i get client
I make Android application which must receive data from the page http://example.com/get.php?id=1 . For
I frequently hear/read the following advice: Always make a copy of an event before
We are planning to develop a Flex application that must make AMF calls to

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.