I am trying to send a Soap Request to IRS and facing the same error like others in this group - 'Invalid WS Security Header'. can someone guide me with a sample Soap Request? One more question is - as part of the Enrollment process, we submitted our X509 certificate(public key) to IRS website which will be used to authenticate/decrypt your message digests. Which certificate file did you upload for this process? We are really stuck with this error for days now. Appreciate any help on this. I have seen 2 questions on this topic, but there are no helping answers.
IRS Soap Fault - Invalid WS Security Header
3.6k Views Asked by Sha At
2
There are 2 best solutions below
Related Questions in WEB-SERVICES
- couldn't copy pdb file to another directory while consuming wcf web service
- .net rest service with JSON string and consumed with java client
- How to send Rest GET request that contains "#" value in url parameters?
- Looking the Method that MANUALLY INSTALL PHP on OSX Yosemite
- How to use @queryparam when using array in Java
- How to accept cookies when using a webservice - Android?
- zend soap server reading xml attributes
- Web Service Error path property must set before calling the send method
- Error with kSOAP2
- JAX-RS service response is returning double fields without decimal places
- How can I call a ASP.Net webservice using AJAX without calling controller
- Generate clients for multiple WSDL files and place it in different package through Spring Gradle
- File upload in AXIS2 webservice
- How to route by call method in proxy with WSO2?
- fetch data from web service to dataset in Delphi
Related Questions in WSS4J
- The signature or decryption was invalid when verifying with cxf
- CXF WS-Security - X509IssuerSerial validation fails
- How to use symmetric key to encrypt and sign SOAP using WSS4J
- Upgrading CXF and WSS4J but can't find dependencies
- Program exits unexpectedly without error
- How to enable SignatureConfirmation element in an Apache CXF SOAP server
- Use PrivateKey in wss4j directly
- Apache CXF / WSS4J Certificate Validation
- ( Axis2 / Rampart ) Disable BSP Compliance OR Remove <ec:InclusiveNamespaces>
- Error while invoking camel proxy webservice
- WSS4J with Spring WS (user/password authentication + .cert)
- How to Use gzip to compress messages in web services before send?
- Only if Tomcat deploys in a certain order: Could not initialize class org.apache.wss4j.stax.setup.WSSec
- SOAP WSS4JInInterceptor Security processing failed (actions mismatch)
- Migrating to CXF 3.2.7 -> How to solve the password related security error during SOAP RQ processing?
Related Questions in IRS
- ACA. Check sum augmentation number calculation
- Invalid Namespace Error When Submitted ACA Files to the IRS Using the AIR UI
- Sending a request to the IRS ACA A2A BulkRequestTransmitter web service
- IRS-A2A: WS Security Header is invalid
- IRS ACA 1095B BulkRequestTransmitter: Invalid WS Security Header - SOAP UI
- Invalid WS Security Header - IRS ACA SOAP Request using IBM integration BUS / Message Broker
- IRS ACA submission - Error TPE1122, WS Security Header in the message is invalid
- IRS Soap Fault - Invalid WS Security Header
- Compress a HttpWebRequest using gzip
- Send SOAP messages via WCF with MTOM and Content-Transfer-Encoding: 7-bit
- C#/IRS ACA - Sending a web service request with both MTOM attachment and GZip encoding using WCF 4.5
- Sending an attachment through SOAP HttpWebRequest
- IRS ACA 1095C SOAP Fault : Error in assertion processing
- how to disable multipart streaming apache cxf
- IRS-A2A Invalid Child Elements gzipMessageEncoding in App.config
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I am assuming this is for ACA Air IRS submissions. We uploaded the .cer file to the IRS site, where you associate your TCC (in the format BBBBB, for example) with the .cer you uploaded. The stack we used were: Oracle's JDK 8, WSS4J v2.1.4, and CXF v3.1.4. Here is sample Java code we used for signing the reference elements that the IRS wants signed:
Here is the sample SOAP request
The key really for us was this from the IRS documentation because we were using Apache CXF v2.1.4:
Big Hack for 7bit content type encoding and content type
5.4.2 (from IRS documentation) Message Attachment Content Type ISS-A2AAIR web services require transmitters to use SOAP-over-HTTP messaging with MTOM to send XML data files. The file that is encoded in the MTOM attachment must be uncompressed native XML. The content type for the MTOM encoded binary object identified in the Manifest header must be “application/xml”. The content-transfer-encoding of the Form Data File must be 7-bit.
Inside apache-cxf-3.1.4-src/core/src/main/java/org/apache/cxf/attachment/AttachmentSerializer.java