0

我已经通过 Java 和 SOAP UI 为 IRS AIR Webservice 生成了 SOAP 消息。他们都抛出相同的 TPE1105 错误。我曾尝试通过在 StackOverflow 中搜索错误来逐字验证,也曾联系过 AIR Mail Box 团队,但无法通过。如果我遗漏任何东西,有人可以在这里建议我吗?邮箱团队提到:在他们的服务器日志中出现“Prolog 中不允许内容”错误。我已经使用 HEX 编辑器验证了清单和有效负载 XML,我没有看到任何导致 BOM 的特殊字符。

AIR 团队解决问题的建议是:

  • 确保 HTTP 标头中没有空行,并且在最后一个 HTTP 标头之后只有一个空行 --> 除了 MIME 边界分隔之外,我没有看到任何额外的空行
  • 确保 HTTP 标头中的 Content-Type 根据 AIR 提交组合和参考指南第 10.3 节将消息定义为 Multi-part --> HTTP 标头已经具有 Multipart
  • 确保 SOAP 信封的序言中除了 XML 版本标记 () 之外没有隐藏/特殊字符 --> 没有 BOM,我已经在 HEX 编辑器中验证了这两个 XML。

仍然存在 TPE1105 错误

------=_Part_1_417037542.1463661950204
Accept-Charset:UTF-8
Accept-Encoding:gzip,deflate
Content-Encoding:gzip
SOAPAction:BulkRequestTransmitter
MIME-Version:1.0
Content-Transfer-Encoding:8bit
Content-Type:multipart/related;type=application/xop+xml;start=<root.message@cxf.apache.org>; start-info=text/xml;


