Showing posts with label app. Show all posts
Showing posts with label app. Show all posts

Saturday, March 31, 2012

web server folder security

My ASP.Net app need write permission for a folder on the
web server. What confuses me is that I can only make it
work if I give it write permission to the server machine's
Users group. It doesn't work if I give the same permission
to the IUSR_<machine name> user. It's been my
understanding all along that it is the IUSR_<machine name>
running the web server process. Now I am lot. Can someone
explain it to me?

Thanks

fengI believe asp.net runs under the ASPNET user by default. Try giving that
user only rights.

"feng" <anonymous@.discussions.microsoft.com> wrote in message
news:2483701c45fa7$e1ecb4a0$a301280a@.phx.gbl...
> My ASP.Net app need write permission for a folder on the
> web server. What confuses me is that I can only make it
> work if I give it write permission to the server machine's
> Users group. It doesn't work if I give the same permission
> to the IUSR_<machine name> user. It's been my
> understanding all along that it is the IUSR_<machine name>
> running the web server process. Now I am lot. Can someone
> explain it to me?
> Thanks
> feng
It really depends on what you are doing. IUSR_MachineName is the anonymous
account. If you are truly running a process on behest of the anonymous user,
give IUSR_MachineName rights. In traditional ASP, IUSR_MachineName was a bit
more of a king.

In ASP .NET, there are some other accounts created to run behind the scenes
processes. For example, you have an ASPNET machine account. This account is
where much of the code runs (as well as the worker process). Giving this
account access is often more important than IUSR_MachineName.

I won't even mention IWAM_MachineName right now, as it could get a bit too
deep.

NOTE: ASPNET is a User, which is why giving access to Users works.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
"feng" <anonymous@.discussions.microsoft.com> wrote in message
news:2483701c45fa7$e1ecb4a0$a301280a@.phx.gbl...
> My ASP.Net app need write permission for a folder on the
> web server. What confuses me is that I can only make it
> work if I give it write permission to the server machine's
> Users group. It doesn't work if I give the same permission
> to the IUSR_<machine name> user. It's been my
> understanding all along that it is the IUSR_<machine name>
> running the web server process. Now I am lot. Can someone
> explain it to me?
> Thanks
> feng

web server folder security

My ASP.Net app need write permission for a folder on the
web server. What confuses me is that I can only make it
work if I give it write permission to the server machine's
Users group. It doesn't work if I give the same permission
to the IUSR_<machine name> user. It's been my
understanding all along that it is the IUSR_<machine name>
running the web server process. Now I am lot. Can someone
explain it to me?
Thanks
fengI believe asp.net runs under the ASPNET user by default. Try giving that
user only rights.
"feng" <anonymous@.discussions.microsoft.com> wrote in message
news:2483701c45fa7$e1ecb4a0$a301280a@.phx
.gbl...
> My ASP.Net app need write permission for a folder on the
> web server. What confuses me is that I can only make it
> work if I give it write permission to the server machine's
> Users group. It doesn't work if I give the same permission
> to the IUSR_<machine name> user. It's been my
> understanding all along that it is the IUSR_<machine name>
> running the web server process. Now I am lot. Can someone
> explain it to me?
> Thanks
> feng
It really depends on what you are doing. IUSR_MachineName is the anonymous
account. If you are truly running a process on behest of the anonymous user,
give IUSR_MachineName rights. In traditional ASP, IUSR_MachineName was a bit
more of a king.
In ASP .NET, there are some other accounts created to run behind the scenes
processes. For example, you have an ASPNET machine account. This account is
where much of the code runs (as well as the worker process). Giving this
account access is often more important than IUSR_MachineName.
I won't even mention IWAM_MachineName right now, as it could get a bit too
deep.
NOTE: ASPNET is a User, which is why giving access to Users works.
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
****************************************
********
Think Outside the Box!
****************************************
********
"feng" <anonymous@.discussions.microsoft.com> wrote in message
news:2483701c45fa7$e1ecb4a0$a301280a@.phx
.gbl...
> My ASP.Net app need write permission for a folder on the
> web server. What confuses me is that I can only make it
> work if I give it write permission to the server machine's
> Users group. It doesn't work if I give the same permission
> to the IUSR_<machine name> user. It's been my
> understanding all along that it is the IUSR_<machine name>
> running the web server process. Now I am lot. Can someone
> explain it to me?
> Thanks
> feng

