XML-RPC

micheal john

micheal john

@micheal-john-l1fIn3 Oct 20, 2024
Hi Ceans,

I'm new to remote procedure call, i need to communicate to remote server via java program,
i tried to use ws-xmlrpc(apache lib), but could not find any methods which supports my xml request.
i tried google but could not find anything.

can anyone help to find which library should i use and my request type looks like
<?xml version="1.0" encoding="UTF-8"?>
<transaction type="search" are_you_performing_search="Y" client_ref="test_search" reference="test">
  <statement>
    <fs fs_no="123"/>
  </statement>
</transaction>
thanks

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • micheal john

    micheal john

    @micheal-john-l1fIn3 May 7, 2014

    code used to send xml to server

        String xmlString = "xml request";
        HttpPost httpPost = new HttpPost("sever address");
        StringEntity reqEntity = new StringEntity(xmlString);
        HttpClient httpclient = new DefaultHttpClient();
        HttpResponse response = httpclient.execute(httpPost);
        response.getEntity();
    output i get is "The XML request file specified by the client was not found or the file was found to be empty."