
Hi, I'm trying to use the SOAP interface of OTRS to generate new tickets. So far no luck. The error I get when I try to access soap via PHP is: "Fatal error: Uncaught SoapFault exception: [soap:Client] Application failed during request deserialization: no element found at line 1, column 0, byte -1 at /usr/lib/perl5/XML/Parser.pm line 187 in /var/www/espritxb/createTicket.php:18 Stack trace: #0 /var/www/espritxb/createTicket.php(18): SoapClient->__soapCall('Dispatch', Array) #1 {main} thrown in /var/www/espritxb/createTicket.php on line 18" The script I use comes from: http://www.iniy.org/?p=20 I've also tried the perl script, but also no luck. I've set the SOAP user and password via the admin interface. Should I set these directly in rpc.pl? Any help is much appriciated. Arnold.

Hi, even if I use the rpc-example from the scripts directory I get this error: Software error: Can't call method "Dispatch" on an undefined value at /opt/otrs/bin/cgi-bin/rpc-example.pl line 33. For help, please send mail to the webmaster (webmaster@localhost), giving this error message and the time and date of the error. I've changed the example to have my real url, user and password. Arnold.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Arnold,
On Nov 17, 2009, at 2:05 PM,
Can't call method "Dispatch" on an undefined value at /opt/otrs/bin/cgi-bin/rpc-example.pl line 33. did you change the proxy URI in line 25 to your current OTRS installation?
- -Markus - -- Markus Esche Customer Development OTRS AG Europaring 4 94315 Straubing Deutschland T: +49 (0) 9421 56818 0 F: +49 (0) 9421 56818 18 I: http://www.otrs.com/ Geschäftssitz: Bad Homburg Amtsgericht: Bad Homburg, HRB 10751 Steuernummer: 003 240 97505 Aufsichtsratsvorsitzender: Burchard Steinbild Vorstand: André Mindermann (Vorsitzender), Martin Edenhofer Treffen Sie ((otrs)) auf dem IIR Service Desk Forum in Mainz und erfahren Sie vom 24.-25. November 2009 mehr über OTRS an Stand 12! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (Darwin) iEYEARECAAYFAksDsZkACgkQueFEt4cNAVs5PACfb4BADaAXtTrvhyKshMNRBuTH 1O8An38BbjCyO32pd9/uxyo21y2aaXQI =SbCa -----END PGP SIGNATURE-----

Hi Markus,
On Wed, 18 Nov 2009 09:34:32 +0100, Markus Esche
Hi Arnold,
On Nov 17, 2009, at 2:05 PM,
wrote: Can't call method "Dispatch" on an undefined value at /opt/otrs/bin/cgi-bin/rpc-example.pl line 33. did you change the proxy URI in line 25 to your current OTRS installation?
I did change that. I decided to test it by calling the proxy URL direclty from the browser. Firefox responds with a file not found error, but I suspect this is because no output is generated by rpc.pl? If I test from lynx I see an error "lynx: Start file could not be found or is not text/html or text/plain Exiting..". I'm now at a point where I can create a new ticket via SOAP, but it gets no data (not even a TN if I look in the agent interface). PHP still gives me an error 'no element found at line 1, column 0, byte -1 at /usr/lib/perl5/XML/Parser.pm line 187'. I'm lost.... If I'm correct than the only change in OTRS is setting the SOAP user and password. I've also set these directly in the rpc.pl under $User and $Password (to be on the safe side). I'm running OTRS 2.4.5. Can someone post a small working script in PHP (preferred) or Perl, that just creates a new ticket? Thanks, Arnold.

