wse

Connecting to a WSE 3.0 Web Service From a WCF Client

I'm having difficulty connecting to a 3rd party WSE 3.0 web service from a WCF client. I have implemented the custom binding class as indicated in this KB article: http://msdn.microsoft.com/en-us/library/ms734745.aspx The problem seems to have to do with the security assertion used by the web service - UsernameOverTransport. When I ...

WCF calling WSE 2.0 WS-Security service with inline security tokens in the response - "Cannot find a token authenticator"

I have a web service in .NET 1.1 and WSE 2.0 that uses WS-Security with x509 certificates for both signature and encryption. I'm trying to configure a WCF client to connect with this service, and it's proving more challenging that I had expected. I've gotten past most of my versioning issues by using a custom binding, but I'm stuck on ...

Connect to an asmx page behind https, requiring sign only, using WCF

I'm trying to connect to a web service that requires me to sign with a certificate before I connect. In WSE 3.0, all I had to do is create a certificate policy and choose the "sign only" radio button. That worked fine in WSE 3.0, but I want to use this on Visual Studio 2008+ (wse 3.0 only supports 2005). In order to get around the 2005 ...

SOAP WSE .Net issue with Action header

We have a SOAP Web Service we wrote that accepts work fine testing without a WSE policy set on the class using the Policy Attribute on the class that implements the WS "<Policy("ServicePolicy")> _" once we put the policy in place and the WS is posted to, the service returns back a SoapFault saying (without ever getting into our code, ...

How do I prevent my .NET SOAP client from including "Connection: KeepAlive" in the HTTP headers. (using WSE3.0)

In the HTTP Connection header, my web service client is including: Connection: Keep-Alive I want to disable this. After doing some research, it appears the way to do this is to set the KeepAlive member of the SoapHttpChannelOptions class to false. But, I do not see a way to access/modify SoapHttpChannelOptions in the webservice clien...

Calling Web Service with WSE 3.0 from COM+

I have to update a COM+ application to call a web service that uses WSE 3.0. What is the best way to call the web service from the COM+ client? My current plan is to create an Interop assembly like this: COM+ Client <--> Interop Assembly <--> WSE 3.0 Web Service Wondering if anyone has some guidance on best practices for this type of s...

Microsoft.Web.Services3.ResponseProcessingException

I deployed a web service that used WSE 3.0 to a test server. I am getting the cryptic error below. Have any idea what this means and how to fix it? Thanks in advance! Microsoft.Web.Services3.ResponseProcessingException: WSE910: An error happened during the processing of a response message, and you can find the error in the inner excepti...

WSE 3.0 Trust chain error - how do i view what certificate is being sent back? I want to know what cert has the trust chain error.

I'm having a trust chain error when I receive my response in WSE 3.0. Their cert is fine when I grab the WSDL. Their cert is fine when I connect. It likes my public cert when I send the XML request. What WSE doesn't like is the token in the response. Microsoft.Web.Service3 calls getelement, then loadbinarysecuritytoken, but then check...

How do I get a WSE 3.0 web service to impersonate my client's identity?

I have a WSE 3.0 based web service running in Windows Server 2003 under IIS 6.0. I want the web service process to impersonate the client user that sends the web service request, however the service is not impersonating the client. The web application has its own app pool, which is currently set to run under the Network Service identity...

MessageID format in WSE

Hi, I've built a web service using WSE 3.0 that should interface with various other platforms like IBM's WebSphere. In the addressing part of the request the content of MessageID needs to be in the format uuid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. Anything else results in a "Bad Request" error. I've been told that according to WS-Addres...

Are .NET WSE client stubs thread-safe?

Are client stubs generated from WSDL by .NET WSE thread-safe? Of course, "thread-safe" isn't necessary a rigorously defined term, so I'm at least interested in the following: Are different instances of the same stub class accessible concurrently by different threads, with the same effective behavior as single-threaded execution? Is a ...

WSE032 error, WebServicesConfiguration cannot load config. section

I have developed a small tool to upload salary information to the swiss administration and I used WSE 3.0 with success. But now, one of my customers has reported that on his machine, my program crashes with the following stack trace: WSE032: There was an error loading the microsoft.web.services3 configuration section. at Microsoft.Web...

WSE Settings 2.0 in VS2008

I am updating an application which communicates with a third party system using WSE and DIME attachments. The current solution is writen in VS2003 and .Net framework 1.1 and I am looking to update it so that it is developed in VS2008 using.Net 2.0 initially and then later .Net 3.5. I have no scope to update the third party application so...

Possible by reflection to get the instance of the calling methods class, or any method in the callstack?

Is it possible using reflection to get THE instance of the class of a calling method? Trying to "hack" a solution for webservices to pass on the Timeout value of the incoming call (When you call a webservice that in turn calls a new webservice using WSE. It sucks when the client sets a timeout of 5 mins and the next level only have the ...

Getting rid of the Expires node (xml) in the WS security header

From the snippet below, how do i get rid of the (xml node) <wsu:Expires> tag? I want to either get rid of it or pass it in as a empty element. It is a read only property in objClient.RequestSoapContext.Security.Timestamp.Expires. Any help is appreciated. <wsse:Security soap:mustUnderstand="1"> <wsu:Timestamp wsu:Id="Timestamp-26...

Error processing response in .net web service with WSE3 mutualCertificate10Security Assertion

I am securing a .net web service (framework 2.0) with WSE3 mutualCertificate10Security Assertion. When request are valid all is fine and the response is wellformed, but when the request is invalid (cause a invalid signature, failed check, or soapexception thrown), the web server isn't able to process the response to send to the client....

Inserting username/password in soap header using wse

I am creating an asp.net web service using visual studio 2008 using wse3.0. It will be calling a java web service in JBoss WebSphere. The java web service expects username/password token in the soap header. i have created web service proxy Dim srv As New externalWebservice.externalWebservice() Dim userToken As UsernameToken userT...

WSE 3.0 Client calling WCF Service with Username Token - Example

Can someone please provide a complete example of the following scenario with code: WSE 3.0 client - consuming WCF service. WSE client is using username token in code. WCF service needs to authenticate username token. Thanks ...

WSE3 - WCF Interop

Hi guys, I need to provide a WCF Service capable of suply data to old .Net clients (WSE) vía SSL and using signed messages for non repudiation porpuoses. Can any one give me a hint about configurations and architectures on both sides? For the service: bindings? Security modes? For the client: Policies? Tokens? thanks! ...

web service error ' it does not have a parameterless constructor '

I've created a web service , which can a method to set the user credential using Microsoft.Web.Services3.WebServicesClientProtocol. The sample code is : <WebMethod()> _ Public Sub ClientCredential1(Of TSecurityToken As SecurityToken)_ (ByVal UserCred As Microsoft.Web.Services3.Security.Tokens.UsernameToken) Dim cPr...