<?xml version="1.0" encoding="UTF-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:urn="urn:us:gov:treasury:irs:ext:aca:air:7.0" xmlns:urn1="urn:us:gov:treasury:irs:common" xmlns:urn2="urn:us:gov:treasury:irs:msg:acabusinessheader" xmlns:urn3="urn:us:gov:treasury:irs:msg:acasecurityheader" xmlns:urn4="urn:us:gov:treasury:irs:msg:irsacabulkrequesttransmitter" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<soap:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soap:mustUnderstand="1">
<ds:Signature Id="SIG-448A38CF540948AEB5CC3FB2BE5A8EF9">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments"/>
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<ds:Reference URI="#TS-2C362C7FC2DE2D497414636619501241">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="wsse wsa ds soap urn urn1 urn2 urn3 urn4"/>
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<ds:DigestValue>ZmVvaHY1ibehWM=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#id-A4BFA88D4EED4410B5C4CC1EB850E576">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="wsa ds soap urn1 urn2 urn3 urn4 wsu"/>
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<ds:DigestValue>Removed</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#id-FBA20BF181754306AAEF7C0E86D921CF">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<InclusiveNamespaces xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="wsa ds soap urn urn1 urn3 urn4 wsu"/>
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<ds:DigestValue>Removed</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>RemoveSigned Value</ds:SignatureValue>
<ds:KeyInfo Id="KI-7DC2B854399F4264949A4FC8FF93B86C">
<wsse:SecurityTokenReference wsu:Id="STR-2AF22A9BE69747D392A768AC99E7EEF3">
<wsse:KeyIdentifier EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3">MIIGGTCCBQGgAwIBAx7hj7N1m21NBFhMpco+vlQ=</wsse:KeyIdentifier>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
<wsu:Timestamp wsu:Id="TS-2C362C7FC2DE2D497414636619501241">
<wsu:Created>2016-05-19T12:45:50Z</wsu:Created>
<wsu:Expires>2016-05-19T12:54:10Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
<urn:ACATransmitterManifestReqDtl wsu:Id="id-A4BFA88D4EED4410B5C4CC1EB850E576">
<urn:PaymentYr>2015</urn:PaymentYr>
<urn:PriorYearDataInd>0</urn:PriorYearDataInd>
<urn1:EIN>3434343</urn1:EIN>
<urn:TransmissionTypeCd>O</urn:TransmissionTypeCd>
<urn:TestFileCd>T</urn:TestFileCd>
<urn:TransmitterNameGrp>
<urn:BusinessNameLine1Txt>Stone</urn:BusinessNameLine1Txt>
</urn:TransmitterNameGrp>
<urn:CompanyInformationGrp>
<urn:CompanyNm>Hidetestone</urn:CompanyNm>
<urn:MailingAddressGrp>
<urn:USAddressGrp>
<urn:AddressLine1Txt>44 Older Lane Suite 312</urn:AddressLine1Txt>
<urn1:CityNm>New York</urn1:CityNm>
<urn:USStateCd>GA</urn:USStateCd>
<urn1:USZIPCd>34343</urn1:USZIPCd>
</urn:USAddressGrp>
</urn:MailingAddressGrp>
<urn:ContactNameGrp>
<urn:PersonFirstNm>Tharba</urn:PersonFirstNm>
<urn:PersonLastNm>Bengan</urn:PersonLastNm>
</urn:ContactNameGrp>
<urn:ContactPhoneNum>345345345</urn:ContactPhoneNum>
</urn:CompanyInformationGrp>
<urn:VendorInformationGrp>
<urn:VendorCd>I</urn:VendorCd>
<urn:ContactNameGrp>
<urn:PersonFirstNm>Tharba</urn:PersonFirstNm>
<urn:PersonLastNm>Bengan</urn:PersonLastNm>
</urn:ContactNameGrp>
<urn:ContactPhoneNum>3434343434</urn:ContactPhoneNum>
</urn:VendorInformationGrp>
<urn:TotalPayeeRecordCnt>2</urn:TotalPayeeRecordCnt>
<urn:TotalPayerRecordCnt>1</urn:TotalPayerRecordCnt>
<urn:SoftwareId>15A0000945</urn:SoftwareId>
<urn:FormTypeCd>1094/1095B</urn:FormTypeCd>
<urn1:BinaryFormatCd>application/xml</urn1:BinaryFormatCd>
<urn1:ChecksumAugmentationNum>4072b0f706a4591df6d7d8ba4e02c4e5</urn1:ChecksumAugmentationNum>
<urn1:AttachmentByteSizeNum>7277</urn1:AttachmentByteSizeNum>
<urn:DocumentSystemFileNm>1094B_Request_BB31Q_20160513T090758000Z.xml</urn:DocumentSystemFileNm>
</urn:ACATransmitterManifestReqDtl>
<urn2:ACABusinessHeader wsu:Id="id-FBA20BF181754306AAEF7C0E86D921CF">
<urn:UniqueTransmissionId>32BIRD31-2615-3DD5-D053-6AD4570A4735:SYS12:<ID>::T</urn:UniqueTransmissionId>
<urn1:Timestamp>2016-05-18T00:28:01Z</urn1:Timestamp>
</urn2:ACABusinessHeader>
<urn3:ACASecurityHeader/>
<wsa:Action>BulkRequestTransmitter</wsa:Action>
</soap:Header>
<soap:Body xmlns:xop="http://www.w3.org/2004/08/xop/include">
<urn4:ACABulkRequestTransmitter version="1.0">
<urn1:BulkExchangeFile>
<xop:Include href="cid:1094B_Request_<ID>_20160513T090758000Z.xml"/>
</urn1:BulkExchangeFile>
</urn4:ACABulkRequestTransmitter>
</soap:Body>
</soap:Envelope>
------=_Part_1_417037542.1463661950204
Content-Type: application/xml;name=1094B_Request_<ID>_20160513T090758000Z.xml
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;name=1094B_Request_<ID>_20160513T090758000Z.xml
Content-ID: 1094B_Request_<ID>_20160513T090758000Z.xml

