0
我在Azure中使用SOAP服務,並且無法使其工作。它使用端口30001.當嘗試訪問該服務時,它會產生500個內部錯誤。請問我做錯了什麼?非常感謝你。這裏是ServiceDefinition.csdef中的一部分:Azure中的WCF服務配置
<WebRole name="xxx.SettingsIface" vmsize="Small">
<Sites>
<Site name="Web">
<Bindings>
<Binding name="SettingsEndpoint" endpointName="SettingsEndpoint" />
</Bindings>
</Site>
</Sites>
<Endpoints>
<InputEndpoint name="SettingsEndpoint" protocol="http" port="30001" />
</Endpoints>
</WebRole>
我試圖與此Web.config文件中設置服務:
<?xml version="1.0"?>
<configuration>
<system.diagnostics>
<trace>
<listeners>
<add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=2.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="AzureDiagnostics">
<filter type=""/>
</add>
</listeners>
</trace>
</system.diagnostics>
<system.web>
<compilation debug="true" targetFramework="4.5"/>
</system.web>
<system.ServiceModel>
<services>
<service name="xxx.SettingsInterfaceImpl">
<endpoint address="" behaviorConfiguration="myBehavior" binding="basicHttpBinding" contract="xxx.ISettingsInterface" />
</service>
</services>
<!--xxxxxxxxx-->
<bindings>
<basicHttpBinding>
<binding name="basicHttpBinding">
</binding>
</basicHttpBinding>
</bindings>
<!--xxxxxxxxx-->
<behaviors>
<endpointBehaviors>
<behavior name="myBehavior">
<callbackDebug includeExceptionDetailInFaults="true" />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
</system.ServiceModel>
</configuration>
什麼是調試wsdl請求/響應的最佳方法?我無法得到它並進一步測試方法。我已經設置了'但是我得到500內部錯誤。 –
azrael