invoke AddSubscription web service using SOAP and ASP.NET

Newsgator Forums
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



invoke AddSubscription web service using SOAP and ASP.NET Expand / Collapse
Author
Message
Posted 6/29/2007 2:51:16 PM
Forum Member

Forum Member

Group: Forum Members
Last Login: 7/2/2007 2:46:08 PM
Posts: 4, Visits: 7
I am trying to create a .aspx page that GETs the URL for a feed from a url parameter, then adds a subscription for the user to that feed. I would like to use the AddSubscription method of the Subscriptions web service on my NGES (1.4.2). The reason I am getting the feed url as a url query parameter is because I would like for all internal web sites that would like to add RSS Feed subscription buttons to their sites to have their button hit my page with their feed url attached, my aspx page would then add the subscription for the user using the web service endpoint shown below:

http://someservername.com/ngws/svc/Subscription.asmx

Has anyone done this? Do you have some sample code on how to accomplish this? I'm having problems with the user credentials as well as how to send the SOAP packet/document, I've already figured out that a simple HTTP-POST of HTTP-GET will not work for AddSubscription.

Post #29468
Posted 6/29/2007 3:43:23 PM
NewsGator

NewsGator

Group: Administrators
Last Login: Today @ 9:09:32 AM
Posts: 600, Visits: 858
I think that approach is rather difficult. How do you know what credentials to use?

I would use the "chiclet" method instead as described on our support page (http://www.newsgator.com/support.aspx)

A similar approach, but using this url - http://someserver/ngweb/ngs/subscriber/subext.aspx?[RSS_FEED_URL] - should work and handle the credential issue for you.

Does that work for you?


Nick Harris
NewsGator Technologies
Post #29469
Posted 7/2/2007 12:45:24 PM
Forum Member

Forum Member

Group: Forum Members
Last Login: 7/2/2007 2:46:08 PM
Posts: 4, Visits: 7
Tried the similar method:

http://someserver.com/ngweb/ngs/subscriber/subext.aspx?http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/business/rss.xml

But it does not appear to work. I am taken to the Add Subscriptions page but nothing happens, this is what appears on the screen:

Add Subscription

Manage My Feeds | Read Now

And nothing else, if I click on My feeds, the feed has not been added. Also, it is worth mentioning, another reason for my implementation is to remove the additional step of clicking the "Add" button on the Add Subscriptions page when using a link to add subscriptions. The scenario I am trying to implement would have a user navigate to a site that has an RSS subscribe button, when the user clicks the subscribe button their subscription is added to their NG Reader without having to do/click anything else.

Is there a way to implement this?

Thank you,

L8erG8er

Post #29513
Posted 7/2/2007 1:04:45 PM
Forum Member

Forum Member

Group: Forum Members
Last Login: 7/2/2007 2:46:08 PM
Posts: 4, Visits: 7
Correction To Post:

Tried the similar method:

http://someserver.com/ngweb/ngs/subscriber/subext.aspx?http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/business/rss.xml

I was missing the URL variable from the link above, so I retried the link above again with the correction shown below:

http://someserver.com/ngweb/ngs/subscriber/subext.aspx?url=http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/business/rss.xml

This worked using an external feed without additional user interaction and displayed the message below:

Add Subscription
A new subscription to BBC News | Business | UK Edition has been added.

Manage My Feeds | Read Now


But this same link/method does not work for an Internal feed.

Add Subscription
Error - could not add subscription to http://someinternalserver.com/abc/rss/abchome.xml.

Manage My Feeds | Read Now

But I am able to add the internal feed above manually using the Add Feeds-URL tabbed page.

Thanks,

L8erG8er

Post #29515
Posted 7/2/2007 1:12:42 PM
Forum Member

Forum Member

Group: Forum Members
Last Login: 7/2/2007 2:46:08 PM
Posts: 4, Visits: 7
RE: "I would use the "chiclet" method instead as described on our support page (http://www.newsgator.com/support.aspx)"

I wasn't able to find any additional information regarding the "Chiclet" method on the support site, can you give a liitle more information about how to use this method, or supply a more direct link to the information regarding the use of this method.

Thank you,

L8erG8er

Post #29517
Posted 7/2/2007 3:26:36 PM
NewsGator

NewsGator

Group: Administrators
Last Login: Today @ 9:04:35 AM
Posts: 2,987, Visits: 53,986
You can't use the Chiclet for a credentialed feed - I don't think there really is a way to automatically add a feed that requires a username/password. You would have to manually add it.


Jonathon McDougall
NewsGator Support
Post #29524
Posted 7/2/2007 3:28:16 PM
NewsGator

NewsGator

Group: Administrators
Last Login: Today @ 9:04:35 AM
Posts: 2,987, Visits: 53,986
Also, if you are using NGES - NGES support would probably be a better place to ask (They don't really hang out here) - 1.4.2 has a different API than NewsGator Online.


Jonathon McDougall
NewsGator Support
Post #29525
« Prev Topic | Next Topic »


All times are GMT -7:00, Time now is 12:01pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.281. 9 queries. Compression Disabled.

NewsGator.com | Support | Developers | Partners | Press | Company
© Copyright 2003-2008  NewsGator Technologies, Inc. All Rights Reserved.
Copyright Information | Privacy Policy | Terms of Service
Microsoft Gold Certified Partner