Non-asmx SOAP 1.1 consumption Web service in C # with header protection

First time poster, so please correct me a little if I break the publishing rules. I read them, and I think I'm right.

I searched for a while before posting and cannot find a guide on what I'm trying to do, so I thought I posted it here.

I need to write a C # .NET 3.5 program to use a web service developed in Java. I have a practice using ASMX web services in .NET using web links from my experience writing plugins and Dynamics CRM software, but it puzzled me.

My first attempt was to use a web link (yes, I know - not WCF), however the web service requires PasswordDigest (SHA-1 with nonce and created), username token and timestamp in SOAP header, and I could not find a way to add them to the SOAP header using a web link.

My second attempt was to use the Service Reference (I believe, but I’m probably mistaken, haha, that it is WCF), however I don’t have much practice with this, and any training materials that I found on the Internet do not help a lot.

Every time I try to use WS, I get a server rejection for the inability to authenticate.

My question is: how can I use a web service with these requirements in C # .NET 3.5?

Thank.

0
source share

All Articles