Callling MapPoint WebService



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 :

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.getInputStream(HttpURLConnection.java:602)
at SimpleHTTPSender.readFromConnection(SimpleHTTPSender.java:99)
at SimpleHTTPSender.invoke(SimpleHTTPSender.java:60)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
at org.apache.axis.client.AxisClient.invoke(AxisClient.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(RenderServiceSoapStub.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:1092)
at java.awt.Container.validateTree(Container.java:1099)
at java.awt.Container.validateTree(Container.java:1099)
at java.awt.Container.validateTree(Container.java:1099)
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(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:7Cool
Caused by: java.net.ProtocolException: Server redirected too many times (20)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:809)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1465)
at java.net.URLConnection.getContentType(URLConnection.java:382)
at SimpleHTTPSender.readFromConnection(SimpleHTTPSender.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.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
at org.apache.axis.client.AxisClient.invoke(AxisClient.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(RenderServiceSoapStub.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:1092)
at java.awt.Container.validateTree(Container.java:1099)
at java.awt.Container.validateTree(Container.java:1099)
at java.awt.Container.validateTree(Container.java:1099)
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(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:7Cool
Caused by: java.io.IOException
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:602)
at SimpleHTTPSender.readFromConnection(SimpleHTTPSender.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.getInputStream(HttpURLConnection.java:809)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1465)
at java.net.URLConnection.getContentType(URLConnection.java:382)
at SimpleHTTPSender.readFromConnection(SimpleHTTPSender.java:94)
.... 29 more


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

Thx in advance.
.



Relevant Pages

  • Re: Write to IIS/Event Log File ?
    ... >with an exception that might arise, ... >either in the web service, ... >Writting to the event log threw me Security Exceptions, ... NET Framework Class Library: ApplicationActivationAttribute ...
    (microsoft.public.dotnet.general)
  • Re: Problem with Exception Handling using Web Services
    ... private void checkPassword ... The Exception is definitely thrown, but when I run it in a web browser it ... >> Microsoft Visual C#.NET to interact with the web service. ... >> Adrian Burka ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Smart Device App fails calling simple Web Service...
    ... the device or emulator thinks localhost is itself, ... and not the machine where you are running the web service. ... > I am getting the following exception... ... > that succeeded in the web form app]. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Retry on certain exceptions?
    ... because of a sql exception, I'll end up getting a bunch of suspended ... custom exception I'll end up with 1 suspended message. ... would be no suspended messages if the web service throws my custom exception ... then add a loop shape. ...
    (microsoft.public.biztalk.general)
  • SoapException
    ... An unhandled exception of type ... This is an excerpt from my Web Service (which runs on an ISP and I cannot ... public String PutStaticData ... Since the exception is unhandled, and I have a catch statement for this ...
    (microsoft.public.dotnet.framework.aspnet.webservices)