Showing posts with label guys. Show all posts
Showing posts with label guys. Show all posts

Wednesday, March 28, 2012

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.

Saturday, March 24, 2012

Web Service not updating when developing and debugging within VS 2005

Guys,
I've been experiencing a weird problem. I am developing a web service in
pretty much the same way I do develop other types of application using
C#.net (2.0). The problem is that when I run the application from Visual
Studio the code that is presented to me is different than the actual code.
It takes some cumbersome actions to get it to work:
a) "clean" the solution, rebuild it and then run
b) close and open VS again
c) "Stop" the Web Servers that VS opens when you are debugging a web service
within the IDE
This is not pratical at all. Have any of you experienced the same problem?
Is there a solution for this?
I think that I may be doing something wrong. It is prety cumbersome to
develop a web service, doing deployments, attaching to process and so on to
properly debug an application.
Any thoughts?
Regards,
Robson Siqueira
Enterprise ArchitectIs your webservice in the same project? If not have you tried right
clicking on the web reference you added and selecting update, this will
refresh the wsdl used to generate your proxy class for the webservice.
MattC
"Robson Siqueira" <robson@.robsonfelix.com> wrote in message
news:us6aZ40kHHA.680@.TK2MSFTNGP06.phx.gbl...
> Guys,
> I've been experiencing a weird problem. I am developing a web service in
> pretty much the same way I do develop other types of application using
> C#.net (2.0). The problem is that when I run the application from Visual
> Studio the code that is presented to me is different than the actual code.
> It takes some cumbersome actions to get it to work:
> a) "clean" the solution, rebuild it and then run
> b) close and open VS again
> c) "Stop" the Web Servers that VS opens when you are debugging a web
> service within the IDE
> This is not pratical at all. Have any of you experienced the same problem?
> Is there a solution for this?
> I think that I may be doing something wrong. It is prety cumbersome to
> develop a web service, doing deployments, attaching to process and so on
> to properly debug an application.
> Any thoughts?
> Regards,
> Robson Siqueira
> Enterprise Architect
>

Thursday, March 22, 2012

Web Service Session trouble :(

hi guys,
I've a couple of web services.
The first one authenticates a user, and saves the principal in the session
object.
The second one authorizes after reading the user data from the session.
Up to now, those two worked wonderfully, and we've had no problems with
them. but now, we're using NUnit to build some tests for the services, and a
C# class as the test. It first makes a call to the login service (which
succeeds) and then to the other service, which fails because there is no
current user principal in the session !
I though it was because the two service stubs were in different namespaces.
But I can't help that, VS.NET won't let you add two web references with the
same namespace name.
Does anybody know what might be going on here ?
Cheers,
Angel
O:]Angelos Karantzalis wrote:
> hi guys,
> I've a couple of web services.
> The first one authenticates a user, and saves the principal in the
> session object.
> The second one authorizes after reading the user data from the
> session.
> Up to now, those two worked wonderfully, and we've had no problems
> with them. but now, we're using NUnit to build some tests for the
> services, and a C# class as the test. It first makes a call to the
> login service (which succeeds) and then to the other service, which
> fails because there is no current user principal in the session !
> I though it was because the two service stubs were in different
> namespaces. But I can't help that, VS.NET won't let you add two web
> references with the same namespace name.
> Does anybody know what might be going on here ?
> Cheers,
> Angel
> O:]
Sessions work with cookies. Usually when you call a webservice from
some client, cookies are ignored!
You need to add a place to store those cookies: a CookieContainer.
First create one, then add it to the webservice calls that should work
with the same session.
Hans Kesting
i assume the web services are in the same vdir, if this is true, then
sessions will be shared - namespace does not matter.
you will also have to add support for the session cookie to your nunit code.
as the unit tests run in seperate domain, you will also need some way to
pass the session id from call1 to call2 (globals will not work)
you might want to have a predefined session id used by unit tests, then the
second caller can call a mocker of the authenication call to get the test
session id.
unless you are writing an acceptance test, i would not use the web service.
I would have unit tests call the modules directly, and supply a mocker for
the web service proxy.
-- bruce (sqlwork.com)
"Angelos Karantzalis" <akarantzalis@.yahoo.com> wrote in message
news:uS5ON4mxEHA.3572@.TK2MSFTNGP10.phx.gbl...
| hi guys,
|
| I've a couple of web services.
|
| The first one authenticates a user, and saves the principal in the session
| object.
| The second one authorizes after reading the user data from the session.
|
| Up to now, those two worked wonderfully, and we've had no problems with
| them. but now, we're using NUnit to build some tests for the services, and
a
| C# class as the test. It first makes a call to the login service (which
| succeeds) and then to the other service, which fails because there is no
| current user principal in the session !
|
| I though it was because the two service stubs were in different
namespaces.
| But I can't help that, VS.NET won't let you add two web references with
the
| same namespace name.
|
| Does anybody know what might be going on here ?
|
| Cheers,
| Angel
| O:]
|
|
> Sessions work with cookies. Usually when you call a webservice from
> some client, cookies are ignored!
> You need to add a place to store those cookies: a CookieContainer.
> First create one, then add it to the webservice calls that should work
> with the same session.
> Hans Kesting
>
Thanks Hans, that more or less what I'd figured. Could you point me to some
info on how to add a CookieContainer to the web service stubs ?
Cheers,
Angel
O;]

