Web Service Issue - Community Credit Forums
in

    Community Credit Forums

Web Service Issue

Last post 02-17-2008 10:32 AM by KarlShifflett. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 02-16-2008 2:16 AM

    Web Service Issue

    We are facing one issue with accessing the remote web service.

     

    We are using visual studio 2005.

     

    We are trying to invoke one web service located in German.

     

    From VS 2005 Window based application we could able to add that web service as a reference and we could able to invoke their web methods.

     

    But from VS 2005 Web based application we could add the web reference, but we could not invoke their methods.

     

    We got the following exception when ever we are trying to invoke their method.

     

    “The remote name could not be resolved “  

     

    If anyone of you came across this issue, then let me know the solution.

     

    It would be great if you provide the necessary solution to precede our further development.

    Filed under:
  • 02-16-2008 10:43 AM In reply to

    Re: Web Service Issue

    I have come across this scenario before and I ended up referencing the web service in a slightly different manner in my web.config file.  It did solve the problem, but there might be a better way to solve it, so let me see what others have to say before going into further details.
    Kindest regards,
      David Silverlight

    Support Community Credit by giving some love to StupidCubicle.com


  • 02-17-2008 10:32 AM In reply to

    Re: Web Service Issue

    Kumar,

    When I see the word, "resolved" in an exception like this, I start thinking DNS or "timely" DNS resolution.

    There are a number of places web applications can time out so to speak.

    One thing you can try that will not break your code and will help nail this down, is to set the reference using the IP address instead of the DNS name. 

    Doing this will let you know "if' this is the problem.  If it is, post it here and I'll give you several suggestions that you can use that don't involve hard coding an IP address.

    Please check this also.  Can you open a browser, browse to the web service and execute the methods?

     

     

    Cheers,

    Karl

    Code Project MVP, Karl's Blog : Get Mole v4 Here also!

    Just a grain of sand on the worlds beaches.
Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems