charles_1
13 years agoOccasional Contributor
Webservice Testing - setting up the correct Object type
Hi,
I am testing a webserivce which wants an input as an xmlDocType, I have the data in an XML file, but I have not been successfull in getting the webservice to accept the data.
I have tried using the file directly, using ReadWholeFile(), storing it as an xmlCheckpoint and other methods to extract the content and make into the correct type. Some methods have just given back a blank object.
From the Generated Code box for the relevant Type, I get the following:
function xmlDocType()
{
var Result;
var TypeFactory;
//Get the type factory for the web service
TypeFactory = WebServices.FundRaisingWebServices.TypeFactory;
Result = TypeFactory.xmlDocType;
return Result;
}
While the help file says I can copy this to my scipt unit and use it to make the correct object type, I have no idea how this would work.
Any suggestions on how to take the xml file and end up with the correct object type?
I am testing a webserivce which wants an input as an xmlDocType, I have the data in an XML file, but I have not been successfull in getting the webservice to accept the data.
I have tried using the file directly, using ReadWholeFile(), storing it as an xmlCheckpoint and other methods to extract the content and make into the correct type. Some methods have just given back a blank object.
From the Generated Code box for the relevant Type, I get the following:
function xmlDocType()
{
var Result;
var TypeFactory;
//Get the type factory for the web service
TypeFactory = WebServices.FundRaisingWebServices.TypeFactory;
Result = TypeFactory.xmlDocType;
return Result;
}
While the help file says I can copy this to my scipt unit and use it to make the correct object type, I have no idea how this would work.
Any suggestions on how to take the xml file and end up with the correct object type?