XML web service error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • goodway
    New Member
    • Jul 2006
    • 1

    XML web service error

    Dear all,
    I have a webservice project running on Computer A.
    I am calling a webmethod from this web service from an asp.net project on computer B, it is working correctly.
    But the problem is when i am trying to call the same webmethod from another asp.net project on the computer B, i am receiving this error:
    The underlying connection was closed: Unable to connect to the remote server.
    it is not a security problem or configuration since the same webmethod is working on the first asp.net project

    Can anyone help, thanks.
  • dotnet
    New Member
    • Jul 2006
    • 22

    #2
    try manually hitting the web service... this exception usually comes whenever there is some problem in network connectivity.



    Regards

    Comment

    • amsrajesh
      New Member
      • Feb 2007
      • 1

      #3
      Originally posted by dotnet
      try manually hitting the web service... this exception usually comes whenever there is some problem in network connectivity.



      Regards
      Use remote virtual directory name instead of using localhost

      Comment

      • dorinbogdan
        Recognized Expert Contributor
        • Feb 2007
        • 839

        #4
        Hi,
        Did you succeed to solve the problem ?
        If yes, please let me know, in order to close the thread.
        Thanks,
        Dorin.

        Comment

        • monopoly
          New Member
          • Mar 2007
          • 2

          #5
          I face a similar problem. The scenario at my end is like this:

          Machine A - Deployed Web Service1
          Machine B - Deployed Web Service2
          Machine C - Deployed Client Application to consume the web services
          Machine D - stand alone terminal to access the client and ping the web service on A & B each one at a time.

          A,B,C,D - are on a common LAN.

          Hence from D i give: http://C/Client/Page.aspx and in the web.config of the client the reference is set to access A and B on each run. They run absolutely fine. with no problem

          Problem:

          When i deployed the WS at the client location i am able to run it directly but when i try to access this from the client it throws: "The underlying connection is closed: Remote Server could not be found" error.

          At the client side, the systems are Siteminder protected and i key in some URL like https://machinename.com panyname.com/virt_dir_name/WS.asmx

          Note: The web.config was changed suitably to refer the web service at the client side.

          Please help me understand what the problem is and also in resolving the same. Is it related to Siteminder or any other problem.

          Comment

          • monopoly
            New Member
            • Mar 2007
            • 2

            #6
            with reference to the problem given below:

            We tried deleting the web refernce that we added at our office and instead went to the clients office and added web reference from there so that we were able to ping the server where web service is installed.

            But while doing that i faced the following situation:
            1. While giving the URL for the web reference in the Add reference dialog box i got the error that said: "Unable to download the web service" with status HTTP 503 if i remember
            2. But i got the web methods displayed on the left that are exposed by the web service. How is this possible?
            3. And the Add reference button on the right along with the folder name is disabled. So virtually i cant proceed from here.

            Does anyone have any solutions or suggestions on y this is occurring?

            --------------
            Monopoly


            Originally posted by monopoly
            I face a similar problem. The scenario at my end is like this:

            Machine A - Deployed Web Service1
            Machine B - Deployed Web Service2
            Machine C - Deployed Client Application to consume the web services
            Machine D - stand alone terminal to access the client and ping the web service on A & B each one at a time.

            A,B,C,D - are on a common LAN.

            Hence from D i give: http://C/Client/Page.aspx and in the web.config of the client the reference is set to access A and B on each run. They run absolutely fine. with no problem

            Problem:

            When i deployed the WS at the client location i am able to run it directly but when i try to access this from the client it throws: "The underlying connection is closed: Remote Server could not be found" error.

            At the client side, the systems are Siteminder protected and i key in some URL like https://machinename.com panyname.com/virt_dir_name/WS.asmx

            Note: The web.config was changed suitably to refer the web service at the client side.

            Please help me understand what the problem is and also in resolving the same. Is it related to Siteminder or any other problem.

            Comment

            • dorinbogdan
              Recognized Expert Contributor
              • Feb 2007
              • 839

              #7
              Since it is like a .Net issue I will move the thread to .Net forum.

              Dorin.

              Comment

              Working...