Vba 此配置的WCF服务名字对象是什么?

Vba 此配置的WCF服务名字对象是什么?,vba,wcf,wsdl,app-config,moniker,Vba,Wcf,Wsdl,App Config,Moniker,我有以下应用程序配置文件,使用我的ip作为基本地址: <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.serviceModel> <services> <service name="HelloServiceExample.HelloService" behaviorConfiguration="mexBehavior">

我有以下应用程序配置文件,使用我的ip作为基本地址:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.serviceModel>
    <services>
      <service name="HelloServiceExample.HelloService" behaviorConfiguration="mexBehavior">
        <endpoint
          address="HelloService"
          binding="basicHttpBinding"
          contract="HelloServiceExample.IHelloService">
        </endpoint>
        <endpoint
          address="mex"
          binding="mexHttpBinding"
          contract="IMetadataExchange">
        </endpoint>
        <host>
          <baseAddresses>
            <add baseAddress="http://{IP-ADDRESS}:{PORT}/" />
          </baseAddresses>
        </host>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="mexBehavior">
          <serviceMetadata httpGetEnabled="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>
</configuration>
其中,wsdlText是wsdl服务的字符串表示形式。从http://{IP-ADDRESS}:{PORT}/?singleWsdl获取。但它似乎不起作用,我也不明白为什么。我总是会出错:

Run-time error '-2147221020 (800401e4)':

Automation error
Invalid syntax

你想在这里干什么?什么是wsdl名字对象字符串?我想,意识到这个问题听起来很痛苦。我正在使用Windows服务。这仅适用于IIS托管服务。您在这里尝试执行什么操作?什么是wsdl名字对象字符串?我想,意识到这个问题听起来很痛苦。我正在使用Windows服务。这仅适用于IIS托管的服务。
Run-time error '-2147221020 (800401e4)':

Automation error
Invalid syntax