0

我一直在努力设置一个 Soap 客户端,以按照他们的说明使用 eMedNy 的服务。

这就是我目前正在做的事情:

string _270Msg = "..."; // 270 Message 

// convert string to array of bytes
byte [] bytes = new byte[_270Msg.Length * sizeof(char)]; 
System.Buffer.BlockCopy( _270Msg.ToCharArray(), 0, bytes, 0, bytes.Length );

// Wrap bytes in eMedNy-supplied Transaction Type
Transaction t = new Transaction();
t.transData = bytes;

client.getEligibility( t );

我相信我的消息已成功通过他们的安全门,但我现在从他们的服务器收到以下错误消息:

An unsecured or incorrectly secured fault was received from the other party. See
inner FaultException for the fault code and detail. ---> 
System.ServiceModeultException: Eligibility
--- End of inner exception stack trace ---

有没有人有这方面的经验可以指导我如何解决这个问题?

4

0 回答 0