CA服务台Web服务的Visual Basic专家 [英] CA service desk web service visual basic experts
问题描述
我正在使用的CA Service Desk Web服务请求系统形式,但我无法找到任何帮助或编码的例子与asp.net和Visual Basic的服务。我联系了他们的技术支持,但他们的工作人员没有人使用它的经验。你知道我在哪里可以得到帮助?
I'm working on a form that uses CA service desk web service request system, but am having trouble finding any assistance or coding examples for the service with asp.net and visual basic. I contacted their technical support, but no one on their staff has experience using it. Do you know where I could get help?
推荐答案
添加Web引用到Visual Studio中的Web服务的WSDL(在解决方案资源管理器中,右键单击引用,并单击添加Web引用)。
Add a web reference to the web services wsdl in Visual Studio (under Solutions Explorer, right click on References and click Add Web Reference).
如果您在不同环境中移动我会建议的.xml配置文件来指定端点URL的WSDL。
If you are moving across environments I would recommend a .xml config file to specify the endpoint url to the WSDL.
下面是它可能看起来像在C#根据我使用它:
Here is what it might look like in C# based on my use of it:
using webreference1;
public class WSExample
{
USD_WebService ws = new USD_WebService();
//set url when creating web reference to avoid this step
ws.Url = "http://yoursite.com/webservice?wsdl";
}
现在的WS对象将允许您访问所有的WSDL中规定的方法。您可以使用的createRequest()方法来创建一个请求。
Now the ws object will allow you to access all of the methods specified in the wsdl. You can use the createRequest() method to create a request.
CA提供了技术参考指南,其中包括Web服务方法。征询他们的支持网站。如果这是你经常使用的东西,我会建议创建包装抽象掉的使用空白阵列。
CA provides a Technical Reference guide, which includes web service methods. Consult their support site. If this is something you use frequently, I would recommend creating wrappers to abstract away the use of blank arrays.
随意,如果您需要任何额外的支持与我联系
Feel free to contact me if you need any additional support
这篇关于CA服务台Web服务的Visual Basic专家的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!