| Author |
Help w/WebService Call
|
|
|
| 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.
>
|
|
|
|