• Mayur
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 4
    Replies
Hi, We are integrating Salesforce with our application. For this we are using Enterprise Web Services API Version 19.0 and WebMethod (wM Software AG- EAI Platform). We are able to login to sales force which returns us url and session id. Using this url and session id when I tries to call the queryAll API it gives us error "An error occurred while tracing. com.wm.app.b2b.server.ServiceException: [ISS.0088.9139] Output parameters do not conform to targetOutputSignature: errorCode=VV-002 pathName=/tns:queryAllResponse/tns:result/tns:records[0]/ens:Client_Code__c errorMessage=[ISC.0082.9026] Undefined Object found errorCode=VV-002 pathName=/tns:queryAllResponse/tns:result/tns:records[0]/ens:IsDeleted errorMessage=[ISC.0082.9026] Undefined Object found errorCode=VV-002 pathName=/tns:queryAllResponse/tns:result/tns:records[0]/ens:Name errorMessage=[ISC.0082.9026] Undefined Object found" There must be many people who are using WebMethod to call Salesforce. But I am not able to find the exact solution for above problem. If anybody know how to solve this problem please reply. Thanks and Regards, Mayur
  • July 16, 2010
  • Like
  • 0

Hi,

We are invoking Salesforce API's through Web Method (S/w AG EAI Platform).
But when we invoke login service it gives us error
"SOAPAction HTTP header missing".

Does anybody knows how to solve this problem?
Thanks & Regards,
Mayur

  • July 15, 2010
  • Like
  • 0

Hi,

 

I am trying to create user in Java using Salesforce's APIs.

But when I run this program I am get following exception

 

"Failed to insert User null:
duplicate value found: Network_ID__c duplicates value on record with id: 00570000001K1zL "

 

My code is like this  :

 

 //Create User Account 
         try
      {
      
           // Setting some fields on User object
          User user = User.Factory.newInstance();
          user.setCity("Pune");
          user.setCommunityNickname("Integration");
          user.setCompanyName("xyz Pvt. Ltd.");
          user.setCountry("India");
          user.setEmail("xyz@gmail.com");
          user.setFirstName("TestAccount");
          user.setLastName("FromWebService");
          user.setIsActive(true);
          user.setUsername("xyz@gmail.com");
          user.setUserPermissionsMarketingUser(true);
          user.setAlias("test");
          user.setTimeZoneSidKey("Asia/Calcutta");
          user.setLocaleSidKey("en_US");
          user.setLanguageLocaleKey("en_US");
          user.setEmailEncodingKey("ISO-8859-1");
          user.setProfileId("00e70000000wQbIAAU");
          
          
            // Create an array of SObjects to hold the User
          SObject[] sUserObjectsArray = new SObject[1];
          sUserObjectsArray[0] = user;
         
          // Invoke the create call
          CreateDocument createDocument = CreateDocument.Factory.newInstance();
          CreateDocument.Create  create = createDocument.addNewCreate();
         
          create.setSObjectsArray(sUserObjectsArray);
 
          CreateResponseDocument createResponseDocument = stub.create(createDocument, sessionHeaderDocument, null, null, null, null, null, null);
         
          CreateResponseDocument.CreateResponse createResponse = createResponseDocument.getCreateResponse();
          SaveResult[] saveResultArray = createResponse.getResultArray();
 
        // check the results
          for (int i=0;i<sUserObjectsArray.length;i++)
          {
         User user1 = (User)sUserObjectsArray[i];
         if (saveResultArray[i].getSuccess())
         {
            System.out.println("User "+user1.getName()+
                                  " was inserted successfully. Inserted User ID = "+
                                  saveResultArray[i].getId());
          }
          else
          {
            System.out.println("Failed to insert User "+
                                  user1.getName()+":");
            com.sforce.soap.enterprise.Error[] errorsArray =
                                  saveResultArray[i].getErrorsArray();
            for (int ec=0; ec<errorsArray.length; ec++)
            {
              System.out.println(errorsArray[ec].getMessage());
            }
              }
             }
         } catch (Exception e)
         {
          e.printStackTrace();
         }

 

Can anybody helpt me on this?

 

Regards,

Mayur Bhawar

  • April 05, 2010
  • Like
  • 0
I'm trying to integrate saleseforce with some system via .net web services.
I use soap headers in order to receive some custom authentication info from salesforce and
send back responce information(Like errorCode, ErrorMessage etc.)


My web service code snippet:

[WebMethod]
[SoapHeader("AuthHeader", Direction = SoapHeaderDirection.InOut)]
[SoapHeader("ResponseHeader", Direction = SoapHeaderDirection.Out)]
public void SomeMethod()
{
    ...
}




The problem is that i can initialize AuthHeader from salesforce and handle on web service side.
But i can not handle response header on salesforce side. With "system log" window i can trace and
see that Response heder exists in soap message.Seems that salesforce does not handle this and does not
initialize ResponseHeader member of proxy class generated from WSDL.


I understand that i can return ResponseHeader as part of web service method return type, but it is not acceptable from our architecture point of view.

How can i resolve this issue?

Hi,

I'm new with the sforce API and I'm working with webMethods. I imported the wsdl into wM and I now have access to the API functions. I'm calling login and it's returning a loginResponse with the correct results but there's no way to pass the sessiondID and the serverUrl to any other sforce functions. Anybody has done this under wM ?

Thanks...

Hi,

Iam a newbie trying to connect salesforce using webmethods. but iam unable to connect to sales force. Iam getting and error stating:
soap error: Soap Request Failed
error message:SOAP-ENV:Client [ISS.0088.9134] Exception occurred while processing the body of the message http://localhost:5555/soap/rpc com.wm.app.b2b.server.AccessException [ISS.0084.9004] Access Denied

Can anybody tell me what may be the cause for this error?

Thanks in Advance,

Gop