Hi Arnold,
On Nov 18, 2009, at 5:28 PM,
On Nov 17, 2009, at 2:05 PM,
wrote: Can't call method "Dispatch" on an undefined value at /opt/otrs/bin/cgi-bin/rpc-example.pl line 33.
I'm now at a point where I can create a new ticket via SOAP, but it gets no data (not even a TN if I look in the agent interface). PHP still gives me an error 'no element found at line 1, column 0, byte -1 at /usr/lib/perl5/XML/Parser.pm line 187'. You may call $OTRS_HOME/bin/otrs.checkModules to see if Perl Modules are missing.
I'm lost.... If I'm correct than the only change in OTRS is setting the SOAP user and password. I've also set these directly in the rpc.pl under $User and $Password (to be on the safe side). I'm running OTRS 2.4.5. Can someone post a small working script in PHP (preferred) or Perl, that just creates a new ticket? Please have a look at this email: http://www.mail-archive.com/otrs@otrs.org/msg27899.html
hth Markus -- Markus Esche Customer Development OTRS AG Europaring 4 94315 Straubing Deutschland T: +49 (0) 9421 56818 0 F: +49 (0) 9421 56818 18 I: http://www.otrs.com/ Geschäftssitz: Bad Homburg Amtsgericht: Bad Homburg, HRB 10751 Steuernummer: 003 240 97505 Aufsichtsratsvorsitzender: Burchard Steinbild Vorstand: André Mindermann (Vorsitzender), Martin Edenhofer Treffen Sie ((otrs)) auf dem IIR Service Desk Forum in Mainz und erfahren Sie vom 24.-25. November 2009 mehr über OTRS an Stand 12!

Beste Arnold,
Please note that I am NOT knowledgeable in PHP, but I've taken an
example script I had and modified it a bit to demonstrate how you
could create a ticket via SOAP from PHP:
http://wiki.otrs-forum.de/index.php?title=Create_a_ticket_in_OTRS_from_PHP_v...
Hope this helps,
((enjoy))
-
Michiel Beijen
R&D
OTRS AG
Norsk-Data-Str 1.
61352 Bad Homburg
Deutschland
T: +31 (0) 6457 42418
F: +49 (0) 9421 56818-18
I: http://www.otrs.com/
Business Location: Bad Homburg, Country Court: Bad Homburg, Commercial
register: 10751, Tax ID: 003 240
97505 Chairman of the Board: Burchard Steinbild, Managing Board: André
Mindermann (CEO), Martin Edenhofer
CU@ IIR Service Desk Forum in Mainz (Germany) and get to know more
about OTRS at booth no. 12 from Nov 24-25, 2009!
On Thu, Nov 19, 2009 at 9:33 AM, Markus Esche
Hi Arnold,
On Nov 18, 2009, at 5:28 PM,
wrote: On Nov 17, 2009, at 2:05 PM,
wrote: Can't call method "Dispatch" on an undefined value at /opt/otrs/bin/cgi-bin/rpc-example.pl line 33.
I'm now at a point where I can create a new ticket via SOAP, but it gets no data (not even a TN if I look in the agent interface). PHP still gives me an error 'no element found at line 1, column 0, byte -1 at /usr/lib/perl5/XML/Parser.pm line 187'.
You may call $OTRS_HOME/bin/otrs.checkModules to see if Perl Modules are missing.
I'm lost.... If I'm correct than the only change in OTRS is setting the SOAP user and password. I've also set these directly in the rpc.pl under $User and $Password (to be on the safe side). I'm running OTRS 2.4.5. Can someone post a small working script in PHP (preferred) or Perl, that just creates a new ticket?
Please have a look at this email: http://www.mail-archive.com/otrs@otrs.org/msg27899.html
hth Markus
--
Markus Esche Customer Development
OTRS AG Europaring 4 94315 Straubing Deutschland
T: +49 (0) 9421 56818 0 F: +49 (0) 9421 56818 18 I: http://www.otrs.com/
Geschäftssitz: Bad Homburg Amtsgericht: Bad Homburg, HRB 10751 Steuernummer: 003 240 97505 Aufsichtsratsvorsitzender: Burchard Steinbild Vorstand: André Mindermann (Vorsitzender), Martin Edenhofer
Treffen Sie ((otrs)) auf dem IIR Service Desk Forum in Mainz und erfahren Sie vom 24.-25. November 2009 mehr über OTRS an Stand 12!
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/

