MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Callling MapPoint WebService from a MapPoint demo

This is a discussion on Callling MapPoint WebService from a MapPoint demo within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I'm trying to figure out a way to access a location web service for my web application. I just ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-25-2005
Junior Member
White Belt
 
Join Date: May 2005
Posts: 1
Callling MapPoint WebService from a MapPoint demo

Hi,

I'm trying to figure out a way to access a location web service for my web application. I just discovered MapPoint Web Service so I got an evaluation account and I tried to execute the last sample on this page : http://demo.mappoint.net/

I got the application running but it couldn't connect to the Web Service and displayed an error dialog box. I just added a debugging instruction to know what was this exception and I got the following exception stack trace :
Quote:
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.userException
faultString: java.io.IOException
faultActor: null
faultDetail:
stackTrace: java.io.IOException
at sun.net.www.protocol.http.HttpURLConnection.getInp utStream(HttpURLConnection.java:602)
at SimpleHTTPSender.readFromConnection(SimpleHTTPSend er.java:99)
at SimpleHTTPSender.invoke(SimpleHTTPSender.java:60)
at org.apache.axis.strategies.InvocationStrategy.visi t(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain .java:156)
at org.apache.axis.SimpleChain.invoke(SimpleChain.jav a:126)
at org.apache.axis.client.AxisClient.invoke(AxisClien t.java:182)
at org.apache.axis.client.Call.invokeEngine(Call.java :2113)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1851)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at net.mappoint.s.RenderServiceSoapStub.getMap(Render ServiceSoapStub.java:986)
at MapDisplay.renderMap(MapDisplay.java:295)
at MapDisplay.reshape(MapDisplay.java:255)
at java.awt.Component.setBounds(Component.java:1664)
at java.awt.BorderLayout.layoutContainer(BorderLayout .java:691)
at java.awt.Container.layout(Container.java:1020)
at java.awt.Container.doLayout(Container.java:1010)
at java.awt.Container.validateTree(Container.java:109 2)
at java.awt.Container.validateTree(Container.java:109 9)
at java.awt.Container.validateTree(Container.java:109 9)
at java.awt.Container.validateTree(Container.java:109 9)
at java.awt.Container.validate(Container.java:1067)
at java.awt.Window.show(Window.java:461)
at MainWindow.main(MainWindow.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.rt.execution.application.AppMain.main (AppMain.java:7
Caused by: java.net.ProtocolException: Server redirected too many times (20)
at sun.net.www.protocol.http.HttpURLConnection.getInp utStream(HttpURLConnection.java:809)
at sun.net.www.protocol.http.HttpURLConnection.getHea derField(HttpURLConnection.java:1465)
at java.net.URLConnection.getContentType(URLConnectio n.java:382)
at SimpleHTTPSender.readFromConnection(SimpleHTTPSend er.java:94)
... 29 more


java.io.IOException
at org.apache.axis.AxisFault.makeFault(AxisFault.java :120)
at SimpleHTTPSender.invoke(SimpleHTTPSender.java:63)
at org.apache.axis.strategies.InvocationStrategy.visi t(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain .java:156)
at org.apache.axis.SimpleChain.invoke(SimpleChain.jav a:126)
at org.apache.axis.client.AxisClient.invoke(AxisClien t.java:182)
at org.apache.axis.client.Call.invokeEngine(Call.java :2113)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1851)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at net.mappoint.s.RenderServiceSoapStub.getMap(Render ServiceSoapStub.java:986)
at MapDisplay.renderMap(MapDisplay.java:295)
at MapDisplay.reshape(MapDisplay.java:255)
at java.awt.Component.setBounds(Component.java:1664)
at java.awt.BorderLayout.layoutContainer(BorderLayout .java:691)
at java.awt.Container.layout(Container.java:1020)
at java.awt.Container.doLayout(Container.java:1010)
at java.awt.Container.validateTree(Container.java:109 2)
at java.awt.Container.validateTree(Container.java:109 9)
at java.awt.Container.validateTree(Container.java:109 9)
at java.awt.Container.validateTree(Container.java:109 9)
at java.awt.Container.validate(Container.java:1067)
at java.awt.Window.show(Window.java:461)
at MainWindow.main(MainWindow.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.rt.execution.application.AppMain.main (AppMain.java:7
Caused by: java.io.IOException
at sun.net.www.protocol.http.HttpURLConnection.getInp utStream(HttpURLConnection.java:602)
at SimpleHTTPSender.readFromConnection(SimpleHTTPSend er.java:99)
at SimpleHTTPSender.invoke(SimpleHTTPSender.java:60)
... 28 more
Caused by: java.net.ProtocolException: Server redirected too many times (20)
at sun.net.www.protocol.http.HttpURLConnection.getInp utStream(HttpURLConnection.java:809)
at sun.net.www.protocol.http.HttpURLConnection.getHea derField(HttpURLConnection.java:1465)
at java.net.URLConnection.getContentType(URLConnectio n.java:382)
at SimpleHTTPSender.readFromConnection(SimpleHTTPSend er.java:94)
... 29 more
So I know that Microsoft and Java are not always the best pair, but I can't do anything else, it's part of my project constraints : I have to use Java so...

Does anyone know where this exception come from and how I can get this sample up and running ?

Thx in advance.

daneel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
How fast can one switch from Mappoint to Mappoint Webservice Wilfried MapPoint Web Service and Virtual Earth 0 10-26-2005 11:21 AM
MapPoint WebService Vs MapPoint Location Server thatsafif MapPoint Web Service and Virtual Earth 1 08-02-2005 08:35 AM
MapPoint demo Gary K MapPoint 2006/2009 Discussion 2 07-11-2004 12:48 PM
webapplication with mappoint 2004 - w/o mappoint webservice gmantro MapPoint 2006/2009 Discussion 3 11-30-2003 10:13 AM
C# MapPoint demo/examples links please? Tarren MapPoint 2006/2009 Discussion 2 04-02-2003 04:07 PM


All times are GMT -5. The time now is 02:31 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Cheap flights to Goa
Check out Holiday Hypermarket to book your cheap flights to Goa. A unique and exciting destination. Get set to jet off!

Luxury Holidays
Luxury holidays, family holidays, ski holidays, cruises. Whatever your holiday needs your personal Travel Counsellor can help.

Cape Town Flight
Book a Cape Town Flight for great value when you book through dealchecker.co.uk. It doesn't take long to find the latest great deals for you.

Holidays in Dubai
Holidays in Dubai are an eclectic mix of the ancient and the modern. Discover an oasis of luxury amid the Arabian desert. Book here now!

Tunisia
Tunisia enjoys excellent weather, golden beaches and a beautiful blue sea. Moving away from the beach you will find a country that has a rich and varied past. Discover the secrets of history yourself by exploring all the ruins.

Price Comparisons
Search and compare millions of holidays, flights and hotels etc. At Travel.co.uk, price comparisons are easy.

Portugal Holidays
We specialise in Portugal holidays. Visit our On The Beach website for more information.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51