Wednesday, March 28, 2012

Web Server Specifications for ASP.NET APP!

HI ALL!!

We are in the process of purchasing a new webserver for an event we are holding and was wondering if any of you guysknow if there is some sort of formula or guideline we should follow tohelp determine the specifications of the server we will require.

Theevent held will server 350 - 400 delegates who will access an internalwebsite with 5GB of documents (thousend odd doc, xls, ppt files) usingtheir laptops and a number of wireless hotspots throughout the eventbuilding. The server will be a Windows Server 2003 based plateform (maybe WebServer Edition) running IIS6.

I've been searching theinternet and microsoft sites but can't seem to find a definate documentthat will tell me how to determine the server spec required based onthe a 350 concurrent user and 5GB of documents assumption ...

Please help... :o|

You can find some suggestions here:

http://www.windowsitpro.com/Article/ArticleID/14147/14147.html?Ad=1

Web Server Specifications for ASP.NET APP!

HI ALL!!

We are in the process of purchasing a new web server for an event we
are holding and was wondering if any of you guys know if there is some
sort of formula or guideline we should follow to help determine the
specifications of the server we will require.

The event held will server 350 - 400 delegates who will access an
internal website with 5GB of documents (thousend odd doc, xls, ppt
files) using their laptops and a number of wireless hotspots throughout
the event building. The server will be a Windows Server 2003 based
plateform (maybe WebServer Edition) running IIS6.

I've been searching the internet and microsoft sites but can't seem to
find a definate document that will tell me how to determine the server
spec required based on the a 350 concurrent user and 5GB of documents
assumption ...

Please help... :o|That amount iof delegates should not task any decent server calss machine
with a gig of RAM. If you have 350 - 400 delegates you are unliekly to get
350 concurrent request, unless they all decide to download docs at the same
time. I would estimate you would have maybe 50 concurrent requests at your
absolute busiest time, if that.

"Freelancer_To-Go" wrote:

Quote:

Originally Posted by

HI ALL!!
>
We are in the process of purchasing a new web server for an event we
are holding and was wondering if any of you guys know if there is some
sort of formula or guideline we should follow to help determine the
specifications of the server we will require.
>
The event held will server 350 - 400 delegates who will access an
internal website with 5GB of documents (thousend odd doc, xls, ppt
files) using their laptops and a number of wireless hotspots throughout
the event building. The server will be a Windows Server 2003 based
plateform (maybe WebServer Edition) running IIS6.
>
I've been searching the internet and microsoft sites but can't seem to
find a definate document that will tell me how to determine the server
spec required based on the a 350 concurrent user and 5GB of documents
assumption ...
>
Please help... :o|
>
>


That amount iof delegates should not task any decent server calss machine

Quote:

Originally Posted by

with a gig of RAM. If you have 350 - 400 delegates you are unliekly to get
350 concurrent request, unless they all decide to download docs at the same
time. I would estimate you would have maybe 50 concurrent requests at your
absolute busiest time, if that.


Also, if you're just serving static files (word docs etc) and there isn't
any server side processing such as ASP.NET pages talking to SQL Server or the
like then it probably won't need that much power behind it. I wouldn't begin
to give a full spec on processor power, but as clickon said you probably
wouldn't need much more than a gig of RAM to keep the operating system happy.
I doubt you'll bother IIS that much.

web service

Hi,

I am using web method in my web app by using web reference.

It works fine when in debug mode.

It fails when testing a published version.

error message is: The remote name could not be resolved: 'ws.mysite.net'

Is there any issue when publishing project?

Do I need to do something different while publishing web project that uses web service reference.

Thanks,

Vaibhav

Open the web.config file and change the location of the WebService URL. that should solve the issue.

Hope this helps...


