none
Unable to use Bing Map's "RouteService" Webservice in .net 1.1 RRS feed

  • Question

  • Hi,

    I am unable to use Route Service "http://dev.virtualearth.net/webservices/v1/routeservice/routeservice.svc" in .net framework 1.1(VS 2003), but I can use the same service in .net framework 3.5(VS 2008).

    I am able to use "Geo Code" service "http://dev.virtualearth.net/webservices/v1/geocodeservice/geocodeservice.svc" in .net framework 1.1(VS 2003)

    Error Details : 

    ERROR : "An error occurred while processing the request.".

    Stack Trace :

     

    - ex {"An error occurred while processing the request." } System.Exception

    + [System.Web.Services.Protocols.SoapException] {System.Web.Services.Protocols.SoapException} System.Web.Services.Protocols.SoapException

    System.Object {System.Web.Services.Protocols.SoapException} System.Object

    _className null string

    _COMPlusExceptionCode -532459699 int

    _exceptionMethod <undefined value> System.Reflection.MethodBase

    _exceptionMethodString null string

    _helpURL null string

    _HResult -2146233087 int

    _innerException { } System.Exception

    _message "An error occurred while processing the request." string

    _remoteStackIndex 0 int

    _remoteStackTraceString null string

    _source null string

    + _stackTrace {System.Array} System.Object

    _stackTraceString null string

    _xcode -532459699 int

    _xptrs 0 int

    HelpLink null string

    HResult -2146233087 int

    InnerException { } System.Exception

    Message "An error occurred while processing the request." string

    Source "System.Web.Services" string

    StackTrace "   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)\r\n   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)\r\n   at ConsoleApplication1.RouteService.RouteService.CalculateRoute(RouteRequest request) in E:\\Aditya\\2003 Console App\\ConsoleApplication1\\Web References\\RouteService\\Reference.cs:line 41\r\n   at ConsoleApplication1.Class1.Main(String[] args) in e:\\aditya\\2003 console app\\consoleapplication1\\class1.cs:line 63" string

     

    - TargetSite {System.Reflection.RuntimeMethodInfo} System.Reflection.MethodBase

    + [System.Reflection.RuntimeMethodInfo] {System.Reflection.RuntimeMethodInfo} System.Reflection.RuntimeMethodInfo

    + System.Reflection.MemberInfo {System.Reflection.RuntimeMethodInfo} System.Reflection.MemberInfo

    Attributes 129 System.Reflection.MethodAttributes

    CallingConvention 33 System.Reflection.CallingConventions

    IsAbstract false bool

    IsAssembly false bool

    IsConstructor false bool

    IsFamily false bool

    IsFamilyAndAssembly false bool

    IsFamilyOrAssembly false bool

    IsFinal false bool

    IsHideBySig true bool

    IsOverloaded false bool

    IsPrivate true bool

    IsPublic false bool

    IsSpecialName false bool

    IsStatic false bool

    IsVirtual false bool

    + MethodHandle {System.RuntimeMethodHandle} System.RuntimeMethodHandle

    Any help would be greatly appreciated.

    Thanks in advance. :)  

     

     

    • Moved by Ricky_Brundritt Saturday, March 10, 2012 10:09 AM (From:Bing Maps: Map Control and Web services Development)
    Monday, July 11, 2011 1:10 PM

Answers

All replies

  • If you are able to access Geocode SOAP services using 1.1, then Route should also work accordingly.

    check the article http://msdn.microsoft.com/en-us/library/dd221354.aspx. The requirement is .Net3.0 framwork but you can follow the sample instructions on 1.1 for Route service

     


    MSFT Hemant Goyal
    • Marked as answer by Ricky_Brundritt Wednesday, September 14, 2011 7:52 PM
    Monday, July 11, 2011 3:52 PM
  • I do recall there being issues using some of the SOAP services in .NET 1.1. That framework was never supported. I recommend using the REST services as they have more features, and are faster.
    Windows Live Developer MVP - http://rbrundritt.wordpress.com | http://inknowledge.co.uk
    Monday, July 11, 2011 5:46 PM
  • Hi Hemant,

    I have already tried the code in the above URL, Geocode works fine but other services are not working.

     


    Adi
    Tuesday, July 12, 2011 6:07 AM
  • Hi Richard,

    Thanks for suggesting REST services. I want to use this service in my server side code (c#). Do I have to make a HttpRequest to the REST URL or is there any better option ?

    Can you please give me reasons why SOAP services are not available in .net 1.1 or any link to any post which explains this?

    Thanks.


    Adi
    Tuesday, July 12, 2011 6:10 AM
  • The REST service is actually just a normal WebClient call that you can make. You would only need to use HttpRequest if you had something to POST to the url.

     

    The SOAP services are built on WCF, which was not introduced until .NET 3. Don't quote me on this, but that's the likely issue.

    • Marked as answer by Ricky_Brundritt Wednesday, September 14, 2011 7:53 PM
    • Unmarked as answer by Ricky_Brundritt Wednesday, September 14, 2011 7:53 PM
    Tuesday, July 19, 2011 2:13 PM