hi all,
we are trying to hook up with a web service provided by one of our vendors.
i got their wsdl file and generated a proxy class using wsdl.exe. below is
the method signature as well as the class associated with it:
public partial class WSProxy :
System.Web.Services.Protocols.SoapHttpClientProtoc ol
{
....
public MyArray SearchThis([System.Xml.Serialization.XmlElementAttribute(Form
= System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = true)] string
SearchName)
{
object[] results = this.Invoke("SearchNow", new object[] {
SearchName});
return ((MyArray)(results[0]));
}
}
public partial class MyArray : Array
{
}
public partial class Array
{
private System.Xml.XmlElement[] anyField;
.....
}
and here is how i consume this method on my code.
try
{
private WSProxy proxy = new WSProxy();
myArray oArray = new myArray();
oArray = proxy.searchThis(strSearchName);
}
catch (Exception e)
{
throw e;
}
it looks simple to me; however, i am getting the following error:
message: "There is an error in XML document (2, 347)."
inner exception: "The specified type was not recognized: name='Array',
namespace='http://schemas.xmlsoap.org/soap/encoding/', at <SearchResult
xmlns=''>."
any suggestions?
thanks...a