I had errors when I tried to read stats. After restart of server, I tried again to read stats, the stats page was right. But after querying a stat, it was very long, and I stopped the query by stop browser button. I have two errors : ============================================================================================ ERROR: OTRS-CGI-10 Perl: 5.10.0 OS: linux Time: Thu Nov 19 17:06:10 2009 Message: [Thu Nov 19 17:06:10 2009] AgentStats.pm: Attempt to reload Kernel/System/Stats.pm aborted. [Thu Nov 19 17:06:10 2009] AgentStats.pm: Compilation failed in require at /usr/local/src/otrs/Kernel/Modules/AgentStats.pm line 16. [Thu Nov 19 17:06:10 2009] AgentStats.pm: BEGIN failed--compilation aborted at /usr/local/src/otrs/Kernel/Modules/AgentStats.pm line 16. Traceback (2751): Module: Kernel::System::Web::InterfaceAgent::Run (v1.35) Line: 182 Module: ModPerl::ROOT::ModPerl::Registry::usr_local_src_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 47 Module: (eval) (v1.87) Line: 204 Module: ModPerl::RegistryCooker::run (v1.87) Line: 204 Module: ModPerl::RegistryCooker::default_handler (v1.87) Line: 170 Module: ModPerl::Registry::handler (v1.99) Line: 31 ============================================================================================ ERROR: OTRS-CGI-10 Perl: 5.10.0 OS: linux Time: Thu Nov 19 17:10:13 2009 Message: [Thu Nov 19 17:10:13 2009] AgentStats.pm: Can't locate Date/Pcalc.pm in @INC (@INC contains: /usr/local/src/otrs /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl . /etc/apache2 /usr/sbin/../.. /usr/sbin/../../Kernel/cpan-lib) at /usr/local/src/otrs/Kernel/System/Stats.pm line 18. [Thu Nov 19 17:10:13 2009] AgentStats.pm: BEGIN failed--compilation aborted at /usr/local/src/otrs/Kernel/System/Stats.pm line 18. [Thu Nov 19 17:10:13 2009] AgentStats.pm: Compilation failed in require at /usr/local/src/otrs/Kernel/Modules/AgentStats.pm line 16. [Thu Nov 19 17:10:13 2009] AgentStats.pm: BEGIN failed--compilation aborted at /usr/local/src/otrs/Kernel/Modules/AgentStats.pm line 16. Traceback (2750): Module: Kernel::System::Web::InterfaceAgent::Run (v1.35) Line: 182 Module: ModPerl::ROOT::ModPerl::Registry::usr_local_src_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 47 Module: (eval) (v1.87) Line: 204 Module: ModPerl::RegistryCooker::run (v1.87) Line: 204 Module: ModPerl::RegistryCooker::default_handler (v1.87) Line: 170 Module: ModPerl::Registry::handler (v1.99) Line: 31 ============================================================================================ I searched about "Can't locate Date/Pcalc.pm in @INC" There were responses : intall Date::Calc by cpan It failed on install Test::Exception I used force install, it seems right. Any ideas ???? Thanks !