Web Service Session trouble :(

hi guys,

I've a couple of web services.

The first one authenticates a user, and saves the principal in the session
object.
The second one authorizes after reading the user data from the session.

Up to now, those two worked wonderfully, and we've had no problems with
them. but now, we're using NUnit to build some tests for the services, and a
C# class as the test. It first makes a call to the login service (which
succeeds) and then to the other service, which fails because there is no
current user principal in the session !

I though it was because the two service stubs were in different namespaces.
But I can't help that, VS.NET won't let you add two web references with the
same namespace name.

Does anybody know what might be going on here ?

Cheers,
Angel
O:]Angelos Karantzalis wrote:
> hi guys,
> I've a couple of web services.
> The first one authenticates a user, and saves the principal in the
> session object.
> The second one authorizes after reading the user data from the
> session.
> Up to now, those two worked wonderfully, and we've had no problems
> with them. but now, we're using NUnit to build some tests for the
> services, and a C# class as the test. It first makes a call to the
> login service (which succeeds) and then to the other service, which
> fails because there is no current user principal in the session !
> I though it was because the two service stubs were in different
> namespaces. But I can't help that, VS.NET won't let you add two web
> references with the same namespace name.
> Does anybody know what might be going on here ?
> Cheers,
> Angel
> O:]

Sessions work with cookies. Usually when you call a webservice from
some client, cookies are ignored!
You need to add a place to store those cookies: a CookieContainer.
First create one, then add it to the webservice calls that should work
with the same session.

Hans Kesting
i assume the web services are in the same vdir, if this is true, then
sessions will be shared - namespace does not matter.

you will also have to add support for the session cookie to your nunit code.
as the unit tests run in seperate domain, you will also need some way to
pass the session id from call1 to call2 (globals will not work)

you might want to have a predefined session id used by unit tests, then the
second caller can call a mocker of the authenication call to get the test
session id.

unless you are writing an acceptance test, i would not use the web service.
I would have unit tests call the modules directly, and supply a mocker for
the web service proxy.

-- bruce (sqlwork.com)

"Angelos Karantzalis" <akarantzalis@.yahoo.com> wrote in message
news:uS5ON4mxEHA.3572@.TK2MSFTNGP10.phx.gbl...
| hi guys,
|
| I've a couple of web services.
|
| The first one authenticates a user, and saves the principal in the session
| object.
| The second one authorizes after reading the user data from the session.
|
| Up to now, those two worked wonderfully, and we've had no problems with
| them. but now, we're using NUnit to build some tests for the services, and
a
| C# class as the test. It first makes a call to the login service (which
| succeeds) and then to the other service, which fails because there is no
| current user principal in the session !
|
| I though it was because the two service stubs were in different
namespaces.
| But I can't help that, VS.NET won't let you add two web references with
the
| same namespace name.
|
| Does anybody know what might be going on here ?
|
| Cheers,
| Angel
| O:]
|
|
> Sessions work with cookies. Usually when you call a webservice from
> some client, cookies are ignored!
> You need to add a place to store those cookies: a CookieContainer.
> First create one, then add it to the webservice calls that should work
> with the same session.
> Hans Kesting

Thanks Hans, that more or less what I'd figured. Could you point me to some
info on how to add a CookieContainer to the web service stubs ?

Cheers,
Angel
O;]

Monday, March 12, 2012

Web Services From Other Langs

Hi Guys,
I've created a webservice using ASP.Net and .Net framework,
I built the web service code, and then a proxy class to produce a .dll file , then I copied this file to the /bin directory...and it should be available to ASP.Net pages..
But my question is, How could I use this DLL in other languages, like php or perl...how could I call a web service method through
the dll proxy class from Non-.Net languages? ??

thanks.:) :confused:you dont.
so, Should I just expose my WSDL file to others, and they should take care of how to call my webservice ?? as they know the actual webservice url and methods from the wsdl ?
Sorry ..misread your post a bit. If the other language supports SOAP then you can reference and use the web service...but you cant use the same wrapper dll that is created when you ref a web service in .NET. Im sure other SOAP implementation have there way of creating 'wrappers' or whatever. You need to refer to whomever makes a SOAP implementatino for other platforms for any more help.
thanks Cander for help,
I installed the SOAP SDK , and I will play with it...

Web Services Protocol stack

Hi Guys Im trying to come up with examples for the different layers of the web services protocol stack below please carry on with the scenario is used in the the first two layers for the last two layers in blue

Discovery Layer

Scenario: Ok as you know the UDDI is responsible for the registry, I want to find a supplier for my restraint, which is within this registry. I have found my supplier, now I wish to purchase some linen, so I move to the Description layer which looks after what I have purchased.

Description Layer

Scenario: At this point a WSDL file was created, this as you know keeps a description of messages, sent by the web service, in this example these messages were formed by me purchasing some linen for the restaurant. The flow description file tells you which messages do what, e.g. one message creates a cart, another message adds items to it, after which another message causes checkout. The shopping cart, credit card and proof – of – transmission services are all formally described using this.

Messaging Layer

Please Insert a relevant scenario for this layer carrying on from the linen example above

Transport Layer

Please Insert a relevant scenario for this layer carrying on from the linen example above

Thanks a million

John

Messaging Layer

Scenario: SOAP is one of message specification. when people write a letter, they always write address, reciever etc firstly, then it's body, finally the regards. So everybody obey to this rule and can understand the each other better.

Transport Layer

Scenario: when sending letters, it follow the well known procedual: drop it to mail box. letter carrier collect the letters and send to post office then send to the destinations. in case no reciver was found, the letter may send back to you and tell you that reciver notfound. this protocal make us communicate conveniently