Archived Months
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
March 2008
April 2008
all groups > dotnet web services enhancements > january 2005

Filter by week: 1 2 3 4 5

Custom UsernameTokenManager
Posted by Dan at 1/31/2005 8:27:06 AM
All, I want to implement a custom UsernameTokenManager because I need to store our user credentials in a SQL database. I understand how I do this but I have one question. I want to store a hashed version of the user's password along with a salt value. When I authenticate the user I will ...more >>


Getting the Synchronous Response from SoapInputChannel / SoapOutputChannel
Posted by Softwaremaker at 1/30/2005 10:09:27 AM
Fellas, In a bit of a bind here, would appreciate any help / pointers I can get. I am in the midst of writing up some demo utility to send a Soap Message to a listening TCP Client. I am not using the higher level abstractions such as a SoapClient. Instead I am *punishing myself* by using the...more >>

Outsourcing Auth(n)/Auth(r) with WSE 2.0?
Posted by Bill44077 at 1/30/2005 9:07:04 AM
Hi, Are there any good examples of outsourcing authentication and authorization in a web service using WSE 2.0? Is it possible to outsource these while also using declaritive policy? Would this be done in a cutom TokenManager? I need to outsource to AccessManager which has it's own ldap. ...more >>

WSE 2.0 Hands-On-Lab question
Posted by Bill44077 at 1/30/2005 9:03:02 AM
Hi, The WSE 2.0 Hands-On-Lab is really great and I have been through all of the examples. It's really a great learning tool! I have also been attending the interop-month webcasts and think that it is interesting that one of the things that is stressed is to not use a dataset since it isn...more >>

Can't instantiate WSE Service class.
Posted by Ken Varn at 1/28/2005 11:25:29 AM
I created a sample WSE Service using the DIME image example in the WSE SDK. I am basically trying to send an image using DIME attachments. I am calling the web service from a Win Form control that I have embedded in an ASP.NET web form. For some reason, when I try to instantiate the WSE Servi...more >>

replacing Server Private.pfx with my own generated cert
Posted by Sid at 1/28/2005 9:21:49 AM
Hi everyone, I think the Hand On Lab is great. Everything looks fine after running through it. But now I have 2 problems that I cannot solve: 1) I tried to replace Server Private.pfx and Server Public.cer with my own cerificates generated by makecert.exe, but I keep getting the "bad key" excep...more >>

Overriding X509SecurityTokenManager.AuthenticateToken
Posted by Oldman at 1/28/2005 6:45:06 AM
I have some special logic I would like to perform to make sure we accept a certain certificate in my webservice. The X509SecurityTokenManager.AuthenticateToken method has no return value so I was wondering what is the proper thing to do when the certificate is not accepted by the WebService? ...more >>

