Link to home
Start Free TrialLog in
Avatar of hongjun
hongjunFlag for Singapore

asked on

Question on Web Service

Hi all,

I am given a hyperlink

http://www.onemap.sg/API/services.svc/advmashupData?token=qo/s2TnSUmfLz+32CvLC4RMVkzEFYjxqyti1KhByvEacEdMWBpCuSSQ+IFRT84QjGPBCuz/cBom8PfSm3GjEsGc8PkdEEOEr&themeName=Hotels&otptFlds=HYPERLINK,NAME&geometry={xmin: -4423.6, ymin: 15672.6, xmax: 69773.4, ymax:52887.4}

And was told it will give me JSON result but I experienced "Endpoint not found".

I was also told the .svc will expose a method GetMashupData2(callback) but then I cannot find it.

I need confirmation from you guys that the specifications given to me is incorrect.
Avatar of rg20
rg20
Flag of United States of America image

http://www.onemap.sg/API/services.svc
gives the service with instructions to autocreate it

and
http://www.onemap.sg/API/Services.svc?wsdl
gives the available methods
Avatar of hongjun

ASKER

And I do not find GetMashupData2() method. That's what I am trying to verify.
Correct?
ASKER CERTIFIED SOLUTION
Avatar of rg20
rg20
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hongjun

ASKER

Ya. I highly think so!
But these people keep telling me it is there!
Now on this link

http://www.onemap.sg/API/services.svc/mashupData

I get
{ SrchResults:[{"ErrorMessage":"Invalid Inputs"}]}

They also have an API help, which has javascript functions to services
http://www.onemap.sg/api/help/
Avatar of hongjun

ASKER

Theirs is GetMashupData2(...) anyway.
I am waiting for a reply from onemap.

Thanks for contributing so far.

hongjun
Avatar of hongjun

ASKER

Any possible reason why the following reason failed?
svcutil http://www.onemap.sg/API/services.svc?wsdl

Open in new window

On this page : http://www.onemap.sg/api/help/
In the menu, OneMap REST APIs section, click on Mashup link to get an example

The doc provide an example of url returning, for today :
http://www.onemap.sg/API/services.svc/mashupData?token=qo/s2TnSUmfLz+32CvLC4RMVkzEFYjxqyti1KhByvEacEdMWBpCuSSQ+IFRT84QjGPBCuz/cBom8PfSm3GjEsGc8PkdEEOEr&themeName=Hotels&otptFlds=HYPERLINK,NAME&extents=-4423.6,15672.6,69773.4,52887.4

Check the end of the url to see how to specify : {xmin: , ymin: , xmax: , ymax:}

A correct URL to get the JSON string with your coordonates :



http://www.onemap.sg/API/services.svc/mashupData?token=qo/s2TnSUmfLz+32CvLC4RMVkzEFYjxqyti1KhByvEacEdMWBpCuSSQ+IFRT84QjGPBCuz/cBom8PfSm3GjEsGc8PkdEEOEr&themeName=Hotels&otptFlds=HYPERLINK,NAME&extents=-4423.6,15672.6,69773.4,52887.4

Open in new window

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hongjun

ASKER

Knew it wasn't there and I merely wanted confirmation.

Thanks.