为ASMX客户端公开WCF服务

时间:2012-09-18 16:52:20

标签: vb.net wcf asmx

我有一个与WCF客户端很好地配合的WCF服务,但我需要它的最重要的客户端是ASMX客户端。如何使我的WCF服务与ASMX客户端兼容?

我跟着this guide但无济于事(尽管我已经100%确定我已经正确实施了它)

以下是我的ServiceContract和OperationContracts。我的Web.config没有MEX端点。

  <ServiceContract()>
<XmlSerializerFormat(Use:=OperationFormatUse.Literal, Style:=OperationFormatStyle.Document)>
Public Interface racoSMS
    <OperationContract(Action:="http://tempuri.org/ReceiveSMS", ReplyAction:="http://tempuri.org/ReceiveSMS")>
    Function ReceiveSMS(ByVal securityKey As String, ByVal from As String, ByVal message As String) As ServiceResult
    <OperationContract(Action:="http://tempuri.org/Test", ReplyAction:="http://tempuri.org/Test")>
    Function Test(ByVal securityKey As String) As ServiceResult
End Interface

0 个答案:

没有答案