CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 2/12/2008 10:58:00 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 49 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
leadixon
Asp.Net User
struggling with soap authenitication2/12/2008 10:58:00 AM

0/0

ok i am not very good with asp.net but am trying to use soap authentication on my webservice this what i done so far and i dont no what else to do.

Public Class AuthenticationHeader

Inherits SoapHeader

Public username As String

Public password As String

End Class

then in my webservice i have done this:

Imports AuthenticationHeader

Imports System.Web

Imports System.Web.Services

Imports System.Web.Services.Protocols

Imports System.Data

Imports System.Data.SqlClient

Public Class StockPriceInherits System.Web.Services.WebService

Public Auth As AuthenticationHeader

Function authenticate(ByVal a, ByVal b) As Boolean

Dim test As String

Dim test1 As String

If Auth.username = test And Auth.password = test1 Then

Return True

Else

Return False

End If

End Function

 

<WebMethod(), SoapHeader("auth")> Public Function GetStockPrice() As DataSet

If authenticate() = True Then

run my prices stuff etc

else

return false

End if

end sub

if anyone knows what wrong that would be great or somewhere i can get a really detailed tutorial on soap authentication

 regards lea dixon

jamesstill
Asp.Net User
Re: struggling with soap authenitication2/12/2008 7:08:15 PM

0/0

Intel published a great white paper on using custom SOAP headers for authentication. In your code above it looks like you need to pass the credentials into the authenticate method.

James Still
SquareWidget LLC
Handcrafted .NET Software
http://www.squarewidget.com
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:

Web:
struggling with soap authenitication - ASP.NET Forums struggling with soap authenitication. Last post 02-12-2008 2:08 PM by jamesstill . 1 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
SOAP headers in Flex and WS-Security | Sven Dens I’m still struggling with the authentication however. The SOAP-request looks exactly as it should and validates fine by the WSDL, but when using the Nonce ...
Use of SOAP Fault FW: [SOAP] Question about MIME type Often there is fault situations associated with that functionality - let's look at an example: Somebody defines an authentication SOAP header entry that ...
O'Reilly - Safari Books Online - 0596000952 - Programming Web ... I got thrown into an XML/SOAP project and had to get up to speed in short order. After struggling on my own for a while I bought this book hoping it would ...
SOAP is a four-letter word - OTA Implementers Forum | Google Groups First of all, after struggling with SOAP for some time I've decided ... order to pass the authentication, also, the soap action needs to be ...
newswhat.com [borland.public.delphi.webservices.soap] I create MySOAP: I create a Soapheader to include the authentication data. I attach the header to the SOAP object using MySoap.SOAPHeaders. ...
Hannon Hill - Cascade Server - View topic - SOAP Import to Data ... I've got the update working and am struggling with simply moving the asset by .... $params = array( 'authentication' => $auth, 'identifier' => $id ); ...
FlexLive.net » Building SOAP Clients with Flex Builder 3 Basic authentication is not supported by the typed wrapper right now, but its rather simple to .... I am struggling with one question to find the answer. ...
MSDN Visual Basic General SOAP Client Header : Help! We have seen in this article how useful Soap Header authentication is ... am struggling to get around constructing/setting up the client side soap header. ...
MSDN .NET Remoting and Runtime Serialization "use" a wsdl (SOAP) requires authentication. Short forms are '/u:', '/p:' and '/d:'. ... I have bee given a WSDL file but i am struggling to see how i will use that in a client ...




Search This Site:










web parts intended for ie?

banner links do not go to linked site

online voting system

loginview form control issue

iis doesn't recognise asp.net

web application vs windows application

can't create asp.net web application

implement logout in forms authentication

fileupload control fails.

pressing the enter key instead of clicking button.

loading theme dynamically

db connection.

a little knowlege can be dangerous...

signin and other security controls

response.flush not working

visual studio 2008 web developer express

error creating custom modules

[1.2 - module] - aggregation

treeview..please answer

pagecatalogpart.getavailablewebpartdescriptions()

session state timeouts and user logouts

illuminated metals skin worked in 2.1.2 but not in 3.1.3??

list only searched record in datagrid??

createuserwizard: where username and other information is stored?

how to write to the middle of a file

user control and event

3.12 search works but not in keywords, title, description etc

multiple applicaiton configuration.

css style not being applied

wsc in asp.net???

 
All Times Are GMT