• pedz
  • NEWBIE
  • 0 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 9
    Replies
I may be jumping the gun. I plan to download Eclipse and follow the instructions I found on another note about installing it and using it.

But I have not seen much information on the SF web site about S-Controls. I guess there is a Java Library that they can tie into. What can and can not be done and how?

My first hope is that there is a reference guide somewhere. Second to that would be a tutorial. Third would be some sample code.

Are any of those available?

Thank you for your help,
Perry
  • November 08, 2006
  • Like
  • 0
I maybe should post this in the Python forum but I do not think anyone there is actually doing Python... plus, this is somewhat generic.

I'm trying to get Python using ZSI to work. I got past the login and I figured out how to tuck the session id into a soap header -- which required adding to ZSI. I can getServerTimestamp, describeGlobal, and describeSObjects.

With describeSObjects, I just pass an array of string and that works. The argument type is array of sObjects.

I'm now trying to use the create method. I may be doing the hardest task first because I'm trying to create a "Time_Record" -- a custom object that I have defined. I can not get it to work or even come close.

Two questions:

1) what would be an easy thing to create? It may help to create something that is easy to create first and then move on to trying to create a customer object. (I'm not trying to define the customer object, just create an instance of it.)

2) can someone paste what the out going soap message should look like? I am having a hard time understanding how an SObject magically becomes a Time_Record -- or any other specific type.

Thank you very much
Perry
  • October 30, 2006
  • Like
  • 0
I think I am doing the right thing after all. I am sending the packet below to:

http://www.salesforce.com/services/Soap/c/7.0

or to

https://www.salesforce.com/services/Soap/c/7.0

xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ZSI="http://www.zolera.com/schemas/ZSI/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">




user@happyplace.net
doggy




And I get back this:


xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">


xmlns:ns1="urn:fault.enterprise.soap.sforce.com">ns1:UNKNOWN_EXCEPTION


UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned
from login must be set in the SforceService


xsi:type="sf:UnexpectedErrorFault"
xmlns:sf="urn:fault.enterprise.soap.sforce.com">

UNKNOWN_EXCEPTION


Destination URL not reset. The URL returned from login
must be set in the SforceService







Please help...
  • October 26, 2006
  • Like
  • 0
I am trying to use Python. I'm using ZSI as my SOAP/WSDL library. I guess my first question is, for login, what URL do I start out at? If I put "http://www.salesforce.com" like the documentation implies, ZSI is not happy because it gets back html instead of xml and I get this message:

TypeError: Response is "text/html", not "text/xml"

Plus, what I get back is not soap but just the regular front page to salesforce.com

If I let it go to the URL that is embedded in the WSDL file, then I get back this message:

ZSI.FaultException: UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned from login must be set in the SforceService

I've tried a few alternate things -- just guesses. But, so far, I haven't found the magic URL to go to.

Can anyone help?
  • October 26, 2006
  • Like
  • 0
I am trying to use Python. I'm using ZSI as my SOAP/WSDL library. I guess my first question is, for login, what URL do I start out at? If I put "http://www.salesforce.com" like the documentation implies, ZSI is not happy because it gets back html instead of xml and I get this message:

TypeError: Response is "text/html", not "text/xml"

Plus, what I get back is not soap but just the regular front page to salesforce.com

If I let it go to the URL that is embedded in the WSDL file, then I get back this message:

ZSI.FaultException: UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned from login must be set in the SforceService

I've tried a few alternate things -- just guesses. But, so far, I haven't found the magic URL to go to.

Can anyone help?
  • October 26, 2006
  • Like
  • 0
I maybe should post this in the Python forum but I do not think anyone there is actually doing Python... plus, this is somewhat generic.

I'm trying to get Python using ZSI to work. I got past the login and I figured out how to tuck the session id into a soap header -- which required adding to ZSI. I can getServerTimestamp, describeGlobal, and describeSObjects.

With describeSObjects, I just pass an array of string and that works. The argument type is array of sObjects.

I'm now trying to use the create method. I may be doing the hardest task first because I'm trying to create a "Time_Record" -- a custom object that I have defined. I can not get it to work or even come close.

Two questions:

1) what would be an easy thing to create? It may help to create something that is easy to create first and then move on to trying to create a customer object. (I'm not trying to define the customer object, just create an instance of it.)

2) can someone paste what the out going soap message should look like? I am having a hard time understanding how an SObject magically becomes a Time_Record -- or any other specific type.

Thank you very much
Perry
  • October 30, 2006
  • Like
  • 0
I have been playing with the appexchange.schema query tool in eclipse today.  I managed to do a Soql-R query for bring back contacts and accounts.
 
I was wondering if there wa a way to filter on the subset.  I.E.  Return all Accounts with contatcs something like this:
 
Select a.Id, (Select AccountId From Contacts where LastModifiedDate>=2006-05-10T16:30:00.001-08:00) From Account a where Contacts  != null or a.LastModifiedDate>=2006-05-10T16:30:00.001-08:00
 
This query should return all accounts that have been modified since 2006-05-10T16:30:00.001-08:00 or accounts where the contact has been modified since 2006-05-10T16:30:00.001-08:00
 
-Thanks
I think I am doing the right thing after all. I am sending the packet below to:

http://www.salesforce.com/services/Soap/c/7.0

or to

https://www.salesforce.com/services/Soap/c/7.0

xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ZSI="http://www.zolera.com/schemas/ZSI/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">




user@happyplace.net
doggy




And I get back this:


xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">


xmlns:ns1="urn:fault.enterprise.soap.sforce.com">ns1:UNKNOWN_EXCEPTION


UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned
from login must be set in the SforceService


xsi:type="sf:UnexpectedErrorFault"
xmlns:sf="urn:fault.enterprise.soap.sforce.com">

UNKNOWN_EXCEPTION


Destination URL not reset. The URL returned from login
must be set in the SforceService







Please help...
  • October 26, 2006
  • Like
  • 0
I am trying to use Python. I'm using ZSI as my SOAP/WSDL library. I guess my first question is, for login, what URL do I start out at? If I put "http://www.salesforce.com" like the documentation implies, ZSI is not happy because it gets back html instead of xml and I get this message:

TypeError: Response is "text/html", not "text/xml"

Plus, what I get back is not soap but just the regular front page to salesforce.com

If I let it go to the URL that is embedded in the WSDL file, then I get back this message:

ZSI.FaultException: UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned from login must be set in the SforceService

I've tried a few alternate things -- just guesses. But, so far, I haven't found the magic URL to go to.

Can anyone help?
  • October 26, 2006
  • Like
  • 0