the communication with my OTRS via SOAP is simply not possible.
When I execute the rpc-example.pl (adapted to my settings) the following error occurs:
Code: Select all
./rpc_example.pl
NOTICE: TicketObject->TicketCreateNumber()
Can't call method "Dispatch" without a package or object reference at ./rpc_example.pl line 18.
Code: Select all
my $RPC = Core->new() || print "$@";
# create a new ticket number
print "NOTICE: TicketObject->TicketCreateNumber()\n";
my $TicketNumber = $RPC->Dispatch( $User, $Pw, 'TicketObject', 'TicketCreateNumber' );
Code: Select all
php otrs_soap_ticket_my.php
PHP Fatal error: Uncaught SoapFault exception: [soap:Client] Application failed during request deserialization:
no element found at line 1, column 0, byte -1 at /usr/local/lib/perl5/site_perl/5.8.8/i86pc-solaris/XML/Parser.pm line 187
in otrs_soap_ticket_my.php:20
Stack trace:
#0 otrs_soap_ticket_my.php(20): SoapClient->__soapCall('Dispatch', Array)
#1 {main}
thrown in otrs_soap_ticket_my.php on line 20
SOAP-Request:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="Core" 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/"><SOAP-ENV:Body><ns1:Dispatch><TicketID xsi:type="xsd:string">1263</TicketID><TicketObject xsi:type="xsd:string">TicketNumberLookup</TicketObject></ns1:Dispatch></SOAP-ENV:Body></SOAP-ENV:Envelope>
I use mod_perl in Apache Webserver, Perl 5.8.8 and the script otrs.CheckModules.pl says everything is fine.
Any help or comments appreciated.
Btw: The SOAP configuration in SysConfig was done
