Web Service and Web app

C

CsaaGuy

I have a need to pass a string and a datatable from a web service to a
web application in IIS. Does anyone have a suggestion on this.

Thanks.
 
M

Michael Nemtsev [MVP]

Hello CsaaGuy,

why u can't just request this info from your webservice?

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


C> I have a need to pass a string and a datatable from a web service to
C> a web application in IIS. Does anyone have a suggestion on this.
C>
C> Thanks.
C>
 
C

CsaaGuy

Hello CsaaGuy,

why u can't just request this info from your webservice?

---
WBR,
Michael  Nemtsev [.NET/C# MVP] :: blog:http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

C> I have a need to pass a string and a datatable from a web service to
C> a web application in IIS. Does anyone have a suggestion on this.
C>
C> Thanks.
C>

I make the web service call back to the calling web application, then
i call the url. The web service is basically setting variables for the
web appliation to use later when its called. Not sure i understand the
request suggestion with this in mind.
 
M

Michael Nemtsev [MVP]

Hello CsaaGuy,


C> I make the web service call back to the calling web application, then
C> i call the url. The web service is basically setting variables for
C> the web appliation to use later when its called. Not sure i
C> understand the request suggestion with this in mind.

could your explain this in details. How u do the call to site from WS and
set variables?

as I understand u are doing screen scraping or u set variables via URL?

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
 
C

CsaaGuy

Hello CsaaGuy,

C> I make the web service call back to the calling web application, then
C> i call the url. The web service is basically setting variables for
C> the web appliation to use later when its called. Not sure i
C> understand the request suggestion with this in mind.

could your explain this in details. How u do the call to site from WS and
set variables?

as I understand u are doing screen scraping or u set variables via URL?

---
WBR,
Michael  Nemtsev [.NET/C# MVP] :: blog:http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

Actually what we want to do is use a web service to set the datasource
and report path of an ms report viewer so that it can be called from a
url. We could use ms reporting services but the remote .rdl does not
allow you to decouple the data from the report format like the local
report version does. I did get it to work by calling our report url
and passing in the report name, however this approach has the report
server calling the data server not the client. what we are trying to
acheive is having the client call the data server and pass the data
and the report name to the report server. I don't know how to pass the
data to the report server by an url approach (i don't think its
possible). So I was trying to set them with a web service.

Thanks.
 
M

Michael Nemtsev [MVP]

Hello CsaaGuy,

C> Actually what we want to do is use a web service to set the
C> datasource and report path of an ms report viewer so that it can be
C> called from a url. We could use ms reporting services but the remote
C> .rdl does not allow you to decouple the data from the report format
C> like the local report version does. I did get it to work by calling
C> our report url and passing in the report name, however this approach
C> has the report server calling the data server not the client. what we
C> are trying to acheive is having the client call the data server and
C> pass the data and the report name to the report server. I don't know
C> how to pass the data to the report server by an url approach (i don't
C> think its possible). So I was trying to set them with a web service.


Ok. What u need to do is to provide the method on server, which will return
only data necessary to show the report. Not the report itsefl
After that from you client code you call your server data (via code behind,
or using javascrip and transfering data in JSON format). Doing thing u will
have the real data on your side which u can use to build your report.

For example u can use JS (on client) + WCF (on server) to call wcf methods
directly from javascript.

But u need to have separate method on server which returns u all necessary
data, u can't extract data from the generated and shown report



---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
 
C

CsaaGuy

Hello CsaaGuy,

C> Actually what we want to do is use a web service to set the
C> datasource and report path of an ms report viewer so that it can be
C> called from a url. We could use ms reporting services but the remote
C> .rdl does not allow you to decouple the data from the report format
C> like the local report version does. I did get it to work by calling
C> our report url and passing in the report name, however this approach
C> has the report server calling the data server not the client. what we
C> are trying to acheive is having the client call the data server and
C> pass the data and the report name to the report server. I don't know
C> how to pass the data to the report server by an url approach (i don't
C> think its possible). So I was trying to set them with a web service.

Ok. What u need to do is to provide the method on server, which will return
only data necessary to show the report. Not the report itsefl
After that from you client code you call your server data (via code behind,
or using javascrip and transfering data in JSON format). Doing thing u will
have the real data on your side which u can use to build your report.

For example u can use JS (on client) + WCF (on server) to call wcf methods
directly from javascript.

But u need to have separate method on server which returns u all necessary
data, u can't extract data from the generated and shown report

---
WBR,
Michael  Nemtsev [.NET/C# MVP] :: blog:http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

I don't think we want to use javascript at this point. I'm not sure
when you refer to the 'server' i know what server your talking to. We
have a report server and a data server and the client browser. We want
the client to retrieve the data and pass the report they want to run
and the data to the report server. When you say you can get all the
data for the report, i dont' know what kind of data that is. Sorry
don't need to be dense here.

Thanks for the help.
 
C

claritymedispa

I don't think we want to use javascript at this point. I'm not sure
when you refer to the 'server' i know what server your talking to. We
have a report server and a data server and the client browser. We want
the client to retrieve the data and pass the report they want to run
and the data to the report server.  When you say you can get all the
data for the report, i dont' know what kind of data that is. Sorry
don't need to be dense here.

Thanks for the help.- Hide quoted text -

- Show quoted text -

can't you just return DataTable (XML "stream") from Web service, and
display it in GridView in Web Application?


...more at http://www.siccolo.com/articles.asp...
 
C

CsaaGuy

Hello CsaaGuy,
C> Actually what we want to do is use a web service to set the
C> datasource and report path of an ms report viewer so that it can be
C> called from a url. We could use ms reporting services but the remote
C> .rdl does not allow you to decouple the data from the report format
C> like the local report version does. I did get it to work by calling
C> our report url and passing in the report name, however this approach
C> has the report server calling the data server not the client. what we
C> are trying to acheive is having the client call the data server and
C> pass the data and the report name to the report server. I don't know
C> how to pass the data to the report server by an url approach (i don't
C> think its possible). So I was trying to set them with a web service..
Ok. What u need to do is to provide the method on server, which will return
only data necessary to show the report. Not the report itsefl
After that from you client code you call your server data (via code behind,
or using javascrip and transfering data in JSON format). Doing thing u will
have the real data on your side which u can use to build your report.
For example u can use JS (on client) + WCF (on server) to call wcf methods
directly from javascript.
But u need to have separate method on server which returns u all necessary
data, u can't extract data from the generated and shown report
---
WBR,
Michael  Nemtsev [.NET/C# MVP] :: blog:http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
I don't think we want to use javascript at this point. I'm not sure
when you refer to the 'server' i know what server your talking to. We
have a report server and a data server and the client browser. We want
the client to retrieve the data and pass the report they want to run
and the data to the report server.  When you say you can get all the
data for the report, i dont' know what kind of data that is. Sorry
don't need to be dense here.
Thanks for the help.- Hide quoted text -
- Show quoted text -

can't you just return DataTable (XML "stream") from Web service, and
display it in GridView in Web Application?

...more athttp://www.siccolo.com/articles.asp...- Hide quoted text -

- Show quoted text -

Thats an interesting idea but i'm not sure my boss would go for that.
we are looking to use the local report viewer from ms reporting
services.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top