English 中文(简体)
WCF TCP客户,Java Socket服务器,定制XML信息
原标题:WCF TCP client with Java Socket server on custom XML messages

我正试图为 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链接。 这一点也不可行。 由于我需要重新使用这张袖珍片,我已经安排了会议。 要求。

请帮助

最佳回答

世界氯联苯净载体运输使用一种基于甲型六氯环己烷的习惯议定书;它为而不是一个通用的原始-TCP的袖珍调整器。

象你一样,需要建立自己的海关运输渠道。 我创建了一个

问题回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签