473,406 Members | 2,698 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,406 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.
Nov 18 '05 #1
1 838
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.

Nov 18 '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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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.