服务端
public boolean init(int i);
客户端
int i = 1;
bool b1 = true;
bool ret;
bool spec;
service.init(i, b1, out ret, out spec);
注意:一定要将b1设置为true,否则会抛出异常,因为参数i是int类型,而非string类型,我推测可能其他非string类型的参数,如double,float等也都是这样的
未处理 System.Web.Services.Protocols.SoapException
Message="unknown"
Actor=""
Lang=""
Node=""
Role=""
StackTrace:
位于 System.Web.Services.Protocols.SoapHttpClientProtocol.doInvoke(String methodName, Object[] parameters, WebClientAsyncResult asyncResult)
位于 System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
位于 TBCMonitor.TBCWebService.Service.initIndexno(Int32 batchCode, Boolean batchCodeSpecified, Boolean& return, Boolean& returnSpecified)
位于 TBCMonitor.ui.AttachLabelForm.btnGetOrder_Click(Object sender, EventArgs e)
位于 System.Windows.Forms.Control.OnClick(EventArgs e)
位于 System.Windows.Forms.Button.OnClick(EventArgs e)
位于 System.Windows.Forms.ButtonBase.WnProc(WM wm, Int32 wParam, Int32 lParam)
位于 System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
位于 Microsoft.AGL.Forms.EVL.EnterModalDialog(IntPtr hwnModal)
位于 System.Windows.Forms.Form.ShowDialog()
位于 TBCMonitor.ui.MainForm.picAttachLabel_Click(Object sender, EventArgs e)
位于 System.Windows.Forms.Control.OnClick(EventArgs e)
位于 System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam)
位于 System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
位于 Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
位于 System.Windows.Forms.Application.Run(Form fm)
位于 TBCMonitor.Program.Main()