Hi,

I've a code like this to a remote web service (under https) that
expects a form data post. Output is XML.

 URLFetchService f = URLFetchServiceFactory.getURLFetchService();
 HTTPRequest req = new HTTPRequest(url, HTTPMethod.POST);
 req.setPayload(data.toString().getBytes());
 HTTPResponse resp = f.fetch(req);

It fails with an NPE on f.fetch() above.
   java.lang.NullPointerException
        at    com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch
(URLFetchServiceImpl.java:31  )

Any thoughts on what could be wrong here?

I access this service regularly through python and it works.

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.


Reply via email to