all groups > dotnet web services enhancements > september 2004
Filter by week: 1 2 3 4 5
Authenticate UsernameToken against Active Directory
Posted by sumaira.ahmad NO[at]SPAM gmail.com at 9/30/2004 5:55:46 PM
Hi,
Can anyone please tell me how to authenticate a Username Token against
Active Directory. Could not find much information on the web too.
Thanks,
Sumaira Ahmad... more >>
SoapClient SendRequestResponse and ReplyTo
Posted by tstephan NO[at]SPAM gmail.com at 9/30/2004 12:18:50 PM
I have written a simple soap client and server using the SoapClient
and SoapServer class. I had been setting the ReplyTo address but it
seems that the element is ignored. Reading the WSE 2.0 spec it states
that it will use the back channel if a return address can not be
generated. Analyzing t... more >>
Why is soap.inproc not supported for production use?
Posted by lbagnall at 9/29/2004 3:53:02 AM
I am designing a web service using WSE 2.0 that has flexible deployment
requirements. In particular, sometimes the client and service will be on the
same machine, and sometimes it will be going over the Internet. In the
latter case, I'm obviously going to use the HTTP transport. For the for... more >>
Nonce and Created Values. General Questions
Posted by John Jenkins at 9/28/2004 6:17:43 PM
Hi,
I am using WSE2.0sp1 for my security implementation for web services. A
customer is using WebLogic to implement their calls to my service.
The call fails with a "token could not be authenticated.." message. I
noticed the customer did not have
<wsse:Nonce></wsse:Nonce>
<wsu:Created><... more >>
Debug into Custom UserNameTokenManager??
Posted by Julie Lerman at 9/28/2004 5:35:44 PM
Is it possible?
I gave up and have been sticking data into the principal name to get
information back. Don't worry it's not production code....
Anyway, is it possible in VS.NET2003 to get the debugger to get INTO that
code?
I really have googled and looked in my varoius resources to no avai... more >>
How can UsernameTokenManager know what Web Service method is being invoked?
Posted by linhardt NO[at]SPAM aol.com at 9/28/2004 5:07:21 PM
I have implemented a UsernameTokenManager so that a user may attach an
account name and hashed password to his Soap requests.
If the user has forgotten his password, I want him to be able to click
on a button on the logon screen that will e-mail him his password.
I have a method called dbEma... more >>
Thread Pooling when using SoapService & SoapClient
Posted by DotNetFan NO[at]SPAM Community.nospam at 9/28/2004 4:25:02 PM
I am using Classes inherited from SoapService & SoapClient to communicate
between Service and Client Class using soap.tcp for communication. Client
class calls Service every 5 seconds. Both Service & Client Applications keep
on creating & existing new thread every 15 seconds.
Is there any wa... more >>
FaultTo endpoint does not work with "soap.tcp"
Posted by Ramadass at 9/28/2004 4:08:59 PM
I am designing an application,in which, i wish to catch an exception if the
destination SoapReceiver doesnt exist or is not actively running.
For this i initialized a SoapReceiver (the faultReceiver) at a specific
endpoint (the fault endpoint) to catch all faults.
The FaultTo address of the Soap... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Authentication & Authorization
Posted by Thomas Waldron at 9/28/2004 11:59:06 AM
What is a recommended way using the WSE to handle authentication and
role-based authorization between domain boundaries? (client code in DMZ, web
services on internal server)
More or less, what I'm going for is a series of "service accounts" or
principals that are authorized to call certain... more >>
WSE Add-in Not Found
Posted by Tim Heuer at 9/28/2004 11:09:04 AM
I just installed WSE 2.0 Sp1 (I removed WSE 2.0 first) and with both
versions, when I fire up Visual Studio 2003, I get an error message "The
Add-in "Microsoft WSE 2.0 Settings Tool" failed to load or caused an
exception.
The error Message = "The system cannot find the file specified" Error
... more >>
How to generate username or kerberos tokens automatically
Posted by IP at 9/27/2004 2:53:02 PM
How can I generate username or kerberos tokens automatically?
I have the following configuration in my app.config:
<microsoft.web.services2>
<policy>
<cache name="../../policyCache.config" />
</policy>
<diagnostics/>
<tokenIssuer>
<autoIssueSecurityContextToke... more >>
Policy settings tool and username tokens (not x509)
Posted by Julie Lerman at 9/27/2004 1:18:19 PM
If I am starting out with username ONLY , no x509 etc certificates in my
wse2 solution, I'm confused by the need (via settings tool) to select a
digital certificate.
I'm securing a client application.
I have (for now) deselected require sigs and encryption on the request
message and selecte... more >>
Large Files
Posted by jefforyamos at 9/27/2004 12:05:05 PM
I am designing a mission-critical application that needs to move files as
large as 2GB across a T-1. I get the impression that DIME breaks down far
below this and is soon to be replaced by MTOM anyway.
What is Microsoft's recommendation on how to move large (too large for
memory) files across... more >>
"Adding a Progress Bar to Your Web Service Client Application" HOWTO?
Posted by Luca Martinetti at 9/26/2004 7:13:07 PM
Hi,
I've looked around for samples and/or tutorials about the article:
Adding a Progress Bar to Your Web Service Client Application by Matt Powell
http://msdn.microsoft.com/webservices/building/frameworkandstudio/tipstricks/default.aspx?pull=/library/en-us/dnservice/html/service11052002.asp
... more >>
config tool and policy for REMOTE server
Posted by Julie Lerman at 9/26/2004 7:10:29 PM
My Webservices are on a remote server, not localhost.
Is the WSE2 config tool designed ONLY to work with localhost when creating
policies?
I am running into the very annoying problem with a webservice that is on a
remote web server.
When I open up the config tool and go to policy and clic... more >>
Confused: WS, SOA, Messaging any better than CORBA?
Posted by Roseanna80 NO[at]SPAM hotmail.com at 9/26/2004 11:48:26 AM
Hello
I am still trying to grapple with Web Services, SOA, Messaging, so
please excuse my ignorance.
I can build and consume (Request/response) Web services with Visual
studio pretty easily. Visual Studio, makes these look like Internet
accessable remote procedure calls RPC. Sort of like C... more >>
SoapEnvelope Not Showing Contents
Posted by jefforyamos at 9/24/2004 3:11:39 PM
Correct me if I'm wrong, but I think somebody broke something on the
SoapEnvelope in SP1. The Addressing components no longer save their state
properly to the XmlDocument contained in the SoapEnvelope. It also shows
signs of not being reentrant on GetXml().
To reproduce, do this:
using Mi... more >>
content based router
Posted by Trebor at 9/24/2004 2:47:54 PM
I wrote a WS router which routes the SOAP requests to a different web
services, regarding their header info.
The code is the modified example of QuoteRouter2.0 project from the
ContentBasedRouter solution(WSE 2.0 examples).
protected override Uri ProcessRequestMessage(SoapEnvelope message... more >>
Why are policy files ineffective
Posted by IP at 9/23/2004 6:01:02 PM
In the WSE samples ResponseEncryption the policy file requires the request to
be signed and the response to be encrypted. The sample runs on my machine.
However, if I try to intercept the request with TcpTrace took so that I can
see the signatures etc., I see a message with no signatures.
... more >>
webservice global.asx error
Posted by John at 9/22/2004 11:37:59 PM
Hi
When I try to get reference to my remotely hosted web service, I get the
following error;
Parser Error Message: Could not load type 'localhost.Global'.
Source Error:
Line 1: <%@ Application Codebehind="Global.asax.vb"
Inherits="localhost.Global" %>
Source File: d:\webs\...\globa... more >>
Signing/Encrypting with kerberos token or usernametoken
Posted by Indra at 9/21/2004 6:17:02 PM
How can I define a policy that would sign and/or encrypt with a kerberos
token or a usernametoken (I am assuming you can sign with a usernametoken, I
don't know if that is true). The WSE Visual Studio plug-in only lets you
configure certificates for signing and encrypting.
I am hoping to st... more >>
Dynamically allocated soap.tcp port
Posted by Craig Neuwirt at 9/21/2004 2:46:55 PM
Is there a way to get a dynamically allocated port when constructing a
soap.tcp EndpointReference. In my particular situation, the
EndpointReference is being exchaning between components and does not need to
be a well known port. I tried passing 0, but that doesn't work. It would
be nice to ... more >>
.key file
Posted by Mikael Engdahl at 9/20/2004 1:25:07 PM
Hello,
How do I read a private key from a .key file?
/Mikael... more >>
cannot view indexed property
Posted by Ramani Kurella via .NET 247 at 9/20/2004 12:49:47 PM
Hello,
Iam trying to send x=2E509 certificate of the client to sign a soap=
message request and encrypt it with the server's x=2E509=
certificate in a secure conversation policy based=2E I somehow=
encounter this problem when retrieving the client's certificate=2E=
It is located in the cu... more >>
Securing the response from a Webservice
Posted by Amol Kasbekar at 9/17/2004 4:45:17 PM
I am looking at samples that come along with WSE 2.0 but I cannot find any
example that shows how to secure the response that is send by the webservice
to the client. I can sign and encrypt the request from the client. Any
pointers to sample codes for this will be very helpful.
TIA, Amol.
... more >>
SignedXml throws: CryptographicException: Unknown tranform has been encountered
Posted by Curt Smith via .NET 247 at 9/17/2004 11:11:26 AM
(Type your message here)
Maybe you have a thought on my : Unknown tranform has been=
encountered Problem???
I?m using WSE 1=2E0p1/=2ENET 1=2E1, and signing and verifying xml=
documents not SOAP=2E So I?m using WSE?s SignedXml and getting=
this exception=2E
My guess: machine=2Econf... more >>
SignedXml.CheckSignature(); CryptographicException: Unknown tranform has been encountered
Posted by chsmith NO[at]SPAM speakeasy.net at 9/17/2004 8:33:49 AM
I'm a 2 week newbie to VS.NET, .NET, and C# and need help on this time
critical project.
TIA
I'm using WSE 1.0sp1/.NET 1.0 and signing and verifying xml documents
not SOAP. So I'm using WSE's SignedXml and getting this exception.
My guess ???: machine.config doesn't have the tra... more >>
wsa:RelatesTo/@RelationshipType
Posted by Fraser at 9/17/2004 2:33:03 AM
The WS-A spec defines a single default value for the RelationshipType
attribute of a wsa:RelatesTo header, specifically wsa:Reply.
The spec further defines that the value of this attribute is a QName of type
anyURI.
We are considering using this attribute to contain an indicator of the typ... more >>
(Urgent) microsoft.web.services2.security.securityfault
Posted by Naresh at 9/17/2004 2:25:06 AM
When I call a Web Service function and send a dime attachment then if the
client machines time is set to be greater that that of the Wbe Service
Server, I get the exception - microsoft.web.services2.security.securityfault
error saying something about the Timestamp.checkvalid in its stacktrac... more >>
WSE Error Message
Posted by madmaxj at 9/16/2004 5:03:10 PM
I am trying to build a simple TCP based service, with TCP client. Whent the
client sends an request to the services here is the expection and stack
information throw by WSE 2.0:
Unhandled Exception: System.Exception: WSE104: An asynchronous callback
raised a
n exception. ---> System.NullRef... more >>
Deploying to prod server
Posted by Mike at 9/16/2004 4:39:51 PM
All,
What files do I need to copy to my ASP.NET app to get web services to work?
Do I copy the entire Web References directory? Do I need to install the
run-time files on my web server?
Of course everything works on my dev machine, but now when copying the the
pieces to the seperate boxes..... more >>
I've same problem
Posted by Nilesh Deshpande via .NET 247 at 9/16/2004 6:11:55 AM
I've the same problem. I found reply stating following:
I haven't seen mention of this in any of the documentation or HOL's but here
it is. Running Win 2k, you have to grant the ASPNET account "Act as part of
the operating system" in the local policies.
http://www.dotnet247.com/247reference/... more >>
WebMethod declarations
Posted by D.Mitchell at 9/16/2004 2:39:01 AM
I've been having a lot of problems getting X509 decryption to work but that's
another story. I've commented out all the code so it's now just a call with
no encryption, no signature and no username token.
On the server I get the following error when request is processed by WSE 2.
Server di... more >>
UsernameToken & LogonAsUser
Posted by Dominick Baier at 9/16/2004 12:42:30 AM
what's in Context.User ??
---
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
nntp://news.microsoft.com/microsoft.public.dotnet.framework.webservices.enhancements/<uyQqG#zmEHA.3812@TK2MSFTNGP10.phx.gbl>
I've read in a number of articles that if you use a UsernameT... more >>
Using WSE 2.0 in a Windows Service - looking for an example
Posted by robhindman NO[at]SPAM hotmail.com at 9/15/2004 2:55:07 PM
I'm looking for an example of a simple Windows Service that uses WSE
2.0 (WSE 2.0 sp1).
Specifically, I would like to implement a Windows Service in C# as
follows:
public class MyWindowsService : System.ServiceProcess.ServiceBase
{
...
}
I would like to use the soap:tcp pro... more >>
Webserver Behaviour
Posted by Sandro at 9/14/2004 2:48:53 PM
hello all
i'm just wondering if somebody has experienced the usage of the "Webserver
Behaviour" which
enables client-side script to invoke remote methods exposed by Web Services.
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/webservice/webservice_node_entry.asp
any ti... more >>
Problem using DIME attachments with files larger than 4MB
Posted by Markus Grein at 9/14/2004 9:26:30 AM
I'm currently developing a .NET application using WSE 2.0 for Uploading
files to a server.
After changing the following lines in the web.config to increase the
maxRequestLength,
I'm also able to upload files larger than 4MB:
<microsoft.web.services2>
<messaging>
<maxRequestLength... more >>
Stale EndpointReferences
Posted by Craig Neuwirt at 9/14/2004 7:47:52 AM
The WS-Addressing and WS-Messaging support in WSE 2.0 allow exchanging
EndpointReferences between services clients and providers (e.g.
WS-Eventing). Typically, a Web Service may store the EndPointReference in
a database. What is the WS recommended way to handle EndPointReferences
that may be ... more >>
Policy choice for the client.
Posted by Gravy at 9/14/2004 1:58:06 AM
Hi
From what I understand of WSE2.0 and Policy you can declare a service as
requiring say a Kerberose token and the .net client will automatically wrap
your windows identity in a Kerberose tocken and send it to the server. Is
that basically right? I'm not saying this is all policy does :-)... more >>
Using dynamic url changes generated proxy
Posted by Dominick Baier at 9/13/2004 10:02:43 PM
a general advice:
leave the generated classes untouched. if you want to customize the proxy in any way, inherit from the proxy and to your customisation there.
use the inherited class in your app to call the webservice.
in this way you can modify the proxy behaviour (e.g. reading some va... more >>
Article on WSE 2.0
Posted by Prasad DV at 9/13/2004 4:35:42 PM
Building Real World SOAP Messaging Applications using WSE 2.0 (Part 1)
by D. Venkatesh Prasad
... more >>
Encrypted response
Posted by Random at 9/13/2004 1:23:07 PM
What would be teh proper way to encrypt a SOAP response from a Web Service
without using x.509 or Kerberos? I know I could do it using straight
symmetric encryption algorithms like DES, but I'd rather use something more
secure.
I am encrypting the request to the Web Service using a UsernameTo... more >>
Am I missing something or has MS missed the plot?
Posted by Tim Haynes at 9/13/2004 12:22:05 AM
Hello all,
I'm trying to do something which I believe is very normal, standard sort of
requirement. I want to secure access to a web service across the Internet
using username/password on the server, then impersonate the account on that
server.
Option 1 - set IIS to basic authentication, w... more >>
Am I missing something or has MS missed the plot?
Posted by Dominick Baier at 9/12/2004 11:04:12 PM
Hi,
you are right - Windows needs the password in plaintext to impersonate a user (having to call LogonUser, which requires a password). Thinking about it - it is the only way Windows can do it.
So if you want to use the Windows infrastructure that's already there you have to combine option ... more >>
Flushing WSE security token cache
Posted by KyleB at 9/10/2004 5:20:06 PM
Running into a problem where a username token is used to
authenticate/encrypt a message to a web service. a custom token manager
looks up the password (token was configured to SendNone) in a database. this
all works fine. however if the user then goes and changes that password then
re-tries the ... more >>
WS-Security with makecert
Posted by Shell at 9/10/2004 2:13:12 AM
I'm trying to pass an X509SecurityToken from my client to my web
service. The certificate was made using makecert.exe, so it obviously
isn't trusted by the system. The problem now is that my service rejects
the call outright with the following message:
Microsoft.Web.Services2.Security.Security... more >>
WSE Requires Private Key in MachineKey Folder?
Posted by norml NO[at]SPAM shaw.ca at 9/9/2004 5:37:15 PM
Hello Readers,
I'm trying to create a web service client using VS .NET 2003 along
with WSE 2.0 under Win2K Prof. I'm having trouble using a X.509
digital certificate as it seems my app generates a windows exception
when trying to read the private key of the certificate. I believe the
digita... more >>
</maxRequestLength> and WSE 2.0
Posted by Ollie at 9/8/2004 5:28:17 PM
I have set web.config value for maxRequestLength to -1, but it is still
complaining that the maximum length is being exceeded, Do I have to change
the value in the machine.config as well?
Also what affect does the ChunkSize property have on the DimeAttachment in
class? I set it to 1024 and wou... more >>
WSE stupid question....
Posted by Ollie at 9/8/2004 10:47:39 AM
I am thinking of using attachments in WSE 2.0 to move a large file (100 Mb)
across a VPN to a third party network, does the client of the web service
implementing WSE 2.0 have to support WSE2.0 or can the cleint be any OS that
supports web services?
Cheers
Ollie Riches
... more >>
Encrypting the response
Posted by D.Mitchell at 9/3/2004 1:25:02 AM
Looks like it should be fairly simple from the example provided with WSE 2
install. I get an error on the last line. Retrieve the signing token OK. It's
definitley not nothing. Anything I am doing wrong.
-- IN THE WEB METHOD
Dim x509st As X509SecurityToken
Dim se As ISecurityElement
'loo... more >>
|