Microsoft Content Management Server - Help w/WebService Call

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > August 2006 > Help w/WebService Call





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Help w/WebService Call
Tom

2006-08-18, 7:18 pm

I have updated my web service in VS.NET 2005 with the following method

On my Windows 2005 C# Windows application, I update my existing web
reference but I am getting this error

[WebMethod]
public Channel RetrieveBaseChannel(string sBaseChannel)
{
return (Channel)cmsContext1.Searches.GetByPath(sBaseChannel);
}


Microsoft.ContentManagement.Publishing.Channel cannot be serialized because
it does not have a parameterless constructor

Can anyone help?

Thanks

Tom
Here is the client code

Channel PWSChannel = ws.RetrieveBaseChannel("/Channels/MCMSPWS/");
where ws is a web reference to my web service.

Becky VanBruggen

2006-08-21, 7:20 pm

I think Stefan addressed this issue in an earlier posting you made:

http://www.microsoft.com/communitie...blic.cmserver.g
eneral&lang=en&cr=US

"Tom" wrote:

> I have updated my web service in VS.NET 2005 with the following method
>
> On my Windows 2005 C# Windows application, I update my existing web
> reference but I am getting this error
>
> [WebMethod]
> public Channel RetrieveBaseChannel(string sBaseChannel)
> {
> return (Channel)cmsContext1.Searches.GetByPath(sBaseChannel);
> }
>
>
> Microsoft.ContentManagement.Publishing.Channel cannot be serialized because
> it does not have a parameterless constructor
>
> Can anyone help?
>
> Thanks
>
> Tom
> Here is the client code
>
> Channel PWSChannel = ws.RetrieveBaseChannel("/Channels/MCMSPWS/");
> where ws is a web reference to my web service.
>

Becky VanBruggen

2006-08-21, 7:20 pm

Sorry. That last link was wrong:
http://www.microsoft.com/communitie...r.general&fltr=

"Tom" wrote:

> I have updated my web service in VS.NET 2005 with the following method
>
> On my Windows 2005 C# Windows application, I update my existing web
> reference but I am getting this error
>
> [WebMethod]
> public Channel RetrieveBaseChannel(string sBaseChannel)
> {
> return (Channel)cmsContext1.Searches.GetByPath(sBaseChannel);
> }
>
>
> Microsoft.ContentManagement.Publishing.Channel cannot be serialized because
> it does not have a parameterless constructor
>
> Can anyone help?
>
> Thanks
>
> Tom
> Here is the client code
>
> Channel PWSChannel = ws.RetrieveBaseChannel("/Channels/MCMSPWS/");
> where ws is a web reference to my web service.
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com