System.InvalidOperationException:
操作“ procWsDocumentAsync”包含带有参数的消息。强类型或无类型的消息只能与强类型,无类型或无效的消息配对。
MsgBody.Text = "<OPERVALS><BOOKINpG_ID>BK170001194</BOOKING_ID><DATE>20180828</DATE></OPERVALS>";
senderId.Text = "DSVWS";
acessCode.Text = "DSVWS2018";
operationCode.Text = "BKCARGORECEPTION";
senderMsgId.Text = "DSV321123134";
StrMsgBody = MsgBody.Text;
StrsenderId = senderId.Text;
StracessCode = acessCode.Text;
StroperationCode = operationCode.Text;
StrsenderMsgId = senderMsgId.Text;
}
private async void Submit_Clicked_1(object sender, EventArgs e)
{
string resposta;
string resposta1;
SCPCon.ScpWSIntegrationClient cli = new SCPCon.ScpWSIntegrationClient();
SCPCon.procWsOperationResponse resp = await cli.procWsOperationAsync
(
new SCPCon.procWsOperationRequest
{
ScpOperWsmsgRecUser_1 = new SCPCon.ScpWsmsgRecUser
{
wsMsgBody = StrMsgBody,
wsMsgHeader = new SCPCon.ScpWsmsgHdrRecUser
{
sentDatetime = DateTime.Now,
senderId = StrsenderId,
accessCode = StracessCode,
operationCode = StroperationCode,
senderMsgId = StrsenderMsgId,
}
}
}
);
resposta = resp.ScpOperWsmsgResRecUser_2.resultText;
resposta1 = resp.ScpOperWsmsgResRecUser_2.resultCode;
}