hongjun
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.
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.
ASKER
And I do not find GetMashupData2() method. That's what I am trying to verify.
Correct?
Correct?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ya. I highly think so!
But these people keep telling me it is there!
But these people keep telling me it is there!
Now on this link
http://www.onemap.sg/API/services.svc/mashupData
I get
{ SrchResults:[{"ErrorMessag e":"Invali d Inputs"}]}
They also have an API help, which has javascript functions to services
http://www.onemap.sg/api/help/
http://www.onemap.sg/API/services.svc/mashupData
I get
{ SrchResults:[{"ErrorMessag
They also have an API help, which has javascript functions to services
http://www.onemap.sg/api/help/
ASKER
Theirs is GetMashupData2(...) anyway.
I am waiting for a reply from onemap.
Thanks for contributing so far.
hongjun
I am waiting for a reply from onemap.
Thanks for contributing so far.
hongjun
ASKER
Any possible reason why the following reason failed?
svcutil http://www.onemap.sg/API/services.svc?wsdl
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+32CvLC4RMVkz EFYjxqyti1 KhByvEacEd MWBpCuSSQ+ IFRT84QjGP BCuz/cBom8 PfSm3GjEsG c8PkdEEOEr &themeName=Hotels&otptFlds =HYPERLINK ,NAME&exte nts=-4423. 6,15672.6, 69773.4,52 887.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 :
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+32CvLC4RMVkz
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
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Knew it wasn't there and I merely wanted confirmation.
Thanks.
Thanks.
gives the service with instructions to autocreate it
and
http://www.onemap.sg/API/Services.svc?wsdl
gives the available methods