Hi,
I've followed this (http://code.google.com/appengine/articles/soap.html)
and created a SOAP client for a webservice (ASP.NET). The client is used by
a G/A/E Backend. I've verified that backed+client works correctly against a
development server that (1) uses HTTP and (2) requires no authorization. It
fails authorization when connecting to a production server that requires
Basic auth over an HTTPS connection. Here's the code:
URL url = new URL("https://.../FOOService.asmx?WSDL");
HttpURLConnection con = (HttpURLConnection) url.openConnection();
con.setRequestProperty("Authorization", "Basic "+CREDENTIALS); //
CREDENTIALS is base64 of "User:Pass"
FOOService fs = new FOOService(url, new QName("http://.../",
"FOOService"));
FOOServiceSoap ws = fs.getFOOServiceSoap();
// etc...
I've set logging to FINEST, but can't see the request headers being sent.
Also the WWW-Authenticate response coming back indicates Authorization
header is not being sent. It finally fails like this:
Jan 19, 2012 10:57:28 PM
com.google.appengine.repackaged.org.apache.http.impl.client.DefaultRequestDirector
updateAuthState
FINE: Credentials not found
What's the trick? (I'm somewhat new to AppEngine and have a lot of
contempt for SOAP)
Thanks,
-Skip
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-appengine-java/-/un0fMRCIVS4J.
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.