為什么會生成2個,要把第二個洗掉掉才行
uj5u.com熱心網友回復:
貼個圖出來嘛?另外你有沒有參考了兩次呢?或者說你之前參考過沒有洗掉干凈又重新新增了一個參考呢?uj5u.com熱心網友回復:
你吧 組態檔貼出來,看下 。endpoint 有 2個可能是正常的有的時候 net.tcp 模式的就有2個。
uj5u.com熱心網友回復:
沒有參考的時候config是這樣的
<?xml version="1.0"?>
<!--
有關如何配置 ASP.NET 應用程式的詳細資訊,請訪問
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<appSettings>
<add key="webpages:Version" value="https://bbs.csdn.net/topics/2.0.0.0"/>
<add key="webpages:Enabled" value="https://bbs.csdn.net/topics/false"/>
<add key="PreserveLoginUrl" value="https://bbs.csdn.net/topics/true"/>
<add key="ClientValidationEnabled" value="https://bbs.csdn.net/topics/true"/>
<add key="UnobtrusiveJavaScriptEnabled" value="https://bbs.csdn.net/topics/true"/>
</appSettings>
<connectionStrings>
<add name="ConnectionString" connectionString="Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.116)(PORT=1521)) (CONNECT_DATA=https://bbs.csdn.net/topics/(SERVICE_NAME=APPDB)));User ID=test01;Password=123456;" providerName="Oracle.DataAccess.Client"/>
<!--Oracle.DataAccess.Client-->
</connectionStrings>
<system.web>
<httpRuntime/>
<compilation debug="true" targetFramework="4.0"/>
<pages controlRenderingCompatibilityVersion="4.0">
<namespaces>
<add namespace="System.Web.Helpers"/>
<add namespace="System.Web.Mvc"/>
<add namespace="System.Web.Mvc.Ajax"/>
<add namespace="System.Web.Mvc.Html"/>
<add namespace="System.Web.Routing"/>
<add namespace="System.Web.WebPages"/>
</namespaces>
</pages>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit"/>
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit"/>
<remove name="ExtensionlessUrlHandler-Integrated-4.0"/>
<add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0"/>
<add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0"/>
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/>
</handlers>
</system.webServer>
<system.serviceModel>
<bindings />
<client />
</system.serviceModel>
</configuration>
uj5u.com熱心網友回復:
添加完了 webservice之后<?xml version="1.0"?>
<!--
有關如何配置 ASP.NET 應用程式的詳細資訊,請訪問
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<appSettings>
<add key="webpages:Version" value="https://bbs.csdn.net/topics/2.0.0.0"/>
<add key="webpages:Enabled" value="https://bbs.csdn.net/topics/false"/>
<add key="PreserveLoginUrl" value="https://bbs.csdn.net/topics/true"/>
<add key="ClientValidationEnabled" value="https://bbs.csdn.net/topics/true"/>
<add key="UnobtrusiveJavaScriptEnabled" value="https://bbs.csdn.net/topics/true"/>
</appSettings>
<connectionStrings>
<add name="ConnectionString" connectionString="Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.116)(PORT=1521)) (CONNECT_DATA=https://bbs.csdn.net/topics/(SERVICE_NAME=APPDB)));User ID=test01;Password=123456;" providerName="Oracle.DataAccess.Client"/>
<!--Oracle.DataAccess.Client-->
</connectionStrings>
<system.web>
<httpRuntime/>
<compilation debug="true" targetFramework="4.0"/>
<pages controlRenderingCompatibilityVersion="4.0">
<namespaces>
<add namespace="System.Web.Helpers"/>
<add namespace="System.Web.Mvc"/>
<add namespace="System.Web.Mvc.Ajax"/>
<add namespace="System.Web.Mvc.Html"/>
<add namespace="System.Web.Routing"/>
<add namespace="System.Web.WebPages"/>
</namespaces>
</pages>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit"/>
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit"/>
<remove name="ExtensionlessUrlHandler-Integrated-4.0"/>
<add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0"/>
<add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0"/>
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0"/>
</handlers>
</system.webServer>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="WebService1Soap" />
</basicHttpBinding>
<customBinding>
<binding name="WebService1Soap12">
<textMessageEncoding messageVersion="Soap12" />
<httpTransport />
</binding>
</customBinding>
</bindings>
<client>
<endpoint address="http://192.168.1.116:8056/WebService1.asmx"
binding="basicHttpBinding" bindingConfiguration="WebService1Soap"
contract="ServiceReference1.WebService1Soap" name="WebService1Soap" />
<endpoint address="http://192.168.1.116:8056/WebService1.asmx"
binding="customBinding" bindingConfiguration="WebService1Soap12"
contract="ServiceReference1.WebService1Soap" name="WebService1Soap12" />
</client>
</system.serviceModel>
</configuration>
uj5u.com熱心網友回復:
為啥有2個endpoint,我每次要把第二個endpoint 洗掉就OK了
uj5u.com熱心網友回復:
先洗掉原來的WS配置資訊,然后再添加新的WS資訊。。。轉載請註明出處,本文鏈接:https://www.uj5u.com/net/63458.html
標籤:Web Services
上一篇:如何給<getAatat xmlns="http://xxx.xxxx.xxxx.com/">變為<NS1:getAatat
