Hello,
I try to use apache xml-rpc through https, to access data from my server. I
am getting error from proxy which is in between. Maybe yousaw already such
a problem and could help me. I wasn't find archive of this mailing list, so
please excuse me if I am asking question whihc was already answered.
SecureXmlRpcClient xmlrpc = null;
try
{
xmlrpc = new
SecureXmlRpcClient("https://********/edit/.photo-update.php");
xmlrpc.setBasicAuthentication("***", "****");
XmlRpc.setDebug(true);
}
catch( Exception ex)
{
System.out.println("Error in creation:");
ex.printStackTrace();
System.exit(-1);
}
Vector params = new Vector();
params.addElement (args[0]);
// this method returns a string
try
{
String result = (String) xmlrpc.execute ("photo.getPhoto",
params);
System.out.println("\nResult: "+result);
}
catch( Exception ex)
{
System.out.println("Error in request:");
ex.printStackTrace();
System.exit(-1);
}
The error I am getting is following:
Client calling procedure 'photo.getPhoto' with parameters [2002-11-11]
java.io.IOException: Unable to tunnel through proxy. Proxy returns
"HTTP/1.0 400 Bad Request"
at
sun.net.www.protocol.http.HttpURLConnection.doTunneling(HttpURLConnection.java:813)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(DashoA6275)
at
sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:528)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(DashoA6275)
at org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java)
at UpdWebPhoto.main(UpdWebPhoto.java:43)
Error in request:
java.io.IOException: Unable to tunnel through proxy. Proxy returns
"HTTP/1.0 400 Bad Request"
at org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java)
at UpdWebPhoto.main(UpdWebPhoto.java:43)
If I use the same URL in browser it is going ok. I can't see any sign of
activity on my server side. Certificate whic is used at my server is signed
only localy. I am using -DproxySet=true -Dhttps.proxyHost= options on
java command line when starting up application
Thank you very much for any help suggestion.
--
-richo-