Hi.
Am facing difficulties in integrating Google health notice.
I registered my domain in the "Manage domains" section and also
uploaded .PEM key.
.PEM key was generated by using OpenSSL which was available by
downloading the "CygWin" tool.
I then created .PFX file (using ChilKat.Net 3rd party tool) and set
the reference of this into my .net code.
Here is the code snippet
AsymmetricAlgorithm getRsaKey()
{
X509Certificate2 cert = new
X509Certificate2(Server.MapPath("dev2_cert.pfx"),"myPassword");
RSACryptoServiceProvider privateKey = cert.PrivateKey as
RSACryptoServiceProvider;
return privateKey;
}
void PostNotice()
{
GAuthSubRequestFactory authFactory = new
GAuthSubRequestFactory("weaver", "exampleCo-exampleApp-1");
authFactory.Token = (String)Session["token"];
authFactory.PrivateKey = getRsaKey();
Service service = new Service(authFactory.Service,
authFactory.ApplicationName);
service.RequestFactory = authFactory;
AtomEntry newNotice = new AtomEntry();
newNotice.Title.Text = Request.Form["subject"];
newNotice.Content.Content = Request.Form["message"];
//newNotice.Content.Type = "html";
if (Request.Form["ccr"] != "")
{
XmlDocument ccrDoc = new XmlDocument();
ccrDoc.LoadXml(Request.Form["ccr"]);
newNotice.ExtensionElements.Add(ccrDoc.DocumentElement);
}
service.Insert(new Uri("https://www.google.com/h9/feeds/
register/default"), newNotice);
//blank the form elements since .NET loves to save state
subject.Text = message.Text = ccr.Text = "";
}
I am now getting the error
"Invalid Usage Sharing denied: unregistered provider:"
Your urgent help will be greatly appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Health Developers" 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/googlehealthdevelopers?hl=en
-~----------~----~----~----~------~----~------~--~---