View Issue Details

IDProjectCategoryView StatusLast Update
0012977mantisbtapi soappublic2018-05-20 06:56
ReporterMagicBuzz Assigned To 
Status assignedResolutionopen 
Product Version1.2.5 
Summary0012977: When webservice throw an exception, the "faultstring" element doesn't have a valid namespace.

When the webservice throw an error (wrong login by exemple, or bad value type in a customfield, etc.) the webservice send a malformed XML message.

An element "faultstring" has namespace "".

It looks like the way mantisconnect throw exceptions isn't compatible with .NET.

Additional Information

Here is the MantisConnect response when an exception is thrown :

<?xml version="1.0" encoding="UTF-8" ?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="; xmlns:SOAP-ENV="; xmlns:xsd="; xmlns:xsi="; xmlns:SOAP-ENC=";>
<faultcode xsi:type="xsd:string">Client</faultcode>
<faultactor xsi:type="xsd:string" />
<faultstring xsi:type="xsd:string">Access denied.</faultstring>
<detail xsi:type="xsd:string" />

Here is a standard .NET execption response :

<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="; xmlns:xsi="; xmlns:xsd=";>
<faultstring>System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array. at TopMovies.GetMovieAtNumber(Int32 input) in http://server/App_Code/TopMovies.cs:line 40 --- End of inner exception stack trace ---</faultstring>
<detail />

TagsNo tags attached.




2011-05-04 15:08

reporter   ~0028753

I am having a hard time reproducing this since both Java and PHP implementations work just fine. Please provide a sample implementation in C# ( preferrably running under Mono ) which fails. It can be whichever is most convenient for you, e.g. a minimal SQL dump of the database and a SOAP invocation.



2011-05-05 11:25

reporter   ~0028756

You can use the small application sample I uploaded on the ticket 0012971
As it connects to this server's webservices, you may not need a sql dump to test.



2018-05-20 06:56

developer   ~0059870

Unassigned after a long time of inactivity.