473,698 Members | 2,192 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Please help urgently.

Hi all

My problem is a little lengthy. But please help me. In my application,
ADO.NET DataSet object is not getting constructed in the Web Service Web

Method called by the Windows Application passing an ADO.NET DataSet Object
as a parameter to the Web Method in Web Service

Debugging using the Soap Extensions, clearly shows that the Serialized
DataSet is passed to the Web Service, but the Web Service Web Method is not
able to construct the ADO.NET DataSet from the Serialized Data.

I am hereby giving a brief overview of what I am doing.

We're developing a WindowsForms based distributed application. All our

WindowsForms clients connect to the business components layers using Web

Service. Therefore, the front-end only talks to the Web Service and Web

Service calls the Business and Data Layer components. Since the Web Service

Layer acts as a gateway between the WindowsForms clients and the business

components, We pass all the data using DataSets.

Here is the code snippet,

private void LoadGroup(strin g ticker)

{

//We're creating an object of a stronly typed

DataSet

EquityPeerCrite riaSet equityPeerCrite riaSet = new

EquityPeerCrite riaSet();
//We're setting the properties of the strongly typed

DataSet

equityPeerCrite riaSet.Criteria Type ="Ticker";

equityPeerCrite riaSet.Criteria Value =m_ticker;
//We're creating the Web Service's proxy object
WebReferences.E quityPeerListSe rvice.EquityPee rListMgmtServic e

equityPeerListS ervice= new

WebReferences.E quityPeerListSe rvice.EquityPee rListMgmtServic e();

//We're calling the web method and passing the

DataSet from

Dataset DspeerListsSet =

equityPeerListS ervice.GetPeerL ist(equityPeerC riteriaSet);

....

....

}

Our Web Method looks like this,

[WebMethod]

[TraceExtension]

public DataSet GetPeerList(Dat aSet dsEquityPeerCri teriaSet)

{

try

{

//Creating an object type of the Business

Layer

EquityPeerListM anager equityPeerListM anager

=new EquityPeerListM anager();

....

....

return peerListsSet.Da taSet;

}

catch(Exception ex)

{

SoapException Se = new SoapException

(ex.Message,Soa pException.Clie ntFaultCode,ex. InnerException) ;

throw Se;

}

}

The problem is that, the DataSet object comes as undefined when entering the

Web Method. We've also created a SOAP Extension class and debugged the SOAP

message chain. The data is present in both

SoapMessageStag e.BeforeDeseria lize and SoapMessageStag e.AfterDeserial ize

stages and we're able to see the data in the log file.

This behavior looks very strange. If you can provide a pointer, that would

help us a lot.

Thanks and appreciate your response.

Thanks again.
Jul 21 '05 #1
1 1467
Did you get help on this?

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Steven" <no*@moreply.co m> wrote in message
news:up******** ******@TK2MSFTN GP10.phx.gbl...
Hi all

My problem is a little lengthy. But please help me. In my application,
ADO.NET DataSet object is not getting constructed in the Web Service Web

Method called by the Windows Application passing an ADO.NET DataSet Object
as a parameter to the Web Method in Web Service

Debugging using the Soap Extensions, clearly shows that the Serialized
DataSet is passed to the Web Service, but the Web Service Web Method is not able to construct the ADO.NET DataSet from the Serialized Data.

I am hereby giving a brief overview of what I am doing.

We're developing a WindowsForms based distributed application. All our

WindowsForms clients connect to the business components layers using Web

Service. Therefore, the front-end only talks to the Web Service and Web

Service calls the Business and Data Layer components. Since the Web Service
Layer acts as a gateway between the WindowsForms clients and the business

components, We pass all the data using DataSets.

Here is the code snippet,

private void LoadGroup(strin g ticker)

{

//We're creating an object of a stronly typed

DataSet

EquityPeerCrite riaSet equityPeerCrite riaSet = new

EquityPeerCrite riaSet();
//We're setting the properties of the strongly typed

DataSet

equityPeerCrite riaSet.Criteria Type ="Ticker";

equityPeerCrite riaSet.Criteria Value =m_ticker;
//We're creating the Web Service's proxy object
WebReferences.E quityPeerListSe rvice.EquityPee rListMgmtServic e

equityPeerListS ervice= new

WebReferences.E quityPeerListSe rvice.EquityPee rListMgmtServic e();

//We're calling the web method and passing the

DataSet from

Dataset DspeerListsSet =

equityPeerListS ervice.GetPeerL ist(equityPeerC riteriaSet);

...

...

}

Our Web Method looks like this,

[WebMethod]

[TraceExtension]

