我正试图为 JavaSocket服务器建造一个WCF客户,该服务器就习惯XML信息进行会谈。 我制定了我自己的惯例,对电灯和净铁道运输具有约束力。
Now what I have seen happen is on the first call to the server, server accepts the connection. However the server then waits for a specific XML packet. This is built into the method interface from client. WCF does not send the XML packet. Later WCF reports a timeout exception and the channel is faulted.
WCF净TCP运输是否只与WCF TCP服务器合作?
法典:
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]
[System.ServiceModel.ServiceContractAttribute(ConfigurationName = "IUserManager", SessionMode=System.ServiceModel.SessionMode.Required)]
public interface IUserManager
{
[System.ServiceModel.OperationContract]
bool SendMessage(string strMessage);
[System.ServiceModel.OperationContract(IsInitiating = true, IsOneWay=true)]
void SendMessageOneWay(string strMessage);
}
我创建了一个SendMessage OneWay,只是为了启动Socket链接。 这一点也不可行。 由于我需要重新使用这张袖珍片,我已经安排了会议。 要求。
请帮助