Developing a .NET client that consumes a secure METRO 2.1 web service?

Try to set DNS identity in client application's config file as described bellow.

Try to set DNS identity in client application's config file as described bellow As dns value set "xwssecurityserver". In my case it works (by the way I used your question as a base when solved this problem, so thank you for pointing the right way :) ).

Thanks! Your answer seems better, as my method caused some problems with server certificate validation afterwards. – Daniel Szalay May 2 at 19:04.

I don't actually think this is your problem, but it may help troubleshoot some of the tool warnings you're having. The second message looks vaguely familiar. We had a SOAP 1.1 client talking to a Java WS which exposed custom fault exception.

When the Java Service faulted it added the stack trace to the fault and our . NET client blew up because it didn't support multiple child elements, only SOAP 1.2 services do. After speaking with our Java development team they found out that there is a debug setting in Tomcat (or in Java I can't remember which) which allowed you to turn it of so no stack trace was included.

The faults were propagated correctly after that. Sorry can't be of more assistance but it may help.

This is how I configured the client: Uri uri = new Uri("localhost:8080/JavaWSJMX/KDTreeWSService"); X509Certificate2 server_cert = new X509Certificate2("C:/../server. Cer", "changeit"); //Second param is the certificate's password AddressHeader ah = new AddressHeader0; EndpointAddress ea = new EndpointAddress(uri, EndpointIdentity. CreateX509CertificateIdentity(server_cert), ah); KDTreeWSClient wsClient = new KDTreeWSClient("KDTreeWSPort", ea); Where KDTreeWSPort is the endpointConfigurationName, which you can get from your .

Config: After this you have to set ClientCredentials: //The server uses this certificate wsClient. ClientCredentials. ServiceCertificate.

DefaultCertificate = server_cert; //These are the default credentials on GlassFish v3.1 wsClient. ClientCredentials.UserName. UserName = "wsitUser"; wsClient.

ClientCredentials.UserName. Password = "changeit"; And you should be able to call your METRO web service! I am using the Proxy-class which was generated with svcutil, so I didn't make a ServiceReference.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions