我一直致力于设置Soap客户端,以便根据instructions使用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 ---
有没有人有经验可以指导我如何解决这个问题?