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.
Related
I have a vb.net service app running on a work network server, which runs a job on a repeating timer. I'd like to be able to call an API to tell this service to run, possibly with input parameters, but I can't seem to search for the right thing to get started on this.
I'm not looking for a full explanation on how to do it (unless someone's feeling very generous), but rather tips on where to look, what to search for, or if it's even possible. Thanks!
Use a online search enginge to search for vb.net windows service api
Pick an entry like Tutorial: Create a Windows service app | Microsoft Docs
Read and stumble upon ServiceController
Profit!
Disclaimer: This is NOT a duplicate of this thread. First, in my case, there's no middle-tier service. Secondly, I'm working with SL 5 and CRM 2011.
I'm developing Silverlight applications to work with MS CRM 2011. These applications are part of a CRM Solution and are meant to be used in CRM Online.
This is important: I CANNOT write extra web services or modify web.config files which are part of CRM, as I cannot do these things with CRM Online.
Usually my applications just need the OData service, and there are no issues in these cases. But one application needs to use the SOAP organization service, and here the trouble starts.
Apart from some problems getting it to work (as I need to create OrganizationRequests from scratch), there's a big problem getting meaningful exception messages from that service. SL will happily always return 404, which isn't helpful at all to the user.
I've tried using
WebRequest.RegisterPrefix("http://", System.Net.Browser.WebRequestCreator.ClientHttp);
WebRequest.RegisterPrefix("https://", System.Net.Browser.WebRequestCreator.ClientHttp);
as described in this article but that turned out to cause problems in one situation with IFD and ADFS (even though this solution was otherwise perfect).
In case of an error I really need to be able to give the user some meaningful information ("Not found" is hardly ideal).
What should I do to get some useful error messages out of CRM?
EDIT:
Please note I'm talking about the Organization service, NOT the OData service! I've no problems getting some useful information to display for the user from the latter.
I want to point this out, because of this thread which, at first glance, seems to be perfect, but then it turns out (given the accepted answer) that it was for OData all along.
Try see this article from Microsoft, i never used and i don't know if it can be applied in CRM. It's a very interesting article, so take a look.
I ran into a similar problem / error when uploading a Silverlight 5 XAP to CRM 2011 Online.
In order to get useful message, open CRM in IE navigate to your Silverlight resource, hit F12 for the IE Debugger, and go to the Network tab ( see screenshot ).
Hope this helps!
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.
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!
I'm working on a tool in C# that interfaces the JIRA SOAP API. I have read the documentation but I can't find what I'm looking for. Does anyone know if it is possible to link an issue to another one via this api?
PS : Actually, my real need is to convert an issue as a subtask of an issue...
Last time I looked, JIRA's web service wasn't really actively supported or encouraged by Atlassian. It's very much a second-class citizen compared to the web front end, with very basic operations.
Also, it's not a WSI-compliant web service (it's an old Axis-based RPC_encoded service), and so modern web service stacks won't even bind to it. You might want check that your client can perform basic query operations before diving into the depths of the API.
You can actually go pretty far with Jelly scripts, but converting an issue to a subtask then linking it as a subtask... I'm not positive that you can go that far.