Call a webservice from a webservice

Hi all,

i would like to use a web service from a web service. It is no problem to add the second web service to App_Webreference. But how can i use it

In a desktop application i can use
AC_DataRecord = My.WebServices.SelfServiceBaseData_INSTALL_Service.Get_AssetCenter_BaseData_for_PCName(My.Computer.Name)


but IN my web service i can't use MY.WEBSERIVES.... Why What do i have to use

Thanx for your patience and maybe you could help me ...

Axel


Answer this question

Call a webservice from a webservice

  • Jeremy Herbison


    When you add the webservice you gave the web reference a name.
    .Net will created a proxy class with this name.

    So the code would be:

    Dim serv As new <yourproxyname>.SelfServiceBaseData_INSTALL_Service
    serv.
    Get_AssetCenter_BaseData_for_PCName(My.Computer.Name)

  • Call a webservice from a webservice