Beste Michiel & Markus,
I checked to see if I was missing any modules:
/opt/otrs/bin/otrs.checkModules
o CGI............................ok (v3.48)
o Date::Pcalc....................ok (v1.2)
o Date::Format...................ok (v2.22)
o DBI............................ok (v1.601)
o DBD::mysql.....................ok (v4.005)
o Digest::MD5....................ok (v2.36)
o Crypt::PasswdMD5...............ok (v1.3)
o LWP::UserAgent.................ok (v2.036)
o Encode::HanExtra...............Not installed! (Optional - Required to
handle mails with several Chinese character sets.)
o IO::Scalar.....................ok (v2.110)
o IO::Wrap.......................ok (v2.110)
o MIME::Base64...................ok (v3.07)
o Mail::Internet.................ok (v2.04)
o MIME::Tools....................ok (v5.427)
o Net::DNS.......................ok (v0.63)
o Net::POP3......................ok (v2.28)
o Mail::POP3Client...............ok (v2.18 )
o IO::Socket::SSL.............Not installed! (Optional - for POP3
SSL connections)
o Net::IMAP::Simple..............ok (v1.17)
o Net::IMAP::Simple::SSL......Not installed! (Optional - Required
for SSL connections.)
o Net::SMTP......................ok (v2.29)
o Authen::SASL................ok (v2.12)
o Net::SMTP::SSL..............Not installed! (Optional - Required
for SSL/SMTPS connections.)
o Net::LDAP......................ok (v0.34)
o GD.............................ok (v2.35)
o GD::Text....................ok (v0.86)
o GD::Graph...................ok (v1.44)
o GD::Graph::lines............ok (v1.15)
o GD::Text::Align.............ok (v1.18)
o PDF::API2......................Not installed! (Optional - Required
for PDF output.)
o Compress::Zlib..............Not installed! (Optional - Required
for PDF output.)
o SOAP::Lite.....................ok (v0.710.10)
o XML::Parser....................ok (v2.34)
It seems to me that the missing ones are not SOAP related... When I run
the example script from the wiki I get:
Test SOAP-interface of OTRS
Fatal error: Uncaught SoapFault exception: [soap:Client] Application
failed during request deserialization: no element found at line 1, column
0, byte -1 at /usr/lib/perl5/XML/Parser.pm line 187 in
/var/www/espritxb/soap.php:40 Stack trace: #0
/var/www/espritxb/soap.php(40): SoapClient->__soapCall('Dispatch', Array)
#1 {main} thrown in /var/www/espritxb/soap.php on line 40
I have changed the the $url, $username, $password and $from to match my
situation. Nothing else has been changed in the script.
Thanks for the help!
Arnold.
On Thu, 19 Nov 2009 16:25:57 +0100, Michiel Beijen
Beste Arnold,
Please note that I am NOT knowledgeable in PHP, but I've taken an example script I had and modified it a bit to demonstrate how you could create a ticket via SOAP from PHP:
http://wiki.otrs-forum.de/index.php?title=Create_a_ticket_in_OTRS_from_PHP_v...
Hope this helps,
((enjoy)) - Michiel Beijen R&D
OTRS AG Norsk-Data-Str 1. 61352 Bad Homburg Deutschland
T: +31 (0) 6457 42418 F: +49 (0) 9421 56818-18 I: http://www.otrs.com/
Business Location: Bad Homburg, Country Court: Bad Homburg, Commercial register: 10751, Tax ID: 003 240 97505 Chairman of the Board: Burchard Steinbild, Managing Board: André Mindermann (CEO), Martin Edenhofer
CU@ IIR Service Desk Forum in Mainz (Germany) and get to know more about OTRS at booth no. 12 from Nov 24-25, 2009!
On Thu, Nov 19, 2009 at 9:33 AM, Markus Esche
wrote: Hi Arnold,
On Nov 18, 2009, at 5:28 PM,
wrote:
On Nov 17, 2009, at 2:05 PM,
wrote: Can't call method "Dispatch" on an undefined value at /opt/otrs/bin/cgi-bin/rpc-example.pl line 33.
I'm now at a point where I can create a new ticket via SOAP, but it gets no data (not even a TN if I look in the agent interface). PHP still gives me an error 'no element found at line 1, column 0, byte -1 at /usr/lib/perl5/XML/Parser.pm line 187'.
You may call $OTRS_HOME/bin/otrs.checkModules to see if Perl Modules are missing.
I'm lost.... If I'm correct than the only change in OTRS is setting the SOAP user and password. I've also set these directly in the rpc.pl under $User and $Password (to be on the safe side). I'm running OTRS 2.4.5. Can someone post a small working script in PHP (preferred) or Perl, that just creates a new ticket?
Please have a look at this email: http://www.mail-archive.com/otrs@otrs.org/msg27899.html
hth Markus
--
Markus Esche Customer Development
OTRS AG Europaring 4 94315 Straubing Deutschland
T: +49 (0) 9421 56818 0 F: +49 (0) 9421 56818 18 I: http://www.otrs.com/
Geschäftssitz: Bad Homburg Amtsgericht: Bad Homburg, HRB 10751 Steuernummer: 003 240 97505 Aufsichtsratsvorsitzender: Burchard Steinbild Vorstand: André Mindermann (Vorsitzender), Martin Edenhofer
Treffen Sie ((otrs)) auf dem IIR Service Desk Forum in Mainz und erfahren Sie vom 24.-25. November 2009 mehr über OTRS an Stand 12!
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/

