Menu

How to pass Url instead of host name

Help
2004-06-22
2013-04-24
  • Venkata Madana

    Venkata Madana - 2004-06-22

    Hi,
    My client application is need to connect server application by using URL http://localhost/server/xmlrpc. How can I specify this URL on client side? My server application is running on java.

    Thanks

     
    • Tim Laplaca

      Tim Laplaca - 2004-10-19

      I'd also like to know the answer to this.  Is it done somehow with the URI parameter in the XmlRpcClient constructor?

       
    • eric lindvall

      eric lindvall - 2004-10-19

      There isn't an overload to allow you to do that.

       
      • Tim Laplaca

        Tim Laplaca - 2004-10-19

        Thanks.

        So that URI parameter is used for something else?  Or is it a "future" thing?

         
    • eric lindvall

      eric lindvall - 2004-10-19

      The three parameters are for as follows:

      http://\[hostname]:[port][/uri]

      Usually, the XML-RPC servers will use the path "/RPC2", but they can respond to any path that is desired.

      If you were connecting to an XML-RPC server that had a non-standard path, you would specify that in the URI parameter.

       
    • Tim Laplaca

      Tim Laplaca - 2004-10-20

      Thanks for the clarification Eric.

       
    • Tim Laplaca

      Tim Laplaca - 2004-10-25

      Just to be clear: if the URL to the remote procedure is

      http://192.168.50.50/blahblah

      then should the call be:
      XmlRpcClient c("192.168.50.50", 8080, "blahblah");

      Is this correct?

       
    • Johannes Ulmer

      Johannes Ulmer - 2005-04-27

      absolutely correct

       

Log in to post a comment.