Forum OpenACS Development: Re: Error: POST /RPC2/

5: Re: Error: POST /RPC2/ (response to 1)
Posted by Gustaf Neumann on
Iuri, ns_xml was replaced ages ago in OpenACS by tdom. You might have noticed, that the last entry of the thread of the OpenACS forum, that you have cited, is from 2001 (more than 15 years ago)!!!

You might have better success with the package "xml-rpc", which you might install via the following commands from cvs HEAD:

cd packages
cvs checkout -r HEAD openacs-4/packages/xml-rpc
mv openacs-4/packages/xml-rpc .
rm -rf openacs-4

6: Re: Error: POST /RPC2/ (response to 5)
Posted by Iuri Sampaio on

That's probably there from old oacs legacy. Even though, I was pretty sure I had downloaded xml-rpc pkg from CVS, oacs-core.

Anyway, I've followed your guides, restarted Naviserver, and called and it returned the same error. The release is

I believe the cause is not the one we expected.

[20/Sep/2016:02:02:36][15344.b4863b70][-conn:iurix:0-] Warning: ns_httpopen POST d3 30 {<?xml version="1.0"?> ix_ndc.get_result...


} is deprecated. Use 'ns_http' instead!
[20/Sep/2016:02:02:36][15344.b5263b70][-conn:iurix:1-] Notice: 'ns_tmpnam ' is deprecated. Use 'ns_mktemp ?template?' instead.
[20/Sep/2016:02:02:36][15344.b5263b70][-conn:iurix:1-] Warning: ns_unlink /tmp/fileycXivT3532794781.xmlrpc2 is deprecated. Use 'file delete' instead!
[20/Sep/2016:02:02:36][15344.b5263b70][-conn:iurix:1-] Error: POST /RPC2/, PeerAddress:
invalid command name "ns_xml"
while executing

7: Re: Error: POST /RPC2/ (response to 6)
Posted by Iuri Sampaio on

Right there! I did install ns_xmlrpc within /tcl/. I removed it and the error is gone. It seems ns_xmlrpc was overlapping /packages/xml-rpc

Best wishes

[20/Sep/2016:02:47:15][22190.b47d9b70][-conn:iurix:0-] Warning: /RPC2/ has no doc(title) set, fallback to instance_name.

444} is deprecated. Use 'ns_http' instead!
[20/Sep/2016:02:47:20][22190.b51d9b70][-conn:iurix:1-] Notice: Running ad_proc ws_ndc.get_result...
[20/Sep/2016:02:47:20][22190.b51d9b70][-conn:iurix:1-] Error: xmlrpc_invoke: error in xmlrpc method REQUEST: <?xml version="1.0"?>ix_ndc.get_resultix-ndc414835444 RESULT: <?xml version="1.0"?>faultCode1faultStringEmail required
Email required
while executing
"lars_blog_auth_for_xmlrpc -username $username -password $password"
(procedure "ix_ndc.get_result" line 4)
invoked from within