Hi,

It seems that "https" instead of "http", int the feed url is working.
So can I change every feed url like for document feeds and spreadseet
feeds etc to "https" instead of "https" or only for document feed?

Thanks & Regards,
Sarath

On Sep 30, 10:43 am, Sarath K S <[email protected]> wrote:
> Hi All,
>
> I am getting the exception
> "com.google.gdata.util.ServiceForbiddenException: 403.4 SSL required
> <errors xmlns='http://schemas.google.com/g/2005'><error><domain>GData</
> domain><code>ServiceForbiddenException</code><internalReason>403.4 SSL
> required</internalReason></error></errors>"
> on the following sample code. Till yesterday night it was working. Now
> why suddenly these errors are coming?
>
> SAMPLE CODE:
>
> import java.net.URL;
> import java.util.List;
>
> import com.google.gdata.client.DocumentQuery;
> import com.google.gdata.client.authn.oauth.GoogleOAuthParameters;
> import com.google.gdata.client.authn.oauth.OAuthHmacSha1Signer;
> import com.google.gdata.client.authn.oauth.OAuthSigner;
> import com.google.gdata.client.docs.DocsService;
> import com.google.gdata.data.docs.DocumentListEntry;
> import com.google.gdata.data.docs.DocumentListFeed;
>
> public class GoogleDocsTest {
>         public static void main(String[] args) {
>                 try {
>                         DocsService docService= new 
> DocsService("Cordys-Test2");
>                         docService.setHandlesCookies(false);
>
>                         GoogleOAuthParameters oauthParameters = new
> GoogleOAuthParameters();
>                         oauthParameters.setOAuthConsumerKey("cpftest2.com");
>                         
> oauthParameters.setOAuthConsumerSecret("SSDRmPcnzHjBCEE9Au3Uumq0");
>
>                         OAuthSigner signer = new OAuthHmacSha1Signer();
>
>                         docService.setOAuthCredentials(oauthParameters, 
> signer);
>
>                         URL DOCUMENT_FEED_URL = new URL( 
> "http://docs.google.com/feeds/
> default/private/[email protected]");
>                         DocumentQuery query = new DocumentQuery( 
> DOCUMENT_FEED_URL );
>                         DocumentListFeed dFeed = docService.getFeed(query,
> DocumentListFeed.class);
>                         List<DocumentListEntry> documentEntries = 
> dFeed.getEntries();
>                 } catch (Exception e) {
>                         e.printStackTrace();
>                 }
>         }
>
> }
>
> EXCEPTION GOT:
>
> com.google.gdata.util.ServiceForbiddenException: 403.4 SSL required
> <errors xmlns='http://schemas.google.com/g/2005'><error><domain>GData</
> domain><code>ServiceForbiddenException</code><internalReason>403.4 SSL
> required</internalReason></error></errors>
>
>         at
> com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:
> 561)
>         at
> com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:
> 543)
>         at
> com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:
> 536)
>         at
> com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:
> 515)
>         at
> com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:
> 515)
>         at com.google.gdata.client.Service.getFeed(Service.java:1053)
>         at com.google.gdata.client.Service.getFeed(Service.java:995)
>         at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:
> 662)
>         at com.google.gdata.client.Service.getFeed(Service.java:952)
>         at com.cordys.external.google.GoogleDocsTest.main(GoogleDocsTest.java:
> 30)
>
> Kindly someone help me here.
>
> Thanks & Regards,
> Sarath

Reply via email to