No response from WSE Messaging (soap.tcp) application
Posted by Odd Jarle Ostvik at 1/28/2005 3:43:04 AM
I have a SOAP Server (C#) implemented as a console application. This application is then hosted by a Windows Service (C++). The service starts the different applications including my SOAP server using function CreateProcess (Platform SDK). I ensure that the service and my server is running...more >>



URI in Policy EndPoint Case Sensitive?
Posted by DevilDog74 at 1/27/2005 9:15:12 PM
A client and I worked for 2 days on a WSE issue where the URI specified in the policy was all lowercase. The final soap exception being dealt with before we got it running was that the current policy did not match the original policy. The client was making the call to the secured service w...more >>

How do I get the sender's address of a web service or SOAP message?
Posted by Richard Martino at 1/27/2005 2:47:12 PM
Dear Experts: I am using the new Microsoft Web Services Enhancements (WSE) to send SOAP messages from a client to a web service. How can I get identifying information of the sender (aka transmitter, aka originator, aka requestor) of the web request? By comparison, for a completely differe...more >>

HOLDEVL34: WSE 2.0 Lab A - After
Posted by Bill44077 at 1/27/2005 1:01:02 PM
Hi, I am not able to run the code in lab A After. I would have thought that this would execute. I get an error ...SecurityFault: THe signature or decryption was invalid... Has anyone else seen this error? Perhaps I have something setup incorrectly? thanks in Advance!! Bill ...more >>

WSE from VB6 without .NET
Posted by msnews.microsoft.com at 1/26/2005 3:22:49 PM
Hello, I need to connect to: A Web Service developed using WSE and implementing WS-Security with a UserName Token. From: A VB6.0 Application without the possibility to use the .NET FrameWork (I'm not allowed to install it on Production Environment). Because of this I can't ...more >>

Enabling tracing in a web service client
Posted by Kostas at 1/25/2005 4:29:04 AM
I have written a simple Windows form that consumes a number of web services. I would like to see the raw XML of the requests and responses. I've installed WSE 2.0, and added the following lines in my application configuration file: <configuration> <configSections> <section name="micr...more >>

Calling WSE filters directly
Posted by Andrew at 1/24/2005 3:07:08 PM
I would like to make use of WSE filters directly bypassing standard pipeline processing mechanizm. In other words I have a payload in a form of raw XML and would like to apply some filters' processig power onto it. I tried this: // 1.create SoapEnvelope SoapEnvelope se = new SoapEnvelope()...more >>

Controlling SoapException code
Posted by Craig Neuwirt at 1/24/2005 11:13:10 AM
How can I set the Xml Qualified Name for a SoapException fault in an Orchestration? thanks, craig ...more >>

X509 signing only works when logged in locally
Posted by Metrophobe at 1/24/2005 10:07:20 AM
I am struggling with some web application X509 signing issues, but was finally able to get everything working by setting the web application impersonate value to "myuseraccount." Since the key we have to use for signing is installed under the "myuseraccount" Personal store and not exportable, I...more >>

WS-Addressing, SQL server reporting services w.s.
Posted by Quagmire at 1/24/2005 4:17:02 AM
Hi, I am using the ms reporting services webservice to supply reports to my winforms client. I would like to set up an intermediate server that takes requests from the winform client and routes them to the reporting services webservice. From the documentation it looks like ws-addressing wil...more >>

Performance problem running WSE2.0
Posted by Robbert van Geldrop via .NET 247 at 1/23/2005 9:33:17 AM
I have a problem running 2 webservices next to each other. The first web service runs the technology preview version of WSE2.0 The second web service runs the WSE2.0 sp1. Both WebServices authenticate SOAP-calls using a custom UsernameTokenManager Somehow after a while all SOAP-calls that...more >>

The sample of Kerberos can't run:The Kerberos credential handle could not be acquired.
Posted by znmaster at 1/22/2005 8:28:16 PM
After I set up WSE2, I ran the sample of "Kerberos" in the folder QuickStart. I got an exception System.Security.SecurityException: The Kerberos credential handle could not be acquired. The AcquireCredentialsHandle call returned the following error code.... I use Win2k professinal system unde...more >>

inputTrace.config can't be read because it is being used by the process of aspnet_wp after it's generated by wse2.
Posted by znmaster at 1/22/2005 8:27:09 PM
When I use WSE2 to secure soap messages, I add "<trace enabled="true" input="inputTrace.config" output="outputTrace.config"/>" to the web.config file of Webservices. Thus the soap messages are put down in the two files of "inputTrace.config" and "outputTrace.config". Then I use XmlT...more >>

WSE Site 30 times Slower now
Posted by SQLAgentman at 1/21/2005 5:44:57 PM
Hello, After Implementing WSE between my website and WebService uing secure conversation my system is 30 times slower. System works at very good speed without WSE 2.0 Security Implementation Any Ideas? Thank you SQL ...more >>

RequestSecurityToken fails
Posted by Matthias H. at 1/21/2005 7:23:02 AM
Hi guys, I am trying to request a CustomXMLSecurityToken from a web application. <code> SecurityToken token = new UsernameToken("xxx", "yyy", PasswordOption.SendPlainText ); SecurityTokenServiceClient client = new SecurityTokenServiceClient(new Uri("http://host/folder/CustomXMLTokenSe...more >>

WSE pipeline with no filters generates some SOAP headers
Posted by AVS at 1/20/2005 7:56:50 PM
I am using IDE generated proxy with WebServicesClientProtocol as a base class (which means using WSE and its pipeline). Before invoking web service I get Pipeline object from this proxy and clear all InputFilters collection. When I trace what is actually sent I still see Soap headers enjected i...more >>

CryptographicException: WSE502
Posted by John O'Neill at 1/20/2005 4:59:16 PM
Hi I have been using the UsernameSigningCode console sample supplied with WSE 2.0 SP2 and managed to get it working with ease. Based on the code from console sample, I created a similar windows forms client and got that working easily too. My problem is when I call web methods asynchronousl...more >>

HttpSoapRouter and Fault messages
Posted by Craig Neuwirt at 1/20/2005 10:50:42 AM
The SoapHttpRouter has extension method to process the request and response envelopes via protected virtual Uri ProcessRequestMessage(SoapEnvelope message) and protected virtual void ProcessResponseMessage(SoapEnvelope message) However, it does not appear to have the same ho...more >>

Re: WseWsdl2 and typed datasets?
Posted by Dominick Baier at 1/20/2005 10:42:11 AM
you can easily grab the wsdl from the service. i have a code snippet here: http://www.leastprivilege.com/PermaLink.aspx?guid=c555fa0a-6af3-4b7e-8f31-c692903e2fd8 Dominick Baier - DevelopMentor www.leastprivilege.com nntp://news.microsoft.com/microsoft.public.dotnet.framework.webservi...more >>

WseWsdl2 and typed datasets?
Posted by Bradley Plett at 1/20/2005 10:37:53 AM
I am pretty much a complete newbie to WSE, though I have worked quite a bit with web services under IIS. I'm trying to create a web service that returns a typed dataset. The server piece of this appears to be fine (it compiles and runs :-), but when I run WseWsdl2 against it, I get "SchemaVali...more >>

HttpSoapRouter and retrieving WSDL
Posted by Craig Neuwirt at 1/20/2005 10:00:54 AM
I have a situation in which I must intercept all SOAP and HTTP traffic, forward the requests to an existing legacy application and perform some additional processing logic. I extended the SoapHttpRouter and use a simple naming algorithm to determine the URI to forward to. This works very well ...more >>

Adding XMLToken to soap context
Posted by was19 NO[at]SPAM gmx.de at 1/20/2005 7:23:09 AM
Hi guys, I tried the example how to create my own XmlSecurityToken. I thinks it is not correct at all but I can compile it. I want to add the token to the soap context. <code> CustomXmlToken token = new CustomXmlToken(); SoapContext context = serviceProxy.RequestSoapContext; context.Secur...more >>

.NET/COM Interop with WSE2 & app.config?
Posted by Laura Papez at 1/19/2005 11:11:04 PM
Hi, I have created a secure Web Service via WSE with the use of WS-Policy. The service have been test using a .Net Console application and everything works. However, the Web Service needs to be called from a VB6 application (running on Win2K/XP). I re-created the client console applicatio...more >>

Thread.CurrentPrincipal is emtpy!
Posted by Scribnar at 1/17/2005 9:11:03 PM
Hi, I set the token.Principal and Thread.CurrentPrincipal to CustomPrincipal in my CustomUsernameTokenManager.AuthenticateToken method. When i try accessing the same in my WebMethod, i'm able to access the CustomPrincipal only through the token.Principal variable. When i try with Thread.Cur...more >>

HELP!!! RequestSoapContext.Current always Nothing...
Posted by Nodrick at 1/17/2005 11:11:10 AM
I have a standard WSE 2.0 file attachment upload/download application on my localhost which works perfectly. However, when I install the application on my Live Webserver and run it, an Exception occurs on line 3 "Object reference not set to an instance of an object." This is referring to t...more >>

wsa:RelationshipType
Posted by Fraser at 1/17/2005 4:59:02 AM
Today I tried to set the value of this attribute to a value for which my organisation has defined semantics only to find that in WSE2 it appears to be a Read Only property ! E.g. env.Context.Addressing.RelatesTo.RelationshipType = "frg:someValue"; Last year I had a conversation with Her...more >>

strange error when sending dataset using WSE 2.0 encryption
Posted by Ben Schwehn at 1/16/2005 8:09:12 PM
Hello, I have a Webmethod === [WebMethod] public void SaveDataset(DataSet ds) { return; } ==== I call this webmethod from a client, passing a DataSet with an ForeignKeyConstraint like this: === DataSet ds = new DataSet("NewDataSet"); DataTable table1 = new DataTable("mast...more >>

What key and iv are created for msg encryption?
Posted by William Stacey [MVP] at 1/16/2005 12:09:51 PM
When you encrypt the SoapEnvelope using a UsernameToken, what key is being used for the encryption? How is the key and IV being calculated? I would think it must be something derived from username and password in the token or what as no prior session key is negotiated? tia EncryptedData e...more >>

WSE 2.0 and alternate X.509 cert store locations
Posted by eshayne NO[at]SPAM bigfoot.com at 1/14/2005 12:37:46 PM
I would like to use WSE 2.0 for signing and encrypting Web service messages using X.509 certificates. It appears that my only options when doing this are to tell my Web service to look for certificates in either the LocalMachine or CurrentUser stores that Windows provides. If I would like to i...more >>

Token assert
Posted by William Stacey [MVP] at 1/14/2005 11:33:50 AM
It seems you can require a token (i.e. UsernameToken) via policy (xml file) or code with a manual enumeration of the tokens and checking roles. Would it not be easier to just use an Attribute of some sort at the top of the web service method(s) you want to require UsernameToken attached with an ...more >>

WSE 2.0 SP2 - TimeZone, "Message Expired"
Posted by Benjamin at 1/14/2005 4:47:03 AM
Hi! When I change TimeZone (emulating a user on the other side of the globe) my webservice returns following exception: Microsoft.Web.Services2.Security.SecurityFault Message: "Message Expired" InnerException.Message: "At least one timestamp has expired." Any idea how to make the web se...more >>

Certificates for Digital Signing
Posted by gm0ney at 1/13/2005 2:04:59 PM
Can someone give me direction on where to get, purchase, procure a certificate (x.509) that will allow me to digitally sign a soap message? I have successfuly tested using the test certificate that came with the WSE 2.0 SP2. Now needing an authorized one. When I go to a CA (Verisign),...more >>

Nonce at client and server.
Posted by William Stacey [MVP] at 1/13/2005 12:06:07 PM
The Nonce's are different at client and at server (inside the derived UTM) as shown with: string n = Convert.ToBase64String(token.Nonce); Console.WriteLine("Nonce:"+n); What gives? How do you retrieve the same Nonce bytes that the client UT set inside a UTM? TIA -- William Stacey...more >>

Does WSE 2.0 cache and trace <NONCE> element values
Posted by Softwaremaker at 1/13/2005 9:04:41 AM
Hello, I am doing some research into NONCE values and my google searches have caused me some confusion. Does WSE 2 cache and trace NONCE element values ? From Chris Keyser's blog here, it seems like it does. <quote from="ChrisKeyserBlog"> The good news is that now I did get a complete to...more >>

AuthenticateToken is not called with CustomUsernameToken
Posted by was19 NO[at]SPAM gmx.de at 1/13/2005 12:20:23 AM
Sorry for this new thread but I can't answer in the thread from yesterday. I don't know why... I changed the webconfig. There is now: <code from web.config> <securityTokenManager type="MyNamespace.CustomUsernameTokenManager, MyNamespace" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oa...more >>

An strange exception (WSE1.0 SP1)
Posted by Guogang at 1/12/2005 3:45:44 PM
Hi, I get the following exception when my program is invoking a webservice function: ********************************************** System.Xml.XmlException: The root element is missing. at System.Xml.XmlTextReader.Read() at Microsoft.Web.Services.XmlSkipDTDReader.Read() at System.Xml....more >>

WSE on Client side
Posted by Ruslan at 1/12/2005 12:44:44 PM
Hello I have a windows application (desktop) wich called Web Services. I must use WSE. WSE will be installed on the server side. Should be anything installed on the client side? Thanks, Ruslan ...more >>

UsernameToken and CustomUsernameTokenManager are not calling Authenticate token
Posted by was19 NO[at]SPAM gmx.de at 1/12/2005 6:06:00 AM
Hi guys, I tried to follow the example for securing a webservice with a UsernameToken (http://msdn.microsoft.com/library/en-us/wse/html/cf2b92f2-2338-4af9-89c1-38fe0eab7730.asp). I have a class CustomUsernameTokenManager derived from UsernameTokenManager with a function AuthenticateToken(Usern...more >>

WSE 2.0 & NTLM Authentication
Posted by axion at 1/11/2005 7:31:36 PM
Hi everyone, Is there anyway that NTLM authentication can be used with WSE 2.0 (short of writing a custom token and so forth)? Unfortunately, we cannot use Kerberos as our client does not use it, and won't completely roll Kerberos out until end '06. Thanks, Brian ...more >>

Internal Server Error on Invoke
Posted by Mike at 1/11/2005 2:55:05 PM
All, I'm trying to test my web service. I can browse to the site and see the available methods, but when I attempt to Invoke one of them I get "Internal Server Error" returned to the browser. I am running WSE 2.0 Service Pack 2. Any help would be greatly appreciated. Thanks Mike ...more >>

WSE TCP and UsernameTokenManager?
Posted by William Stacey [MVP] at 1/11/2005 12:35:52 PM
In a wse tcp config using SoapClient and SoapService. Want to add UsernameToken at client and send to service. Service will use derived UsernameTokenManager to verify token. Can not seem to get this to work. All examples seem to lean toward a web.config and ASP config instead of TCP, so not ...more >>

WSE Policy under 2003
Posted by Joly1 at 1/11/2005 9:10:45 AM
Hi, I have a doctored VBS/ASP classic apllication whcih consumes a WSE proxy expossed through COM, correctly marshalled for interoperability. It uses inetinfo.exe.config in order for the IIS 5.0 to pull the WSE config information. This works correctly. In order test this a .Net WinForms te...more >>

Additional namespace element in CanonicalizationMethod element
Posted by yves at 1/11/2005 1:49:13 AM
All, We run a Java-based (Axis with WSS4J) webservice and we have both Java and ..NET (C#) clients. While encryption is no problem for all client-server combinations we have problems with signature validation from C# requests. The strange thing is that we have a MS-box with the C#-client wh...more >>


DevelopmentNow Blog