How do i know that m using REST Servics/ SOAP Services ?? ?? ?

Answered How do i know that m using REST Servics/ SOAP Services ?? ?? ?

  • Friday, June 15, 2012 12:59 PM
     
     

    Hi,

    M writing routing for one of my requirment.then plz.suggest  me that ..How do i know that m using REST Servics/ SOAP Services ?? ?? ?.

    thnax in advacnce

    prakash kumar

All Replies

  • Friday, June 15, 2012 1:30 PM
    Moderator
     
     Answered

    That's a bit like asking if you're browsing the web using Internet Explorer or Firefox.... even though they meet the same need, they're different things, and there's no risk of accidentally using one instead of the other.

    Show us your code and I'll tell you which you're using.


    twitter: @alastaira blog: http://alastaira.wordpress.com/

    • Marked As Answer by prakash_light Saturday, June 16, 2012 4:38 AM
    •  
  • Friday, June 15, 2012 1:42 PM
    Owner
     
     Answered

    You should always try to use the REST services as they are faster, have more features and can be used by more development languages easier. If you are adding a service reference via Visual Studios and then using .NET code to make requests to the services chances are you are using the SOAP services. If you are accessing the services via Javascript then you are likely using the REST services. You can use the REST services from .NET as described here: http://rbrundritt.wordpress.com/2012/01/06/bing-maps-rest-service-net-libraries/

    Full documentation on the REST services can be found here: http://msdn.microsoft.com/en-us/library/ff701713.aspx


    http://rbrundritt.wordpress.com

    • Marked As Answer by prakash_light Saturday, June 16, 2012 4:33 AM
    •  
  • Saturday, June 16, 2012 4:37 AM
     
     

    Hi Richard,

               yes I am adding a service reference via Visual Studios and then using .NET code.

                                                          But the thing is If I search for the Examples for how to Draw the Route on the map.then i didn't get the idea.so that is the problem with us.

                               Thnx

    prakash kumar

  • Saturday, June 16, 2012 4:41 AM
     
     

    Hi Tanoshimi,

                          this is my code ...i think it is SOAP Services..

                    routeRequestForRoadPath.Options = new RouteService.RouteOptions();
                    routeRequestForRoadPath.Options.RoutePathType = RouteService.RoutePathType.Points;

                    routeRequestForRoadPath.Waypoints = new System.Collections.ObjectModel.ObservableCollection<RouteService.Waypoint>();
                   
                    //set the waypoints through which Road Path should pass
                    RouteService.Waypoint[] waypoints = new RouteService.Waypoint[25];

    Thnx

    prakash kumar