2016-05-23 72 views
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> 

回答

0

的问题不是necesseraly在端点配置文件。下一步不是使用Visual Studio远程调试SOAP服务,以便您可以在代码处理请求上放置断点,并在代码执行路径中逐步执行。

以下是如何在azure上进行远程调试:https://azure.microsoft.com/en-us/documentation/articles/vs-azure-tools-debug-cloud-services-virtual-machines/

+0

什么是调试wsdl请求/响应的最佳方法?我无法得到它并进一步测试方法。我已经设置了'但是我得到500内部错误。 – azrael