Re: [MantisConnect] mantisconnect problem: xml-html error
Brought to you by:
vboctor
From: Nils M. <nm...@bu...> - 2007-01-31 16:38:36
|
Thanks for the quick answer. The debugger pops up with the error message w= ithin the "public void ConfigGet (string config, out string str)" method in= side the Request.cs source-file. The full error message is: Client found response content type of 'text/html', but expected 'text/xml'. The request failed with the error message: -- <br /> <b>Warning</b>: main(): SAFE MODE Restriction in effect. The script whose= uid is 10004 is not allowed to access /var/www/vhosts/xxx.de/httpdocs/mant= is/core/php_api.php owned by uid 0 in <b>/var/www/vhosts/xxx.de/httpdocs/ma= ntis/core.php</b> on line <b>21</b><br /> <br /> <b>Warning</b>: main(/var/www/vhosts/xxx.de/httpdocs/mantis/core/php_api.p= hp): failed to open stream: Success in <b>/var/www/vhosts/xxx.de/httpdocs/m= antis/core.php</b> on line <b>21</b><br /> <br /> <b>Fatal error</b>: main(): Failed opening required '/var/www/vhosts/xxx.d= e/httpdocs/mantis/core/php_api.php' (include_path=3D'.:') in <b>/var/www/vh= osts/xxx.de/httpdocs/mantis/core.php</b> on line <b>21</b><br /> --. It seemed to me as it would be a file access restriction which is caused du= e to insufficient user access rights, but I don't know how to change them t= o allow the script access to the .php files. Can you make a sense of it? ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= -------------------- Typically this is caused by the PHP web service executing code on the Manti= s API that cause an error. This error generates an HTML response which is = returned as the result of the call. When the web service client attempts t= o trace it, it generates the error you saw. Typically, MantisConnect web service attempt to pre-check for all possible = errors before calling Mantis APIs to avoid this situation. However, there may be cases where this still happens. You should try debugging and checking the response that is returned back to= you from the server. This should include the error that is causing the pr= oblem. On 1/31/07, Nils Malachewitz <nm...@bu...<mailto:nma@busines= s-integrator.de>> wrote: > > > > > Hi, > > I have got a problem connecting to mantis with mantisconnect within > visual studio 2005. > I made a WebReference to > "http://localhost/mantis/mc/mantisconnect.php?wsdl" without problems > inside my project and now want to execute code delivered with > mantisconnect. > But when I start my program the debugger pops up with the exception > message: "Client found response content type of 'text/html', but > expected 'text/xml'." > > The "mantisconnect.php?wsdl"-URL is accessible via internet-explorer > and the internal vs browser and shows a perfectly clear xml-dataset. > > I'm using: mantis-1.1.0a2 > MantisConnect-1.0a5 > nusoap-0.7.2 > and xampp-win32-1.5.5 as a php/sql-webserver > > I hope you understand my problem and you can help me. Thank you. > > > ---------------------------------------------------------------------- > --- Take Surveys. Earn Cash. Influence the Future of IT Join > SourceForge.net's Techsay panel and you'll get the chance to share > your opinions on IT & business topics through brief surveys - and earn > cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEV > DEV > > _______________________________________________ > MantisConnect-users mailing list > Man...@li...<mailto:MantisConnect-users@list= s.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/mantisconnect-users > > > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's = Techsay panel and you'll get the chance to share your opinions on IT & busi= ness topics through brief surveys - and earn cash http://www.techsay.com/de= fault.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV _______________________________________________ MantisConnect-users mailing list Man...@li...<mailto:MantisConnect-users@lists.= sourceforge.net> https://lists.sourceforge.net/lists/listinfo/mantisconnect-users |