Showing posts with label webservice. Show all posts
Showing posts with label webservice. Show all posts

Wednesday, March 28, 2012

Web Service

Hello Sir/Madam
I need to create a webservice for weather report
so how can i create the WSDl file to consume the weather
please help me out
Thanks and Regards
Sathish ReddyWhere is the weather report web service?

Web Service

I want to write webservice which would just get output from stored procedure (=XML) and send it as XML out. And true is that I realy don't know how to do that. I'm not sure if output from webservice will be string or sthing else.It is easy way to make a Web Service.
1. First , Create a Web Application. such like "http://localhost/webService"
2. Second, Add a new service from solution: Add New Item, select "Web Service", such like: WebService1.asmx.

3. In this page, default has a function, you need to uncomment it.

[WebMethod]
public string HelloWorld()
{
return "Hello World"; // You can return your XML format string. What you returned is just what the client will get.
}

4. You can make your function and return what you want.
5. Set this file as start page, then build it.
6. Run and test it.

7. In client side, such like WinForm, you need add a web reference. On project's references, right click mouse, in popup menu, select "Add Web Reference";

8. Type the web site and page file , such like : http://localhost/webService/WebService1.asmx, then click "go"

9. In "Web Reference Name", put the name you like to name it,such like: "myWebService", then OK.

10. In a WinForm Page, call web server and see what you get.
the code like this:
myWebService.Service1 service = new myWebService.Service1();
string result = service.HelloWorld();
If your response is a XML file, the result string will be the XML string.

Web Service

I created a webservice at home last night. I got it to work but when I bring it to work, I cannot load the project. VS.Net tells me that it is not loaded or something.The exact error would be helpful ;)

DJ
Thank You for your reply but I was able to take care of this by recreating the project.
it probably would have moaned because you would not have the webservice virtual directory set up in iis.

it probably works now cos by recreating the project you set up the vd
I think I agree with you on that.

Monday, March 26, 2012

web service and Remoting

Hi

Can someone explain me the difference between webservice and remoting (in .net technology)?

I will prefer some explanation here instead of refering to any article......

both web services and remoting aim to do the same thing, which is to expose some business functionality across application domains/networks/computers etc

Web services advantages are it can work over any network as it uses HTTP, SOAP/XML so it does not matter if the target is running java or .NET because at the end of the day the request and response are serialised into XML and send over HTTP/SOAP.

.NET remoting's advantages are it is much faster then web services because you can use binary serialisation over TCP communication channel. However the pitfalls are remoting in .NET must have both parties running .NET.

Web Service for a credit card Verification

Hi,

Can i consume a web service for a credit card verifiction. If so, please tell me how can I do that.

Iam quite new to this webservice stuff, never worked on it. So, can u please explain me in detail.

Thank u so much.

Have you already chosen a company to process your transactions? That would be your first step. The answer is yes you can consume a webservice for this.


Hi Company to process the transaction is like what?? Is it Paypal or something??

Paypal is a little different in that you redirect your user to paypal for the transaction to take place. Atleast that is what i recall from what i read. I have not actually used it. We decided to go with another servicehttp://www.concordefsnet.com/, and I used their webservice for this.


Thanks for the Info, that really helps..

Saturday, March 24, 2012

Web service for finding addresses?

I have a listing of names. Is there a free webservice that will return
phone numbers and/or addresses for these names?Check/Contact Yellowpages.com

Web Service not working