<?xml version="1.0" encoding="UTF-8"?>
<Form109495BTransmittalUpstream xmlns="urn:us:gov:treasury:irs:msg:form1094-1095Btransmitterupstreammessage" xmlns:common="urn:us:gov:treasury:irs:common" xmlns:xmlmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsd="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:air="urn:us:gov:treasury:irs:ext:aca:air:7.0">
    <air:Form1094BUpstreamDetail recordType="String" lineNum="0">
        <air:SubmissionId>1</air:SubmissionId>
        <air:TestScenarioId>1-0</air:TestScenarioId>
        <common:TaxYr>2015</common:TaxYr>
        <air:BusinessName>
            <air:BusinessNameLine1Txt>Hidetestone</air:BusinessNameLine1Txt>
        </air:BusinessName>
        <common:TINRequestTypeCd>BUSINESS_TIN</common:TINRequestTypeCd>
        <common:EmployerEIN>343434343</common:EmployerEIN>
        <air:ContactNameGrp>
            <air:PersonFirstNm>Tharba</air:PersonFirstNm>
            <air:PersonLastNm>bengan</air:PersonLastNm>
        </air:ContactNameGrp>
        <air:ContactPhoneNum>44454545454</air:ContactPhoneNum>
        <air:MailingAddressGrp>
            <air:USAddressGrp>
                <air:AddressLine1Txt>87 Bouler Lane Suite 312</air:AddressLine1Txt>
                <common:CityNm>New York</common:CityNm>
                <air:USStateCd>NY</air:USStateCd>
                <common:USZIPCd>87990</common:USZIPCd>
            </air:USAddressGrp>
        </air:MailingAddressGrp>
        <air:Form1095BAttachedCnt>2</air:Form1095BAttachedCnt>
        <air:Form1095BUpstreamDetail recordType="String" lineNum="0">
            <air:RecordId>1</air:RecordId>
            <air:TestScenarioId>1-2</air:TestScenarioId>
            <air:CorrectedInd>0</air:CorrectedInd>
            <common:TaxYr>2015</common:TaxYr>
            <air:ResponsibleIndividualGrp>
                <air:ResponsibleIndividualName>
                    <air:PersonFirstNm>NAANA</air:PersonFirstNm>
                    <air:PersonLastNm>MART</air:PersonLastNm>
                </air:ResponsibleIndividualName>
                <common:TINRequestTypeCd>INDIVIDUAL_TIN</common:TINRequestTypeCd>
                <common:BirthDt>1973-02-06</common:BirthDt>
                <air:MailingAddressGrp>
                    <air:USAddressGrp>
                        <air:AddressLine1Txt>1313 THORN LANE</air:AddressLine1Txt>
                        <common:CityNm>GEORGIA</common:CityNm>
                        <air:USStateCd>DC</air:USStateCd>
                        <common:USZIPCd>90877</common:USZIPCd>
                    </air:USAddressGrp>
                </air:MailingAddressGrp>
                <air:PolicyOriginCd>D</air:PolicyOriginCd>
            </air:ResponsibleIndividualGrp>
            <air:IssuerInfoGrp>
                <air:BusinessName>
                    <air:BusinessNameLine1Txt>OITSAT</air:BusinessNameLine1Txt>
                </air:BusinessName>
                <common:TINRequestTypeCd>BUSINESS_TIN</common:TINRequestTypeCd>
                <common:EIN>34343434</common:EIN>
                <air:ContactPhoneNum>5551352468</air:ContactPhoneNum>
                <air:MailingAddressGrp>
                    <air:USAddressGrp>
                        <air:AddressLine1Txt>975 Blder Lane Suite 312</air:AddressLine1Txt>
                        <common:CityNm>New York</common:CityNm>
                        <air:USStateCd>OR</air:USStateCd>
                        <common:USZIPCd>98903</common:USZIPCd>
                    </air:USAddressGrp>
                </air:MailingAddressGrp>
            </air:IssuerInfoGrp>
            <air:CoveredIndividualGrp>
                <air:CoveredIndividualName>
                    <air:PersonFirstNm>LOLLY</air:PersonFirstNm>
                    <air:PersonLastNm>OIRS</air:PersonLastNm>
                </air:CoveredIndividualName>
                <common:BirthDt>1973-02-06</common:BirthDt>
                <air:CoveredIndividualAnnualInd>0</air:CoveredIndividualAnnualInd>
                <air:CoveredIndividualMonthlyIndGrp>
                    <air:JanuaryInd>0</air:JanuaryInd>
                    <air:FebruaryInd>0</air:FebruaryInd>
                    <air:MarchInd>0</air:MarchInd>
                    <air:AprilInd>0</air:AprilInd>
                    <air:MayInd>0</air:MayInd>
                    <air:JuneInd>1</air:JuneInd>
                    <air:JulyInd>1</air:JulyInd>
                    <air:AugustInd>1</air:AugustInd>
                    <air:SeptemberInd>1</air:SeptemberInd>
                    <air:OctoberInd>1</air:OctoberInd>
                    <air:NovemberInd>1</air:NovemberInd>
                    <air:DecemberInd>1</air:DecemberInd>
                </air:CoveredIndividualMonthlyIndGrp>
            </air:CoveredIndividualGrp>
            <air:CoveredIndividualGrp>
                <air:CoveredIndividualName>
                    <air:PersonFirstNm>WARD</air:PersonFirstNm>
                    <air:PersonLastNm>IUTS</air:PersonLastNm>
                </air:CoveredIndividualName>
                <common:SSN>000000120</common:SSN>
                <air:CoveredIndividualAnnualInd>0</air:CoveredIndividualAnnualInd>
                <air:CoveredIndividualMonthlyIndGrp>
                    <air:JanuaryInd>0</air:JanuaryInd>
                    <air:FebruaryInd>0</air:FebruaryInd>
                    <air:MarchInd>0</air:MarchInd>
                    <air:AprilInd>0</air:AprilInd>
                    <air:MayInd>0</air:MayInd>
                    <air:JuneInd>1</air:JuneInd>
                    <air:JulyInd>1</air:JulyInd>
                    <air:AugustInd>1</air:AugustInd>
                    <air:SeptemberInd>1</air:SeptemberInd>
                    <air:OctoberInd>1</air:OctoberInd>
                    <air:NovemberInd>1</air:NovemberInd>
                    <air:DecemberInd>1</air:DecemberInd>
                </air:CoveredIndividualMonthlyIndGrp>
            </air:CoveredIndividualGrp>
        </air:Form1095BUpstreamDetail>
        <air:Form1095BUpstreamDetail recordType="String" lineNum="0">
            <air:RecordId>2</air:RecordId>
            <air:TestScenarioId>1-1</air:TestScenarioId>
            <air:CorrectedInd>0</air:CorrectedInd>
            <common:TaxYr>2015</common:TaxYr>
            <air:ResponsibleIndividualGrp>
                <air:ResponsibleIndividualName>
                    <air:PersonFirstNm>NANNA</air:PersonFirstNm>
                    <air:PersonMiddleNm>WINNONA</air:PersonMiddleNm>
                    <air:PersonLastNm>NEG</air:PersonLastNm>
                </air:ResponsibleIndividualName>
                <common:TINRequestTypeCd>INDIVIDUAL_TIN</common:TINRequestTypeCd>
                <common:SSN>000000101</common:SSN>
                <air:MailingAddressGrp>
                    <air:USAddressGrp>
                        <air:AddressLine1Txt>4435 NUT AVENUE</air:AddressLine1Txt>
                        <common:CityNm>MADISON</common:CityNm>
                        <air:USStateCd>GA</air:USStateCd>
                        <common:USZIPCd>87940</common:USZIPCd>
                    </air:USAddressGrp>
                </air:MailingAddressGrp>
                <air:PolicyOriginCd>D</air:PolicyOriginCd>
            </air:ResponsibleIndividualGrp>
            <air:IssuerInfoGrp>
                <air:BusinessName>
                    <air:BusinessNameLine1Txt>Hidstone</air:BusinessNameLine1Txt>
                </air:BusinessName>
                <common:TINRequestTypeCd>BUSINESS_TIN</common:TINRequestTypeCd>
                <common:EIN>874995</common:EIN>
                <air:ContactPhoneNum>5551352468</air:ContactPhoneNum>
                <air:MailingAddressGrp>
                    <air:USAddressGrp>
                        <air:AddressLine1Txt>11 Bouder Lane Suite 312</air:AddressLine1Txt>
                        <common:CityNm>New York</common:CityNm>
                        <air:USStateCd>NY</air:USStateCd>
                        <common:USZIPCd>56656</common:USZIPCd>
                    </air:USAddressGrp>
                </air:MailingAddressGrp>
            </air:IssuerInfoGrp>
            <air:CoveredIndividualGrp>
                <air:CoveredIndividualName>
                    <air:PersonFirstNm>NANNA</air:PersonFirstNm>
                    <air:PersonMiddleNm>WINNONA</air:PersonMiddleNm>
                    <air:PersonLastNm>URTN</air:PersonLastNm>
                </air:CoveredIndividualName>
                <common:SSN>000000101</common:SSN>
                <air:CoveredIndividualAnnualInd>1</air:CoveredIndividualAnnualInd>
                <air:CoveredIndividualMonthlyIndGrp>
                    <air:JanuaryInd>0</air:JanuaryInd>
                    <air:FebruaryInd>0</air:FebruaryInd>
                    <air:MarchInd>0</air:MarchInd>
                    <air:AprilInd>0</air:AprilInd>
                    <air:MayInd>0</air:MayInd>
                    <air:JuneInd>0</air:JuneInd>
                    <air:JulyInd>0</air:JulyInd>
                    <air:AugustInd>0</air:AugustInd>
                    <air:SeptemberInd>0</air:SeptemberInd>
                    <air:OctoberInd>0</air:OctoberInd>
                    <air:NovemberInd>0</air:NovemberInd>
                    <air:DecemberInd>0</air:DecemberInd>
                </air:CoveredIndividualMonthlyIndGrp>
            </air:CoveredIndividualGrp>
            <air:CoveredIndividualGrp>
                <air:CoveredIndividualName>
                    <air:PersonFirstNm>ISAIAS</air:PersonFirstNm>
                    <air:PersonLastNm>UVERD</air:PersonLastNm>
                </air:CoveredIndividualName>
                <common:SSN>000000002</common:SSN>
                <air:CoveredIndividualAnnualInd>1</air:CoveredIndividualAnnualInd>
                <air:CoveredIndividualMonthlyIndGrp>
                    <air:JanuaryInd>0</air:JanuaryInd>
                    <air:FebruaryInd>0</air:FebruaryInd>
                    <air:MarchInd>0</air:MarchInd>
                    <air:AprilInd>0</air:AprilInd>
                    <air:MayInd>0</air:MayInd>
                    <air:JuneInd>0</air:JuneInd>
                    <air:JulyInd>0</air:JulyInd>
                    <air:AugustInd>0</air:AugustInd>
                    <air:SeptemberInd>0</air:SeptemberInd>
                    <air:OctoberInd>0</air:OctoberInd>
                    <air:NovemberInd>0</air:NovemberInd>
                    <air:DecemberInd>0</air:DecemberInd>
                </air:CoveredIndividualMonthlyIndGrp>
            </air:CoveredIndividualGrp>
        </air:Form1095BUpstreamDetail>
    </air:Form1094BUpstreamDetail>
