Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How to send request on Secure URL using xml-rpc to magento? 
 
Ashish Vijaywargiya
Jr. Member
 
Total Posts:  1
Joined:  2009-06-30
 

Hello,

We are trying to access magento methods from Java code and we were able to access magento methods on http port using xml-rpc.
For doing this we took the reference of page:
http://www.magentocommerce.com/wiki/magento_web_services/additional_information

Now our requirement is to send the parameters on the secure port i.e https port.
In the above mentioned document we are creating client on unsecure port.
$client = new Zend_XmlRpc_Client(’http://localhost/magento/api/xmlrpc/’);

Is it possible to send request on secure port?
We tried to send request using secure port but we are getting following error.
$client = new Zend_XmlRpc_Client(’https://localhost/magento/api/xmlrpc/’);

org.apache.xmlrpc.XmlRpcException: Failed to read servers response: Connection refused
at org.apache.xmlrpc.client.XmlRpcStreamTransport.sendRequest(XmlRpcStreamTransport.java:150)
at org.apache.xmlrpc.client.XmlRpcHttpTransport.sendRequest(XmlRpcHttpTransport.java:94)
at org.apache.xmlrpc.client.XmlRpcSunHttpTransport.sendRequest(XmlRpcSunHttpTransport.java:39)
at org.apache.xmlrpc.client.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:53)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:166)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:157)
at org.apache.xmlrpc.client.XmlRpcClient.execute(XmlRpcClient.java:146)

Any help on this would be greatly appreciated.
Thanks in advance.

--
Ashish Vijaywargiya

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top