473,385 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Reg: Webservice Access

rvn
In a web service suppose i want to expose only few methods to a company like ABC and all the methods to another company like XYZ. then how this can be done.

Any help is highly appreciated.

Thanks in Advance
Rvn
Jul 1 '08 #1
1 1117
On Jul 1, 1:43*am, rvn wrote:
In a web service suppose i want to expose only few methods to a company like ABC and all the methods to another company like XYZ. then how this can bedone.

Any help is highly appreciated.

Thanks in Advance
Rvn
Check out SOAP Header authentication. You can apply user name and
passwords to individual methods in the same .aspx page.

EX.

public class Service : System.Web.Services.WebService
{
public AuthHeader Authentication;

public Service()
{
}

[WebMethod]
[SoapHeader("Authentication", Required = true)]
public void MyMethod()
{
if (Authentication.Username == "the username" &&
Authentication.Password == "the password")
{
//Do Stuff.
}
}
}

You'll have to incorporate sending the username and password in the
client's SOAP request which is also easily done in .NET.
Jul 2 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: RamaKrishna | last post by:
Hi All: I created a .NET web service in .NET Beta2.0...And am calling this web service from VisualBasic 6.0...using SOAP ToolKit (Both versions 2 and 3 r working fine)...It's working fine...Now...
0
by: RamaKrishna | last post by:
Hi All: When am trying to call a .NET webservice which was developed using .NET V 1.1 from VB6.0 using SOAP tool kit3.0......It can be any function/ method in the webservice..Bec'z lets say i...
1
by: Thom Little | last post by:
I have a simple web service that requires no input and returns a character string. I created the service and FTPd it to a remote server. The .dll to the .bin directory and the single .asmx file...
0
by: shruthi | last post by:
Hai, I m nt able to refer the webservice created using java and xml through vb.net.when i try to refer the wsdl file i get an error D:\WindowsApplication7\Web References\ws\Reference.map(1):...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.