Hi RedDot Experts,

I am trying to access  Liveserver webservices using ASP.net and C#.
I am trying to develop a component which can upload the content files
(pdf,jpg,xml, etc).

I am sharing my c# code.

 C# Code Starts

using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

// ----------------------------------
// Adding RedDot Web-References.
// ----------------------------------
using RedDot_Authenticate;
using RedDot_ContentClass;
using RedDot_ContentClassService;
using RedDot_ContentImport;
using RedDot_DeclarationInfo;
using RedDot_InfoService;
using RedDot_WebletCall;
// ----------------------------------

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        // For Authenticating the User
        RedDot_Authenticate.AuthenticateService authService = new
AuthenticateService();
        RedDot_Authenticate.AuthenticateReply authReply = new
AuthenticateReply();

        // For Proxy Setting
        authService.Proxy = System.Net.WebRequest.DefaultWebProxy;
        authService.Proxy.Credentials =
System.Net.CredentialCache.DefaultCredentials;

        // Passing UserName and Password
        authReply = authService.login("*****", "******");

        // Creating ContentImport Instance for uploading the file
        RedDot_ContentImport.ContentImportReply contentReply = new
ContentImportReply();
        RedDot_ContentImport.ContentImportService contentService = new
ContentImportService();

        ReferencedBinary rb = new ReferencedBinary();

        contentReply =
contentService.singleContentImportR2(authReply.sessionID,
DateTime.Now, “”, "Content_using.pdf", "quickstart", "ISO-8859-1",
"BLOB", "en", "", "", false, true, false, true, true, false, rb, "",
0, "", false);

        authService.logout(authReply.sessionID);

    }
}

But I am getting an error "org.xml.sax.SAXException:Deserializing
parameter 'attachment':could not find deserializer for .
{http:webservice.reddot.de} Referenced Binary.

I am unable to understand how I can attach a file to the "attachment"
field.

Please suggest me the solution.

Thanks,
Chandrakanth

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/reddot-cms-users?hl=en.

Reply via email to