Web service testing.
I am testing a web service and have ran into a road block. Here is part of the code:
"Reference added Microsoft Soap Type Library v3.0"
Dim ws As New MSSOAPLib30.SoapClient30
ws.ClientProperty("ServerHTTPRequest") = True
ws.ConnectorProperty("ProxyServer") = "http://xxx.xx.x.xxx:99"
ws.ConnectorProperty("Timeout") = 30000 '30 seconds
username = "Administrator"
password = "test"
projectList = ws.GetProjectList(username, password)
cookie = ws.ProjectLogon("Sample Project"), username, password)
The first call 'GetProjectList' works and returns the correct information, the second call 'ProjectLogon' fails with the following:
I have a feeling that it has to do with the complex data type that is in WSDl and the CGI, possible a .Net datatype. If any one has any ideals or can point me some directions it would be of major help.
TestPartner 6.1.0 Build 242
Microsoft Windows XP 5.1 (Build 2600) Service Pack 2
Re: Web service testing.
Ok, more info on the problem. The web service function that I am calling "ws.ProjectLogon(arrOfProjects(0), USERNAME, PASSWORD)", is returning a .Net data type of long which is 64 bits, Visual Basic Long data type is 32 bits, and is returning Mismatch error. Does any one know how to convert a .Net long to a data type that Visual Basic can handle?