Can a webservice call another webservice?

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default Can a webservice call another webservice?

    Hi all,

    I want one WebService I have, say on a server in Los Angeles, to call
    methods I have in a 2nd WebService on another server, say in New York.
    First of all, is it possible for two Web Services to interact like this?
    Maybe I am just trying to connect them incorrectly. What I am doing is
    this: in my VS.NET project for the 1st service, I am trying to add a
    WebReference to the 2nd service, which works, but I can't reference it in
    the code. It always says that the type or namespace of the 2nd service I
    just added cannot be found.

    Any ideas?


    Chris Ludlow Guest

  2. Similar Questions and Discussions

    1. call webservice
      hi i have a webservice which resides on a server on the same LAN that am working at. I have the URL and theWSDL of the webservice. However, i...
    2. Dynamic Webservice call
      Hi all, For my current project i want to call a webservice dynamically. How to go about this? Maybe build a dynamic proxy? cheers Jim
    3. WebService DB Call Error
      Hi I call my webservice locally from a client app and have no problems connecting to database on same machine. I call the webservice on a PDA and...
    4. Webservice API Call
      I get the following error below upon attempts to access a webservice that attempts to call advapi32.dll I believe this to be a security issue yet...
    5. Call COM from .NET WebService Help
      We are trying to access a COM object from our .NET WebService, but we get System.RunTime.Interopservices.COMException 0x80010105 everytime. We also...
  3. #2

    Default Re: Can a webservice call another webservice?

    "Chris Ludlow" <chrisludlow@paulhastings.com> wrote in message
    news:%235GtGo1dFHA.3712@TK2MSFTNGP09.phx.gbl...
    >I am trying to add a WebReference to the 2nd service, which works, but I
    >can't reference it in the code. It always says that the type or namespace
    >of the 2nd service I just added cannot be found.
    Hi Chris,

    Open the proxy file that is generated for your web service and see what
    namespace you should use to reference the 2nd web server in your code. It
    should be not a problem.

    Regards,

    --
    Martin Kulov
    [url]http://www.codeattest.com/blogs/martin[/url]

    MCAD Charter Member
    MCSD.NET Early Achiever
    MCSD


    Martin Kulov Guest

  4. #3

    Default Re: Can a webservice call another webservice?

    This can work seemlessly. Make sure you are using the correct namespace
    name. You can find it out from the proxy file.

    Madhu Sudhanan Ramanujam
    "Chris Ludlow" <chrisludlow@paulhastings.com> wrote in message
    news:%235GtGo1dFHA.3712@TK2MSFTNGP09.phx.gbl...
    > Hi all,
    >
    > I want one WebService I have, say on a server in Los Angeles, to call
    > methods I have in a 2nd WebService on another server, say in New York.
    > First of all, is it possible for two Web Services to interact like this?
    > Maybe I am just trying to connect them incorrectly. What I am doing is
    > this: in my VS.NET project for the 1st service, I am trying to add a
    > WebReference to the 2nd service, which works, but I can't reference it in
    > the code. It always says that the type or namespace of the 2nd service I
    > just added cannot be found.
    >
    > Any ideas?
    >

    Madhu Sudhanan Ramanujam Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139