Check the mailing list archive - I posted a script that creates a new TN, opens a new ticket, adds an article and links it to another ticket. It's in PHP, too.
James.
-----Original Message-----
From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Michiel Beijen
Sent: Friday, 20 November 2009 2:26 AM
To: User questions and discussions about OTRS.
Subject: Re: [otrs] SOAP troubles
Beste Arnold,
Please note that I am NOT knowledgeable in PHP, but I've taken an
example script I had and modified it a bit to demonstrate how you
could create a ticket via SOAP from PHP:
http://wiki.otrs-forum.de/index.php?title=Create_a_ticket_in_OTRS_from_PHP_v...
Hope this helps,
((enjoy))
-
Michiel Beijen
R&D
OTRS AG
Norsk-Data-Str 1.
61352 Bad Homburg
Deutschland
T: +31 (0) 6457 42418
F: +49 (0) 9421 56818-18
I: http://www.otrs.com/
Business Location: Bad Homburg, Country Court: Bad Homburg, Commercial
register: 10751, Tax ID: 003 240
97505 Chairman of the Board: Burchard Steinbild, Managing Board: André
Mindermann (CEO), Martin Edenhofer
CU@ IIR Service Desk Forum in Mainz (Germany) and get to know more
about OTRS at booth no. 12 from Nov 24-25, 2009!
On Thu, Nov 19, 2009 at 9:33 AM, Markus Esche
Hi Arnold,
On Nov 18, 2009, at 5:28 PM,
wrote: On Nov 17, 2009, at 2:05 PM,
wrote: Can't call method "Dispatch" on an undefined value at /opt/otrs/bin/cgi-bin/rpc-example.pl line 33.
I'm now at a point where I can create a new ticket via SOAP, but it gets no data (not even a TN if I look in the agent interface). PHP still gives me an error 'no element found at line 1, column 0, byte -1 at /usr/lib/perl5/XML/Parser.pm line 187'.
You may call $OTRS_HOME/bin/otrs.checkModules to see if Perl Modules are missing.
I'm lost.... If I'm correct than the only change in OTRS is setting the SOAP user and password. I've also set these directly in the rpc.pl under $User and $Password (to be on the safe side). I'm running OTRS 2.4.5. Can someone post a small working script in PHP (preferred) or Perl, that just creates a new ticket?
Please have a look at this email: http://www.mail-archive.com/otrs@otrs.org/msg27899.html
hth Markus
--
Markus Esche Customer Development
OTRS AG Europaring 4 94315 Straubing Deutschland
T: +49 (0) 9421 56818 0 F: +49 (0) 9421 56818 18 I: http://www.otrs.com/
Geschäftssitz: Bad Homburg Amtsgericht: Bad Homburg, HRB 10751 Steuernummer: 003 240 97505 Aufsichtsratsvorsitzender: Burchard Steinbild Vorstand: André Mindermann (Vorsitzender), Martin Edenhofer
Treffen Sie ((otrs)) auf dem IIR Service Desk Forum in Mainz und erfahren Sie vom 24.-25. November 2009 mehr über OTRS an Stand 12!
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/

Hi James, James Morgan wrote:
Check the mailing list archive - I posted a script that creates a new TN, opens a new ticket, adds an article and links it to another ticket. It's in PHP, too.
James.
found that and tried it. Same error. Even on the init of the soapclient I get that error, so in your code on: $soapclient = new SoapClient(null, array('location' => $otrs_url, 'uri' => "Core", 'trace' => 1, 'login' => $otrs_user, 'password' => $otrs_pass, 'style' => SOAP_RPC, 'use' => SOAP_ENCODED)); I suspect that: a) my PHP is broken (phpinfo says soap is active) b) perl SOAP is broken somewhere (soap::lite is installed) c) otrs is broken somewhere Arnold.

What does your messages log say when you run the code I provided? -----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Arnold Ligtvoet Sent: Friday, 20 November 2009 10:25 AM To: User questions and discussions about OTRS. Subject: Re: [otrs] SOAP troubles Hi James, James Morgan wrote:
Check the mailing list archive - I posted a script that creates a new TN, opens a new ticket, adds an article and links it to another ticket. It's in PHP, too.
James.
found that and tried it. Same error. Even on the init of the soapclient I get that error, so in your code on: $soapclient = new SoapClient(null, array('location' => $otrs_url, 'uri' => "Core", 'trace' => 1, 'login' => $otrs_user, 'password' => $otrs_pass, 'style' => SOAP_RPC, 'use' => SOAP_ENCODED)); I suspect that: a) my PHP is broken (phpinfo says soap is active) b) perl SOAP is broken somewhere (soap::lite is installed) c) otrs is broken somewhere Arnold. --------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/

