• Rvanderwerf
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
Hello, I am trying to use the 'retrieve' core call however I get a strange exception:

org.xml.sax.SAXException: Invalid element in com.sforce.soap.enterprise.sobject.User - Id

from the following code. I've tried using the API 8.0, 9.0, 10.0, and 12.0 URLs for the call. The API 8.0 and 9.0 only work though for my binding.getUserInfo() call. All I am trying to do is get more user details about a user who is coming in through SSO. Also I am using the quickstart.jar file supplied on the SSO example page. Maybe it is too old?

SforceServiceLocator serviceLocator = new SforceServiceLocator();
          SoapBindingStub binding = new SoapBindingStub();
          SessionHeader sh = new SessionHeader();
          sh.setSessionId(sfSessionId);
          String ns = serviceLocator.getServiceName().getNamespaceURI();
          binding.setHeader(ns, "SessionHeader", sh);
          binding._setProperty(SoapBindingStub.ENDPOINT_ADDRESS_PROPERTY, serverURL);
          // TEST a SOAP call
          GetUserInfoResult userInfoResult = binding.getUserInfo(); // THIS WORKS 8.0 or 9.0 URL


          serviceLocator = new SforceServiceLocator();
          binding = new SoapBindingStub();
          sh = new SessionHeader();
          sh.setSessionId(sfSessionId);
          ns = serviceLocator.getServiceName().getNamespaceURI();
          binding.setHeader(ns, "SessionHeader", sh);
          binding._setProperty(SoapBindingStub.ENDPOINT_ADDRESS_PROPERTY, serverURL1);
            SObject[] sObjects = binding.retrieve("FirstName, LastName, Username, MobilePhone, Phone, Fax, Email, Country, CompanyName",
                       "User", new String[] {userInfoResult.getUserId()}); // FAILS no matter what API url I use


Hi, I'm trying to get a workflow to activate when a user changes any of their personal account information details. My end goal is to make a outbound message go out for a data syncronization call to update remote data with the new SF.com data. However I am using the developer edition account, and I'm not sure if this is really enabled.

I created my outbound message, also created a email alert too. I set my rule (under Account) up as so:

LastModifiedDate<> CreatedDate

I've also tried
ISCHANGED(LastModifiedDate<>)
even:
1 = 1

I set this run to run when 'Every time a record is created or edited'

My rule is active, and my outbound message and email alert are associated to the workflow. However when I update my account under 'personal settings' I get no outbound message in the queue, and no alert email either.  I've also enabled the system log and looked under 'workflow' and 'debug' levels, but I get nothing. I've also enabled the debugging under Administrator->Monitoring->Debug Logs

Am I doing this wrong or is this simply disabled with developer accounts?
Hello, I am trying to use the 'retrieve' core call however I get a strange exception:

org.xml.sax.SAXException: Invalid element in com.sforce.soap.enterprise.sobject.User - Id

from the following code. I've tried using the API 8.0, 9.0, 10.0, and 12.0 URLs for the call. The API 8.0 and 9.0 only work though for my binding.getUserInfo() call. All I am trying to do is get more user details about a user who is coming in through SSO. Also I am using the quickstart.jar file supplied on the SSO example page. Maybe it is too old?

SforceServiceLocator serviceLocator = new SforceServiceLocator();
          SoapBindingStub binding = new SoapBindingStub();
          SessionHeader sh = new SessionHeader();
          sh.setSessionId(sfSessionId);
          String ns = serviceLocator.getServiceName().getNamespaceURI();
          binding.setHeader(ns, "SessionHeader", sh);
          binding._setProperty(SoapBindingStub.ENDPOINT_ADDRESS_PROPERTY, serverURL);
          // TEST a SOAP call
          GetUserInfoResult userInfoResult = binding.getUserInfo(); // THIS WORKS 8.0 or 9.0 URL


          serviceLocator = new SforceServiceLocator();
          binding = new SoapBindingStub();
          sh = new SessionHeader();
          sh.setSessionId(sfSessionId);
          ns = serviceLocator.getServiceName().getNamespaceURI();
          binding.setHeader(ns, "SessionHeader", sh);
          binding._setProperty(SoapBindingStub.ENDPOINT_ADDRESS_PROPERTY, serverURL1);
            SObject[] sObjects = binding.retrieve("FirstName, LastName, Username, MobilePhone, Phone, Fax, Email, Country, CompanyName",
                       "User", new String[] {userInfoResult.getUserId()}); // FAILS no matter what API url I use