离开了吗? [英] Is there away

查看:82
本文介绍了离开了吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有网络服务与我联系到另一个项目

就像代码一样,我想使用相同的网络服务连接。


如果我喜欢这些代码,我会收到错误


项目1


Public oWebb As New AdminNetWebService.Service


Dim oViewOrder As New Project2


使用oViewOrder


.oWebb = oWebb(此处出错)

>
结束


------------------------------- --------------------------


项目2


Public WriteOnly属性oWebb()作为AdminNetWebService.Service


设置(ByVal值为AdminNetWebService.Service)


_oWebb = Value


结束套件


结束物业


// Kenneth

解决方案

我不相信,当你创建一个Web服务引用它使用CodeGen

来生成简单的方法通过肥皂与服务沟通的余地。


我没有最好的网络服务经验,但我有相同的

情况项目在家里。我不得不做新的服务。


-CJ


" Kenneth" <柯***** @ sagdalen.a.se>在留言中写道

news:ev ************** @ tk2msftngp13.phx.gbl ...

有没有拿走一个webservice连接我和另一个项目
像代码一样,我想使用相同的Web服务连接。

如果我喜欢这些代码我会收到错误
项目1

Public oWebb As New AdminNetWebService.Service

Dim oViewOrder As New Project2

使用oViewOrder

。 oWebb = oWebb(这里错误)

结束

------------------------- --------------------------------

项目2

公共WriteOnly属性oWebb()作为AdminNetWebService.Service

设置(ByVal值为AdminNetWebService.Service)

_oWebb =值

结束集

最终财产


// Kenneth



您好Kenneth,


对不起,我没看到问题。


网络服务的目的是让你轻松地从潜水情况中获得新的联系。


只需设置一个webrefrence就可以了。


在我的想法是复制代码更多工作。


Cor


我的问题是我的progarms整个后端是一个webservice和web

服务正在与数据库通信

我有一个处理所有打印功能的项目。


我的基础程序中有一个web服务连接,我不想做一个

新的一个在我的打印项目中,因为它只在Web服务器上建立一个新的数据库

连接和一个新的用户会话。


所以我想拿网络服务我和另一个项目的对象,我可以用数据库连接对象来获取它,所以我希望我也可以用

这样做。
< br $>
// Kenneth


Cor < no*@non.com>在消息中写道

新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...

嗨Kenneth ,

抱歉,我没有看到问题。

来自网络服务的目的是,你可以轻松地从潜水情况中建立新的连接。 />
只是设置一个webrefrence,你几乎准备好了。

在我的想法是复制代码更多的工作。

Cor


Is there away to take a webservice connection with me to another project
like the code , I want to use the same web service connection .

If I do like the code I get error

Project 1

Public oWebb As New AdminNetWebService.Service

Dim oViewOrder As New Project2

With oViewOrder

.oWebb = oWebb (error here)

End With

---------------------------------------------------------

Project 2

Public WriteOnly Property oWebb() As AdminNetWebService.Service

Set(ByVal Value As AdminNetWebService.Service)

_oWebb = Value

End Set

End Property

//Kenneth

解决方案

I dont'' believe so, when you create a web service reference it uses CodeGen
to generate simple methods for communicating with the service via soap.

I don''t have the greatest experience with web services, but I have the same
situation with a project at home. And I had to just do new services.

-CJ

"Kenneth" <ke*****@sagdalen.a.se> wrote in message
news:ev**************@tk2msftngp13.phx.gbl...

Is there away to take a webservice connection with me to another project
like the code , I want to use the same web service connection .

If I do like the code I get error

Project 1

Public oWebb As New AdminNetWebService.Service

Dim oViewOrder As New Project2

With oViewOrder

.oWebb = oWebb (error here)

End With

---------------------------------------------------------

Project 2

Public WriteOnly Property oWebb() As AdminNetWebService.Service

Set(ByVal Value As AdminNetWebService.Service)

_oWebb = Value

End Set

End Property

//Kenneth



Hi Kenneth,

Sorry, I do not see the problem.

The purpose from a webservice is that you from diverent situations easily
can made a new connection.

Just set a webrefrence and you are almost ready.

In my idea is copying the code more work.

Cor


my problem is that the my progarms whole backend is a webservice and the web
service is talking to the database
I have a project who deals with all printing funcktions.

I have a webservice connection in my base program and I don''t want to make a
new one in my printing project because it only make a new database
connection and a new user session on the web server.

so I want to take the webservice object with me over to the other project, I
can to that with a database connection object so I hope I can do it with
this too.

//Kenneth

"Cor" <no*@non.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...

Hi Kenneth,

Sorry, I do not see the problem.

The purpose from a webservice is that you from diverent situations easily
can made a new connection.

Just set a webrefrence and you are almost ready.

In my idea is copying the code more work.

Cor



这篇关于离开了吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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