我正在使用govt公开的网络服务。网站提交我的客户交易并获得回复。我正确的格式将正确的参数传递给webservice当我使用测试工具SOAPUI时,我使用测试工具SOAPUI时,同一个webservice使用完全相同的参数39; m运行我的c#代码获取Error.Below是Web服务功能的签名:
int WebSvcFunction(string login,string pwd,string xmlClaimInput,out string xmlDRGDetails,out byte [] auditFileContent,out byte [] reportFileContent,out string errorMessage);
任何人都可以纠正我的错误吗
下面是我的代码onbutton click:
private void btnTestService_Click(object sender, EventArgs e)
{
try
{
string xmlDRGDetails = (string)null;
byte[] auditFileContent = (byte[])null;
byte[] reportFileContent = (byte[])null;
string errorMessage = (string)null;
int m = objWebservicesSoapClient.WebSvcFunction(gstrLoginId, gstrpwd, rTxtDrgTab.Text.ToString(), out xmlDRGDetails,
out auditFileContent , out reportFileContent, out errorMessage);
MessageBox.Show(string.Format("Success {0}", m));
}
catch (Exception ex)
{
MessageBox.Show(string.Format("Source: {0}\nDescription:{1}\nTarget Site:{2}\nCall Stack:{3}", (object)ex.Source, (object)ex.Message, (object)ex.TargetSite, (object)ex.StackTrace), "Convert DRG", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}