Unfortunately, this didn't help me. Any other input?

Thanks,

Vaibhav


This must be the issue of the proxy server. Please ensure that the server does not require any kind of authentication like telnet. Also add entry in the machine.config for your application under Default proxy tag.

hope this helps

Regards,

Suhas


Hi,

Entry in machine.config solved problem.

I added a sectiongroup in it i.e. same lines copied from web.config to machine.config for web url.

Thanks,

Vaibhav

Web Service - get remote machine/network parameters

I know that writing ASPX app we easily can get all required information
about remote machine and network right from the user's browser using this
request:

NameValueCollection coll = Request.ServerVariables;

But what if we write a Web Service? What can we do in this case? How can we
get the remote machine IP and the HostName for example? Do we have any way
that can be used from the Web Service for that? I know that I probably can
get the same info at the remote machine and send it to the Web Service for
logging, but actually it's always easy, because some of the clients are
working from their LANs and the real IP exposed by their Internet Providers
is hard to be received.

The question - how can we get a reliable information about remote network,
user, machine, etc?

Just D.What if you try:

HttpContext.Current.Request.ServerVariables.ToStri ng();

Does that work?

Kind regards,
Nikander & Margriet Bruggeman

"Just D." wrote:

> I know that writing ASPX app we easily can get all required information
> about remote machine and network right from the user's browser using this
> request:
> NameValueCollection coll = Request.ServerVariables;
> But what if we write a Web Service? What can we do in this case? How can we
> get the remote machine IP and the HostName for example? Do we have any way
> that can be used from the Web Service for that? I know that I probably can
> get the same info at the remote machine and send it to the Web Service for
> logging, but actually it's always easy, because some of the clients are
> working from their LANs and the real IP exposed by their Internet Providers
> is hard to be received.
> The question - how can we get a reliable information about remote network,
> user, machine, etc?
> Just D.
>
>
yeah it will work definately...

From http://www.google.co.in/search?hl=en&q="HttpContext.Current.Request.ServerVariables().tost ring"&btnG=Search&meta=

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com
yeah it will work definately...

From http://www.google.co.in/search?hl=en&q="HttpContext.Current.Request.ServerVariables().tost ring"&btnG=Search&meta=

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com

Web Service - get remote machine/network parameters

I know that writing ASPX app we easily can get all required information
about remote machine and network right from the user's browser using this
request:
NameValueCollection coll = Request.ServerVariables;
But what if we write a Web Service? What can we do in this case? How can we
get the remote machine IP and the HostName for example? Do we have any way
that can be used from the Web Service for that? I know that I probably can
get the same info at the remote machine and send it to the Web Service for
logging, but actually it's always easy, because some of the clients are
working from their LANs and the real IP exposed by their Internet Providers
is hard to be received.
The question - how can we get a reliable information about remote network,
user, machine, etc?
Just D.What if you try:
HttpContext.Current.Request.ServerVariables.ToString();
Does that work?
Kind regards,
Nikander & Margriet Bruggeman
"Just D." wrote:

> I know that writing ASPX app we easily can get all required information
> about remote machine and network right from the user's browser using this
> request:
> NameValueCollection coll = Request.ServerVariables;
> But what if we write a Web Service? What can we do in this case? How can w
e
> get the remote machine IP and the HostName for example? Do we have any way
> that can be used from the Web Service for that? I know that I probably can
> get the same info at the remote machine and send it to the Web Service for
> logging, but actually it's always easy, because some of the clients are
> working from their LANs and the real IP exposed by their Internet Provider
s
> is hard to be received.
> The question - how can we get a reliable information about remote network,
> user, machine, etc?
> Just D.
>
>
>

Monday, March 26, 2012

