View Single Post

  #1 (permalink)  
Old 02-04-2004
rolus rolus is offline
Junior Member
White Belt
 
Join Date: Feb 2004
Posts: 2
MapPoint Webservice 401

I signed up for a trial account for the MapPoint webservice. My intention for this service is to dynamically calculate the distance between two point using addresses and calculate the total cost of transport. Any way I have been given credentials, and am attempting to use the Samples in the SDK, but I get the following error:

Server Error in '/Labs/TurnByTurnRouteMaps' Application.
--------------------------------------------------------------------------------

The request failed with HTTP status 401: Unauthorized.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The request failed with HTTP status 401: Unauthorized.

Source Error:


Line 168: System.Web.Services.Protocols.SoapDocumentMethodAt tribute("http://s.mappoint.net/mappoint-30/Find", RequestNamespace:="http://s.mappoint.net/mappoint-30/", ResponseNamespace:="http://s.mappoint.net/mappoint-30/", Use:=System.Web.Services.Description.SoapBindingUs e.Literal, ParameterStyle:=System.Web.Services.Protocols.Soap ParameterStyle.Wrapped)> _
Line 169: Public Function Find(ByVal specification As FindSpecification) As FindResults
Line 170: Dim results() As Object = Me.Invoke("Find", New Object() {specification})
Line 171: Return CType(results(0),FindResults)
Line 172: End Function

Sorry if this is not the place to post this question, I am new to this forum.

Thanks
__________________
Los
Reply With Quote