Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
C#
                   Core2ServiceHTTPSBASICHTTP2 service = new Core2ServiceHTTPSBASICHTTP2();
                COREEnvelopeRealTimeRequest request = new COREEnvelopeRealTimeRequest();
                COREEnvelopeRealTimeResponse response = new COREEnvelopeRealTimeResponse();

                request.CORERuleVersion = "2.2.0";
                request.Payload = sX12;
                request.PayloadID = "f81d4fae-7dec-11d0-a765-00a0c91e6bf6";
                request.PayloadType = "X12_270_Request_005010X279A1";
                request.ProcessingMode = "RealTime";
                request.ReceiverID = "my-reciever-id";
                request.SenderID = "my-sender-id";
                request.TimeStamp = "2007-08-30T10:20:34Z";
                
                

                service.Credentials = new System.Net.NetworkCredential("my-user-name", "my-password");
                response = service.RealTimeTransaction(request);  //this line throwing exception
//it is web service method.

//Exception Text : An error occurred when verifying security for the message

//when i use feddler and check request response then in request my credential is not going to WebService, 

//if you understand issue then please post your solution.

//waiting...

//Thanks in Advance 
Posted
Comments
Bernhard Hiller 28-Nov-13 8:18am    
And what about that "COREEnvelopeRealTimeRequest"? Are there some properties regarding the security, e.g. a user and password field, or a token which you received upon a login request?
MuhammadUSman1 28-Nov-13 10:01am    
Thanks for reply.

These are properties, through these i am sending values to WebService, and i check through feddler these properties going in Reqeust as i set but the issue is Credentials i am setting Credentials also but in request it is not going to i don't know waht the issue is why it Credentials is not going in request?
MuhammadUSman1 29-Nov-13 0:00am    
There is no property in the object "COREEnvelopeRealTimeRequest" for the Username/Password. And also UserName/Password is not going to web service using given bellow statement service.Credentials = new System.Net.NetworkCredential("my-user-name", "my-password"); So, for the client authentication how can we send UserName/Password to web service?
I.A.Qureshi 28-Nov-13 14:29pm    
There is no property in the object "COREEnvelopeRealTimeRequest" for the Username/Password.
And also UserName/Password is not going to web service using given bellow statement

service.Credentials = new System.Net.NetworkCredential("my-user-name", "my-password");

So, for the client authentication how can we send UserName/Password to web service?
pharishp 10-Jan-19 20:10pm    
I am facing the same issue, were you able to get through this issue? Thanks in advance.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900