Invalid WS Security Header - IRS ACA SOAP Request

前端 未结 4 1905
借酒劲吻你
借酒劲吻你 2021-02-04 00:33

I\'m in the process of submitting a RequestSubmissionStatusDetail request from the IRS.

Here\'s my problem. When submitting the following document to the IR

4条回答
  •  长情又很酷
    2021-02-04 00:52

    It sounds like we're on the same path; maybe we can help each other out.

    I ended up doing security by configuration:

    
    

    You'll also need to override the identity DNS value for your endpoint with whoever your certificate was issued to. Put this inside your tags

    
      
    
    

    Finally, when you create a client, you need to use a ChannelFactory and set the appropriate credentials. Mine looks like this:

    var factory = new ChannelFactory("BulkRequestTransmitterPort");
    factory.Credentials.ClientCertificate.SetCertificate(StoreLocation.LocalMachine, StoreName.My, X509FindType.FindByThumbprint, "3164c4510490d2c0f16f1e4cffd76b708964fa7c");
    factory.Credentials.ServiceCertificate.SetDefaultCertificate(StoreLocation.LocalMachine, StoreName.My, X509FindType.FindByThumbprint, "3164c4510490d2c0f16f1e4cffd76b708964fa7c");
    var client = factory.CreateChannel();
    

    Let me know if you run into something else. Assuming your certificate and application status is OK, then once you get through this you'll probably be stuck on the next step with me (proper MTOM encoding). If you get through that successfully PLEASE let me know :)

提交回复
热议问题