fatcodeguy
Programmer
Hi,
I have a web service that returns an object (User), which consists of other user defined objects (UserAttribute).
If i consume the web service in a web form within the same package as the web service, the app works perfectly.
If i consume the web service from another web app, i get a SoapException: Server was unable to process request. --> There was an error generating the XML document. --> The type ActiveDirectoryServices.UserAttribute[] may not be used in this context.
I kinda think it has something to do with making my user object serializable but I tried:
and that didn't work.
Any suggestions? Thanks!!
I have a web service that returns an object (User), which consists of other user defined objects (UserAttribute).
If i consume the web service in a web form within the same package as the web service, the app works perfectly.
If i consume the web service from another web app, i get a SoapException: Server was unable to process request. --> There was an error generating the XML document. --> The type ActiveDirectoryServices.UserAttribute[] may not be used in this context.
I kinda think it has something to do with making my user object serializable but I tried:
Code:
<XmlIncludeAttribute(GetType(UserAttribute))> Public Class User
....
End Class
and that didn't work.
Any suggestions? Thanks!!