指示に従ってeMedNy のサービスを利用するための Soap Client のセットアップに取り組んでいます。
これは私が現在やっていることです:
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 ---
これを修正する方法を教えてくれる経験のある人はいますか?