473,394 Members | 1,734 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,394 software developers and data experts.

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(string ticker)

{

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

DataSet

EquityPeerCriteriaSet equityPeerCriteriaSet = new

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

DataSet

equityPeerCriteriaSet.CriteriaType ="Ticker";

equityPeerCriteriaSet.CriteriaValue =m_ticker;
//We're creating the Web Service's proxy object
WebReferences.EquityPeerListService.EquityPeerList MgmtService

equityPeerListService= new

WebReferences.EquityPeerListService.EquityPeerList MgmtService();

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

DataSet from

Dataset DspeerListsSet =

equityPeerListService.GetPeerList(equityPeerCriter iaSet);

....

....

}

Our Web Method looks like this,

[WebMethod]

[TraceExtension]

public DataSet GetPeerList(DataSet dsEquityPeerCriteriaSet)

{

try

{

//Creating an object type of the Business

Layer

EquityPeerListManager equityPeerListManager

=new EquityPeerListManager();

....

....

return peerListsSet.DataSet;

}

catch(Exception ex)

{

SoapException Se = new SoapException

(ex.Message,SoapException.ClientFaultCode,ex.Inner Exception);

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

SoapMessageStage.BeforeDeserialize and SoapMessageStage.AfterDeserialize

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 1441
Did you get help on this?

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"Steven" <no*@moreply.com> wrote in message
news:up**************@TK2MSFTNGP10.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(string ticker)

{

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

DataSet

EquityPeerCriteriaSet equityPeerCriteriaSet = new

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

DataSet

equityPeerCriteriaSet.CriteriaType ="Ticker";

equityPeerCriteriaSet.CriteriaValue =m_ticker;
//We're creating the Web Service's proxy object
WebReferences.EquityPeerListService.EquityPeerList MgmtService

equityPeerListService= new

WebReferences.EquityPeerListService.EquityPeerList MgmtService();

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

DataSet from

Dataset DspeerListsSet =

equityPeerListService.GetPeerList(equityPeerCriter iaSet);

...

...

}

Our Web Method looks like this,

[WebMethod]

[TraceExtension]

public DataSet GetPeerList(DataSet dsEquityPeerCriteriaSet)

{

try

{

//Creating an object type of the Business

Layer

EquityPeerListManager equityPeerListManager

=new EquityPeerListManager();

...

...

return peerListsSet.DataSet;

}

catch(Exception ex)

{

SoapException Se = new SoapException

(ex.Message,SoapException.ClientFaultCode,ex.Inner Exception);

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

SoapMessageStage.BeforeDeserialize and SoapMessageStage.AfterDeserialize

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
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...
1
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...
0
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...
0
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...
5
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...
4
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)...
8
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...
9
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...
1
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\"...
4
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...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.