Arnold,
* If you'd look in the OTRS log after you try to run the PHP script,
do you find anything useful there?
* Are you sure SOAP::Lite is installed on the OTRS box _for the
webserver user_? If you'd have installed it for instance using CPAN
using your 'arnold' account, it would be available for that user only
and not for apache. Please su to the webserver user and run
otrs.checkModules again?
((enjoy))
-
Michiel Beijen
R&D
OTRS AG
Norsk-Data-Str 1.
61352 Bad Homburg
Deutschland
T: +31 (0) 6457 42418
F: +49 (0) 9421 56818-18
I: http://www.otrs.com/
Business Location: Bad Homburg, Country Court: Bad Homburg, Commercial
register: 10751, Tax ID: 003 240
97505 Chairman of the Board: Burchard Steinbild, Managing Board: André
Mindermann (CEO), Martin Edenhofer
CU@ IIR Service Desk Forum in Mainz (Germany) and get to know more
about OTRS at booth no. 12 from Nov 24-25, 2009!
On Fri, Nov 20, 2009 at 12:25 AM, Arnold Ligtvoet
Hi James,
James Morgan wrote:
Check the mailing list archive - I posted a script that creates a new TN, opens a new ticket, adds an article and links it to another ticket. It's in PHP, too.
James.
found that and tried it. Same error. Even on the init of the soapclient I get that error, so in your code on: $soapclient = new SoapClient(null, array('location' => $otrs_url, 'uri' => "Core",
'trace' => 1,
'login' => $otrs_user,
'password' => $otrs_pass,
'style' => SOAP_RPC,
'use' => SOAP_ENCODED));
I suspect that: a) my PHP is broken (phpinfo says soap is active) b) perl SOAP is broken somewhere (soap::lite is installed) c) otrs is broken somewhere
Arnold. --------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/

Hi, thanks for the continuing help!
* If you'd look in the OTRS log after you try to run the PHP script, do you find anything useful there?
Nope, nothing there. Assuming you mean the System Log in the admin interface.
* Are you sure SOAP::Lite is installed on the OTRS box _for the webserver user_? If you'd have installed it for instance using CPAN using your 'arnold' account, it would be available for that user only and not for apache. Please su to the webserver user and run otrs.checkModules again?
Switched to user www-data and ran checkModules. SOAP::Lite is installed for the webuser. To me it seems that the PHP parser is getting an answer in return which is formatted in such a way that it is not understood. Logic dictates that the first cause could be that the script can logon to the SOAP interface. I've set the user and password via the admin interface and also direct in /opt/otrs/bin/cgi-bin/rpc.pl under $User and $Pw. By now I have gone around it by just inserting straight onto the db using PHP and Mysql, however I would still prefer to have the soap interface working. Arnold.

Your system message log should let you know whether the request is hitting the SOAP interface by logging the request as successful or a failure. Can you convince PHP to give you more info on the unhandled exception? -----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of arnold@ligtvoet.org Sent: Saturday, 21 November 2009 12:35 AM To: User questions and discussions about OTRS. Subject: Re: [otrs] SOAP troubles Hi, thanks for the continuing help!
* If you'd look in the OTRS log after you try to run the PHP script, do you find anything useful there?
Nope, nothing there. Assuming you mean the System Log in the admin interface.
* Are you sure SOAP::Lite is installed on the OTRS box _for the webserver user_? If you'd have installed it for instance using CPAN using your 'arnold' account, it would be available for that user only and not for apache. Please su to the webserver user and run otrs.checkModules again?
Switched to user www-data and ran checkModules. SOAP::Lite is installed for the webuser. To me it seems that the PHP parser is getting an answer in return which is formatted in such a way that it is not understood. Logic dictates that the first cause could be that the script can logon to the SOAP interface. I've set the user and password via the admin interface and also direct in /opt/otrs/bin/cgi-bin/rpc.pl under $User and $Pw. By now I have gone around it by just inserting straight onto the db using PHP and Mysql, however I would still prefer to have the soap interface working. Arnold. --------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW! http://www.otrs.com/en/support/enterprise-subscription/
participants (6)
-
Arnold Ligtvoet
-
arnold@ligtvoet.org
-
James Morgan
-
Markus Esche
-
Michiel Beijen
-
Pierrik Le Guennec