是什么NetSuitePortType和NetSuiteService之间的区别? [英] What is the difference between NetSuitePortType and NetSuiteService?

查看:265
本文介绍了是什么NetSuitePortType和NetSuiteService之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

NetSuite的文档指示使用NetSuiteService;但我无法找到对象实例化。我已经NetSuitePortTypeClient来代替。 ?是一步错过,当我输入服务参考

The netsuite documentation indicates to use NetSuiteService; but I cannot find that object to instantiate. I have NetSuitePortTypeClient instead. Was a step missed when I imported the Service Reference?

我跟着这个文件的第23页上的说明:的 http://www.netsuite.com/portal/partners/integration/download/SuiteTalkWebServicesPlatformGuide_2013.1.pdf

I followed the instructions on page 23 of this documentation: http://www.netsuite.com/portal/partners/integration/download/SuiteTalkWebServicesPlatformGuide_2013.1.pdf

推荐答案

在NetSuite公司/ SuiteTalk文件说要添加Web引用,而不是一个服务引用。

The NetSuite/SuiteTalk documentation says to add a Web Reference, not a Service reference.

服务引用有NetSuitePortTypeClient或NetSuiteChannelTypeClient类。我不知道所有的服务引用和Web引用技术之间的差异,但你必须为那些上课,为您提供了自动与NetSuite的类Web引用的提供更多的参数。服务引用由VS在幕后与svcutil.exe的生成你。

The Service Reference has the NetSuitePortTypeClient or NetSuiteChannelTypeClient classes. I don't know all the differences between the Service Reference and Web Reference technologies, but you have to provide more parameters for those to classes, that are provided automatically for you with the NetSuite class of a Web Reference. A Service Reference is generated with SVCUTIL.exe under the covers by VS for you.

Web引用具有可以实例化NetSuite的类。这与WSDL.EXE的涵盖VS为你下产生的。您可以在添加服务引用表的左下方加入VS2010 Web引用下,单击高级,然后单击添加Web上Referenceat底部再次离开,然后输入网址的WSDL定义在哪里。不要忘记,NetSuite公司有多个不同的版本,从2010年到2014年,所以挑最近的,为你工作。

The Web Reference has the NetSuite class you can instantiate. This is generated with WSDL.exe under the covers by VS for you. You can add a Web Reference in VS2010 down at the bottom left of the Add Service Reference form, click on Advanced, then click on Add Web Referenceat the bottom left again, and then enter the URL to where the WSDL is defined. Don't forget that NetSuite has multiple different versions, from 2010 up to 2014, so pick the most recent that works for you.

使用了NetSuite的Web引用,它的更容易。

Use the Web Reference for NetSuite, it's easier.

博。

这篇关于是什么NetSuitePortType和NetSuiteService之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