Forum Discussion
... figured out this ... would like to share, and welcome any inputs. Since the input parameter type of my web service is an object, SisteIDLookupInParam. So I have to create this object first and then assign values to its properties. TestComplete WebService Test editor has a button 'Code', which can be used to generate the code for creating the object. The followings are my code.
function Main()
{
var myPara = new SiteIDLookupInParam();
myPara.MarketParticipantIdentifier = "ATCO";
myPara.CityName = "MUNDARE";
var result = new SiteIDLookupResult();
var result = WebServices.CSISServeWS.GetSiteIDLookupResult(myPara);
Log.Message(result.Message);
...
}
//the following is copied from Code generation button
function SiteIDLookupInParam()
{
var Result;
var TypeFactory;
//Get the type factory for the web service
TypeFactory = WebServices.CSISServeWS.TypeFactory;
Result = TypeFactory.SiteIDLookupInParam;
return Result;
}
Related Content
- 5 years agopaulvinders