web service and ixmlserializable

D

DAXU

Hi,

I have a web service that returns an array of classes which is
ixmlserializable.

However, my visual studio thinks the return is dataset[] instead of
myclass[]. I googled internet, and found this link saying that it is a
bug:
http://support.microsoft.com/kb/815131

But when I changed my code according to the suggestion in that
document, it only returns the 1 data, not the whole data. When I view
my web service using IE, I can see all the data.

[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://
tempuri.org/GetMyObject", RequestNamespace="http://tempuri.org/",
ResponseNamespace="http://tempuri.org/",
Use=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]


public MyTestClass[] GetMyObject() {
object[] results = this.Invoke("GetMyObject", new object
[0]);
return ((MyTestClass[])(results[0]));
}

Can someone help me?

Many Thanks

Jerry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top