如何解决Azure应用服务应POST请求返回404
我有一个WCF服务,该服务已通过VS 2017发布到Azure。我可以使用浏览器中的URL来访问该服务,并且它按预期方式工作。该服务侦听来自Salesforce的出站消息。如果我发送消息,它将返回404错误。该相同服务可以很好地发布到服务器上的IIS。 App Service中是否存在允许处理POST的设置?
更新:我认为问题可能出在web.config上,这是我拥有的:
<system.serviceModel>
<bindings />
<client />
<services>
<service name="WorkflowNotificationServices.CaseNotificationService" behaviorConfiguration="debug">
<endpoint binding="basicHttpBinding" contract="CaseNotificationService" />
</service>
<service name="WorkflowNotificationServices.CommentNotificationService" behaviorConfiguration="CommentNotificationServiceBehavior">
<endpoint binding="basicHttpBinding" contract="CommentNotificationService" />
</service>
<service name="WorkflowNotificationServices.TaskNotificationService" behaviorConfiguration="TaskNotificationServiceBehavior">
<endpoint binding="basicHttpBinding" contract="TaskNotificationService" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="CaseNotificationServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
</behavior>
<behavior name="CommentNotificationServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
</behavior>
<behavior name="TaskNotificationServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
</behavior>
<behavior name="debug">
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
<behavior name="">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
这在带有IIS的VM上正常工作。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。