| Previous topic :: Next topic |
| Author |
Message |
teniemi
Joined: 11 Jan 2007
Posts: 22
|
| Posted: Thu Jan 11, 2007 7:09 pm Post subject: Cannot redeclare class soapclient with web forms |
|
|
Hi everyone!
When I'm submitting webform Contact I get the following error on send_data.php.
Fatal error: Cannot redeclare class soapclient in ../Contact/nusoap/lib/nusoap.php on line 5583
What could be the cause for this?
Thank you for any help in advance. |
|
| Back to top |
|
teniemi
Joined: 11 Jan 2007
Posts: 22
|
| Posted: Mon Jan 22, 2007 10:45 am Post subject: Cannot redeclare class soapclient with web forms |
|
|
This problem seems to relate nusoap conflicting with official PHP soapclient. Renaming the class to soapclient_xx get me rid of this error. But I still haven't been able to insert one Lead/Contact to vTiger through soap interface. If I use separate SoapClient application to test it it seems not to work even then.
Request in raw form (this comes from the WSDL):
Host: www.mydomain.com
User-Agent: Mac OS X; WebServicesCore.framework (1.1.0)
Content-Type: text/xml
Soapaction: http://www.mydomain.com/intra/vtigercrm/vtigerservice.php/create_lead_from_webform
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<m:create_lead_from_webform xmlns:m="http://www.mydomain.com/soap/vtigersoap">
<lastname xsi:type="xsd:string">Name</lastname>
<email xsi:type="xsd:string">heippa@vilho.fi</email>
<phone xsi:type="xsd:string">0200200</phone>
<company xsi:type="xsd:string">testi</company>
<country xsi:type="xsd:string">testi</country>
<description xsi:type="xsd:string">jees</description>
<assigned_user_id xsi:type="xsd:string">1</assigned_user_id>
</m:create_lead_from_webform>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Response in raw form:
HTTP/1.1 200 OK
Server: Apache
Connection: close
Date: Mon, 22 Jan 2007 09:56:17 GMT
Transfer-Encoding: Identity
X-Powered-By: PHP/5.1.6
Content-Type: text/html; charset=ISO-8859-1
<h1>vtigerCRM Soap Services</h1><li>vtigerCRM Outlook Plugin EndPoint URL -- Click <a href='vtigerservice.php?service=outlook'>here</a></li><li>vtigerCRM Word Plugin EndPoint URL -- Click <a href='vtigerservice.php?service=wordplugin'>here</a></li><li>vtigerCRM ThunderBird Extenstion EndPoint URL -- Click <a href='vtigerservice.php?service=thunderbird'>here</a></li><li>vtigerCRM Customer Portal EndPoint URL -- Click <a href='vtigerservice.php?service=customerportal'>here</a></li><li>vtigerCRM WebForm EndPoint URL -- Click <a href='vtigerservice.php?service=webforms'>here</a></li><li>vtigerCRM FireFox Extension EndPoint URL -- Click <a href='vtigerservice.php?service=firefox'>here</a></li>
I wonder if the SoapAction URL really is correct? |
|
| Back to top |
|
bingnet
Joined: 08 May 2008
Posts: 2
|
| Posted: Thu May 08, 2008 10:51 pm Post subject: Re: Cannot redeclare class soapclient with web forms |
|
|
| I have the same problem with v5.0.4. This is a crossreference to another thread on the subject: <http://forums.vtiger.com/viewtopic.php?t=2335&start=0&postdays=0&postorder=asc&highlight=> |
|
| Back to top |
|
| |