Web Service and Web app

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.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>
On Feb 20, 4:04=A0pm, Michael Nemtsev [MVP] <nemt...@.msn.com> wrote:
> Hello CsaaGuy,
> why u can't just request this info from your webservice?
> --
> WBR,
> Michael =A0Nemtsev [.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=[/color
]
> 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.
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
On Feb 20, 8:43=A0pm, Michael Nemtsev [MVP] <nemt...@.msn.com> wrote:
> 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 =A0Nemtsev [.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=[/color
]
> 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.
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
On Feb 21, 1:57=A0pm, Michael Nemtsev [MVP] <nemt...@.msn.com> wrote:
> 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 retur=[/color
]
n
> 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=[/color
]
,
> or using javascrip and transfering data in JSON format). Doing thing u wil=[/color
]
l
> 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=[/color
]
> directly from javascript.
> But u need to have separate method on server which returns u all necessary=[/color
]
> data, u can't extract data from the generated and shown report
> --
> WBR,
> Michael =A0Nemtsev [.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=[/color
]
> 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.
On Feb 21, 4:34=A0pm, CsaaGuy <ross_sm...@.csaa.com> wrote:
> On Feb 21, 1:57=A0pm, Michael Nemtsev [MVP] <nemt...@.msn.com> wrote:
>
>
>
>
>
urn
nd,
ill
>
ds
>
ry
>
>
we
> 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. =A0When 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?
=2E..more at http://www.siccolo.com/articles.asp...
On Feb 21, 5:48=A0pm, claritymedi...@.gmail.com wrote:
> On Feb 21, 4:34=A0pm, CsaaGuy <ross_sm...@.csaa.com> wrote:
>
>
>
>
>
e
h
we
w
't
.
>
eturn
hind,
will
>
hods
>
sary
>
r
>
d we
>
>
>
> 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.

web service authentication with active directory

hi!!
i have a windows app that uses web serivces to access data and i use
integrated windows to authenticate.
is it a way to authenticate with users in active directory ?
and how do i do that ?There is already a sample available in Quickstart guide...
http://samples.gotdotnet.com/quicks...reservices.aspx
Regards
Jignesh Desai
www.dotnetjini.com
"Geir Sanne" <GeirSanne@.discussions.microsoft.com> wrote in message
news:749DAF3F-6165-4699-B554-6D6E82DE52A0@.microsoft.com...
> hi!!
> i have a windows app that uses web serivces to access data and i use
> integrated windows to authenticate.
> is it a way to authenticate with users in active directory ?
> and how do i do that ?
hi!!
i tried the guide, but it didnt help me.
ive tried to use WSE and the UsernameTokenManager.
This works fine, except that if i dont pass any UsernameToken to the service
the user is acceptet. You know how to make the webservice call the
UsernameTokenManager even if a UsernameToken isnt passed ?
regards
geir sanne
"Jignesh Desai" wrote:

> There is already a sample available in Quickstart guide...
> http://samples.gotdotnet.com/quicks...reservices.aspx
> Regards
> Jignesh Desai
> www.dotnetjini.com
>

web service authentication with active directory

hi!!

i have a windows app that uses web serivces to access data and i use
integrated windows to authenticate.
is it a way to authenticate with users in active directory ?
and how do i do that ?There is already a sample available in Quickstart guide...

http://samples.gotdotnet.com/quicks...reservices.aspx

Regards
Jignesh Desai
www.dotnetjini.com

"Geir Sanne" <GeirSanne@.discussions.microsoft.com> wrote in message
news:749DAF3F-6165-4699-B554-6D6E82DE52A0@.microsoft.com...
> hi!!
> i have a windows app that uses web serivces to access data and i use
> integrated windows to authenticate.
> is it a way to authenticate with users in active directory ?
> and how do i do that ?
hi!!

i tried the guide, but it didnt help me.

ive tried to use WSE and the UsernameTokenManager.
This works fine, except that if i dont pass any UsernameToken to the service
the user is acceptet. You know how to make the webservice call the
UsernameTokenManager even if a UsernameToken isnt passed ?

regards
geir sanne

"Jignesh Desai" wrote:

> There is already a sample available in Quickstart guide...
> http://samples.gotdotnet.com/quicks...reservices.aspx
> Regards
> Jignesh Desai
> www.dotnetjini.com
>

Web Service Compression when ASP.NET is Consuming

Hi all, I'm familiar with web service compression and how to implement
it in a Winforms app. What I'm trying to figure out how to do at this
point is how to consume the service from an ASP.NET page. I've surfed
around quite a bit looking for an answer to this, but most of the stuff
I'm seeing is either talking about consuming from a Winforms app or
enabling web compression for ASPX pages to the user's browser.

Here's our setup: We have two servers. One of them is the ASP.NET
application, which is what the users are accessing. The second server
only hosts the web service that the ASP.NET app is calling. We're
going to have a respectable amount of requests from the ASP.NET
application the web service, so we want to enable web compression
through GZip to minimize bandwidth between them. On the server hosting
the web server we have installed a third-party application which gives
us more advanced support for GZipped compressed requests/responses (the
main reason we went with it is for the reports and monitoring tools it
comes with). We are only interested in enabling compression between
the web server and the web service server, NOT between the web server
and the user's browser.

So at this point, I'm not exactly sure of what to do on the ASP.NET
application's end of things; since it's running through IIS, can I
simply tell it to request the compressed response and expect that it'll
know how to decode the response?

Or do we have to code to tell the ASP.NET application to insert the
GZip header in the request and then make a SoapInputFilter to handle
the response (exactly like a Winforms app)?

Thanks in advance for any help!the webservice call from asp.net is the same as one for winforms (same
code). you will have to do the same work.

-- bruce (sqlwork.com)

"Andy" <rew190@.gmail.comwrote in message
news:1161194345.291523.243540@.b28g2000cwb.googlegr oups.com...

Quote:

Originally Posted by

Hi all, I'm familiar with web service compression and how to implement
it in a Winforms app. What I'm trying to figure out how to do at this
point is how to consume the service from an ASP.NET page. I've surfed
around quite a bit looking for an answer to this, but most of the stuff
I'm seeing is either talking about consuming from a Winforms app or
enabling web compression for ASPX pages to the user's browser.
>
Here's our setup: We have two servers. One of them is the ASP.NET
application, which is what the users are accessing. The second server
only hosts the web service that the ASP.NET app is calling. We're
going to have a respectable amount of requests from the ASP.NET
application the web service, so we want to enable web compression
through GZip to minimize bandwidth between them. On the server hosting
the web server we have installed a third-party application which gives
us more advanced support for GZipped compressed requests/responses (the
main reason we went with it is for the reports and monitoring tools it
comes with). We are only interested in enabling compression between
the web server and the web service server, NOT between the web server
and the user's browser.
>
So at this point, I'm not exactly sure of what to do on the ASP.NET
application's end of things; since it's running through IIS, can I
simply tell it to request the compressed response and expect that it'll
know how to decode the response?
>
Or do we have to code to tell the ASP.NET application to insert the
GZip header in the request and then make a SoapInputFilter to handle
the response (exactly like a Winforms app)?
>
Thanks in advance for any help!
>

Web Service Compression when ASP.NET is Consuming

Hi all, I'm familiar with web service compression and how to implement
it in a Winforms app. What I'm trying to figure out how to do at this
point is how to consume the service from an ASP.NET page. I've surfed
around quite a bit looking for an answer to this, but most of the stuff
I'm seeing is either talking about consuming from a Winforms app or
enabling web compression for ASPX pages to the user's browser.
Here's our setup: We have two servers. One of them is the ASP.NET
application, which is what the users are accessing. The second server
only hosts the web service that the ASP.NET app is calling. We're
going to have a respectable amount of requests from the ASP.NET
application the web service, so we want to enable web compression
through GZip to minimize bandwidth between them. On the server hosting
the web server we have installed a third-party application which gives
us more advanced support for GZipped compressed requests/responses (the
main reason we went with it is for the reports and monitoring tools it
comes with). We are only interested in enabling compression between
the web server and the web service server, NOT between the web server
and the user's browser.
So at this point, I'm not exactly sure of what to do on the ASP.NET
application's end of things; since it's running through IIS, can I
simply tell it to request the compressed response and expect that it'll
know how to decode the response?
Or do we have to code to tell the ASP.NET application to insert the
GZip header in the request and then make a SoapInputFilter to handle
the response (exactly like a Winforms app)?
Thanks in advance for any help!the webservice call from asp.net is the same as one for winforms (same
code). you will have to do the same work.
-- bruce (sqlwork.com)
"Andy" <rew190@.gmail.com> wrote in message
news:1161194345.291523.243540@.b28g2000cwb.googlegroups.com...
> Hi all, I'm familiar with web service compression and how to implement
> it in a Winforms app. What I'm trying to figure out how to do at this
> point is how to consume the service from an ASP.NET page. I've surfed
> around quite a bit looking for an answer to this, but most of the stuff
> I'm seeing is either talking about consuming from a Winforms app or
> enabling web compression for ASPX pages to the user's browser.
> Here's our setup: We have two servers. One of them is the ASP.NET
> application, which is what the users are accessing. The second server
> only hosts the web service that the ASP.NET app is calling. We're
> going to have a respectable amount of requests from the ASP.NET
> application the web service, so we want to enable web compression
> through GZip to minimize bandwidth between them. On the server hosting
> the web server we have installed a third-party application which gives
> us more advanced support for GZipped compressed requests/responses (the
> main reason we went with it is for the reports and monitoring tools it
> comes with). We are only interested in enabling compression between
> the web server and the web service server, NOT between the web server
> and the user's browser.
> So at this point, I'm not exactly sure of what to do on the ASP.NET
> application's end of things; since it's running through IIS, can I
> simply tell it to request the compressed response and expect that it'll
> know how to decode the response?
> Or do we have to code to tell the ASP.NET application to insert the
> GZip header in the request and then make a SoapInputFilter to handle
> the response (exactly like a Winforms app)?
> Thanks in advance for any help!
>

Web Service created using 2003/2005 then access using PHP

We are having issues using a Web Service created in 2003/2005 when writing a PHP web app.
Is there anything special that needs to be done to allow PHP to use .NET web services?
WokaThe rrr we are getting is "request format is unrecognized"
Woka
You need to find the machine.config file on the web server and edit it and unremark the Post and Get bits.

<Protocols>
<add name="HttpSoap1.2"/>
<add name="HttpSoap"/>
<!--<add name="HttpPost"/>-->
<!--<add name="HttpGet"/>-->
<add name="HttpPostLocalhost" />
<add name="Documentation"/>
</protocols>

Thanks to Mike Hilder for this.
http://www.vbforums.com/showthread.php?t=283207

Woka
If you want,

SOAP for PHP (pear.php.net/package/SOAP)

Thursday, March 22, 2012

web service reference

I have a web app that is referencing several web services. When I make a change to a web service (add, modify a method), I have to 'Add Web Reference' for the changes to take affect. If I do 'Update web reference' the web app does not see the web service changes.

The web services are on the same box as I'm developing on, the .wsdl files are pointing to the correct location, but the changes aren't happening unless I do 'Add Web Reference'.

Does anyone have or had this same issue? If so how did you resolve it?"Mike" <Mike@.community.nospam.comwrote in message
news:O9I2Vxz4HHA.3940@.TK2MSFTNGP05.phx.gbl...
I have a web app that is referencing several web services. When I make a
change to a web service (add, modify a method), I have to 'Add Web
Reference' for the changes to take affect. If I do 'Update web reference'
the web app does not see the web service changes.

The web services are on the same box as I'm developing on, the .wsdl files
are pointing to the correct location, but the changes aren't happening
unless I do 'Add Web Reference'.

Does anyone have or had this same issue? If so how did you resolve it?

----
What are your web references pointing to? The .asmx files, the .wsdl files,
or .asmx?WSDL?

Also, have you built and deployed the changed web services before trying to
update the references?
--
John Saunders [MVP]
Also, have you built and deployed the changed web services before trying to
update the references? Yes, I build the service then run it test and test it
prior to 'updating' it in the web app.

What are your web references pointing to? The .asmx files, the .wsdl files,

Quote:

Originally Posted by

or .asmx?WSDL? When I add the web reference via the IDE, its adding the
.disco, disomap, and .wsdl file.


the reference in the web.config file is pointing to the .asmx file, but
shouldn't it point to the wsdl file?

I just got put on this project last week, so everything was already setup by
the lead developer on this project, and I'm fixing things as I go, and I
noticed that as I was fixing the web service and trying to access it via the
web app.

"John Saunders [MVP]" <john.saunders at trizetto.comwrote in message
news:uG1K43z4HHA.3916@.TK2MSFTNGP02.phx.gbl...

Quote:

Originally Posted by

"Mike" <Mike@.community.nospam.comwrote in message
news:O9I2Vxz4HHA.3940@.TK2MSFTNGP05.phx.gbl...
I have a web app that is referencing several web services. When I make a
change to a web service (add, modify a method), I have to 'Add Web
Reference' for the changes to take affect. If I do 'Update web reference'
the web app does not see the web service changes.
>
The web services are on the same box as I'm developing on, the .wsdl files
are pointing to the correct location, but the changes aren't happening
unless I do 'Add Web Reference'.
>
>
Does anyone have or had this same issue? If so how did you resolve it?
>
----
What are your web references pointing to? The .asmx files, the .wsdl
files, or .asmx?WSDL?
>
Also, have you built and deployed the changed web services before trying
to update the references?
--
John Saunders [MVP]
>


"Mike" <Mike@.community.nospam.comwrote in message
news:uusC$9z4HHA.4676@.TK2MSFTNGP05.phx.gbl...

Quote:

Originally Posted by

Also, have you built and deployed the changed web services before trying
to
update the references? Yes, I build the service then run it test and test
it prior to 'updating' it in the web app.
>
What are your web references pointing to? The .asmx files, the .wsdl
files,

Quote:

Originally Posted by

>or .asmx?WSDL? When I add the web reference via the IDE, its adding the
>.disco, disomap, and .wsdl file.


the reference in the web.config file is pointing to the .asmx file, but
shouldn't it point to the wsdl file?


The web.config should point to the .asmx, since that is the URL that will be
used at runtime. I was asking what you see in the Properties of the web
reference itself.

Another thing I thought of is how are you running the web service? You want
to make sure that the web reference is referring to the exact same service
that you've deployed.

For instance, one problem I've had is when the web service was running on a
dynamic port through the Visual Studio.Net internal web server, when my web
reference has been pointing to a fixed location within an IIS web site. This
fits the pattern you posted about: when you do an Add Web Reference, you are
pointing to the real, updated server. When you change it and do an update,
the updated service is running in the internal server, but your web
reference is still pointing to the original, unchanged service.

At design-time, the web reference URL is used to retrieve the WSDL file
which is used to create the proxy classes. At run-time, it is used to talk
to the real service. The trick is to notice when these two are not both
talking to the same service.
--
John Saunders [MVP]

Monday, March 12, 2012

Web services over FTP

Hi all

I am writing a Pocket PC app (Compact Framework V2) that talks to a web service. However, the machine I am talking to is going to have port 80 closed down, the only port I will have access to is 21 which currently has an FTP server on it. What I'd like to do is to have the PPC application create its web request but then instead of using HTTP to talk to the server I'd like to save that request to a MemoryStream. I could then zip the data and FTP it to a dedicated folder on the server. A service on the server could extract the request and then post it to the web service locally. Finally I would like to take the response, zip it, put it on the FTP in a dedicated folder for the client to download and then feed into the request as if it had come directly from the server.

Can this be done? If so, does anyone have any URLs, examples, or anything? I've not been able to find anything useful on Google so far.

Thanks

Pete

Is this article helpfu to you ?http://www.lyra.org/pipermail/neon/2002-October/001187.html

you need to embed you http requset into a ftp request and then dis-embed it.. i think you can sure make it out, while maybe it will need some effort :)

a little suggestions:

in this article :http://www-128.ibm.com/developerworks/xml/library/x-tiphttp.html it is said that: "It's also important to consider all the other XML technologies that can process XML retrieved over HTTP, FTP, or other means." so, i guess we can found a way to impliment xml communication thru FTP .anyway, hope u good luck!