</Form109495BTransmittalUpstream>

------=_Part_1_417037542.1463661950204--
4

4 回答 4

1

经过长时间的斗争,找到了解决方案,方法如下。谢谢大家的提示和建议。

HTTP Header ContentType : Content-Type 应该如下,它不应该只是说 multipart/related。之前我错过了添加具有唯一 ID 的边界。添加具有唯一ID的边界后,我可以看到成功。

内容类型:多部分/相关;类型=“应用程序/xop+xml”;开始=“”;开始信息=“文本/xml”;边界="------ =_Part_20_771186217.1464204801278"

多个回车: 我构建的 SOAP 消息在最后一个 HTTP 标头(预期:100-继续)和第一个消息边界之间有两个回车。应该只有一个才能使它成功。

MTOM 附件的 Content-Type 和 Content-Transfer-Encoding 标头不正确:它们应该如下所示。

内容类型:文本/xml;charset=us-ascii 内容传输编码:7bit

于 2016-06-09T16:03:40.660 回答
0

TPE1105 是 IRS 检查的一级错误。我们在为 IRS 提交开发解决方案时遇到了这个错误。最可能的原因是附件内容类型。我为 IRS 提交创建了一个示例项目。这不是生产代码并且有一些硬编码,但是,这可以看作是您的解决方案的入口点

https://github.com/sangramjadhav/irsclient

为此,您需要配置证书存储路径和其他参数。如果您想尝试,请查看 application.yml 文件并进行相应更新

于 2016-05-30T06:59:44.533 回答
0

wsa:ActionSOAPAction应该是BulkRequestTransmitterService

于 2016-05-27T07:30:17.223 回答
0

昨天我的状态传输也收到了 TPE1105。直接使用 XML 不是问题。我将 XML 发送到应用 GZIP 编码的例程。我指定了不正确的长度,因此它在末尾添加了 NULL 字符。验证 XML 的实际长度是 GZIP 例程正在压缩的长度。我不得不使用 Fiddler 来捕获发送给 IRS 的数据。然后我把它解压缩,我可以在结束标记后看到 NULL。

于 2016-05-27T13:42:34.007 回答