I am creating a VB.NET WPF application that requires a user to nominate services local to the area they are in (such as the closest hospital, fire station, etc). Using the maps.google.com.au web site I can return the results that I am seeking, and I have stumbled across an AJAX based API that too returns results that I am after, however this is in a format that I am unfamiliar with (I think it is JSON).
Using the following URI, I am able to get a file that contains results for all hospitals local to Adelaide, South Australia, can anyone advise if this is JSON and if they could provide any sites or information on how I can parse this data in VB.NET 3.5.
http://ajax.googleapis.com/ajax/services/search/local?v=1.0&q=public--hospitals%20adelaide%20sa%20australia
If there is any suggesstions on better Google Maps API's that can achieve this (I would love XML format as I am more familar with XML then JSON) your suggesstions will be greatly appreciated.
Thanks,
Matt
You can use the json.net library to parse the JSON data
Related
I'm working directly against the SharePoint DB (I know it is highly not recommended but I need to, for several reasons).
I'm trying to get the SPSite.Url property ("http://baseurl/sites/somename") but can't figure out how to do that. I can only find and get the second part ("sites/somename") for each site.
Does any one know which stored procedures I need to use in order to get that?
The way to do that is: Retrieving the Farm Id--> Retrieving the Alternate URL Collection Ids--> Retrieving the Alternate URL Collections--> Alternate URL Matching
You can find in this link: [MS-WSSFO3]: Windows SharePoint Services (WSS): File Operations Database Communications Version 3 Protocol documentation with detailed explanation under this section:
Site Collection Lookup
I want to call the twilio voice API without providing the URL.
Normally you would do it like this using python:
call = client.calls.create(url="http://demo.twilio.com/docs/voice.xml",
to=request.receiver,
from_=sender_number)
Instead of providing the URL I want to provide the XML-String. Is that somehow possible?
Background:
I'm generating the XML via a google cloud endpoints api. The response is in JSON format and a variable contains the XML. I need to parse the JSON to get the XML.
Sounds like you could use the echo Twimlet.
https://www.twilio.com/labs/twimlets/echo
Echo will just output whatever TwiML is passed into it via the URL. It is useful for building stateless, outbound apps, where arbitrarily complex content of the call is pre-generated and just passed into the REST API to initiate a call.
Example: http://twimlets.com/echo?Twiml=%3CResponse%3E%3CSay%3EHi+there.%3C%2FSay%3E%3C%2FResponse%3E
Twilio Evangelist here. I'm afraid you cannot do this, however there are a number of solutions. If your call doesn't require any dynamic XML, you can host it on S3, or a similar service (I use Dropbox public links quite a lot).
If you do need dynamic XML, then we have a whole bunch of tutorials that can help you get setup with a simple web application.
Hope this helps!
I have an MSSQL 2012 Reporting server set up, and many, many reports made in Sequel Server Data Tools. I would like to have access to the data returned in those reports through C#/ASP.NET.
The end result is to display the data in the KendoUI DataViz suite, but first I need to convert the reports into JSON on the server side.
Is this possible?
Edit: To be clear, I need to know how to access the report data from the web server. Converting data into JSON format is not what I need assistance with.
Yes it is possible. I suggest you to take a look how to return JSON with ASP.NET MVC and how it works.
Since I asked the question, I've learned I can use the atom feed button on the reports to download a .atom file, which contains a URL that provides report data in XML.
You'll need to replace the & in the URL with '&', and then you have a working URL.
I'm looking for options/alternative to achieve the following.
I want to connect to several data sources (e.g., Google Places, Flickr, Twitter ...) using their APIs. Once I get some data back I want to apply my "user-defined dynamic filters" (defined at runtime) on the fetched data.
Example Filters
Show me only restaurants that have a ratting more than 4 AND have more than 100 ratings.
Show all tweets that are X miles from location A and Y miles from location B
Is it possible to use a rule engine (esp. Drools) to do such filtering ? Does it make sense ?
My proposed architecture is mobile devices connecting to my own server and this server then dispatching requests to the external world and doing all the heavy work (mainly filtering) of data based on user preferences.
Any suggestions/pointers/alternatives would be appreciated.
Thanks.
Yes, Drools Fusion allows you to easily deal with this kind of scenario. Here is a very simple example application that plays around with twitter messages using the twitter4j API:
https://github.com/droolsjbpm/droolsjbpm-contributed-experiments/tree/master/twittercbr
Please note that there is an online and an offline version in that example. To run the online version you need to get access tokens on the twitter home page and configure them in the configuration file:
https://github.com/droolsjbpm/droolsjbpm-contributed-experiments/blob/master/twittercbr/src/main/resources/twitter4j.properties
check the twitter4j documentation for details.
I am afraid to ask this kind of question as it has many factors to consider and its not easy for others to give suggestions.
But, I have to do this task and couldnt trace out the possible way to do this. One requirement I know is with the help of AJAX controls and Update panel ( I never worked on them) I have to do this.
Please please some ideas and suggstions, of how to start and soem pinpoints to get there.
it will be an internal portal site and users can access the data from this website which I have uploaded to the database and download data using UI I have.
hoping some help on this.
Thank you,
Ramm
You will need 2 components
1. Excel VBA : for retrieving data from web service and sending data to web service
2. Web Service : for providing data to excel vba and receiving data from excel vba for saving to database
I currently working for a project with this kind of mechanism, which involved database as backend and excel as user interface.
Here's a simple example in PHP using MySQL - http://www.w3schools.com/PHP/php_ajax_database.asp
You're right. That's way too much for anyone to try to answer. But here are some links that should help:
Microsoft ASP.NET Ajax: http://www.asp.net/learn/ajax/
Db-driven ASP.NET App Tutorial: http://www.asp.net/learn/3.5-videos/video-363.aspx