• ashok
  • NEWBIE
  • 0 Points
  • Member since 2003

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 7
    Replies

Is there an undelete call from the SOAP API. The undelete only works at the browser level. We are looking for something like a roll back command using the API.

Thx
Ashok

  • February 19, 2004
  • Like
  • 0

Step 1: Save the enterprise sfdc.wsdl file from salesforce.com

Step 2: /home/ibmweb/download/j2sdk1.4.2_03/bin/java -classpath quickstart.jar org.apache.axis.wsdl.WSDL2Java  -a -T 1.2 sfdc.wsdl

Error Message:
sfdc.wsdl Line=1: XML declaration may only begin entities.
        at org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(XMLUtils.java:624)
        at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3342)
        at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3327)
        at org.apache.crimson.parser.Parser2.maybePI(Parser2.java:1107)
        at org.apache.crimson.parser.Parser2.maybeMisc(Parser2.java:1233)
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:621)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
        at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
        at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:322)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:367)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:384)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245)
        at java.lang.Thread.run(Thread.java:534)

Where do I start ??? to fix this...

 

 

  • February 04, 2004
  • Like
  • 0

I am used to the old SOAP api which has the following classpath:
CLASSPATH=.:$HOME/xalan/bin/xalan.jar:$HOME/axis/lib/wsdl4j.jar:$HOME/axis/lib/axis.jar:$HOME/axis/lib/commons-discovery.jar:
$HOME/axis/lib/commons-logging.jar:$HOME/axis/lib/jaxrpc.jar:$HOME/axis/lib/saaj.jar:$HOME/axis/lib/log4j-1.2.4.jar:$HOME/axi
s:$HOME/xerces/xercesImpl.jar:$HOME/xerces/xmlParserAPIs.jar:

What else should I add to the classpath to make the new api compile for me to run the samples.

I downloaded the 2.5 api on 12/11/2003.

Thanks

Ashok


 

  • December 11, 2003
  • Like
  • 0

We need to design Beans/Servlets with the SalesForce API (XMLRPC). One of the conditions is outbound and inbound ports to open with the firewall,  Has anybody done this.

Our Archtecture:

[Browser] --> [App Server] (JSP, Bean(SFAPI), Servlet(SFAPI))] -> SalesForce.com

What are the firewall rules that we need to setup.

  • July 03, 2003
  • Like
  • 0

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

Step 1: Save the enterprise sfdc.wsdl file from salesforce.com

Step 2: /home/ibmweb/download/j2sdk1.4.2_03/bin/java -classpath quickstart.jar org.apache.axis.wsdl.WSDL2Java  -a -T 1.2 sfdc.wsdl

Error Message:
sfdc.wsdl Line=1: XML declaration may only begin entities.
        at org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(XMLUtils.java:624)
        at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3342)
        at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3327)
        at org.apache.crimson.parser.Parser2.maybePI(Parser2.java:1107)
        at org.apache.crimson.parser.Parser2.maybeMisc(Parser2.java:1233)
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:621)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
        at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
        at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:322)
        at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:367)
        at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:384)
        at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245)
        at java.lang.Thread.run(Thread.java:534)

Where do I start ??? to fix this...

 

 

  • February 04, 2004
  • Like
  • 0

I am used to the old SOAP api which has the following classpath:
CLASSPATH=.:$HOME/xalan/bin/xalan.jar:$HOME/axis/lib/wsdl4j.jar:$HOME/axis/lib/axis.jar:$HOME/axis/lib/commons-discovery.jar:
$HOME/axis/lib/commons-logging.jar:$HOME/axis/lib/jaxrpc.jar:$HOME/axis/lib/saaj.jar:$HOME/axis/lib/log4j-1.2.4.jar:$HOME/axi
s:$HOME/xerces/xercesImpl.jar:$HOME/xerces/xmlParserAPIs.jar:

What else should I add to the classpath to make the new api compile for me to run the samples.

I downloaded the 2.5 api on 12/11/2003.

Thanks

Ashok


 

  • December 11, 2003
  • Like
  • 0

We need to design Beans/Servlets with the SalesForce API (XMLRPC). One of the conditions is outbound and inbound ports to open with the firewall,  Has anybody done this.

Our Archtecture:

[Browser] --> [App Server] (JSP, Bean(SFAPI), Servlet(SFAPI))] -> SalesForce.com

What are the firewall rules that we need to setup.

  • July 03, 2003
  • Like
  • 0

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