473,799 Members | 3,061 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Pass one Web Service Dataset into another Web Service Dataset

DB
Hi

I have a specific problem of Access to Internal IIS and therefore need to
have two Web Services to return the Dataset from one of them.
The Internal Web Service Returns a Dataset of Addresses from a SQL Table

The External Webservice has the added reference to the Internal Service and
needs to have this dataset passed to it and return that to the client
application.
Assigning one Dataset to another is a no no!!

Below is the function:
Public Function GetExternalAddr ess(ByVal strPostCode As String) As DataSet
Dim WSAddress As achieveformsrvr .AddySearch
Dim AddressDataSet As New DataSet("Addres s")
Try

AddressDataSet = WSAddress.Retur nProperties(str PostCode)
Catch ex As Exception
Diagnostics.Deb ug.WriteLine(ex .ToString)
End Try
Return AddressDataSet

End Function

Could anyone offer me some suggetions on how this might be achieved. The
client applications is expecting a Web Service Dataset to be returned.

Thanks for any help

Mar 1 '06 #1
2 1284
"DB" <DB@discussions .microsoft.com> wrote in message
news:02******** *************** ***********@mic rosoft.com...

Assigning one Dataset to another is a no no!!


Why is that?

Martin

Mar 1 '06 #2
HI
You can use return statement like below
Return AddressDataSet. Copy();

DB wrote:
Hi

I have a specific problem of Access to Internal IIS and therefore need to
have two Web Services to return the Dataset from one of them.
The Internal Web Service Returns a Dataset of Addresses from a SQL Table

The External Webservice has the added reference to the Internal Service and
needs to have this dataset passed to it and return that to the client
application.
Assigning one Dataset to another is a no no!!

Below is the function:
Public Function GetExternalAddr ess(ByVal strPostCode As String) As DataSet
Dim WSAddress As achieveformsrvr .AddySearch
Dim AddressDataSet As New DataSet("Addres s")
Try

AddressDataSet = WSAddress.Retur nProperties(str PostCode)
Catch ex As Exception
Diagnostics.Deb ug.WriteLine(ex .ToString)
End Try
Return AddressDataSet

End Function

Could anyone offer me some suggetions on how this might be achieved. The
client applications is expecting a Web Service Dataset to be returned.

Thanks for any help


Mar 2 '06 #3

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

Similar topics

11
8819
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
1
2183
by: HardBap | last post by:
I've created a strongly typed DataSet (Customers.xsd) using the xsd.exe tool. I want to be able to access fields using ds.Customer.CompanyName. The problem is when I return this DataSet from a Web Service it adds another Table to the DataSet that contains the data. I have to access the data using ds.Tables.Rows.ToString(). This defeats the whole purpose of using a strongly typed DataSet. Thanks in advance for the help.
1
4488
by: Justin Crossley | last post by:
I'm having a type mismatch problem when trying to pass a typed dataset to a web service. My code is: CLIENT CODE I have a dataset schema file called MainData.xsd containing a table called mytable
2
5675
by: Anil Pundhir | last post by:
What is the best way to pass data to a web service. The client(to send data) has .net environment and also the server on which the web service is hosted also has the .net environment. Should I send dataset or an xml which will be created at the client and parsed at the server, in the web service. Which will have a better performance. Thanks,
2
1428
by: Deecrypt | last post by:
Hi, I'm a newbie to the Web Services topic. I have an ASP.NET website and am trying to send a Dataset from it to a WebService which should insert all the data from this DataSet to an Access database. Also I'm working with untyped datasets. I have read some topics in this newsgroup. One suggested to convert the DataSet to a string using ReadXML, send the string to the WebService, create a new Dataset and read the string back into the...
5
7823
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 a WebService is that essentially we are passing an address of an object which resides on the 'local machine' i.e. a local machine object address. Surely when the WebService method is called and run 'on the server', the reference type will be...
1
9010
by: lowlyscrub | last post by:
I have an ASP.NET application that makes 12 different web service calls from a single method call. Each of the web services themselves don't do much more than run a small query (I've run the queries elsewhere and they complete virtually instantaneously) on some database and return a dataset. As it so happens, the 12 calls are split up between 4 different web services on the same server, and the web services themselves are ASP.NET apps...
0
1314
by: =?Utf-8?B?VG9t?= | last post by:
Folks, I need to send a non-strongly typed DataTable as a parameter through my web service to update the database with the user's changes, and need to return it to the user's client app with any changes the database/MT made. Most important: for new records, the client-side ID of "-1" should be replaced with the database's autoincremented identity value. This DataTable exists on the client side as the "parent" table in a DataSet, with...
2
1720
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Have a complex process where I need to Import a large amount of data then run some transformations on this data then import into DataBase. The transformation involves multiple fields and multiple process - so the data needs to be read in 1 record at a time then run thru the transformation that may create new data value then everything is imported into a db to store. I have multiple questions 1)we used to have an internal data structure...
0
9688
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10491
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10247
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10031
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7571
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5467
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5593
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4146
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 we have to send another system
2
3762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.