• runawaydog
  • NEWBIE
  • 0 Points
  • Member since 2005

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 10
    Questions
  • 15
    Replies
in my PricebookEntry

some products have 2 lines (same name) and the only difference is
that one line has UseStandardPrice to True the other line has it set to False

my question is that if I were to add an OpportunityLineItem to an Opportunity,
which one should I use...under which condition?

I read about the field in the api...but still alittle confused...

any help appreciated

thanks
import org.apache.axis.client.CommonsHTTPSender;

is this import actually necessary if I am using jdk 1.5 with axis 1.2.1?

My application seem to work fine without it...

Is there a reason why I might need it? Thanks
trying to find an easy way to handle session timeouts...
would the code below be sufficient?

if(!loggedIn) {
doLogin()
}

try {
saveResults = binding.create(a);
} catch(Exception x) {
System.out.println(x);
//POSSIBLE SESSION TIMEOUT?
loggedIn = false
}

Does "create" actually throw an exception when the session timesout?

does anyone know why I might be getting this error?

Task[] a = new Task[1];
a[0] = new Task();
       
a[0].setOwnerId("XXXXXX00003FNUU");

i get this returned

Enter a menu option: Error code: FIELD_INTEGRITY_EXCEPTION
Error message: OwnerId: id value of incorrect type: XXXXXX00003FNUUAA4

I am trying to attach a "Log a Call" to the opportunity id XXXXXX00003FNUU

also, how come it adds AA4 at the end of the opportunity id?

 

can anyone give me some idea as to how I can handle 2 different salesforce wsdl in one java program?

 

i am trying to export some data from sforce dataloader, but the query below returns

an error message saying "value of filter criterion for field 'CreateDate' must be of type dateTime and ...

Select Name FROM Opportunity WHERE CreatedDate > '2003-10-01T11:11:11Z'

I am trying to connect to sforce using axis 1.2.1 and jdk1.5

I was reading the blog and it says

_SessionHeader has been changed to SessionHeader

however...i am still getting cannot find symbol...

am i missing something??

here are my imports; same as the quickstart

the imports compile correctly with no code, however trouble comes when i put in the login code from quickstart and both _SessionHeader to SessionHeader would give me cannot find symbol

import java.io.BufferedReader;
import java.io.IOException;
import com.sforce.soap.enterprise.sobject.*;
import com.sforce.soap.enterprise.*;
import com.sforce.soap.enterprise.Error;
import javax.xml.rpc.*;

import org.apache.axis.client.CommonsHTTPSender;

import java.rmi.*;
import com.sforce.soap.enterprise.fault.*;

i ran wsdl2java on my own developer wsdl

also if i am builing my own jar can i just copy and paste

org\apache\axis\client directory from quickstart to my own?

 

Message Edited by runawaydog on 09-16-2005 01:41 PM

on the enterprise edition

does each account have to be api enabled by an administrator?

or are they enabled automatically

on the open source page it says

"Please also note there is a supported version of this product in addition to this open source project. If you would like a version supported by Salesforce.com's customer support, please download the version from the Salesforce.com website. Login to the application, and there is a download link under Setup / Data Management / Sforce Data Loader"

but i dont see it anywhere under setup >> data management

is it because i am using a developer instance of Salesforce.com?

i am trying to use one of the open source listed here http://sforce.sourceforge.net/

to add new opportunity.

The excel connector works great, but i need a way to add a product to the opportunity

is there an easy way to use the excel connector to accomplish this?

or can anyone recommend any other open source software that might fit this requirement more?

sorry if my wording sounds weird, this is like my 2nd day working with salesforce =0

thanks

Saw that the CommonsHTTPSender in the dataloader jar has the pkg common.api.soap. In the partner samples jar, it has the package org.apache.axis.client and the jar has .java files and the samples classes and other jars.

I need only this class (and the client-config.wsdd) for the soap compression and do not need the other dataloader or partner samples classes. What is the recommended way to use these 2 files in a packaged solution i.e. apart from including the whole dataloader/partnersamples jar?
  • October 20, 2005
  • Like
  • 0
in my PricebookEntry

some products have 2 lines (same name) and the only difference is
that one line has UseStandardPrice to True the other line has it set to False

my question is that if I were to add an OpportunityLineItem to an Opportunity,
which one should I use...under which condition?

