nwang66
15 years agoContributor
WebService: how to assign value to parameter
Hi,
I am testing a web service. Please see attached screen shot. The following is my code. Here "CSISServeWS" is the name of the web service. MarketParticipantIdentifier is one of the parameters and mandatory. After running the script, I got "search failed with exception that MarketParticipantIdentifier is invalid". It seems the value of "ATCO" was not passed in. I tried single quotation market or '\', no one works... Can you please let me know where I am wrong?
Thanks in advance.
Nancy
var typeFactory = WebServices.CSISServeWS.TypeFactory;
typeFactory.SiteIDLookupInParam.MarketParticipantIdentifier = "ATCO";
typeFactory.SiteIDLookupInParam.SiteID = "010999865277";
//following command doesn't return anything.
Log.Message(typeFactory.SiteIDLookupInParam.MarketParticipantIdentifier);
var tmp = WebServices.CSISServeWS.GetSiteIDLookupResult(typeFactory.SiteIDLookupInParam);
Log.Message(tmp.Message);
I am testing a web service. Please see attached screen shot. The following is my code. Here "CSISServeWS" is the name of the web service. MarketParticipantIdentifier is one of the parameters and mandatory. After running the script, I got "search failed with exception that MarketParticipantIdentifier is invalid". It seems the value of "ATCO" was not passed in. I tried single quotation market or '\', no one works... Can you please let me know where I am wrong?
Thanks in advance.
Nancy
var typeFactory = WebServices.CSISServeWS.TypeFactory;
typeFactory.SiteIDLookupInParam.MarketParticipantIdentifier = "ATCO";
typeFactory.SiteIDLookupInParam.SiteID = "010999865277";
//following command doesn't return anything.
Log.Message(typeFactory.SiteIDLookupInParam.MarketParticipantIdentifier);
var tmp = WebServices.CSISServeWS.GetSiteIDLookupResult(typeFactory.SiteIDLookupInParam);
Log.Message(tmp.Message);