locked
WCF service Hosting in IIS???? RRS feed

  • Question

  • Hi,
        I would like Host WCF service on different machine in IIS and then browse in different machine through VS 2008 by passing the URL and include in my project.
    What all the things do i have to keep in mind while creating the Service???

    Thanks.,
    Monday, November 23, 2009 8:47 AM

Answers

  • Hi,

    I have two computers in my network.My domain is xxx.com. The service is hosted in my colleagues computer inside the network within the same domain. Lets assume the computer name in which the service is hosted is wksaaaaa.xxx.com(you get this name by right clicking on my computer-->properties and Full computer name). I need to consume the service and my computer name is wksbbbbb.xxx.com.

    The service url will be something like http://wksaaaaa.xxx.com/BinaryEncodingService/Service1.svc?wsdl . I have to use this service url in vs2008 to generate the proxy
    Please mark the response as answers if it solves your question or vote as helpful if you find it helpful. http://thoughtorientedarchitecture.blogspot.com/
    • Proposed as answer by Haripraghash Monday, November 23, 2009 9:36 AM
    • Marked as answer by Riquel_Dong Monday, November 30, 2009 2:46 AM
    Monday, November 23, 2009 9:36 AM
  • Hi,

    you get this name by right clicking on my computer-->properties and Full computer name. If you are not able to identify it you need to check with your system admin. If not you can try thjis http://192.168.1.56/MyTestService/Test.svc  Assuming 192.168.1.56 is the IP of the computer in which you service is hosted.
    Please mark the response as answers if it solves your question or vote as helpful if you find it helpful. http://thoughtorientedarchitecture.blogspot.com/
    • Marked as answer by Riquel_Dong Monday, November 30, 2009 2:46 AM
    Tuesday, November 24, 2009 6:30 AM

All replies

  • Hi,

    Check this link out. It has a detailed explanation on what is required.

    http://blogs.msdn.com/amitlale/archive/2007/05/21/hosting-wcf-service-in-iis.aspx
    Please mark the response as answers if it solves your question or vote as helpful if you find it helpful. http://thoughtorientedarchitecture.blogspot.com/
    Monday, November 23, 2009 8:51 AM
  • Hi Hari,
        Thats fine...But can you tel me what URL should i pass in my VS 2008 so that i can access the service hosted on another PC( both are on network).????

    i did try like http://192.168.1.56/localhost/MyTestService/Test.svc

    Is it right way????

    Monday, November 23, 2009 9:04 AM
  • Hi,

    I have two computers in my network.My domain is xxx.com. The service is hosted in my colleagues computer inside the network within the same domain. Lets assume the computer name in which the service is hosted is wksaaaaa.xxx.com(you get this name by right clicking on my computer-->properties and Full computer name). I need to consume the service and my computer name is wksbbbbb.xxx.com.

    The service url will be something like http://wksaaaaa.xxx.com/BinaryEncodingService/Service1.svc?wsdl . I have to use this service url in vs2008 to generate the proxy
    Please mark the response as answers if it solves your question or vote as helpful if you find it helpful. http://thoughtorientedarchitecture.blogspot.com/
    • Proposed as answer by Haripraghash Monday, November 23, 2009 9:36 AM
    • Marked as answer by Riquel_Dong Monday, November 30, 2009 2:46 AM
    Monday, November 23, 2009 9:36 AM
  • Hi Hari,
              How do we get the domain name??? like xxx.com which u have mentioned above? or do we need to create  it? and if yes then can you please explain how?
    Tuesday, November 24, 2009 6:12 AM
  • Hi,

    you get this name by right clicking on my computer-->properties and Full computer name. If you are not able to identify it you need to check with your system admin. If not you can try thjis http://192.168.1.56/MyTestService/Test.svc  Assuming 192.168.1.56 is the IP of the computer in which you service is hosted.
    Please mark the response as answers if it solves your question or vote as helpful if you find it helpful. http://thoughtorientedarchitecture.blogspot.com/
    • Marked as answer by Riquel_Dong Monday, November 30, 2009 2:46 AM
    Tuesday, November 24, 2009 6:30 AM
  • Hi,
        So u mean i dont have to write the localhost in the URL?
    fine i will try and get back to u.

    Thanks.
    Tuesday, November 24, 2009 6:35 AM