Manish Pansiniya's Blog

.NET, C#, Javascript, ASP.NET and lots more…:)

Posts Tagged ‘VB.NET

Change the method’s message name using WebMethodAttribute or change the type’s root element using the XmlRootAttribute."

with one comment

We have just received the error when we tried to return a type which contains Response behind it.

Like,

We have webmethod, UpdateStatus and we have following signature

Public Function UpdateStatus(….) as UpdateStatusResponse

But it gives us above exception when I try it using URL to access the service. Then after some debugging and googling, I found that, .NET uses internal class that uses UpdateStatusResponse. If I change the name to UpdateStatusResult and error gone Smile

Written by Manish

May 26, 2011 at 4:26 pm

Follow

Get every new post delivered to your Inbox.