none
Hosting or Consuming or Publishing with Specific URL Address and Port of WCF Web Services in IIS 7.5 using Visual Studio 2008 SP1 RRS feed

  • Question

  • Dear All,

    I am looking for Hosting or Consuming or Publishing with Specific URL Address and Port of WCF Web Services in IIS 7.5 using Visual Studio 2008 SP1.

    I could manage to find and do only in http://localhost:50569/WCFService.svc?wsdl not for http://192.168.40.211:50569/WCFService.svc?wsdl to deploy or host in IIS.

    In IIS 7.5, I saw only

    You have created a service.

    To test
    this service, you will need to create a client and use it to call the
    service. You can do this using the svcutil.exe tool from the command
    line with the following syntax:

    then click the

    svcutil.exe http://user:7799/WCFService.svc?wsdl

    then

    Bad Request - Invalid Hostname


    HTTP Error 400. The request hostname is invalid.

    It is ok running from WCF Service Application Project only happened in IIS.

    Is it because of Framework 3.5 and I tried to use Publish but same thing again.

    I hope some one advice me to host WCF in specific URL address with port result same as in WCF Service Application shown below

    wsdl:definitions name="WCFService" targetNamespace="http://abc.com/"><wsdl:import namespace="http://tempuri.org/" 
    // I need to set programmatically in here from http://localhost:50569 to http://192.168.40.211:8080/
    location="http://localhost:50569/WCFService.svc?wsdl=wsdl0"/><wsdl:types><xsd:schema targetNamespace="http://abc.com/Imports"><xsd:import
    // I need to set programmatically in here from http://localhost:50569 to http://192.168.40.211:8080/ schemaLocation="http://localhost:50569/WCFService.svc?xsd=xsd0" 
    
    and so on
    Thanks and best regards

    Tuesday, June 4, 2013 7:38 AM

Answers