我想寻求帮助。考虑参加以下课程:
public class UploadRequest{
public byte[] Data{get;set;}
public string Filename{get;set;}
}
和 WCF 方法
UploadFile(UploadRequest request);
我的配置是:
<service name="WCF.Messenger" behaviorConfiguration="DefaultBehavior">
<endpoint binding="basicHttpBinding" contract="WCF.Interfaces.IMessenger" bindingConfiguration="soapBinding"/>
<endpoint address="json" binding="webHttpBinding" behaviorConfiguration="jsonBehavior" contract="WCF.Interfaces.IMessenger" bindingConfiguration="jsonBinding"/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
我可以通过 HTTP Web 请求以某种方式调用此方法吗?
感谢您的任何回复