• aditya singh 68
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Issue # 1

The XML-RPC java Library provided by SalesForce.com does not support a common method of

calling applications thru a proxy. The standard java code snippet normally allows

applications to converse outside our proxy. This code fragment works with our proxy.

The code is:

System.getProperties().put( "proxySet", "true" );

System.getProperties().put( "proxyHost", "gateway.xyz.net" ); //This is the proxy entry in the Browser.

System.getProperties().put( "proxyPort", "80" );

String password = "userid:password";

BASE64Encoder enc = new sun.misc.BASE64Encoder();

String encoded = enc.encode(password.getBytes());

connection.setRequestProperty( "Proxy-Authorization", "Basic " + encoded );

 

Issue #2

The XMLRPC library provided by SalesForce.com has modifications that are not in the

public domain apache.org XMLRPC jar file. The Apache Library Standard does not have:

setSessionId(). This prevents us from making changes to the public XMLRPC

source (.java) to handle Proxies as mentioned above.

 

  • June 27, 2003
  • Like
  • 0