Problem beim verwenden der SOAP API mit C#
Posted: 18 Jan 2010, 16:06
Hey
Ich würd gern Mantis über die SOAP api verwenden und hab mir dafür in c# ein kleines Programm geschrieben
Leider bekomme ich beim connectieren immer folgende exception an der Stelle Mantis.Connect();
Jmd ne Ahnung wo das Problem liegt?
Answers in english are also welcome
Als kleine Anmerkung noch, ich benutze mantisBT 1.17 und die dazugehörige API
die futeware.mantisconnect.dll hingegen hab ich mir seperat downloaden müssn bei MantisConnect-1.0a5.
ist die dazugehörige dll vllt nicht kompatibel?
greetz Chris
Ich würd gern Mantis über die SOAP api verwenden und hab mir dafür in c# ein kleines Programm geschrieben
Code: Select all
NetworkCredential www = new NetworkCredential();
Session Mantis = new Session("http://192.168.50.69/mantis/api/soap/mantisconnect.php","administrator","root",www);
Mantis.Connect();Code: Select all
Error Type: ,
Error Description:
Function ereg() is deprecated,
Stack Trace:
Arraynusoap.php L3657 ereg()
mantisconnect.php L1418 service('<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://futureware.biz/mantisconnect" xmlns:types="http://futureware.biz/mantisconnect/encodedTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><tns:mc_config_get_string><username xsi:type="xsd:string">administrator</username><password xsi:type="xsd:string">root</password><config_var xsi:type="xsd:string">status_enum_string</config_var></tns:mc_config_get_string></soap:Body></soap:Envelope>')Answers in english are also welcome
Als kleine Anmerkung noch, ich benutze mantisBT 1.17 und die dazugehörige API
die futeware.mantisconnect.dll hingegen hab ich mir seperat downloaden müssn bei MantisConnect-1.0a5.
ist die dazugehörige dll vllt nicht kompatibel?
greetz Chris