Can a WCF Service display a help page or other content? - wcf

If you enter a service endpoint in a browser you get a Microsoft generated page with a link to the wsdl and some sample C# and VB code for creating an instance of the service client. If you enter the wsdl link in a browser you get the wsdl. This all assumes no strange security restrictions of course.
Is there a way to have a service return a page of your own design? If I wanted to have a nice help screen describing the available service methods, or describing possible error messages for example. Either replacing the MS generated default page, or something that can be viewed like a wsdl but with a ?help query parameter for example.
I'm looking for really simple here with minimal changes to the existing services. If possible something that can be done by content creators or technical writers and not the service developers.

I'm not sure if you can override the default help page, but you can definitely serve up a help page. This article on WCF Custom Help Page explains how.

Related

How to use an API in vb.net

I'm trying to get data from online sources, specifically to do with economics. The world bank API was simple to understand, however, I need to be able to retrieve data from the united nations, through the UNdata API: http://data.un.org/Host.aspx?Content=API
I am relatively inexperienced with VB.net, and don't really know where to start, and having googled around a bit and found no answers, I could really do with some help to get me off the ground. Thanks
One simple way to consume the service is from the project in solution.
The link you provided has an ASMX service
SOAP Web Service at http://data.un.org/ws/NSIStdV20Service.asmx
In your "Project" on your Visual studio solution, you will notice "references".
Right click on it, you see a context menu.
There, you select "Add Service Reference". In the window opened, enter the above service URL, after that you can start consuming it
You should enter the URL as http://data.un.org/ws/NSIStdV20Service.asmx?wsdl
Then a proxy class gets created, which you can consume.

WCF service visualisation

Hallo Again my question is sample, but I can not find way to accomplish this task. As you all know when service is hosted in IIS it has its default page when one navigates to the .svc file. I want to be able to change layout of this page to implement custom design for it.
Is it possible to achieve it at all? or does any of u have any experience relating this implementation?
If I understood you correctly then all you need is explained here
How can I change an html output of wcf service with my own content?

Objective-c web form based authentication

So I am working on an iPad app that needs to talk to our company server to pull in some XML. In a browser, when the user tries to first navigate to the site, they are redirected to an SSO form that generates a cookie that is saved.
Now my application may need to replicate this behavior and generate the cookie so we can pull xml data off various parts of the site. I have never done anything like this before and there is very little documentation on the web so I am really looking for some general guidance. So far I have tried doing something like this, here.
That works to return the web form, but where to go from there eludes me. Does anyone have any ideas they would like to throw out? Essentially all that I need to do right now is authenticate the user's credentials, and save that verification. If there is an easier way to do that based on this template, I would definitely be open to suggestions. Any help at all would be greatly appreciated.
What i use for a lot of my networking is ASIHTTPRequest it is an API that is available, instead of trying to use low level sockets or the Apple APIs, with a decent guide and an active Google Group for questions. It can certainly handle xml requests as well as authentication. Here is a link to the site, ASIHTTPRequest

Adding description to WCF web service that appears in WSDL

should it be possible to tag DataContracts, DataMembers, ServiceContracts and OperationContracts with a Description attribute, (System.ComponentModel.DescriptionAttribute) so that those descriptions appear in the WSDL to aid the developer or so an automatic documentation generation tool like TechWriter can use them in the documentation.
I went and added descriptions to my web services but they don't appear in the WSDL.
Is there any other way to do what I want?
Thanks
Because TechWriter relies on the descriptions being in the WSDL, you'll want to check out a WCF addon called WCFExtras that can make that happen. Instead of using attributes, WCFExtras uses the XML Comments from your source code.

Generating iTunes podcast feed with WCF

How do you make an iTunes podcast feed with WCF? Or do you know of a complete example that actually works?
I've reached the point where I corrected all errors and warnings[1] marked by feedvalidator.org and also included all the iTunes custom tags I could and iTunes still claims it's a broken feed (obviously giving no useful information about it).
[1] I haven't solved two warnings: one is that the address of the podcast is not consistent, because I'm running it on localhost, and the other that I am using namespaces for the atom embedded tags when producing an RSS, for which there's no work around using WCF.
Looks like this user was able to get it working: How do you add another namespace to WCF SyndicationFeed?
Hope that helps.
I believe WCF is a communications framework that uses SOAP, and is meant for something more like Web Services, rather than hosting an XML file. Even if it is possible, WCF is probably not the right way to do what you're trying to do.
Edit: Uninformed opinions do not make good answers. Forget I said anything!