Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Consuming ASP.NET Web Service Problem

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a custom class in my web service one of my webmethods takes an array of this custom class as input. example:

Code:
Public Class someclass
   somepublic vars
End Class

<WebMethod()> Public Function somefunction(someinput() as someclass)
     somestuff
     return someoutput
End Function

I've build a proxy class for this and can successfully create an instance of my web service. However when I try to pass an array of someclass to the web service I get an error, details below.

Code:
response.write(myService.somefunction(someinput())

error:
[SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array.
at myService.somefunction(someclass[] someinput)
--- End of inner exception stack trace ---]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top