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.
LVL 33
hongjunAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
rg20Connect With a Mentor Commented:
If it's not in that file, it doesn't exist.

There may be a second service on the server and they got mixed up.
0
 
rg20Commented:
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
0
 
hongjunAuthor Commented:
And I do not find GetMashupData2() method. That's what I am trying to verify.
Correct?
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
hongjunAuthor Commented:
Ya. I highly think so!
But these people keep telling me it is there!
0
 
rg20Commented:
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/
0
 
hongjunAuthor Commented:
Theirs is GetMashupData2(...) anyway.
I am waiting for a reply from onemap.

Thanks for contributing so far.

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

Open in new window

0
 
leakim971PluritechnicianCommented:
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

0
 
leakim971Connect With a Mentor PluritechnicianCommented:
Like you, guys, I don't see any GetMashupData2 in the doc. Hidden ? Not documented ?
0
 
hongjunAuthor Commented:
Knew it wasn't there and I merely wanted confirmation.

Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.