Hi,
can someone help me on following issues:-
i have a WebReference1 in my C# NET projects, and after i refererence, i can simply DOT OUT a function and pass in parameter. However I facing some problem. let see below:
the function in my webreference CS file is like below:
public Result function1(
string loginname,
string serviceid,
string myurl,
[System.Xml.Serialization.XmlArrayItemAttribute("co ntent")] Content[] contents) { object[] results = this.Invoke("function1", new object[] {
loginname,
serviceid,
url,
contents});
return ((Result)(results[0]));
THEN, in my NET project, i can webreference it and use the function
it is function1(stiring loginname, string serviceid, string myurl, webreference.Content[ ] contents)
my question is how i pass in value for webreference.Content[ ] contents???
can someone help me?
this is my current code how to use it
string loginname= "john";
string serviceid = "service";
string myurl = "url";
WebReference.Content mycontent = new Webreference.Content();
mycontent.member1="xxx";
mycontent.member2="xxx";
then i dot the function
webreference.function1(loginname,serviceid,myurl,m ycontent)
error -> it said Cannot convert from my project 'mycontent' to webreference.Content[ ] contents.
error in last param i passed.
please help