
Hi,
I would like to create tickets and articles via OTRS SOAP interface.
This is what I have done so far.
- added SOAP user and pass at OTRS Administrator menu (Framework-Core::SOAP)
- installed SOAP::Lite Perl package
- ran otrs.checkModules it looks fine.
- ran rpc-example.pl with the appropriate params (url, user, pass).
The last point always fail with the following: (I added trace=>'all' to
see what's wrong with it)
Apache's error log says nothing nor otrs log as well. So I really
appreciate any idea where should I continue debugging.
Thank you in advance!
rbs:/opt/otrs/scripts# ./rpc-example.pl
Subroutine LWP::UserAgent::redirect_ok redefined at
/usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm line 44.
Subroutine LWP::Protocol::collect redefined at
/usr/local/share/perl/5.8.8/SOAP/Transport/HTTP.pm line 65.
Subroutine SOAP::Trace::transport redefined at
/usr/local/share/perl/5.8.8/SOAP/Lite.pm line 2905.
Subroutine SOAP::Trace::dispatch redefined at
/usr/local/share/perl/5.8.8/SOAP/Lite.pm line 2905.
Subroutine SOAP::Trace::result redefined at
/usr/local/share/perl/5.8.8/SOAP/Lite.pm line 2905.
Subroutine SOAP::Trace::parameters redefined at
/usr/local/share/perl/5.8.8/SOAP/Lite.pm line 2905.
Subroutine SOAP::Trace::headers redefined at
/usr/local/share/perl/5.8.8/SOAP/Lite.pm line 2905.
Subroutine SOAP::Trace::objects redefined at
/usr/local/share/perl/5.8.8/SOAP/Lite.pm line 2905.
Subroutine SOAP::Trace::method redefined at
/usr/local/share/perl/5.8.8/SOAP/Lite.pm line 2905.
Subroutine SOAP::Trace::fault redefined at
/usr/local/share/perl/5.8.8/SOAP/Lite.pm line 2905.
Subroutine SOAP::Trace::freeform redefined at
/usr/local/share/perl/5.8.8/SOAP/Lite.pm line 2905.
Subroutine SOAP::Trace::trace redefined at
/usr/local/share/perl/5.8.8/SOAP/Lite.pm line 2905.
Subroutine SOAP::Trace::debug redefined at
/usr/local/share/perl/5.8.8/SOAP/Lite.pm line 2905.
SOAP::Lite::call: ()
SOAP::Serializer::envelope: ()
SOAP::Serializer::envelope: new
SOAP::Data::new: ()
SOAP::Data::new: ()
SOAP::Data::new: ()
SOAP::Data::new: ()
SOAP::Transport::HTTP::Client::send_receive: HTTP::Request=HASH(0x84fec2c)
SOAP::Transport::HTTP::Client::send_receive: POST
http://192.168.1.10/otrs/rpc.pl HTTP/1.1
Accept: text/xml
Accept: multipart/*
Accept: application/soap
Content-Length: 403
Content-Type: text/xml; charset=utf-8
SOAPAction: "/Core#new"
<?xml version="1.0" encoding="UTF-8"?>

On 7/14/10 3:47 PM, Sándor Fehér wrote:
Hi,
I would like to create tickets and articles via OTRS SOAP interface. This is what I have done so far.
- added SOAP user and pass at OTRS Administrator menu (Framework-Core::SOAP) - installed SOAP::Lite Perl package - ran otrs.checkModules it looks fine. - ran rpc-example.pl with the appropriate params (url, user, pass).
The last point always fail with the following: (I added trace=>'all' to see what's wrong with it) Apache's error log says nothing nor otrs log as well. So I really appreciate any idea where should I continue debugging. Thank you in advance!
Server: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch11 mod_perl/2.0.2 Perl/v5.8.8 Content-Length: 603 Content-Type: text/xml; charset=utf-8 Client-Date: Wed, 14 Jul 2010 13:43:50 GMT Client-Peer: 192.168.1.10:80 Client-Response-Num: 1 SOAPServer: SOAP::Lite/Perl/0.712
Hi, checj this bug report: https://rt.cpan.org/Public/Bug/Display.html?id=58538 I solved the issue after I replaced the sysread command in SOAP/Transport/HTTP.pm with read. regards, Roy -- Roy Kaldung e-mail: roy@kaldung.com web: http://kaldung.com/ gpg key: 2A4D6A9D http://kaldung.com/roy.kaldung.asc

Hi Roy, Thanks a lot! I changed sysread to read accordingly and now it works fine. regards., Sandor 2010.07.14. 22:01 keltezéssel, Roy Kaldung írta:
On 7/14/10 3:47 PM, Sándor Fehér wrote:
Hi,
I would like to create tickets and articles via OTRS SOAP interface. This is what I have done so far.
- added SOAP user and pass at OTRS Administrator menu (Framework-Core::SOAP) - installed SOAP::Lite Perl package - ran otrs.checkModules it looks fine. - ran rpc-example.pl with the appropriate params (url, user, pass).
The last point always fail with the following: (I added trace=>'all' to see what's wrong with it) Apache's error log says nothing nor otrs log as well. So I really appreciate any idea where should I continue debugging. Thank you in advance!
Server: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch11 mod_perl/2.0.2 Perl/v5.8.8 Content-Length: 603 Content-Type: text/xml; charset=utf-8 Client-Date: Wed, 14 Jul 2010 13:43:50 GMT Client-Peer: 192.168.1.10:80 Client-Response-Num: 1 SOAPServer: SOAP::Lite/Perl/0.712
Hi,
checj this bug report: https://rt.cpan.org/Public/Bug/Display.html?id=58538
I solved the issue after I replaced the sysread command in SOAP/Transport/HTTP.pm with read.
regards, Roy

HI, On 14.07.2010, at 15:47, Sándor Fehér wrote:
I would like to create tickets and articles via OTRS SOAP interface. This is what I have done so far.
- added SOAP user and pass at OTRS Administrator menu (Framework-Core::SOAP) - installed SOAP::Lite Perl package - ran otrs.checkModules it looks fine. - ran rpc-example.pl with the appropriate params (url, user, pass).
The last point always fail with the following: (I added trace=>'all' to see what's wrong with it) Apache's error log says nothing nor otrs log as well. So I really appreciate any idea where should I continue debugging. Thank you in advance!
rbs:/opt/otrs/scripts# ./rpc-example.pl
Could you post your rpc-example.pl file? Freundliche Grüße / Kind regards Nils Leideck -- Nils Leideck Senior Consultant nils.leideck@leidex.net nils.leideck@otrs.com http://webint.cryptonode.de / a Fractal project

Hi, Sorry, please ignore my email, haven’t read the followups before i answered. Good to hear it is solved for you now ;-) On 15.07.2010, at 21:22, Nils Leideck - ITSM wrote:
On 14.07.2010, at 15:47, Sándor Fehér wrote:
I would like to create tickets and articles via OTRS SOAP interface. This is what I have done so far.
- added SOAP user and pass at OTRS Administrator menu (Framework-Core::SOAP) - installed SOAP::Lite Perl package - ran otrs.checkModules it looks fine. - ran rpc-example.pl with the appropriate params (url, user, pass).
The last point always fail with the following: (I added trace=>'all' to see what's wrong with it) Apache's error log says nothing nor otrs log as well. So I really appreciate any idea where should I continue debugging. Thank you in advance!
rbs:/opt/otrs/scripts# ./rpc-example.pl
Could you post your rpc-example.pl file?
Freundliche Grüße / Kind regards Nils Leideck -- Nils Leideck Senior Consultant nils.leideck@leidex.net nils.leideck@otrs.com http://webint.cryptonode.de / a Fractal project
participants (3)
-
Nils Leideck - ITSM
-
Roy Kaldung
-
Sándor Fehér