cancel
Showing results for 
Search instead for 
Did you mean: 

Web Service X.509

david_fryda2
Participant
0 Kudos

Hi,

I am trying without success to call a simple web service via C#.

This web service is configured to work with X.509.

In the C# project, I accessed the WSE setting 2.0 and added the policy.

I then wrote some code in order to make the call to that web service but I get an exception :


System.Web.Services.Protocols.SoapException: 00188B3106AA0067000001A20000074400042BF3F81EF158 : An error occurred during processing the timestamp. The
 error was: com.sap.security.core.ws.wss.NoSecurityHeaderException No wsse:Security header has been defined for role soap:finalActor. Please verify th
e policy configuration..
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolea
n asyncCall)

What shoul I do ?

Thanks.

Regards.

Accepted Solutions (0)

Answers (1)

Answers (1)

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi David,

maybe the following postings will help you ?

<a href="http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/121b053d-0401-0010-539f-f9295efb7bad">Creating a .NET Client for a SAP Java Web Service</a>

Best regards,

André

david_fryda2
Participant
0 Kudos

Hi Andre,

Thanks for this document which is helpfull.

I still have an exception :


System.Web.Services.Protocols.SoapException: 00188B3106AA007C0000001A0000299400042C039B3E8465 : Error during the generation of encryption element. Err
or was: com.sap.security.core.securitypolicy.assertions.cert.WSSEKeystoreException Could not resolve certificate with X509v3 extension SubjectKeyIdent
ifier WebServiceSecurity in keystore view 38:2A:F7:31:B6:C7:B1:EE:F0:B9:9A:67:E4:45:16:47:8B:66:40:A1.
   at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolea
n asyncCall)
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)

Do you know what did I do wrong ?

My web service is configured as follow :

HTTP + Doc authentication X.509

Thanks for the help.

Regards.