Please help: php soap call error

Moderator: crythias

Locked
hiennguyen
Znuny newbie
Posts: 2
Joined: 19 Feb 2013, 04:33
Znuny Version: 3.1.6
Real Name: Hien Nguyen
Company: infodation

Please help: php soap call error

Post by hiennguyen »

Hi all, please help me!!!

I used php code to call OTRS webservice GetTicket and got error message:
RESPONSE: 10143811014281979361 looks like we got no XML document

Here is my php code:

Code: Select all

$client = new SoapClient(null, array('location'  => $url,
                                        'uri'       => $uri,      // make sure it's the same as the namespace in network config of the webservice
                                        'trace'     => true,
                                        'style'     => SOAP_RPC,
                                        'use'       => SOAP_ENCODED,
                                        'connection_timeout' => 600)
                                        );

$result = $client->__soapCall($Operation, array(
    new SoapParam($username, "UserLogin"),
    new SoapParam($password, "Password"),
    new SoapParam($tid, "TicketID"),
    new SoapParam("1", "DynamicFields"),
    new SoapParam("1", "AllArticles")
The OTRS version is 3.1.6 (LAMP server), Dutch language.

Thanks for your help,
hiennguyen
Znuny newbie
Posts: 2
Joined: 19 Feb 2013, 04:33
Znuny Version: 3.1.6
Real Name: Hien Nguyen
Company: infodation

Re: Please help: php soap call error

Post by hiennguyen »

The cause of error is: there is a ticket has an article with reply.
If I remove this ticket, there is no soap fault anymore.

Is this a bug of OTRS 3.1.6?

Regards,
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Please help: php soap call error

Post by jojo »

most likely it is a bug in your PHP script
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Locked