public DataSet GetPeerList(Dat aSet dsEquityPeerCri teriaSet)

{

try

{

//Creating an object type of the Business

Layer

EquityPeerListM anager equityPeerListM anager

=new EquityPeerListM anager();

...

...

return peerListsSet.Da taSet;

}

catch(Exception ex)

{

SoapException Se = new SoapException

(ex.Message,Soa pException.Clie ntFaultCode,ex. InnerException) ;

throw Se;

}

}

The problem is that, the DataSet object comes as undefined when entering the
Web Method. We've also created a SOAP Extension class and debugged the SOAP
message chain. The data is present in both

SoapMessageStag e.BeforeDeseria lize and SoapMessageStag e.AfterDeserial ize

stages and we're able to see the data in the log file.

This behavior looks very strange. If you can provide a pointer, that would

help us a lot.

Thanks and appreciate your response.

Thanks again.

Jul 21 '05 #2

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

Similar topics

2
2009
by: KK | last post by:
Hi Peoples, Can anyone give me any learning materials for learning C++. i.e. can you give me any docs or give me the link to any website that has info on programming in general or C++. (ok I know I could go to a library and read books on C++ but looking for something urgently.)
1
1613
by: Kelly G. | last post by:
I need to register a Vb DLL under restricted acess privilages please provide me a solution. Here is the complete issue: I building a MSI using Vs.net ,One of the Dll's is Vb Component ( A shim component basically) , Our application has to install both with Administrative privialges and restricted user privilages . The actual problem is that of registering this dll ,Since it tries to register under Hkey_local_machine ,But under...
0
1060
by: Calvin KD | last post by:
Hi everyone, I need help urgently. I have a C#.Net app which uses cookies for state management (since we've gone away from Session for fear of webfarm and we haven't found the need for SQL Server to be used for this purpose yet). Recently we've expanded the app and a few more screens were added and quite a few more cookies were required to hold data across pages. Now i just found that at one specific spot, when clicking the button, using...
0
1027
by: Calvin KD | last post by:
Hi everyone, I need help urgently. I have a C#.Net app which uses cookies for state management. Everything has been going fine until recently we've expanded the app and a few more screens were added and quite a few more cookies were required to hold data across pages. Now i just found that at one specific spot, when clicking the button, using Response.Redirect("abc.aspx", false) to go to the abc.aspx page. As soon as the the click event...
5
1564
by: uanmi | last post by:
There is a patch to upgrade UAB2 to dotnet 2 on gotdotnet But, as normal, there are no instructions on what to do to patch the Microsoft UAB 2 install. Can Microsoft please upgrade their UAB2 installer to support dotnet 2 now. I really need help urgently as I am completely lost due to the changes that I'm expected to use a crystal ball to understand.
4
2817
by: Joonshik Kim | last post by:
I was trying to define 3d array with pointer to pointer. I wrote like following. int ***d; nx = 3; ny = 5; nz = 4; d = (int ***)malloc((int) nx*sizeof(int **)); *d = (int **)malloc((int) nx*ny*sizeof(int*));
8
1583
by: ukwa | last post by:
I have these codes that are supposed to load control arrays (days of week), there is only one textbox visible at design time, but I want to use control array to initialize the other six textboxes in order to display (Monday-Sunday) according to local system settings. But when I compile it only shows the error message and when i click OK, it then shows the form with the number "70" on it. Please could anyone help me figure out what might be...
9
3047
by: deaconj999 | last post by:
Hi All, I am using this unbound to add the frequency to a date entered =IIf(="HIGH - annual",+365,IIf(="MED - 3 yearly",+1095,IIf(="LOW - 5 yearly",+1825,IIf(="N/ A",Date())))) but would rather it take into account the leap year, I am using the medium date format in my database, I would rather not mess about
1
1209
by: dillipb | last post by:
Please Reply Urgently In the given string '<object width=\"425\" height=\"350\"><param name=\"movie\" value=\"http://www.youtube.com/v/${5}\"></param><param name=\"wmode\" value=\"transparent\"></param><embed src=\"http://www.youtube.com/v/${5}\" type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"425\" height=\"350\"></embed></object>' how to find the parameter v which is present in http://www.youtube.com/v/
4
3139
by: ssniit | last post by:
Please can anyone help me with d programs in C for treat the matter most urgent please please please please .................................! CPU scheduling: WAP to show FCFS scheduling algorithm. WAP to show SJF scheduling algorithm. WAP to show Priority scheduling algorithm. WAP to show Round-Robin scheduling algorithm. disk scheduling:
0
8674
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
9157
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...
0
9026
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6518
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
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3045
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
2328
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.