View Issue Details

IDProjectCategoryView StatusLast Update
0020545mantisbtapi soappublic2016-02-11 16:00
ReporterNandagopal Assigned Torombert  
PriorityurgentSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Product Version1.2.19 
Summary0020545: Not able to connect from Jenkin and SOAP
Description

While Connecting from Jenkin and SOAP. am getting 500 internal error message...

So I have checked the Request and Response what is logged. Please find the Request and Response what am getting

Looks like Array to string conversion has some issue. Please check

Additional Information

Request

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:man="http://futureware.biz/mantisconnect">
<soapenv:Header/>
<soapenv:Body>
<man:mc_projects_get_user_accessible soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<username xsi:type="xsd:string">jenkin</username>
<password xsi:type="xsd:string">XXX</password>
</man:mc_projects_get_user_accessible>
</soapenv:Body>
</soapenv:Envelope>

Response

[mantisconnect.php] Error Type: SYSTEM NOTICE,
Error Description: Array to string conversion
Stack Trace:
nusoap.php L5763 serializeType(<string>'return', <string>'http://futureware.biz/mantisconnect:ProjectDataArray', <Array> { [0] => <Array> { ['id'] => 1, ['name'] => 'Sales CRM ', ['status'] => <Array> { ['id'] => '10', ['name'] => 'development' }, ['enabled'] => '1', ['view_state'] => <Array> { ['id'] => '10', ['name'] => 'public' }, ['access_min'] => <Array> { ['id'] => '10', ['name'] => 'viewer' }, ['file_path'] => '', ['description'] => 'This is issue tracker for sales CRM application', ['subprojects'] => <Array> { } } }, <string>'encoded', <boolean>false)
nusoap.php L4133 serializeRPCParameters(<string>'mc_projects_get_user_accessible', <string>'output', <Array> { [0] => <Array> { [0] => <Array> { ['id'] => 1, ['name'] => 'Sales CRM ', ['status'] => <Array> { ['id'] => '10', ['name'] => 'development' }, ['enabled'] => '1', ['view_state'] => <Array> { ['id'] => '10', ['name'] => 'public' }, ['access_min'] => <Array> { ['id'] => '10', ['name'] => 'viewer' }, ['file_path'] => '', ['description'] => 'This is issue tracker for sales CRM application', ['subprojects'] => <Array> { } } } })
nusoap.php L3721 serialize_return()
mantisconnect.php L114 service(<string>'<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:man="http://futureware.biz/mantisconnect">
<soapenv:Header/>
<soapenv:Body>
<man:mc_projects_get_user_accessible soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<username xsi:type="xsd:string">jenkin</username>
<password xsi:type="xsd:string">XXX</password>
</man:mc_projects_get_user_accessible>
</soapenv:Body>
</soapenv:Envelope>')

TagsNo tags attached.

Relationships

duplicate of 0014157 closedrombert Array to string conversion error on soap request with PHP 5.4 

Activities

rombert

rombert

2016-01-27 03:36

reporter   ~0052402

What PHP version are you running?

Nandagopal

Nandagopal

2016-01-27 23:37

reporter   ~0052412

PHP 5.6.17 (cli) (built: Jan 6 2016 13:28:25)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies

rombert

rombert

2016-01-28 03:34

reporter   ~0052415

This error happens because nusoap does not work well with recent php versions( see duplicate bug 0014157 for details ).

Please install the native php soap extension and this problem will be solved. Note that nusoap is removed in the upcoming 1.3 version.