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;
}