473,508 Members | 2,515 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Pass variable ByRef to Web Service

I know that passing variables "ByRef" to a web web service is permitted, but
what I am expreriencing is quite odd.

If I take out my ByRef parameter from the method of my web service, i can
step through (F11) into the web service for debugging.

If I put in a ByRef parameter in the method of the web service, F11
(stepping into the method) does not work. It acts as though I hit the F10
key (Step Over).

Has anyone else seen this?
--
Thanks,

Scott
Nov 23 '05 #1
2 6535
Generally ByRef parameter does not make any sense in web service world. All
parameters are passed by value. Honestly I do not know what is happening. Go
to the web service proxy class and see what is it calling.
--
Martin Kulov
http://www.codeattest.com

MCAD Charter Member
MCSD.NET Early Achiever
MCSD


"SQLScott" <SQ******@discussions.microsoft.com> wrote in message
news:AA**********************************@microsof t.com...
I know that passing variables "ByRef" to a web web service is permitted, but what I am expreriencing is quite odd.

If I take out my ByRef parameter from the method of my web service, i can
step through (F11) into the web service for debugging.

If I put in a ByRef parameter in the method of the web service, F11
(stepping into the method) does not work. It acts as though I hit the F10
key (Step Over).

Has anyone else seen this?
--
Thanks,

Scott


Nov 23 '05 #2
It's not entirely true when you say all the parameters are passed by
values, since web services define input and output messages element in
WSDL in such a way that it's always XML element fragment. You can of
course make input and output messages refer to the same element, but
this won't necessarily make them reference type. This must be
implemented by the web services framework(i.e. ASP.Net web services,
axis etc.)
regards
erymuzuan

Martin Kulov wrote:
Generally ByRef parameter does not make any sense in web service world. All
parameters are passed by value. Honestly I do not know what is happening. Go
to the web service proxy class and see what is it calling.

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
11573
by: Gerhard Pretorius | last post by:
ON Win 2003 IIS6, Since yesterday, (12 Aug 2003) for some strange reason, (after installing WindowsServer2003-KB823980-x86-ENU.exe) I cannot pass the Request object to to VB COM DLL. I have...
11
8771
by: Vanessa | last post by:
Hi, I would like to know whether there's any way for me to pass an object by reference to another form? Regards Vanessa
7
2376
by: John | last post by:
Hi I open a word document from my vb.net app. Now I want to pass reference to one of the classes in my vb.net app to word so it can access procedures in the vb.net class. How can I pass the...
1
2011
by: mjhillman | last post by:
I have a web project (ASP.Net/VB.net) with a data access layer class that passes dataset objects to the web form based on a passed SQL query. I tried to reuse this class in a VB.Net Windows form...
4
3310
by: James | last post by:
I succesfully pass username , domain and password via this function (taken from MSDN) Private Declare Auto Function LogonUser Lib "advapi32.dll" (ByVal lpszUsername As , _ ByVal lpszDomain As...
1
3849
by: John_H | last post by:
Re: ASP.NET 2.0 I would like suggestions or code examples on how to collect a variable length list of input data (item# & item quantity specifically). I thought that I could accomplish this...
5
7802
by: David++ | last post by:
Hi folks, I would be interested to hear peoples views on whether or not 'pass by reference' is allowed when using a Web Service method. The thing that troubles me about pass-by-reference into...
14
1872
by: needin4mation | last post by:
I have this in my web service: public XmlDocument GetDataFromDB(string name) { .... do some stuff with name variable..on the database... return the XmlDocument to my datagrid; } Now, in my...
14
4801
by: Siegfried Heintze | last post by:
Why does VB.NET V2 force me to pass by value for my set function? When I try to change it to const byref it gives me a syntax error. It seems very inefficient to be passing strings around by value...
0
7231
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7133
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7405
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7066
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3214
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
435
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.