I have a simple Webservice (the infamous Hello program).
This file is in wwwroot and gets called fine.
****************************************
******************************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script Language="Javascript">
var iCallID;
function InitializeService()
{
alert("Before useServer");
service.useService("http://localhost/Hello/Service1.asmx?wsdl","HelloService
");
service.HelloService.callService("HelloWorld");
alert("After callService");
}
function ShowResult()
{
alert(event.result.value);
}
</script>
</head>
<body onload="InitializeService()" id="service"
style="behavior:url(webservice.htc)"
onresult="ShowResult">
</body>
</html>
****************************************
********************************
The webservice.htc file is also in wwwroot.
I get the alert statements in InitializeService. But the ShowResult never
gets Called.
I can call this http://localhost/Hello/Service1.asmx?wsdl fine from IE and
it comes up correctly and runs fine.
I have another service with the same problem, what am I missing?
Thanks,
TomCheck the security in your IE. I am not sure which option it is. I have
noticed that sometimes Javascript do not show error message when there is a
security restriction.
--
Vijayakrishna
Software Architect
"tshad" wrote:

> I have a simple Webservice (the infamous Hello program).
> This file is in wwwroot and gets called fine.
> ****************************************
******************************
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <title>Untitled Document</title>
> <script Language="Javascript">
> var iCallID;
> function InitializeService()
> {
> alert("Before useServer");
> service.useService("http://localhost/Hello/Service1.asmx?wsdl","HelloServi
ce
> ");
> service.HelloService.callService("HelloWorld");
> alert("After callService");
> }
> function ShowResult()
> {
> alert(event.result.value);
> }
> </script>
> </head>
> <body onload="InitializeService()" id="service"
> style="behavior:url(webservice.htc)"
> onresult="ShowResult">
> </body>
> </html>
> ****************************************
********************************
> The webservice.htc file is also in wwwroot.
> I get the alert statements in InitializeService. But the ShowResult never
> gets Called.
> I can call this http://localhost/Hello/Service1.asmx?wsdl fine from IE and
> it comes up correctly and runs fine.
> I have another service with the same problem, what am I missing?
> Thanks,
> Tom
>
>

Web Service not working

I have a simple Webservice (the infamous Hello program).

This file is in wwwroot and gets called fine.
************************************************** ********************
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<script Language="Javascript">
var iCallID;

function InitializeService()
{
alert("Before useServer");

service.useService("http://localhost/Hello/Service1.asmx?wsdl","HelloService
");
service.HelloService.callService("HelloWorld");
alert("After callService");
}

function ShowResult()
{
alert(event.result.value);
}
</script>
</head
<body onload="InitializeService()" id="service"
style="behavior:url(webservice.htc)"
onresult="ShowResult"
</body>
</html>
************************************************** **********************

The webservice.htc file is also in wwwroot.

I get the alert statements in InitializeService. But the ShowResult never
gets Called.

I can call this http://localhost/Hello/Service1.asmx?wsdl fine from IE and
it comes up correctly and runs fine.

I have another service with the same problem, what am I missing?

Thanks,

TomCheck the security in your IE. I am not sure which option it is. I have
noticed that sometimes Javascript do not show error message when there is a
security restriction.
--
Vijayakrishna
Software Architect

"tshad" wrote:

> I have a simple Webservice (the infamous Hello program).
> This file is in wwwroot and gets called fine.
> ************************************************** ********************
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
> <title>Untitled Document</title>
> <script Language="Javascript">
> var iCallID;
> function InitializeService()
> {
> alert("Before useServer");
> service.useService("http://localhost/Hello/Service1.asmx?wsdl","HelloService
> ");
> service.HelloService.callService("HelloWorld");
> alert("After callService");
> }
> function ShowResult()
> {
> alert(event.result.value);
> }
> </script>
> </head>
> <body onload="InitializeService()" id="service"
> style="behavior:url(webservice.htc)"
> onresult="ShowResult">
> </body>
> </html>
> ************************************************** **********************
> The webservice.htc file is also in wwwroot.
> I get the alert statements in InitializeService. But the ShowResult never
> gets Called.
> I can call this http://localhost/Hello/Service1.asmx?wsdl fine from IE and
> it comes up correctly and runs fine.
> I have another service with the same problem, what am I missing?
> Thanks,
> Tom
>

Web service Problem

I have developed the webservice in C#.net. Now I want to know from which site, has it(webservice Object) been instansiating. What is the exact way to know.

Example: I have created the webservice http://localhost/test2service.asmx

Now if a user use it like...(after adding Web reference of this service)...

localhost.test2Service a = new localhost.test2Service();

then how can we know in our webservice that on which site it is being used..[QUOTE] : It's a very genuine problem, if anyone knows plz reply me soon...
1. using Localhost, no one would be able to access your web service, it needs a LIVE IP.

To determine how many times your webservice is accessed - a simple way would be to create a log, in the webmethod itself, whenever its called
I believe the referer object should work here although I've never tried it. Try working with that object and let us know.

Web Service Question

Can anyone tell me if its possible to create a custom class and pass it from
a client application through a webservice call for the server to use it for
its operations?
I'm gettin ga cannot convert from Customer to clientproject.Customer error
message and am new to all this..
thanks,
glennTo pass an object such as a class it would have to be serialised.
Take a look at this article and see if it gives you some idead.
http://www.eggheadcafe.com/articles...er_bulkload.asp
Regards
John Timney
ASP.NET MVP
Microsoft Regional Director
"glenn" <ghancock@.softeksoftware.com> wrote in message
news:euJqCS6CFHA.2540@.TK2MSFTNGP09.phx.gbl...
> Can anyone tell me if its possible to create a custom class and pass it
from
> a client application through a webservice call for the server to use it
for
> its operations?
> I'm gettin ga cannot convert from Customer to clientproject.Customer error
> message and am new to all this..
> thanks,
> glenn
>

Web Service Question

Can anyone tell me if its possible to create a custom class and pass it from
a client application through a webservice call for the server to use it for
its operations?

I'm gettin ga cannot convert from Customer to clientproject.Customer error
message and am new to all this..

thanks,

glennTo pass an object such as a class it would have to be serialised.

Take a look at this article and see if it gives you some idead.
http://www.eggheadcafe.com/articles...er_bulkload.asp

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"glenn" <ghancock@.softeksoftware.com> wrote in message
news:euJqCS6CFHA.2540@.TK2MSFTNGP09.phx.gbl...
> Can anyone tell me if its possible to create a custom class and pass it
from
> a client application through a webservice call for the server to use it
for
> its operations?
> I'm gettin ga cannot convert from Customer to clientproject.Customer error
> message and am new to all this..
> thanks,
> glenn

Thursday, March 22, 2012

web service remote access database

Hey all.

Ive got Server 1 running IIS
Server 2 is my database server, running SQL + access databases

i just wrote a webservice to handle data to and from an access database, however i am getting some security issues saying the following

<?xml version="1.0" encoding="utf-8" ?>
<anyType xmlns:q1="http://www.w3.org/2001/XMLSchema" d1p1:type="q1:string" xmlns:d1p1="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/WSMarketingSubscriber/Service1">System.Data.OleDb.OleDbException: The Microsoft Jet database engine cannot open the file '\\dbserver\Databases\Db1.mdb'. It is already opened exclusively by another user, or you need permission to view its data. at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(Int32 hr) at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) at System.Data.OleDb.OleDbCommand.ExecuteNonQuery() at WSMarketingSubscriber.WSMarketingDI.Unsubscribe() in E:\Inetpub\wwwroot\WSMarketingSubscriber\WSMarketingDI.vb:line 46</anyType>


Can any one tell me what user account i need for the access database, in order for my webservice to work.....

Many ThanksOK ive done some checking and move the access db to local machine tested and it worked fine, so its got something to do with security account, i blocked the asp.net system account from the local access db and it gave same error, so when unblocked it worked fine, question is now how do i get the asp.net account to work on server 2

Web Services

I need to write a webservice that will return user profile information. The information I need back is first name, last name, ID number. Where can I find some sample code?

Thanks

bthumber

Check out these links:

http://aspnet.4guysfromrolla.com/articles/062602-1.aspx

samples.gotdotnet.com/quickstart/aspplus/doc/webservicesintro.aspx

Hope this helps,

Vivek

Monday, March 12, 2012

Web Services and Datasets Question!

If I have an ASP.NET WebService with a method that returns a Dataset,
this Dataset can be consumed by non-microsoft development tools like
Java or Flash? What happens if it is an ASP.NET 2.0 strongly typed
dataset?
Where can I find a list of the data typed that can be used to
communicate in a cross-platform environment using webservices?When cross-platform data passage is a concern, you must stay away from all
proprietary data formats. A DataSet is a class in the Microsoft .NET
Framework. A DataSet will not be consumable by any other platform than
.NET.
Now, a DataSet is serializable and that means that it can be expressed as
XML. Using the GetXML and GetXMLSchema methods of a DataSet, you can get
the XML representations of the data and the table(s) structure respectively.
This XML could then be passed to some other consumer that does not have to
be a Microsoft .NET platform. But, the DataSet object itself should not be
passed.
You really don't need a "list" of data-types that can be passed in a
cross-platform way. All you really need to know is that when cross-platform
data sharing is your requirement, then the data and the schema for the data
should be passed as XML. In .NET, DataSets and DataTables can easily be
expressed as this XML.
"Artificer" <eliezerfigueroa@.gmail.com> wrote in message
news:1125453193.180550.145180@.g49g2000cwa.googlegroups.com...
> If I have an ASP.NET WebService with a method that returns a Dataset,
> this Dataset can be consumed by non-microsoft development tools like
> Java or Flash? What happens if it is an ASP.NET 2.0 strongly typed
> dataset?
> Where can I find a list of the data typed that can be used to
> communicate in a cross-platform environment using webservices?
>

Web Services and Datasets Question!

If I have an ASP.NET WebService with a method that returns a Dataset,
this Dataset can be consumed by non-microsoft development tools like
Java or Flash? What happens if it is an ASP.NET 2.0 strongly typed
dataset?

Where can I find a list of the data typed that can be used to
communicate in a cross-platform environment using webservices?When cross-platform data passage is a concern, you must stay away from all
proprietary data formats. A DataSet is a class in the Microsoft .NET
Framework. A DataSet will not be consumable by any other platform than
..NET.

Now, a DataSet is serializable and that means that it can be expressed as
XML. Using the GetXML and GetXMLSchema methods of a DataSet, you can get
the XML representations of the data and the table(s) structure respectively.
This XML could then be passed to some other consumer that does not have to
be a Microsoft .NET platform. But, the DataSet object itself should not be
passed.

You really don't need a "list" of data-types that can be passed in a
cross-platform way. All you really need to know is that when cross-platform
data sharing is your requirement, then the data and the schema for the data
should be passed as XML. In .NET, DataSets and DataTables can easily be
expressed as this XML.

"Artificer" <eliezerfigueroa@.gmail.com> wrote in message
news:1125453193.180550.145180@.g49g2000cwa.googlegr oups.com...
> If I have an ASP.NET WebService with a method that returns a Dataset,
> this Dataset can be consumed by non-microsoft development tools like
> Java or Flash? What happens if it is an ASP.NET 2.0 strongly typed
> dataset?
> Where can I find a list of the data typed that can be used to
> communicate in a cross-platform environment using webservices?

Web services and security

I want to make a security system in my webservice similar to the one that
reporting services uses it has a logon user and logoff user web method...
when you log on it logs you into a session and maintains your logged in
status until you log off or timeout... I dont want to have to pass
username/pass back and forth each time I call a method... I want to use
sessions and I need a custom authentication and authorization method for our
service (its how we defined it to work) how would you go about doing this?
In reporting services it uses a web service to do it in this order

Connect to web service with no IIS authentication
Log into Web service via a public webmethod called LogonUser
Webservice consumer has a cookier container and credentials set to
CrentialCache.DefaultNetworkCredentials

user logs on, all web methods now run as that user until user timesout or
calls LogOffUser

any ideas on how to do this? its basically like forms authentication just in
a web service and no login form... thanks!A better option is to use WSE 3.0 (WS-Security). You can attach an 509
certificate, which will be more secure, and have less overhead, than adding
a session to the web service. It is also standards based, which allows you
to dupe the methodology for systems that have to be contacted from Java
(example).

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
*********************************************
Think outside the box!
*********************************************
"Smokey Grindle" <nospam@.dontspamme.comwrote in message
news:u0KT49bhHHA.4064@.TK2MSFTNGP03.phx.gbl...

Quote:

Originally Posted by

>I want to make a security system in my webservice similar to the one that
>reporting services uses it has a logon user and logoff user web method...
>when you log on it logs you into a session and maintains your logged in
>status until you log off or timeout... I dont want to have to pass
>username/pass back and forth each time I call a method... I want to use
>sessions and I need a custom authentication and authorization method for
>our service (its how we defined it to work) how would you go about doing
>this? In reporting services it uses a web service to do it in this order
>
Connect to web service with no IIS authentication
Log into Web service via a public webmethod called LogonUser
Webservice consumer has a cookier container and credentials set to
CrentialCache.DefaultNetworkCredentials
>
user logs on, all web methods now run as that user until user timesout or
calls LogOffUser
>
any ideas on how to do this? its basically like forms authentication just
in a web service and no login form... thanks!
>


wouldnt each client require an X509 cert on their machine though?

"Cowboy (Gregory A. Beamer)" <NoSpamMgbworld@.comcast.netNoSpamMwrote in
message news:A102DB9C-E0E3-4177-8EF8-1CD6C4F6F0C5@.microsoft.com...

Quote:

Originally Posted by

>A better option is to use WSE 3.0 (WS-Security). You can attach an 509
>certificate, which will be more secure, and have less overhead, than
>adding a session to the web service. It is also standards based, which
>allows you to dupe the methodology for systems that have to be contacted
>from Java (example).
>
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
>
*********************************************
Think outside the box!
*********************************************
"Smokey Grindle" <nospam@.dontspamme.comwrote in message
news:u0KT49bhHHA.4064@.TK2MSFTNGP03.phx.gbl...

Quote:

Originally Posted by

>>I want to make a security system in my webservice similar to the one that
>>reporting services uses it has a logon user and logoff user web method...
>>when you log on it logs you into a session and maintains your logged in
>>status until you log off or timeout... I dont want to have to pass
>>username/pass back and forth each time I call a method... I want to use
>>sessions and I need a custom authentication and authorization method for
>>our service (its how we defined it to work) how would you go about doing
>>this? In reporting services it uses a web service to do it in this order
>>
>Connect to web service with no IIS authentication
>Log into Web service via a public webmethod called LogonUser
>Webservice consumer has a cookier container and credentials set to
>CrentialCache.DefaultNetworkCredentials
>>
>user logs on, all web methods now run as that user until user timesout or
>calls LogOffUser
>>
>any ideas on how to do this? its basically like forms authentication just
>in a web service and no login form... thanks!
>>


>


Yes, but getting the cert can be part of the sign up procedure for the
application. This can be highly encapsuluated on a SmartClient application.
There are other, less secure, methods in WS-Security.

You can also generate keys for users after they have established a session
and pass that key (initially null) with each subsequent request. This will
require a custom authentication/session framework, but it is doable. I
currently use a key on one set of web services, but it was one that had to
be thrown up quickly, sits behind SSL and I control the clients (which are
other web apps on another domain), so I am not that worried about security.

As a slight alteration, you can send user login info every time and store
the current session completely on the backend. As this requires a user's
login, you will have to use SSL. If you are using a Smart Client and would
like to hide this, you can have them login via a web service and have it
return session token. If you use a custom method, you can keep the "session"
alive on the server side as long as you want. Just make sure it eventually
times out and the app logs it out when they shut it down. Do not trust users
to end session.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
*********************************************
Think outside the box!
*********************************************
"Smokey Grindle" <nospam@.dontspamme.comwrote in message
news:uxyN%23NdhHHA.4552@.TK2MSFTNGP04.phx.gbl...

Quote:

Originally Posted by

wouldnt each client require an X509 cert on their machine though?
>
"Cowboy (Gregory A. Beamer)" <NoSpamMgbworld@.comcast.netNoSpamMwrote in
message news:A102DB9C-E0E3-4177-8EF8-1CD6C4F6F0C5@.microsoft.com...

Quote:

Originally Posted by

>>A better option is to use WSE 3.0 (WS-Security). You can attach an 509
>>certificate, which will be more secure, and have less overhead, than
>>adding a session to the web service. It is also standards based, which
>>allows you to dupe the methodology for systems that have to be contacted
>>from Java (example).
>>
>--
>Gregory A. Beamer
>MVP; MCP: +I, SE, SD, DBA
>http://gregorybeamer.spaces.live.com
>>
>*********************************************
>Think outside the box!
>*********************************************
>"Smokey Grindle" <nospam@.dontspamme.comwrote in message
>news:u0KT49bhHHA.4064@.TK2MSFTNGP03.phx.gbl...

Quote:

Originally Posted by

>>>I want to make a security system in my webservice similar to the one that
>>>reporting services uses it has a logon user and logoff user web method...
>>>when you log on it logs you into a session and maintains your logged in
>>>status until you log off or timeout... I dont want to have to pass
>>>username/pass back and forth each time I call a method... I want to use
>>>sessions and I need a custom authentication and authorization method for
>>>our service (its how we defined it to work) how would you go about doing
>>>this? In reporting services it uses a web service to do it in this order
>>>
>>Connect to web service with no IIS authentication
>>Log into Web service via a public webmethod called LogonUser
>>Webservice consumer has a cookier container and credentials set to
>>CrentialCache.DefaultNetworkCredentials
>>>
>>user logs on, all web methods now run as that user until user timesout
>>or calls LogOffUser
>>>
>>any ideas on how to do this? its basically like forms authentication
>>just in a web service and no login form... thanks!
>>>


>>


>
>

Web services and security

I want to make a security system in my webservice similar to the one that
reporting services uses it has a logon user and logoff user web method...
when you log on it logs you into a session and maintains your logged in
status until you log off or timeout... I dont want to have to pass
username/pass back and forth each time I call a method... I want to use
sessions and I need a custom authentication and authorization method for our
service (its how we defined it to work) how would you go about doing this?
In reporting services it uses a web service to do it in this order
Connect to web service with no IIS authentication
Log into Web service via a public webmethod called LogonUser
Webservice consumer has a cookier container and credentials set to
CrentialCache.DefaultNetworkCredentials
user logs on, all web methods now run as that user until user timesout or
calls LogOffUser
any ideas on how to do this? its basically like forms authentication just in
a web service and no login form... thanks!A better option is to use WSE 3.0 (WS-Security). You can attach an 509
certificate, which will be more secure, and have less overhead, than adding
a session to the web service. It is also standards based, which allows you
to dupe the methodology for systems that have to be contacted from Java
(example).
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
****************************************
*****
Think outside the box!
****************************************
*****
"Smokey Grindle" <nospam@.dontspamme.com> wrote in message
news:u0KT49bhHHA.4064@.TK2MSFTNGP03.phx.gbl...
>I want to make a security system in my webservice similar to the one that
>reporting services uses it has a logon user and logoff user web method...
>when you log on it logs you into a session and maintains your logged in
>status until you log off or timeout... I dont want to have to pass
>username/pass back and forth each time I call a method... I want to use
>sessions and I need a custom authentication and authorization method for
>our service (its how we defined it to work) how would you go about doing
>this? In reporting services it uses a web service to do it in this order
> Connect to web service with no IIS authentication
> Log into Web service via a public webmethod called LogonUser
> Webservice consumer has a cookier container and credentials set to
> CrentialCache.DefaultNetworkCredentials
> user logs on, all web methods now run as that user until user timesout or
> calls LogOffUser
> any ideas on how to do this? its basically like forms authentication just
> in a web service and no login form... thanks!
>
wouldnt each client require an X509 cert on their machine though?
"Cowboy (Gregory A. Beamer)" <NoSpamMgbworld@.comcast.netNoSpamM> wrote in
message news:A102DB9C-E0E3-4177-8EF8-1CD6C4F6F0C5@.microsoft.com...
>A better option is to use WSE 3.0 (WS-Security). You can attach an 509
>certificate, which will be more secure, and have less overhead, than
>adding a session to the web service. It is also standards based, which
>allows you to dupe the methodology for systems that have to be contacted
>from Java (example).
> --
> Gregory A. Beamer
> MVP; MCP: +I, SE, SD, DBA
> http://gregorybeamer.spaces.live.com
> ****************************************
*****
> Think outside the box!
> ****************************************
*****
> "Smokey Grindle" <nospam@.dontspamme.com> wrote in message
> news:u0KT49bhHHA.4064@.TK2MSFTNGP03.phx.gbl...
>
Yes, but getting the cert can be part of the sign up procedure for the
application. This can be highly encapsuluated on a SmartClient application.
There are other, less secure, methods in WS-Security.
You can also generate keys for users after they have established a session
and pass that key (initially null) with each subsequent request. This will
require a custom authentication/session framework, but it is doable. I
currently use a key on one set of web services, but it was one that had to
be thrown up quickly, sits behind SSL and I control the clients (which are
other web apps on another domain), so I am not that worried about security.
As a slight alteration, you can send user login info every time and store
the current session completely on the backend. As this requires a user's
login, you will have to use SSL. If you are using a Smart Client and would
like to hide this, you can have them login via a web service and have it
return session token. If you use a custom method, you can keep the "session"
alive on the server side as long as you want. Just make sure it eventually
times out and the app logs it out when they shut it down. Do not trust users
to end session.
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com
****************************************
*****
Think outside the box!
****************************************
*****
"Smokey Grindle" <nospam@.dontspamme.com> wrote in message
news:uxyN%23NdhHHA.4552@.TK2MSFTNGP04.phx.gbl...
> wouldnt each client require an X509 cert on their machine though?
> "Cowboy (Gregory A. Beamer)" <NoSpamMgbworld@.comcast.netNoSpamM> wrote in
> message news:A102DB9C-E0E3-4177-8EF8-1CD6C4F6F0C5@.microsoft.com...
>

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...