Database Reference
In-Depth Information
FI g u R e 9 -14
Publishing your web service
All of the changes thus far have been done in Visual Studio as part of the
web service. The next set of changes will be done in Notepad++ once more.
Next, you need to make the JavaScript changes. Open
Treemap.js
in
Notepad++
. You need to change the
init
function to look like the following:
function init(){
var json;
$.ajax
(
{
type: 'POST',
url: 'http://localhost:5555/Service1.svc/POSTTreemapByRegions',
dataType: 'json',
contentType: 'application/json; charset=utf-8',
data: '{ "sRegions": "All" }',
success: function (response, type, xhr)
{
json = response.POSTTreemapByRegionsResult.tmString;
CreateVisual(json);
},
error: function (xhr)
{