Webservices issue
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   JeevanReddy_P
Posted On:   Wednesday, December 3, 2008 05:13 AM

I am trying to connect to webservice endpoint=https://test.salesforce.com/services/Soap/u/9.0 through java code. When tried to connect through proxy host and proxy port to this address(from offshore-Hyd) it is throwing the following error: - exception Connecting to SFDC ; nested exception is: java.net.SocketException: Operation timed out: connect:could be due to invalid address But with the same properties and same code, we are able to connect from (onsite-USA). The main problem is one month back we are able to connect,suddenly we are getting this error at offshore. This is the block of code we are using: binding = (SoapBindingStub)new SforceServiceLocator().getSoap();    More>>

I am trying to connect to webservice endpoint=https://test.salesforce.com/services/Soap/u/9.0
through java code.
When tried to connect through proxy host and proxy port to this address(from offshore-Hyd) it is throwing the following error:

- exception Connecting to SFDC ; nested exception is:
java.net.SocketException: Operation timed out: connect:could be due to invalid address

But with the same properties and same code, we are able to connect from (onsite-USA).

The main problem is one month back we are able to connect,suddenly we are getting this error at offshore.

This is the block of code we are using:

binding = (SoapBindingStub)new SforceServiceLocator().getSoap();
System.getProperties().put(PROXY_HOST,config.getString(PROXY_HOST));
System.getProperties().put(PROXY_PORT,config.getString(PROXY_PORT));
binding._setProperty (Stub.ENDPOINT_ADDRESS_PROPERTY,config.getString(ENDPOINT));
LoginResult loginResult = binding.login(config.getString(USER_NAME),config.getString(PASSWORD));

It would be a great help if any advices on this.

Thanks
Jeevan

   <<Less

Re: Webservices issue

Posted By:   Anonymous  
Posted On:   Wednesday, December 3, 2008 06:28 PM

1) As you are trying to connect secured network, see that if you are having a certificate installed in your Server instance or not.
2) If certificate is properly installed in your server, confirm the username and password.
3)If earlier you are able to connect, then try seeing wsdl file that it is not changed.

Hope this will help u..
Have a gr8 coding!!
About | Sitemap | Contact