• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Consuming MapPoint Web Service with MX7

Explorer ,
Nov 20, 2007 Nov 20, 2007

Copy link to clipboard

Copied

Can anyone offer any pointers for working with Microsoft's MapPoint web service? I've searched around but haven't found any usable information. My immediate concern is how to get my CF7 application to perform the Digest Authentication, but I'd also welcome tips for any other obstacles that can be expected after that.

Thanks,
James
TOPICS
Advanced techniques

Views

438

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Dec 07, 2007 Dec 07, 2007
So here's what I needed to do to get this to work with CF7:

1. Edit wwwroot/WEB-INF/client-config.wsdd to use CommonsHTTPSender per the Tom Jordahl blog post ( http://tjordahl.blogspot.com/2007/03/apache-axis-and-commons-httpclient.html).

2. Put commons-httpclient-3.1.jar and commons-codec-1.3.jar into CFusionMX7/lib. These jars are available from the Apache Commons project ( http://commons.apache.org/).

3. Add a web service entry in the CF Administrator. For the sample code to work, use the ...

Votes

Translate

Translate
Explorer ,
Dec 06, 2007 Dec 06, 2007

Copy link to clipboard

Copied

Bumping this post because it first went out just before the Thanksgiving holiday. I've pursued this: http://www.codenotes.com/cnp/baseAction.aspx?cnp=CG000003 and was able to get the java part working easily, but ran into a wall trying to get CF7 to work with it.

Then I found this: http://tjordahl.blogspot.com/2007/03/apache-axis-and-commons-httpclient.html and it seems like I might be getting somewhere with it, but no big breakthrough yet.

Is anyone getting MapPoint web service to work with CF7?

Thanks,
James

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 07, 2007 Dec 07, 2007

Copy link to clipboard

Copied

So here's what I needed to do to get this to work with CF7:

1. Edit wwwroot/WEB-INF/client-config.wsdd to use CommonsHTTPSender per the Tom Jordahl blog post ( http://tjordahl.blogspot.com/2007/03/apache-axis-and-commons-httpclient.html).

2. Put commons-httpclient-3.1.jar and commons-codec-1.3.jar into CFusionMX7/lib. These jars are available from the Apache Commons project ( http://commons.apache.org/).

3. Add a web service entry in the CF Administrator. For the sample code to work, use the name MapPoint. The URL is the normal staging wsdl ( http://staging.mappoint.net/standard-30/mappoint.wsdl), and the username and password are the ones issued by Microsoft for your mappoint account.

The CF application service needs to be restarted to pick up the apache commons jars. At this point, the sample code should be runnable. It displays an input field which you can type an address into (e.g. "1 microsoft way, redmond, wa"), and displays a map when submitted. The code is fairly simplified and ignores things like the possibility of multiple find results.

Since this is entirely done in CFML, some of the helper objects used as function inputs need to be built up as CF structs mirroring the data members of the java objects. This is problematic in creating a MapView object because there's no way to indicate which of the derived classes (ViewByHeightWidth, ViewByScale, etc) you intend. My workaround was to use a view object returned by GetBestMapView().

Hope this will be helpful to somebody.

James

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Dec 07, 2007 Dec 07, 2007

Copy link to clipboard

Copied

LATEST
Thanks for posting the final code James!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation