【发布时间】:2014-04-18 11:16:17
【问题描述】:
在 Windows 窗体应用程序中,我需要调用 SOAP Web 服务 (http://www.dat.de:80/GlassRep/services/Authentication?wsdl)。
对于这个 WebService,我有一些提供示例的文档。
控制台应用程序:
ConsoleApplication1.de.dat.www.VehicleSelection vi = new ConsoleApplication1.de.dat.www.VehicleSelection();
vi.CookieContainer = new System.Net.CookieContainer();
string sessionID = vi.doLogin("123456789",
"username1",
"akEwRUF3TUM45678Gd5U2NxdHdlKzBaQTF4QVBIT21DVXpRPQ==");
Console.WriteLine("sessionID = " + sessionID);
但是当我调用 WebService 时:
Dim authService As New WebServiceTest.Authentication
authService.doLogin(
方法doLogin需要一个参数WebServiceTest.doLoginRequest(),所有方法也是如此。
为什么方法 doLogin 没有作为参数 3 的字符串,但有 doLoginRequest()?
我需要改变什么或者我做错了什么?
谢谢!
【问题讨论】:
标签: .net vb.net winforms web-services soap