I read about the field in the api...but still alittle confused...

any help appreciated

thanks
Hi,

I've written a small sforce Partner WSDL PHP library based on the NuSOAP SOAP Toolkit. It obviates the need for PHP 5 and PEAR. All you need is the salesforce.php and nusoap.php files, both of which are included in the attached zip file. Download the zip from sourceforge at:

http://osdn.dl.sourceforge.net/sourceforge/sforce/php.sforce.nusoap.20051012.zip

Most of the API methods have been implemented; feel free to recommend more. The goal of this library was to make the basic operations -- create, update, delete, query, search -- easy to do. A lot of the response objects are still native PHP types. However, I've made a point of declaring a sObject class and returning it wherever possible.

I've also included an example php file and the original nusoap.php file, so you can see what modifications I've made.

Please send comments and feedback to rchoi21_AT_hotmail.com.

Thanks!

Ryan Choi
rchoi21_AT_hotmail.com

(Sorry for the re-post. Wouldn't let me edit the URL to point to sourceforge.)

does anyone know why I might be getting this error?

Task[] a = new Task[1];
a[0] = new Task();
       
a[0].setOwnerId("XXXXXX00003FNUU");

i get this returned

Enter a menu option: Error code: FIELD_INTEGRITY_EXCEPTION
Error message: OwnerId: id value of incorrect type: XXXXXX00003FNUUAA4

I am trying to attach a "Log a Call" to the opportunity id XXXXXX00003FNUU

also, how come it adds AA4 at the end of the opportunity id?

 

can anyone give me some idea as to how I can handle 2 different salesforce wsdl in one java program?

 

I am trying to connect to sforce using axis 1.2.1 and jdk1.5

I was reading the blog and it says

_SessionHeader has been changed to SessionHeader

however...i am still getting cannot find symbol...

am i missing something??

here are my imports; same as the quickstart

the imports compile correctly with no code, however trouble comes when i put in the login code from quickstart and both _SessionHeader to SessionHeader would give me cannot find symbol

import java.io.BufferedReader;
import java.io.IOException;
import com.sforce.soap.enterprise.sobject.*;
import com.sforce.soap.enterprise.*;
import com.sforce.soap.enterprise.Error;
import javax.xml.rpc.*;

import org.apache.axis.client.CommonsHTTPSender;

import java.rmi.*;
import com.sforce.soap.enterprise.fault.*;

i ran wsdl2java on my own developer wsdl

also if i am builing my own jar can i just copy and paste

org\apache\axis\client directory from quickstart to my own?

 

Message Edited by runawaydog on 09-16-2005 01:41 PM

on the open source page it says

"Please also note there is a supported version of this product in addition to this open source project. If you would like a version supported by Salesforce.com's customer support, please download the version from the Salesforce.com website. Login to the application, and there is a download link under Setup / Data Management / Sforce Data Loader"

but i dont see it anywhere under setup >> data management

is it because i am using a developer instance of Salesforce.com?

I've found that because PHP 5.0.4 doesn't handle "create" or "update" very well because of how it tries to interpret the abstract class of "sObjects".

A couple of people have posted work-arounds on blogs elsewhere (see below for links). As of PHP 5.1.0 and PHP 5.0.5 (neither of which have been released yet), the SOAP support will become much more flexible and will do several things:

    • Handle the session header more elegantly

    • Allow you to call sForce methods directly -- no need to overload the "call" method


    PHP 5.1.0 looks to be finalized in September.


    http://www.schlossnagle.org/~george/blog/index.php?/archives/235-Salesforce.com-and-PHP.html and http://www.suraski.net/blog/index.php?/archives/5-PHP-5s-SOAP-extension-and-SalesForce.html

    i am trying to use one of the open source listed here http://sforce.sourceforge.net/

    to add new opportunity.

    The excel connector works great, but i need a way to add a product to the opportunity

    is there an easy way to use the excel connector to accomplish this?

    or can anyone recommend any other open source software that might fit this requirement more?

    sorry if my wording sounds weird, this is like my 2nd day working with salesforce =0

    thanks

    I know Salesforce.com has a WSDL2Java plugin for Eclipse, is there one for netbeans?

    By the way, is there a document that explains how to set up a SForce development in Netbeans ?

    Thanks.

     

    • May 25, 2004
    • Like
    • 0