I have a problem that I really need solved in any way (changing data types is an option)
Assumptions:
- Both Program and Service done in VS2008
- I have complete control over both Program and Service
- I have a program that is passing a "list" of info to the Service Reference
Example:
Program snippet:
IList<string> XMLList = null;
XMLList = new List<string>();
// fill my list up here... mostly just an "array" of xml-based strings
string[] arrayToSend = new string[XMLList.Count];
arrayToSend = XMLList.ToArray<string>();
string results = DataFeedService.ProcessXMLBatch(arrayToSend);
Service Snippet:
[WebMethod]
public string ProcessXMLBatch(string[] XMLBatch)
{
// process the xml here...
return "done";
}
Problem: It does not consider the string[] that I create in the service to be the same kind of string array. It converts it to a type of #namespace.#servicename.ArrayOfString
this code will currently not compile. I have looked around for alternate ways to pass a list or a generic and I keep hitting roadblocks.
Any ideas?
Thanks, Tom