|
mc_filter_get_issues() has the same problem. It also has dateTime fields if that is the issue.
<?xml version="1.0" encoding="UTF-8"?>
-<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://futureware.biz/mantisconnect" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">-<SOAP-ENV:Body>-<ns1:mc_filter_get_issuesResponse>-<return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="ns1:IssueData[1]">-<item xsi:type="ns1:IssueData"><id xsi:type="xsd:integer">15987</id>-<view_state xsi:type="ns1:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">public</name></view_state><last_updated xsi:type="dateTime">2013-02-18T17:29:41-05:00</last_updated>-<project xsi:type="ns1:ObjectRef"><id xsi:type="xsd:integer">1</id><name xsi:type="xsd:string">Demo</name></project><category xsi:type="xsd:string">Other</category>-<priority xsi:type="ns1:ObjectRef"><id xsi:type="xsd:integer">30</id><name xsi:type="xsd:string">normal</name></priority>-<severity xsi:type="ns1:ObjectRef"><id xsi:type="xsd:integer">50</id><name xsi:type="xsd:string">minor</name></severity>-<status xsi:type="ns1:ObjectRef"><id xsi:type="xsd:integer">50</id><name xsi:type="xsd:string">assigned</name></status>-<reporter xsi:type="ns1:AccountData"><id xsi:type="xsd:integer">26</id><name xsi:type="xsd:string">demo</name><real_name xsi:type="xsd:string">Demo</real_name><email xsi:type="xsd:string">vboctor+demo@gmail.com</email></reporter><summary xsi:type="xsd:string">this is a new task</summary><version xsi:type="xsd:string">1.1</version>-<reproducibility xsi:type="ns1:ObjectRef"><id xsi:type="xsd:integer">70</id><name xsi:type="xsd:string">have not tried</name></reproducibility><date_submitted xsi:type="dateTime">2013-02-14T14:52:40-05:00</date_submitted><sponsorship_total xsi:type="xsd:integer">0</sponsorship_total>-<handler xsi:type="ns1:AccountData"><id xsi:type="xsd:integer">26</id><name xsi:type="xsd:string">demo</name><real_name xsi:type="xsd:string">Demo</real_name><email xsi:type="xsd:string">vboctor+demo@gmail.com</email></handler>-<projection xsi:type="ns1:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">none</name></projection>-<eta xsi:type="ns1:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">none</name></eta>-<resolution xsi:type="ns1:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">open</name></resolution><description xsi:type="xsd:string">Paul - please send this report to me tomorrow</description><attachments xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="ns1:AttachmentData[0]"/>-<notes xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="ns1:IssueNoteData[2]">-<item xsi:type="ns1:IssueNoteData"><id xsi:type="xsd:integer">11944</id>-<reporter xsi:type="ns1:AccountData"><id xsi:type="xsd:integer">43418</id><name xsi:type="xsd:string">lbtester</name><email xsi:type="xsd:string">Lb@lbergelt.de</email></reporter><text xsi:type="xsd:string">Gg</text>-<view_state xsi:type="ns1:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">public</name></view_state><date_submitted xsi:type="xsd:dateTime">2013-02-14T15:15:16-05:00</date_submitted><last_modified xsi:type="xsd:dateTime">2013-02-14T15:15:16-05:00</last_modified><time_tracking xsi:type="xsd:integer">0</time_tracking><note_type xsi:type="xsd:integer">0</note_type><note_attr xsi:type="xsd:string"/></item>-<item xsi:type="ns1:IssueNoteData"><id xsi:type="xsd:integer">11957</id>-<reporter xsi:type="ns1:AccountData"><id xsi:type="xsd:integer">26</id><name xsi:type="xsd:string">demo</name><real_name xsi:type="xsd:string">Demo</real_name><email xsi:type="xsd:string">vboctor+demo@gmail.com</email></reporter><text xsi:type="xsd:string">test</text>-<view_state xsi:type="ns1:ObjectRef"><id xsi:type="xsd:integer">10</id><name xsi:type="xsd:string">public</name></view_state><date_submitted xsi:type="xsd:dateTime">2013-02-18T17:29:41-05:00</date_submitted><last_modified xsi:type="xsd:dateTime">2013-02-18T17:29:41-05:00</last_modified><time_tracking xsi:type="xsd:integer">0</time_tracking><note_type xsi:type="xsd:integer">0</note_type><note_attr xsi:type="xsd:string"/></item></notes><sticky xsi:type="xsd:boolean">false</sticky><tags xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="ns1:ObjectRef[0]"/></item></return></ns1:mc_filter_get_issuesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> |
|
|
Did this work previously? Can this be related to nusoap vs the php soap extension? |
|
|
I've switched the demo instance to use nusoap and it resolved both issues. |
|
|
I fixed this in my installation by altering line 41 of mc_api.php to
return new SoapVar( $string_value, XSD_DATETIME, 'xsd:dateTime');
instead of
return new SoapVar( $string_value, XSD_DATETIME, 'dateTime'); |
|
|
Thanks! Can you add a git patch or a pull request, for proper attribution? |
|
|
As I have never worked with git, I'm not sure how to do this. |
|
|
I think i figured it out :-) |
|
dregad
2013-02-20 12:43
developer
~0035255
Last edited: 2013-02-20 12:44
|
Thanks for the pull request https://github.com/mantisbt/mantisbt/pull/74. I committed the patch. |
|
|
Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch |
|