Page 1 of 1

using Mantis WebService with HP Quality Center (vbscript)

Posted: 09 Sep 2009, 10:32
by acognard
Hi all,
I am trying to use WebService to get a defect from our bug tracking tool using Testdirector.

But I am facing an issue

Code: Select all

Function GetDefect(Byval sLoginName, ByVal sPassword, ByVal issue_id)
  'On Error Resume Next

  Dim    SoapServer
  Dim    SoapMessage
  Dim    xmlhttp

Logger " GetDefect ",  " BEGIN "

       SoapServer = "http://dmethode/mantis/api/soap/mantisconnect.php"
       SoapMessage ="<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'> <soap:Body> <GetDefect xmlns='http://dmethode/mantis/api/soap/mantisconnect.php/mc_issue_get'>           <username>" & sLoginName & "</username>          <password>" & sPassword & "</password>     <issue_id>" & issue_id & "</issue_id></GetDefect></soap:Body></soap:Envelope>"

       set xmlhttp = CreateObject("MSXML2.ServerXMLHTTP")

       xmlhttp.open "POST", SoapServer, False
       xmlhttp.setRequestHeader "Man", POST & " " & SoapServer & " HTTP/1.1"
       xmlhttp.setRequestHeader "MessageType", "CALL"
       xmlhttp.setRequestHeader "Content-Type", "text/xml"
       xmlhttp.send(SoapMessage)

       Logger " GetDefect status", xmlhttp.status
       Logger " GetDefect statusText", xmlhttp.statusText
       Logger " GetDefect responseText", xmlhttp.responseText

       set xmlhttp = nothing

Logger " GetDefect ",  " END "

End function
status is 200, statustest is Ok,
but response is =Fatal Error : cannot redeclare class soap_fault in /user/share/pear/SOAP/Fault.php on line 129.

Can someone help me ?

Tks In advance.
Arnaud