• Madhuri
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies

We have a problem in getting the right URL from the Salesforce LoginResult object from Salesforce.

We thought it is required because when it goes to Salesforce production server the end point url to access the web service methods will have to be set again in the code.

We are getting the below url from the getServerURL method. Is this the correct url?

https://cs1-api.salesforce.com/services/Soap/c/12.0/4b1300DS0000000D49Z

Using this url how will our client code connect to the Salesforce web service if the project is deployed in the production environment? (Shown in bold)

Our web service url is https://cs1-api.salesforce.com/services/Soap/class/CreditorWebService

CreditorContactServiceServiceLocator serviceLocator = new CreditorContactServiceServiceLocator(); serviceLocator.setCreditorContactServiceEndpointAddress(endpointURL);
SessionHeader sh = new SessionHeader();
sh.setSessionId(sessionID);
CreditorContactServiceBindingStub stub = CreditorContactServiceBindingStub) serviceLocator.getCreditorContactService();
stub.setHeader(serviceLocator.getServiceName().getNamespaceURI(), "SessionHeader", sh);

Thanks

Madhuri 

Hi all,
 
I am trying to access custom object records from external web application. Is it possible to access the record from S-control and expose S-control as webservice?
 
My requirement is to send URL from salesforce to external application to access custom object record page.
 
thanks in advance,
Madhu

We have a problem in getting the right URL from the Salesforce LoginResult object from Salesforce.

We thought it is required because when it goes to Salesforce production server the end point url to access the web service methods will have to be set again in the code.

We are getting the below url from the getServerURL method. Is this the correct url?

https://cs1-api.salesforce.com/services/Soap/c/12.0/4b1300DS0000000D49Z

Using this url how will our client code connect to the Salesforce web service if the project is deployed in the production environment? (Shown in bold)

Our web service url is https://cs1-api.salesforce.com/services/Soap/class/CreditorWebService

CreditorContactServiceServiceLocator serviceLocator = new CreditorContactServiceServiceLocator(); serviceLocator.setCreditorContactServiceEndpointAddress(endpointURL);
SessionHeader sh = new SessionHeader();
sh.setSessionId(sessionID);
CreditorContactServiceBindingStub stub = CreditorContactServiceBindingStub) serviceLocator.getCreditorContactService();
stub.setHeader(serviceLocator.getServiceName().getNamespaceURI(), "SessionHeader", sh);

Thanks

Madhuri 

Hi all,
 
I am trying to access custom object records from external web application. Is it possible to access the record from S-control and expose S-control as webservice?
 
My requirement is to send URL from salesforce to external application to access custom object record page.
 
thanks in advance,
Madhu