opensrs-php-devel Mailing List for PHP OpenSRS Client
Brought to you by:
cviebrock
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(9) |
Aug
(2) |
Sep
(5) |
Oct
(9) |
Nov
(3) |
Dec
(1) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(7) |
Feb
(22) |
Mar
(7) |
Apr
(4) |
May
(6) |
Jun
(15) |
Jul
(10) |
Aug
(10) |
Sep
(2) |
Oct
(28) |
Nov
(7) |
Dec
(9) |
| 2002 |
Jan
(13) |
Feb
(33) |
Mar
(19) |
Apr
(5) |
May
(20) |
Jun
|
Jul
|
Aug
(15) |
Sep
(6) |
Oct
|
Nov
(2) |
Dec
(1) |
| 2003 |
Jan
(24) |
Feb
(5) |
Mar
|
Apr
(15) |
May
(8) |
Jun
(38) |
Jul
(10) |
Aug
(1) |
Sep
|
Oct
(9) |
Nov
|
Dec
(5) |
| 2004 |
Jan
(2) |
Feb
(4) |
Mar
(2) |
Apr
|
May
(2) |
Jun
(1) |
Jul
(2) |
Aug
(6) |
Sep
|
Oct
|
Nov
(1) |
Dec
(2) |
| 2005 |
Jan
(10) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(5) |
Nov
(2) |
Dec
|
|
From: Colin V. <co...@vi...> - 2006-11-01 11:43:06
|
On 1-Nov-06, at 12:27 AM, pramod rs wrote: > Hi > > I am working on the developing a PHP script for SSL certificate > reselling function in a reseller website.I am using OpenSRS-PHP > class.I have tried the following code but I am getting > > Responce text : "Unable to process the order: all order items are > failed in creation." > Have you tried sending the same data to OpenSRS using their client? If that works, then looking at the actual XML data being received by OpenSRS should show the difference between the two methods. You can contact OpenSRS and ask them to look in their logs for the data they received. If their class also fails, then it must be some missing data or an error on their end. In either case, I'd double check with OpenSRS. - Colin |
|
From: pramod rs <pra...@ya...> - 2006-11-01 05:27:12
|
Hi
I am working on the developing a PHP script for SSL certificate reselling function in a reseller website.I am using OpenSRS-PHP class.I have tried the following code but I am getting
Responce text : "Unable to process the order: all order items are failed in creation."
This is my code:
$O = new openSRS('test','TPP');
$cmd = array(
'action' => 'create',
'object' => 'order',
'requestor' => array('username' =>'pramod123',
'password' => 'test'
),
'attributes' => array('contacts' => array( array(
'country' => 'US',
'duns' => '',
'address3' => 'Address 3',
'org_name' => 'Orgname',
'phone' => '+1.4165350125',
'last_name' => 'Lastname',
'address2' => 'Address2',
'state' => 'NY',
'email' => 'su...@tu...',
'city' => 'City',
'postal_code' => '12345',
'fax' => '+1.4165350124',
'url' => 'www.site4me.com',
'address1' => 'Address 1',
'first_name' => 'Firstname'
) )
),
'create items'=> array( 'product data' => array('period' => 1,
'csr' => '',
'server_type '=> '',
'cu_certificate' => '',
'approver_email' => 'su...@tu...'
),
'object_type' => 'quickssl',
'orderitem_type' => 'new',
//'client_reference' => '',
'service' => 'cert',
'contact set' => array( 'admin' => array(
'country' => 'US',
'duns' => '',
'address3' => 'Address 3',
'org_name' => 'Orgname',
'phone' => '+1.4165350125',
'last_name' => 'Lastname',
'address2' => 'Address2',
'state' => 'NY',
'email' => 'su...@tu...',
'city' => 'City',
'postal_code' => '12345',
'fax' => '+1.4165350124',
'url' => 'www.site4me.com',
'address1' => 'Address 1',
'first_name' => 'Firstname'
),
'billing' => array(
'country' => 'US',
'duns' => '',
'address3' => 'Address 3',
'org_name' => 'Orgname1',
'phone' => '+1.4165350125',
'last_name' => 'Lastname',
'address2' => 'Address2',
'state' => 'NY',
'email' => 'su...@tu...',
'city' => 'City',
'postal_code' => '12345',
'fax' => '+1.4165350124',
'url' => 'www.site4me.com',
'address1' => 'Address 1',
'first_name' => 'Firstname1'
),
'tech' => array(
'country' => 'US',
'duns' => '',
'address3' => 'Address 3',
'org_name' => 'Orgname1',
'phone' => '+1.4165350125',
'last_name' => 'Lastname',
'address2' => 'Address2',
'state' => 'NY',
'email' => 'su...@tu...',
'city' => 'City',
'postal_code' => '12345',
'fax' => '+1.4165350124',
'url' => 'www.yahoo.com',
'address1' => 'Address 1',
'first_name' => 'Firstname1'
)
)
)
// 'user_id' => '1003',
// 'handling' => 'process'
);
$result = $O->send_cmd($cmd);
Can anyone give me some idea on how to solve this problem.
Thanks
Pramod
---------------------------------
Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. |
|
From: Mayo J. <ma...@nf...> - 2006-10-28 17:25:07
|
Hi,
Looking at the docs again, I think you need to refer to the contacts
array rather than specifying them all over again in contacts set. If
you look at your original request, you define your contacts on top in
attributes, and then for the contacts_set you just refer to those
attributes. So ...
$O = new openSRS('test','TPP');
$cmd = array(
'action' => 'CREATE',
'object' => 'ORDER',
'requestor' => array('username' =>'pramod',
'password' => 'test'
),
'attributes' => array(
'contacts' => array(
array(
'country' => 'US',
'duns' => '',
'address3' => 'Address 3',
...
'address1' => 'Address 1',
'first_name' => 'Firstname'
)
)
),
'create items'=> array(
'product data' => array(
'period' => '1',
'approver_email' => 'su...@tu...'
),
'object_type' => 'quickssl',
'orderitem_type' => 'new',
'contact set' => array(
'admin' => '0', #referring to 0th index of the
contacts array
'billing' => '0',
'tech' => '0',
'orderitem_type' => 'new',
'service' => 'cert'
)
)
);
Hope this helps,
mayo
On Oct 28, 06, at 04:27 , pramod rs wrote:
> Hi.
>
> I am working on the SSL certificate reselling in OpenSRS-PHP.I have
> got a response text as
> "Unable to process the order: all order items are failed in creation"
> I am working it in TEST mode. the Contacts Array is
>
> 'attributes' => array('contacts' => array( array(
> 'country' => 'US',
> 'duns' => '',
> 'address3' => 'Address 3',
> 'org_name' => 'Orgname',
> 'phone' =>
> '+1.4165350125',
> 'last_name' => 'Lastname',
> 'address2' => 'Address2',
> 'state' => 'NY',
> 'email' =>
> 'su...@tu...',
> 'city' => 'City',
> 'postal_code' => '12345',
> 'fax' => '+1.4165350124',
> 'url' =>
> 'www.site4me.com',
> 'address1' => 'Address 1',
> 'first_name' =>
> 'Firstname'
>
> ) )
> ),
> 'create items'=> array( 'product data' => array('period' => 1,
>
> 'approver_email' => 'su...@tu...'
> ),
>
> Can anyone do some help for me in this....
>
> Thanks
> Pramod
>
> Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates.
> ----------------------------------------------------------------------
> ---
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=120709&bid=263057&dat=121642______________________________
> _________________
> opensrs-php-devel mailing list
> ope...@li...
> https://lists.sourceforge.net/lists/listinfo/opensrs-php-devel
|
|
From: pramod rs <pra...@ya...> - 2006-10-28 11:27:44
|
Hi.
I am working on the SSL certificate reselling in OpenSRS-PHP.I have got a response text as
"Unable to process the order: all order items are failed in creation"
I am working it in TEST mode. the Contacts Array is
'attributes' => array('contacts' => array( array(
'country' => 'US',
'duns' => '',
'address3' => 'Address 3',
'org_name' => 'Orgname',
'phone' => '+1.4165350125',
'last_name' => 'Lastname',
'address2' => 'Address2',
'state' => 'NY',
'email' => 'su...@tu...',
'city' => 'City',
'postal_code' => '12345',
'fax' => '+1.4165350124',
'url' => 'www.site4me.com',
'address1' => 'Address 1',
'first_name' => 'Firstname'
) )
),
'create items'=> array( 'product data' => array('period' => 1,
'approver_email' => 'su...@tu...'
),
Can anyone do some help for me in this....
Thanks
Pramod
---------------------------------
Cheap Talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. |
|
From: Mayo J. <ma...@nf...> - 2006-10-27 18:43:41
|
Hi,
I haven't used the API to register certs, but looking at the docs,
you may have to wrap the content of the 'contacts' attribute in one
more array. The contacts array accepts multiple contacts, each
contact being array on it's own. Something like the following code
might work ... (at least I hope so)
'attributes' => array(
'contacts' => array(
array(
'country' => 'US',
...
'first_name' => 'FirstName'
)
)
)
Regards,
mayo
On Oct 26, 06, at 04:29 , pramod rs wrote:
> Hi Colin
>
> I am a PHP programmer.I have used the OpenSRS-PHP class to
> develop areseller site.It worked fine.But now I would like to know
> if SSL certificate registration is possible using the OpenSRS-PHP
> class.I have gone through the forum but not found any information
> there.I have tried it but it shows the following response text :
>
> "Unable to convertToString OPSDocument->attributes-
> >contacts(compass.entities.struct.impl.TypedMap) to 'OPSList'
> reason: java.lang.ClassCastException:
> compass.entities.struct.impl.TypedMap"
>
> This is my code:
>
> $O = new openSRS('test','TPP');
> $cmd = array(
> 'action' => 'CREATE',
> 'object' => 'ORDER',
> 'requestor' => array('username' =>'pramod',
> 'password' => 'test'
> ),
> 'attributes' => array('contacts' => array(
> 'country' => 'US',
> 'duns' => '',
> 'address3' => 'Address 3',
> 'org_name' => 'Orgname',
> 'phone' =>
> '+1.4165350125',
> 'last_name' => 'Lastname',
> 'address2' => 'Address2',
> 'state' => 'NY',
> 'email' =>
> 'su...@tu...',
> 'city' => 'City',
> 'postal_code' => '12345',
> 'fax' => '+1.4165350124',
> 'url' => 'www.tucows.com',
> 'address1' => 'Address 1',
> 'first_name' =>
> 'Firstname'
>
> )
> ),
> 'create items'=> array( 'product data' => array('period'
> => '1',
>
> 'approver_email' => 'su...@tu...'
> ),
>
> 'object_type' => 'quickssl',
> 'orderitem_type' => 'new',
> 'contact set' => array( 'admin' =>
> array(
>
> 'country' => 'US',
>
> 'duns' => '',
>
> 'address3' => 'Address 3',
>
> 'org_name' => 'Orgname',
>
> 'phone' => '+1.4165350125',
>
> 'last_name' => 'Lastname',
>
> 'address2' => 'Address2',
>
> 'state' => 'NY',
>
> 'email' => 'su...@tu... ',
>
> 'city' => 'City',
>
> 'postal_code' => '12345',
>
> 'fax' => '+1.4165350124',
>
> 'url' => 'www.tucows.com',
>
> 'address1' => 'Address 1',
>
> 'first_name' => 'Firstname'
>
> ),
> 'billing' =>
> array(
>
> 'country' => 'US',
>
> 'duns' => '',
>
> 'address3' => 'Address 3',
>
> 'org_name' => 'Orgname1',
>
> 'phone' => '+1.4165350125',
>
> 'last_name' => 'Lastname',
>
> 'address2' => 'Address2',
>
> 'state' => 'NY',
>
> 'email' => ' su...@tu...',
>
> 'city' => 'City',
>
> 'postal_code' => '12345',
>
> 'fax' => '+1.4165350124',
>
> 'url' => 'www.tucows.com ',
>
> 'address1' => 'Address 1',
>
> 'first_name' => 'Firstname1'
>
>
> ),
> 'tech' => array(
> 'country'
> => 'US',
> 'duns' => '',
> 'address3'
> => 'Address 3',
> 'org_name'
> => 'Orgname1',
> 'phone' =>
> '+1.4165350125',
> 'last_name'
> => 'Lastname',
> 'address2'
> => 'Address2',
> 'state' =>
> 'NY',
> 'email' =>
> 'su...@tu...',
> 'city' =>
> 'City',
>
> 'postal_code' => '12345',
> 'fax' =>
> '+1.4165350124',
> 'url' =>
> 'www.tucows.com',
> 'address1'
> => 'Address 1',
>
> 'first_name' => 'Firstname1'
>
> )
>
> ),
> 'orderitem_type' => 'new',
> 'service' => 'cert'
>
> )
> );
>
> In the openSRS_Base.php
>
> 'buy_webcert' => true,
>
> is set
>
> Can anyone do some help for me in this matter
>
> Thanks
> Pramod
|
|
From: pramod rs <pra...@ya...> - 2006-10-27 09:23:42
|
Hi.. Any one knows SSL certificate issueing through OpenSRS-PHP.I have tried a sample code but the response text shows the following Unable to convertToString OPSDocument->attributes->contacts(compass.entities.struct.impl.TypedMap) to 'OPSList' reason: java.lang.ClassCastException: compass.entities.struct.impl.TypedMap Please any one give any sample code.... or show me any way to do this.It will be soo helpful. Thanks Pramod --------------------------------- Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail. |
|
From: pramod rs <pra...@ya...> - 2006-10-26 11:29:27
|
Hi Colin I am a PHP programmer.I have used the OpenSRS-PHP class to develop areseller site.It worked fine.But now I would like to know if SSL certificate registration is possible using the OpenSRS-PHP class.I have gone through the forum but not found any information there.I have tried it but it shows the following response text : "Unable to convertToString OPSDocument->attributes->contacts(compass.entities.struct.impl.TypedMap) to 'OPSList' reason: java.lang.ClassCastException: compass.entities.struct.impl.TypedMap" This is my code: $O = new openSRS('test','TPP'); $cmd = array( 'action' => 'CREATE', 'object' => 'ORDER', 'requestor' => array('username' =>'pramod', 'password' => 'test' ), 'attributes' => array('contacts' => array( 'country' => 'US', 'duns' => '', 'address3' => 'Address 3', 'org_name' => 'Orgname', 'phone' => '+1.4165350125', 'last_name' => 'Lastname', 'address2' => 'Address2', 'state' => 'NY', 'email' => 'su...@tu...', 'city' => 'City', 'postal_code' => '12345', 'fax' => '+1.4165350124', 'url' => '\', \'address1\' \u003d> \'Address 1\',\n \'first_name\' \u003d> \'Firstname\' ) ), \'create items\'\u003d> array( \'product data\' \u003d> array(\'period\' \u003d> \'1\',\n \'approver_email\' \u003d> \'su...@tu...\' ), \'object_type\' \u003d> \'quickssl\',\n \'orderitem_type\' \u003d> \'new\', \'contact set\' \u003d> array( \'admin\' \u003d> array( \'country\' \u003d> \'US\',\n \'duns\' \u003d> \'\', \'address3\' \u003d> \'Address 3\', \'org_name\' \u003d> \'Orgname\',\n \'phone\' \u003d> \'+1.4165350125\', \'last_name\' \u003d> \'Lastname\', \'address2\' \u003d> \'Address2\',\n \'state\' \u003d> \'NY\', \'email\' \u003d> \'su...@tu...\n\', \'city\' \u003d> \'City\', \'postal_code\' \u003d> \'12345\', \'fax\' \u003d> \'+1.4165350124\',\n",1] ); //-->www.tucows.com', 'address1' => 'Address 1', 'first_name' => 'Firstname' ) ), 'create items'=> array( 'product data' => array('period' => '1', 'approver_email' => 'su...@tu...' ), 'object_type' => 'quickssl', 'orderitem_type' => 'new', 'contact set' => array( 'admin' => array( 'country' => 'US', 'duns' => '', 'address3' => 'Address 3', 'org_name' => 'Orgname', 'phone' => '+1.4165350125', 'last_name' => 'Lastname', 'address2' => 'Address2', 'state' => 'NY', 'email' => 'su...@tu... ', 'city' => 'City', 'postal_code' => '12345', 'fax' => '+1.4165350124', \'url\' \u003d> \'www.tucows.com\', \'address1\' \u003d> \'Address 1\',\n \'first_name\' \u003d> \'Firstname\' ), \'billing\' \u003d> array(\n \'country\' \u003d> \'US\', \'duns\' \u003d> \'\', \'address3\' \u003d> \'Address 3\',\n \'org_name\' \u003d> \'Orgname1\', \'phone\' \u003d> \'+1.4165350125\', \'last_name\' \u003d> \'Lastname\',\n \'address2\' \u003d> \'Address2\', \'state\' \u003d> \'NY\', \'email\' \u003d> \'\ns...@tu...\', \'city\' \u003d> \'City\', \'postal_code\' \u003d> \'12345\',\n \'fax\' \u003d> \'+1.4165350124\', \'url\' \u003d> \'www.tucows.com\n\',",1] ); //--> 'url' => 'www.tucows.com', 'address1' => 'Address 1', 'first_name' => 'Firstname' ), 'billing' => array( 'country' => 'US', 'duns' => '', 'address3' => 'Address 3', 'org_name' => 'Orgname1', 'phone' => '+1.4165350125', 'last_name' => 'Lastname', 'address2' => 'Address2', 'state' => 'NY', 'email' => ' su...@tu...', 'city' => 'City', 'postal_code' => '12345', 'fax' => '+1.4165350124', 'url' => 'www.tucows.com ', \'address1\' \u003d> \'Address 1\', \'first_name\' \u003d> \'Firstname1\' ),\n \'tech\' \u003d> array( \'country\' \u003d> \'US\', \'duns\' \u003d> \'\',\n \'address3\' \u003d> \'Address 3\', \'org_name\' \u003d> \'Orgname1\', \'phone\' \u003d> \'+1.4165350125\',\n \'last_name\' \u003d> \'Lastname\', \'address2\' \u003d> \'Address2\', \'state\' \u003d> \'NY\',\n \'email\' \u003d> \'su...@tu...\', \'city\' \u003d> \'City\', \'postal_code\' \u003d> \'12345\',\n \'fax\' \u003d> \'+1.4165350124\', \'url\' \u003d> \'www.tucows.com\', \'address1\' \u003d> \'Address 1\',\n \'first_name\' \u003d> \'Firstname1\' ) ),\n \'orderitem_type\' \u003d> \'new\',",1] ); //--> 'address1' => 'Address 1', 'first_name' => 'Firstname1' ), 'tech' => array( 'country' => 'US', 'duns' => '', 'address3' => 'Address 3', 'org_name' => 'Orgname1', 'phone' => '+1.4165350125', 'last_name' => 'Lastname', 'address2' => 'Address2', 'state' => 'NY', 'email' => 'su...@tu...', 'city' => 'City', 'postal_code' => '12345', 'fax' => '+1.4165350124', 'url' => 'www.tucows.com', 'address1' => 'Address 1', 'first_name' => 'Firstname1' ) ), 'orderitem_type' => 'new', \'service\' \u003d> \'cert\' ) ); In the openSRS_Base.php \'buy_webcert\' \u003d> true, \n is set to true. Can you please take a look and do any help... Thanks \n \n\n",0] ); D(["ce"]); //--> 'service' => 'cert' ) ); In the openSRS_Base.php 'buy_webcert' => true, is set Can anyone do some help for me in this matter Thanks Pramod --------------------------------- Stay in the know. Pulse on the new Yahoo.com. Check it out. |
|
From: Colin V. <co...@vi...> - 2005-09-27 14:13:10
|
I've been asked lately if the OpenSRS PHP Class is still in active development. The answer is a bit more complicated. First, I'm no longer with easyDNS so my need to actively develop the class for my own needs has diminished. However, I'm now working for Tucows (although in a non-domain-related capacity), so I'm not completely uninterested in it anymore. In fact, I think someone here is planning on writing up some documentation for my class. Second, the PHP class simply works as-is. Part of the reason the class hasn't been updated in so long is because, unlike OpenSRS' old Perl packages, which needed to updated everytime OpenSRS added a feature, my PHP class is simply concerned with the communication protocol. This protocol hasn't really changed in two years or more. So, there really hasn't been any need to update the code. You can rest assured that it works in it's current state. That said, I've always been slightly disappointed in some of the features in the class and wanted to rewrite things. Possibly to take advantage of PEAR classes (for logging, for instance), and possible to take advantage of some PHP5 features (SimpleXML parsing, etc.). I might block out some time to do this, if demand warrants. And hey, a donation to the project would make that decision easier. :) In the meantime, enjoy using the current, stable code. - Colin |
|
From: Arthur H. J. I. <ar...@ab...> - 2005-06-03 02:55:56
|
I'll have to check that out. I thought I tried that and it didn't work.
Here is the code I used to get it to work:
'custom_nameservers' => '1',
'fqdn1' => $primarydns,
'fqdn2' => $secondarydns,
On Thu, 2 Jun 2005, Colin Viebrock wrote:
> $cmd['attributes']['nameserver_list'] = array(
> array(
> 'name' => 'ns1.example.com',
> 'sortorder' => 1
> ),
> array(
> 'name' => 'ns2.example.com',
> 'sortorder' => 2
> ),
> array(
> 'name' => 'ns3.example.com',
> 'sortorder' => 3
> )
> );
>
> - Colin
>
>
>
> On 2-Jun-05, at 1:48 PM, Arthur H. Johnson II wrote:
>
> >
> > I'm trying to change name server in sw_register routine from the
> > default
> > up on OpenSRS. Here is the origional code:
> >
> > $cmd = array(
> > 'action' => 'sw_register',
> > 'object' => 'domain',
> > 'attributes' => array(
> > 'domain' => $seldomain,
> > 'affiliate_id' => '',
> > 'period' => $selprice,
> > 'reg_username' => $username,
> > 'reg_password' => $password,
> > 'contact_set' => array(
> > 'owner' => array(
> > 'first_name' => $firstname,
> > 'last_name' => $lastname,
> > 'address1' => $address1,
> > < CONTACT SET SHORTENED >
> > 'org_name' => 'Able Team, Inc.',
> > 'postal_code' => '48532',
> > 'state' => 'MI',
> > 'fax' => '810-244-9101',
> > 'url' => ''
> > ),
> >
> > ),
> > ),
> >
> > How do I override the nameservers at opensrs? In other words, i want
> > customers to be able to register with OTHER name servers, not just the
> > ones in my opensrs profile.
> >
> >
> > --
> > Arthur H. Johnson II
> > CTO, AbleTeam.com
> > ar...@ab...
> > 810-244-9100 (voice)
> > --
> > ICQ: 31770438 AIM: bytor4232
> > MSN: bytor4232 YIM: bytor4232
> > --
> > The city's central computer told you? R2D2, you know
> > better than to trust a strange computer! ("C3PO")
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by Yahoo.
> > Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
> > Search APIs Find out how you can build Yahoo! directly into your own
> > Applications - visit
> > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
> > _______________________________________________
> > opensrs-php-devel mailing list
> > ope...@li...
> > https://lists.sourceforge.net/lists/listinfo/opensrs-php-devel
> >
>
--
Arthur H. Johnson II
CTO, AbleTeam.com
ar...@ab...
810-244-9100 (voice)
--
ICQ: 31770438 AIM: bytor4232
MSN: bytor4232 YIM: bytor4232
--
The city's central computer told you? R2D2, you know
better than to trust a strange computer! ("C3PO")
|
|
From: Colin V. <co...@vi...> - 2005-06-03 02:46:04
|
$cmd['attributes']['nameserver_list'] = array( array( 'name' => 'ns1.example.com', 'sortorder' => 1 ), array( 'name' => 'ns2.example.com', 'sortorder' => 2 ), array( 'name' => 'ns3.example.com', 'sortorder' => 3 ) ); - Colin On 2-Jun-05, at 1:48 PM, Arthur H. Johnson II wrote: > > I'm trying to change name server in sw_register routine from the > default > up on OpenSRS. Here is the origional code: > > $cmd = array( > 'action' => 'sw_register', > 'object' => 'domain', > 'attributes' => array( > 'domain' => $seldomain, > 'affiliate_id' => '', > 'period' => $selprice, > 'reg_username' => $username, > 'reg_password' => $password, > 'contact_set' => array( > 'owner' => array( > 'first_name' => $firstname, > 'last_name' => $lastname, > 'address1' => $address1, > < CONTACT SET SHORTENED > > 'org_name' => 'Able Team, Inc.', > 'postal_code' => '48532', > 'state' => 'MI', > 'fax' => '810-244-9101', > 'url' => '' > ), > > ), > ), > > How do I override the nameservers at opensrs? In other words, i want > customers to be able to register with OTHER name servers, not just the > ones in my opensrs profile. > > > -- > Arthur H. Johnson II > CTO, AbleTeam.com > ar...@ab... > 810-244-9100 (voice) > -- > ICQ: 31770438 AIM: bytor4232 > MSN: bytor4232 YIM: bytor4232 > -- > The city's central computer told you? R2D2, you know > better than to trust a strange computer! ("C3PO") > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > _______________________________________________ > opensrs-php-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensrs-php-devel > |
|
From: Arthur H. J. I. <ar...@ab...> - 2005-06-02 17:48:15
|
I'm trying to change name server in sw_register routine from the default
up on OpenSRS. Here is the origional code:
$cmd = array(
'action' => 'sw_register',
'object' => 'domain',
'attributes' => array(
'domain' => $seldomain,
'affiliate_id' => '',
'period' => $selprice,
'reg_username' => $username,
'reg_password' => $password,
'contact_set' => array(
'owner' => array(
'first_name' => $firstname,
'last_name' => $lastname,
'address1' => $address1,
< CONTACT SET SHORTENED >
'org_name' => 'Able Team, Inc.',
'postal_code' => '48532',
'state' => 'MI',
'fax' => '810-244-9101',
'url' => ''
),
),
),
How do I override the nameservers at opensrs? In other words, i want
customers to be able to register with OTHER name servers, not just the
ones in my opensrs profile.
--
Arthur H. Johnson II
CTO, AbleTeam.com
ar...@ab...
810-244-9100 (voice)
--
ICQ: 31770438 AIM: bytor4232
MSN: bytor4232 YIM: bytor4232
--
The city's central computer told you? R2D2, you know
better than to trust a strange computer! ("C3PO")
|
|
From: Colin V. <co...@vi...> - 2005-02-25 19:01:40
|
Instead of modifying the openSRS_base.php file, you should: - modify the openSRS.php.default file - save it as openSRS.php - include that file into your scripts Take a look at the "BASIC USAGE" section of the README file for an example. - Colin On 25-Feb-05, at 10:24 AM, Enrico Valsecchi wrote: > Hi, > I'm new of this mailing list! > Sorry for my very very bad english.... > :-) > > I have download a new version of opensrs-php package, > a 2.8.0 number. > > O.K., > I have run this with "test" environement .... > .... surprise .... > > When I run test.php file on my web server, I retry this result: > > Array ( [is_success] => [response_code] => 400 [response_text] => > Authentication Error: Missing reseller username ) > > I read code of opensrs_base.php class .... > > I have attach in this mail a OpenSRS-PHP class with my corrections .... > .... I have add, into all my change, reason of modify. > > Bye Bye, > > Enrico Valsecchi > > <openSRS_base.php> |
|
From: Enrico V. <ad...@ho...> - 2005-02-25 15:25:10
|
Hi, I'm new of this mailing list! Sorry for my very very bad english.... :-) I have download a new version of opensrs-php package, a 2.8.0 number. O.K., I have run this with "test" environement .... .... surprise .... When I run test.php file on my web server, I retry this result: Array ( [is_success] => [response_code] => 400 [response_text] => Authentication Error: Missing reseller username ) I read code of opensrs_base.php class .... I have attach in this mail a OpenSRS-PHP class with my corrections .... .... I have add, into all my change, reason of modify. Bye Bye, Enrico Valsecchi |
|
From: Colin V. <co...@vi...> - 2005-01-28 16:35:11
|
Hi Tim, I've discovered that the problem with unpack() is a bug in PHP 4.3.10 and 5.0.3: http://bugs.php.net/bug.php?id=31465 This should be fixed in the next release of PHP. In the meantime, simply comment out line 869-870, and 902-903 (as you already have done) of openSRS_base.php to make them go away. ($Id: openSRS_base.php,v 1.16.2.5 2005/01/28 16:33:06 cviebrock Exp $) - Colin On 21-Jan-05, at 8:36 AM, Gustafson, Tim wrote: > Thanks, commenting out those lines did the trick. > > Tim Gustafson > MEI Technology Consulting, Inc > tj...@me... > (516) 379-0001 Office > (516) 480-1870 Mobile/Emergencies > (516) 908-4185 Fax > http://www.meitech.com/ > > > -----Original Message----- > From: Colin Viebrock [mailto:co...@vi...] > Sent: Thursday, January 20, 2005 9:41 AM > To: Gustafson, Tim > Cc: ope...@li... > Subject: Re: [openSRS-PHP-dev] Problem Running OpenSRS-PHP-2.8.0 on > FreeBSD 4.10/PHP 4.3.10/Apache 1.3.33 > > > Did anything else change in your set up in the last few weeks? An > upgrade to PHP, maybe? > > The line that you get that error on is when the class tries to convert > binary data it reads from OpenSRS into the corresponding hex string for > logging. This only happens once: when reading the challenge key during > the initial connection. And it's only used for logging. > > So, you can quickly "fix" the situation by commenting out lines 869 and > 870 from openSRS_base.php. You should probably also comment out lines > 902 and 903, which do the same thing when sending binary data. All you > will lose are two line from your log when connecting to OpenSRS. > > Note that your openSRS_base.php file should be from version 2.80 of > OpenSRS-PHP. Look for the following line at the end of the opening > comment block to confirm: > > * $Id: openSRS_base.php,v 1.16.2.4 2004/12/07 20:27:22 cviebrock > Exp $ > > As for the real cause of the problem ... I have no idea. :/ > > - Colin |
|
From: Colin V. <co...@vi...> - 2005-01-28 16:34:41
|
Hi Nicolas,
> I've begun work on my php client for OpenSRS, and it's going pretty
> well...
>
> I've got some suggestions to make and 2 bug reports...
>
> 1. Make the validation error messages customizable... I develop my
> code in
> french, and the some error message a return as english strings. I can
> customize them directly into the opensrs_base.php file, but I rather
> overide
> some variable when I define my class... Notably in the validate
> function.
Excellent suggestion. I will implement this in a future release.
> 2. There is a bug at line 947 :
>
> } else if (!preg_match('/'.$OPENSRS_TLDS_REGEX.'$/', $domain)) {
>
> Should read :
>
> } else if (!preg_match('/'.$this->OPENSRS_TLDS_REGEX.'$/', $domain)) {
Fixed in CVS.
> 3. When using SSL, related tld's can't be used (lookup_all_tlds=true),
> because the socket is closed at line 1197. If this line is commented
> out, I did made a successful multiple tld lookup. So, I'm using DES,
> but then I got error previously reported at line 865 and 898 about
> unpack.
I removed the socket_close() call.
The problem with unpack() is a bug in PHP 4.3.10 and 5.0.3:
http://bugs.php.net/bug.php?id=31465
This should be fixed in the next release of PHP. In the meantime,
simply comment out line 869-870, and 902-903 of openSRS_base.php to
make them go away
($Id: openSRS_base.php,v 1.16.2.5 2005/01/28 16:33:06 cviebrock Exp $)
- Colin
|
|
From: Nicolas R. <ros...@cy...> - 2005-01-26 17:14:54
|
I've begun work on my php client for OpenSRS, and it's going pretty well...
I've got some suggestions to make and 2 bug reports...
1. Make the validation error messages customizable... I develop my code in
french, and the some error message a return as english strings. I can
customize them directly into the opensrs_base.php file, but I rather overide
some variable when I define my class... Notably in the validate function.
2. There is a bug at line 947 :
} else if (!preg_match('/'.$OPENSRS_TLDS_REGEX.'$/', $domain)) {
Should read :
} else if (!preg_match('/'.$this->OPENSRS_TLDS_REGEX.'$/', $domain)) {
3. When using SSL, related tld's can't be used (lookup_all_tlds=true),
because the socket is closed at line 1197. If this line is commented out, I
did made a successful multiple tld lookup. So, I'm using DES, but then I got
error previously reported at line 865 and 898 about unpack.
|
|
From: Gustafson, T. <tj...@me...> - 2005-01-21 13:36:43
|
Thanks, commenting out those lines did the trick. Tim Gustafson MEI Technology Consulting, Inc tj...@me... (516) 379-0001 Office (516) 480-1870 Mobile/Emergencies (516) 908-4185 Fax http://www.meitech.com/ -----Original Message----- From: Colin Viebrock [mailto:co...@vi...] Sent: Thursday, January 20, 2005 9:41 AM To: Gustafson, Tim Cc: ope...@li... Subject: Re: [openSRS-PHP-dev] Problem Running OpenSRS-PHP-2.8.0 on FreeBSD 4.10/PHP 4.3.10/Apache 1.3.33 Did anything else change in your set up in the last few weeks? An upgrade to PHP, maybe? The line that you get that error on is when the class tries to convert binary data it reads from OpenSRS into the corresponding hex string for logging. This only happens once: when reading the challenge key during the initial connection. And it's only used for logging. So, you can quickly "fix" the situation by commenting out lines 869 and 870 from openSRS_base.php. You should probably also comment out lines 902 and 903, which do the same thing when sending binary data. All you will lose are two line from your log when connecting to OpenSRS. Note that your openSRS_base.php file should be from version 2.80 of OpenSRS-PHP. Look for the following line at the end of the opening comment block to confirm: * $Id: openSRS_base.php,v 1.16.2.4 2004/12/07 20:27:22 cviebrock Exp $ As for the real cause of the problem ... I have no idea. :/ - Colin |
|
From: Colin V. <co...@vi...> - 2005-01-20 14:40:49
|
Did anything else change in your set up in the last few weeks? An upgrade to PHP, maybe? The line that you get that error on is when the class tries to convert binary data it reads from OpenSRS into the corresponding hex string for logging. This only happens once: when reading the challenge key during the initial connection. And it's only used for logging. So, you can quickly "fix" the situation by commenting out lines 869 and 870 from openSRS_base.php. You should probably also comment out lines 902 and 903, which do the same thing when sending binary data. All you will lose are two line from your log when connecting to OpenSRS. Note that your openSRS_base.php file should be from version 2.80 of OpenSRS-PHP. Look for the following line at the end of the opening comment block to confirm: * $Id: openSRS_base.php,v 1.16.2.4 2004/12/07 20:27:22 cviebrock Exp $ As for the real cause of the problem ... I have no idea. :/ - Colin On 20-Jan-05, at 8:48 AM, Gustafson, Tim wrote: > Hello > > I have been using the OpenSRS-PHP module for quite some time now. This > morning, I noticed an error that I'm consistently getting now. The > error message is as follows: > > Error Number: 2 > Error Message: unpack(): Type H: outside of string > File Name: /usr/home/ws1116/opensrs/openSRS_base.php > Line Number: 869 > > Any ideas what this means? The error is received when trying to use > the > "set cookie" function. The call was working a few weeks ago when last > I > tried it, and I haven't changed a single line of code since. > > Thanks for your help! > > Tim Gustafson > MEI Technology Consulting, Inc > tj...@me... > (516) 379-0001 Office > (516) 480-1870 Mobile/Emergencies > (516) 908-4185 Fax > http://www.meitech.com/ > |
|
From: Gustafson, T. <tj...@me...> - 2005-01-20 13:48:20
|
Hello I have been using the OpenSRS-PHP module for quite some time now. This morning, I noticed an error that I'm consistently getting now. The error message is as follows: Error Number: 2 Error Message: unpack(): Type H: outside of string File Name: /usr/home/ws1116/opensrs/openSRS_base.php Line Number: 869 Any ideas what this means? The error is received when trying to use the "set cookie" function. The call was working a few weeks ago when last I tried it, and I haven't changed a single line of code since. Thanks for your help! Tim Gustafson MEI Technology Consulting, Inc tj...@me... (516) 379-0001 Office (516) 480-1870 Mobile/Emergencies (516) 908-4185 Fax http://www.meitech.com/ |
|
From: Nicolas R. <ros...@cy...> - 2005-01-19 17:19:01
|
>> I've been searching for a good OpenSRS client code, wether in perl or php >> (preferably in php) since I began as a reseller years ago... >> >> I've used the "offical" perl client for some time, until I found >> opensrs-sf's perl client code, wich I liked much, much better. Now, this >> code isn't maintainted and outdated and some functionnality are broken. >> >> I've also tried, late last year, the new client code suite from OpenSRS, >> wich I didn't realy like... >> >> So to make a quick story, I am on the search again ! >> >> I am looking to integrate our domain operation into our new billing >> system, >> and all that would be better in php... >> >> Before I start working for nothing (i.e. from scratch), does anybody have >> a >> small start of code that use Colin's class that can be used as a base for >> a >> registration system ? > > I use opensrs-php with success for everything I need related to OpenSRS. > I've had no problems at all with it once I understood how to use it... :) > What exactly do you find outdated & broken? If you read carfully, it's opensrs-sf, not opensrs-php that has missing and broken functionnaly, .ca registration and management isn't working correctly for an exemple... Colin suggested I look at phpdomain.net, wich I did, and it gave me enough to start... As for your code, are you willing to share it ? Nicolas |
|
From: Alexandru E. U. <ale...@gl...> - 2005-01-19 14:56:00
|
/* sender: "Nicolas Ross" date: "Tue, Jan 18, 2005 at 04:30:15PM -0500" */ > Hi All ! Hi! > I've been searching for a good OpenSRS client code, wether in perl or php > (preferably in php) since I began as a reseller years ago... > > I've used the "offical" perl client for some time, until I found > opensrs-sf's perl client code, wich I liked much, much better. Now, this > code isn't maintainted and outdated and some functionnality are broken. > > I've also tried, late last year, the new client code suite from OpenSRS, > wich I didn't realy like... > > So to make a quick story, I am on the search again ! > > I am looking to integrate our domain operation into our new billing system, > and all that would be better in php... > > Before I start working for nothing (i.e. from scratch), does anybody have a > small start of code that use Colin's class that can be used as a base for a > registration system ? I use opensrs-php with success for everything I need related to OpenSRS. I've had no problems at all with it once I understood how to use it... :) What exactly do you find outdated & broken? Sincerely, Alexandru Ungur |
|
From: Colin V. <co...@vi...> - 2005-01-19 14:25:39
|
phpdomain.net made a product that was based on the OpenSRS-PHP class. I beleive that phpdomain.net as a company has closed it's doors, but they did release their code under an OSS license. Again, I don't remember all the details, but if you go to phpdomain.net you should be able to find something that will help. - Colin On 18-Jan-05, at 4:30 PM, Nicolas Ross wrote: > Hi All ! > > I've been searching for a good OpenSRS client code, wether in perl or > php (preferably in php) since I began as a reseller years ago... > > I've used the "offical" perl client for some time, until I found > opensrs-sf's perl client code, wich I liked much, much better. Now, > this code isn't maintainted and outdated and some functionnality are > broken. > > I've also tried, late last year, the new client code suite from > OpenSRS, wich I didn't realy like... > > So to make a quick story, I am on the search again ! > > I am looking to integrate our domain operation into our new billing > system, and all that would be better in php... > > Before I start working for nothing (i.e. from scratch), does anybody > have a small start of code that use Colin's class that can be used as > a base for a registration system ? > > Thanks, > > Nicolas > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > opensrs-php-devel mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensrs-php-devel > |
|
From: Nicolas R. <ros...@cy...> - 2005-01-18 21:30:05
|
Hi All ! I've been searching for a good OpenSRS client code, wether in perl or php (preferably in php) since I began as a reseller years ago... I've used the "offical" perl client for some time, until I found opensrs-sf's perl client code, wich I liked much, much better. Now, this code isn't maintainted and outdated and some functionnality are broken. I've also tried, late last year, the new client code suite from OpenSRS, wich I didn't realy like... So to make a quick story, I am on the search again ! I am looking to integrate our domain operation into our new billing system, and all that would be better in php... Before I start working for nothing (i.e. from scratch), does anybody have a small start of code that use Colin's class that can be used as a base for a registration system ? Thanks, Nicolas |
|
From: Colin V. <co...@vi...> - 2004-12-15 20:02:41
|
This version adds support for OpenSRS' SSL POST connection method.=20 Thanks to Jason Slaughter for the code.=A0 =A0 I actually had this version packaged and ready to go a few months ago,=20= but never got around to putting it up on Sourceforge. Sorry for the=20 delay.=A0 =A0 As always, report bugs to the dev mailing list ... and feel free to=20 donate to the project. It is the holidays, after all! :)=A0 - Colin |
|
From: Colin V. <co...@vi...> - 2004-12-07 20:07:24
|
Hi Trish, Actually, the OpenSRS-PHP client can do just about anything, including locking and unlocking domains. The client provides "low level" communication with OpenSRS, so you just need to format the command appropriately (using the API reference [1] as a resource). For a lock command, that might look like this: $command = array( 'action' => 'MODIFY', 'object' => 'DOMAIN', 'attributes' => array( 'data' => 'status', 'domain_name' => 'example.com', 'lock_state' => 1 ) ); $response = $O->send_cmd($command); ... Also, FYI, questions like this should probably go to the devel mailing list. The CVS list (which should be announce-only actually) is just for people to keep informed of any changes that happen to the OpenSRS-PHP code base. Thanks. - Colin [1] https://rrc.tucows.com/resources/docs/srsApiDoc.pdf On 7-Dec-04, at 10:31 AM, Trish Hartnett wrote: > Hello, > > sorry for the newbie question. Is there any plans to include in > opensrs-php functionality for the locking/unlocking of domains ? I > couldn't see any mention of it in the Readme file. > > Thanks, > > Trish. > > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today it's > FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real > users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > opensrs-php-cvs mailing list > ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensrs-php-cvs > |