473,399 Members | 3,888 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

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 GetExternalAddress(ByVal strPostCode As String) As DataSet
Dim WSAddress As achieveformsrvr.AddySearch
Dim AddressDataSet As New DataSet("Address")
Try

AddressDataSet = WSAddress.ReturnProperties(strPostCode)
Catch ex As Exception
Diagnostics.Debug.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 1269
"DB" <DB@discussions.microsoft.com> wrote in message
news:02**********************************@microsof t.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 GetExternalAddress(ByVal strPostCode As String) As DataSet
Dim WSAddress As achieveformsrvr.AddySearch
Dim AddressDataSet As New DataSet("Address")
Try

AddressDataSet = WSAddress.ReturnProperties(strPostCode)
Catch ex As Exception
Diagnostics.Debug.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
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
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...
1
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...
2
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...
2
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...
5
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...
1
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...
0
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...
2
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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,...
0
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...
0
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.