A
ArturK
Guest
Hi there.
This page:
https://mirror.proserve.nl/plesk/Plesk/PPP9/Doc/en-US/plesk-9.2-api-rpc/index.htm?fileName=33895.htm
shows an example for creating new domain with virtual hosting for an existing user:
<packet version="1.6.0.0">
<domain>
<add>
<gen_setup>
<name>newdomain.com</name>
<owner-id>1234</owner-id>
<htype>vrt_hst</htype>
<ip_address>192.0.2.123</ip_address>
<status>0</status>
</gen_setup>
<hosting>
<vrt_hst>
<ftp_login>c4u7dwbc2y8</ftp_login>
<ftp_password>qweqwe</ftp_password>
<ip_address>192.0.2.54</ip_address>
</vrt_hst>
</hosting>
</add>
</domain>
</packet>
My client creates exactly the same request:
<packet version="1.6.0.2">
<domain>
<add>
<gen_setup>
<name>www.pornstar.es</name>
<owner-id>66</owner-id>
<status>0</status>
<ip_address>94.127.185.100</ip_address>
<htype>vrt_hst</htype>
</gen_setup>
<hosting>
<vrt_hst>
<ftp_login>artur</ftp_login>
<ftp_password>artur12345</ftp_password>
<ip_address>94.127.185.100</ip_address>
</vrt_hst>
</hosting>
</add>
</domain>
</packet>
However, I get error : 1014 Invalid request
I have also tried this: (which is done with new version of the api)
<packet version="1.6.0.2">
<domain>
<add>
<gen_setup>
<name>www.pornstar.es</name>
<owner-id>66</owner-id>
<status>0</status>
<ip_address>94.127.185.100</ip_address>
<htype>vrt_hst</htype>
</gen_setup>
<hosting>
<vrt_hst>
<property>
<name>ftp_login</name>
<value>artur</value>
</property>
<property>
<name>ftp_password</name>
<value>artur12345</value>
</property>
</vrt_hst>
</hosting>
</add>
</domain>
</packet>
No luck either. It gives me the same error.
What could possibly be wrong with it???
This page:
https://mirror.proserve.nl/plesk/Plesk/PPP9/Doc/en-US/plesk-9.2-api-rpc/index.htm?fileName=33895.htm
shows an example for creating new domain with virtual hosting for an existing user:
<packet version="1.6.0.0">
<domain>
<add>
<gen_setup>
<name>newdomain.com</name>
<owner-id>1234</owner-id>
<htype>vrt_hst</htype>
<ip_address>192.0.2.123</ip_address>
<status>0</status>
</gen_setup>
<hosting>
<vrt_hst>
<ftp_login>c4u7dwbc2y8</ftp_login>
<ftp_password>qweqwe</ftp_password>
<ip_address>192.0.2.54</ip_address>
</vrt_hst>
</hosting>
</add>
</domain>
</packet>
My client creates exactly the same request:
<packet version="1.6.0.2">
<domain>
<add>
<gen_setup>
<name>www.pornstar.es</name>
<owner-id>66</owner-id>
<status>0</status>
<ip_address>94.127.185.100</ip_address>
<htype>vrt_hst</htype>
</gen_setup>
<hosting>
<vrt_hst>
<ftp_login>artur</ftp_login>
<ftp_password>artur12345</ftp_password>
<ip_address>94.127.185.100</ip_address>
</vrt_hst>
</hosting>
</add>
</domain>
</packet>
However, I get error : 1014 Invalid request
I have also tried this: (which is done with new version of the api)
<packet version="1.6.0.2">
<domain>
<add>
<gen_setup>
<name>www.pornstar.es</name>
<owner-id>66</owner-id>
<status>0</status>
<ip_address>94.127.185.100</ip_address>
<htype>vrt_hst</htype>
</gen_setup>
<hosting>
<vrt_hst>
<property>
<name>ftp_login</name>
<value>artur</value>
</property>
<property>
<name>ftp_password</name>
<value>artur12345</value>
</property>
</vrt_hst>
</hosting>
</add>
</domain>
</packet>
No luck either. It gives me the same error.
What could possibly be wrong with it???