求助:IIS中部署WCF,生成的WSDL中怎么把“计算机名”改成IP==找到一个解决办法...

环境:win2003 IIS6 VS2008 

求助: 

如图:

 

有朋友遇到过这个问题吗?还是说这个不是问题?

先 谢谢了!


补充配置文件:

ExpandedBlockStart.gif 代码
     < system.serviceModel >
        
< behaviors >
            
< serviceBehaviors >
                
< behavior name = " Web.Services.TestBehavior " >
                    
< serviceDebug includeExceptionDetailInFaults = " true "   />
                    
< serviceMetadata httpGetEnabled = " true "   />
                    
< serviceAuthorization principalPermissionMode = " None "   />
                    
< serviceCredentials >
                        
< userNameAuthentication userNamePasswordValidationMode = " Custom "
                            customUserNamePasswordValidatorType
= " WCF.CustomUserPassword, WCF "   />
                    
</ serviceCredentials >
                
</ behavior >
            
</ serviceBehaviors >
        
</ behaviors >
        
< services >
            
< service behaviorConfiguration = " Web.Services.TestBehavior "  name = " Web.Services.Test " >
                
< endpoint address = ""  binding = " wsHttpBinding "  contract = " Web.Services.ITest " >
                    
< identity >
                        
< dns value = " localhost "   />
                    
</ identity >
                
</ endpoint >
                
< endpoint address = " mex "  binding = " mexHttpBinding "  contract = " IMetadataExchange "   />
            
</ service >
        
</ services >
      
< bindings >
        
< wsHttpBinding >
          
< binding name = " TranAndUsername " >
            
< security mode = " Message " >
              
<!--< transport clientCredentialType = " None " />
              
< transport clientCredentialType = " Windows "   protectionLevel = " EncryptAndSign " />-->
              
< transport clientCredentialType = " Windows "  proxyCredentialType = " None "  realm = ""   />
              
< message clientCredentialType = " UserName " />
            
</ security >
          
</ binding >
        
</ wsHttpBinding >
      
</ bindings >
    
</ system.serviceModel >

 

 

目前解决办法:

修改IIS的配置:

如图:

 

 

 解决后的wsdl:

 

 

转载于:https://www.cnblogs.com/webhuahua/archive/2010/08/26/1809338.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值