IRS ACA SOAP边界错误 [英] IRS ACA SOAP boundary error

查看:233
本文介绍了IRS ACA SOAP边界错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我张贴的HttpClient使用一个gzip压缩的SOAP请求国税局ACA web服务。下面你会发现SOAP请求。我得到下面引用的边界错误。任何人都可以点问题,我的要求吗?




多部分流结束前终止边界遇到




  POST URL HTTP / 1.1 
的SOAPAction:BulkRequestTransmitter
接受编码:gzip,紧缩
含量型:多部分/相关;类型=应用程序/ XOP + XML;开始=&下; http://tempuri.org/SOAP>;启动信息=文/ XML;边界=------------ 030003010806000401010306
MIME-版本:1.0
主机:主机
的Content-Length:17797
期望:100-继续
连接:保持活动

-------------- 030003010806000401010306
内容类型:应用程序/ XOP + xml的;类型=文/ XML;字符集= UTF-8
含量-ID:其中,HTTP://tempuri.org/SOAP>
内容传输编码:8位

<肥皂:信封的xmlns:SOAP =htt​​p://schemas.xmlsoap.org/soap/envelope/>
<肥皂:肥皂头:mustUnderstand属性=1的xmlns:WSSE =htt​​p://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0的.xsd的xmlns:WSU =http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd>
< WSSE:安全和GT;
< D​​S:签名ID =SIG-9c4e3c69-8d46-4868-90ce-6f3a8e6585b2的xmlns:DS =htt​​p://www.w3.org/2000/09/xmldsig#>
< D​​S:SignedInfo中>
< D​​S:CanonicalizationMethod的算法=htt​​p://www.w3.org/2001/10/xml-exc-c14n#WithComments/>
< D​​S:是SignatureMethod算法=htt​​p://www.w3.org/2000/09/xmldsig#rsa-sha1/>
< D​​S:参考URI =#TS-7b0551e0-3c09-44e5-9de8-e1e55db97921>
< D​​S:变换>
< D​​S:变换算法=htt​​p://www.w3.org/2001/10/xml-exc-c14n#>
< InclusiveNamespaces PrefixList =DS的xmlns =htt​​p://www.w3.org/2001/10/xml-exc-c14n#/>
< / DS:转换>
< / DS:变换>
< D​​S:DigestMethod算法=htt​​p://www.w3.org/2000/09/xmldsig#sha1/>
< D​​S:DigestValue中> Reference1DigestValue< / DS:DigestValue中>
< / DS:参考>
< D​​S:参考URI =#ID-77b05a65-5962-4ad3-9987-068ff21bc387>
< D​​S:变换>
< D​​S:变换算法=htt​​p://www.w3.org/2001/10/xml-exc-c14n#/>
< / DS:变换>
< D​​S:DigestMethod算法=htt​​p://www.w3.org/2000/09/xmldsig#sha1/>
< D​​S:DigestValue中> Reference2DigestValue =< / DS:DigestValue中>
< / DS:参考>
< D​​S:参考URI =#ID-c0901773-b32f-4870-a934-6812ad67f5a6>
< D​​S:变换>
< D​​S:变换算法=htt​​p://www.w3.org/2001/10/xml-exc-c14n#/>
< / DS:变换>
< D​​S:DigestMethod算法=htt​​p://www.w3.org/2000/09/xmldsig#sha1/>
< D​​S:DigestValue中> Reference3DigestValue =< / DS:DigestValue中>
< / DS:参考>
< / DS:SignedInfo中>
< D​​S:SignatureValue所>的SignedInfo签名值< / DS:SignatureValue所>
< D​​S:密钥信息n =KI-e3234134-1755-481b-a113-49ab4b692d94>
< WSSE:SecurityTokenReference WSU:ID =STR-2a97bc36-9cb7-482d-90bb-2769b971d362>
< WSSE:KeyIdentifier EncodingType =htt​​p://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>公共密钥LT; / WSSE:KeyIdentifier>
< / WSSE:SecurityTokenReference>
< / DS:密钥信息>
< / DS:签字>
< WSU:时间戳WSU:ID =TS-7b0551e0-3c09-44e5-9de8-e1e55db97921>
< WSU:创建> 2016-03-07T16:25:11Z< / WSU:创建>
< WSU:过期> 2016-03-07T16:35:11Z< /华盛顿州立大学:截止日期>
< / WSU:时间戳>
< / WSSE:安全和GT;
< ACATrnsmtManifestReqDtlType的xmlns:XSD =htt​​p://www.w3.org/2001/XMLSchema中的xmlns:XSI =htt​​p://www.w3.org/2001/XMLSchema-instance华盛顿州立大学:ID =ID-77b05a65-5962-4ad3-9987-068ff21bc387的xmlns:WSU =htt​​p://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd >
< PaymentYr的xmlns =金塔:我们:政府网站:财政部:IRS:分机:ACA:空气:7.0> 2015< / PaymentYr>
< PriorYearDataInd的xmlns =金塔:我们:政府网站:财政部:IRS:分机:ACA:空气:7.0> 0℃; / PriorYearDataInd>
< EIN的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> EIN< / EIN>
< TransmissionTypeCd的xmlns =金塔:我们:政府网站:财政部:IRS:分机:ACA:空气:7.0> O< / TransmissionTypeCd>
< TestFileCd的xmlns =金塔:我们:政府网站:财政部:IRS:分机:ACA:空气:7.0> T< / TestFileCd>
< TransmitterNameGrp的xmlns =金塔:我们:政府网站:财政部:IRS:分机:ACA:空气:7.0>
< BusinessNameLine1Txt> Busness名称< / BusinessNameLine1Txt>
< / TransmitterNameGrp>
< CompanyInformationGrp的xmlns =金塔:我们:政府网站:财政部:IRS:分机:ACA:空气:7.0>
< CompanyNm> Busness名称< / CompanyNm>
< MailingAddressGrp>
< USAddressGrp>
< AddressLine1Txt>街道地址< / AddressLine1Txt>
< CityNm的xmlns =金塔:我们:政府网站:财政部:国税局:常见的>城市< / CityNm>
< USStateCd>州及LT; / USStateCd>
< USZIPCd的xmlns =金塔:我们:政府网站:财政部:国税局:常见的>邮编及LT; / USZIPCd>
< / USAddressGrp>
< / MailingAddressGrp>
< ContactNameGrp>
< PersonFirstNm>&名字LT; / PersonFirstNm>
< PersonLastNm>姓< / PersonLastNm>
< / ContactNameGrp>
< ContactPhoneNum>联系电话< / ContactPhoneNum>
< / CompanyInformationGrp>
< VendorInformationGrp的xmlns =金塔:我们:政府网站:财政部:IRS:分机:ACA:空气:7.0>
< VendorCd I标记< / VendorCd>
< ContactNameGrp>
< PersonFirstNm>&名字LT; / PersonFirstNm>
< PersonLastNm>姓< / PersonLastNm>
< / ContactNameGrp>
< ContactPhoneNum>联系电话< / ContactPhoneNum>
< / VendorInformationGrp>
< TotalPayeeRecordCnt的xmlns =金塔:我们:政府网站:财政部:IRS:分机:ACA:空气:7.0> 2'; / TotalPayeeRecordCnt>
< TotalPayerRecordCnt的xmlns =金塔:我们:政府网站:财政部:IRS:分机:ACA:空气:7.0> 1 LT; / TotalPayerRecordCnt>
< SoftwareId的xmlns =金塔:我们:政府网站:财政部:IRS:分机:ACA:空气:7.0> 15A0000488< / SoftwareId>
< FormTypeCd的xmlns =金塔:我们:政府网站:财政部:IRS:分机:ACA:空气:7.0> 1094 / 1095B< / FormTypeCd>
< BinaryFormatCd的xmlns =金塔:我们:政府网站:财政部:国税局:常见的>应用/ XML< / BinaryFormatCd>
< ChecksumAugmentationNum的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> HASH< / ChecksumAugmentationNum>
< AttachmentByteSizeNum的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> 8919< / AttachmentByteSizeNum>
< D​​ocumentSystemFileNm的xmlns =金塔:我们:政府网站:财政部:IRS:分机:ACA:空气:7.0> 1094B_Request_TCC_Timestamp.xml< / DocumentSystemFileNm>
< / ACATrnsmtManifestReqDtlType>
< ACABulkBusinessHeaderRequestType的xmlns:XSD =htt​​p://www.w3.org/2001/XMLSchema中的xmlns:XSI =htt​​p://www.w3.org/2001/XMLSchema-instance华盛顿州立大学:ID =ID-c0901773-b32f-4870-a934-6812ad67f5a6的xmlns:WSU =htt​​p://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd >
< UniqueTransmissionId的xmlns =金塔:我们:政府网站:财政部:IRS:分机:ACA:空气:7.0> UniqueTransmissionId< / UniqueTransmissionId>
<时间戳的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> 2016-03-07T08:25:08Z< /时间戳>
< / ACABulkBusinessHeaderRequestType>
< / SOAP:包头>
<肥皂:身体与GT;
< NS0:ACABulkRequestTransmitter的xmlns:NS0 =瓮:我们:政府网站:财政部:IRS:消息:irsacabulkrequesttransmitter版本=1.0>
< NS1:BulkExchangeFile的xmlns:NS1 =瓮:我们:政府网站:财政部:国税局:常见的>
< XOP:包括的xmlns:XOP =htt​​p://www.w3.org/2004/08/xop/include的href =CID:1094B_Request_TCC_Timestamp.xml/>
< / NS1:BulkExchangeFile>
< / NS0:ACABulkRequestTransmitter>
< / SOAP:身体与GT;
< / SOAP:信封>

-------------- 030003010806000401010306
的Content-Type:application / xml进行
含量-ID:1094B_Request_TCC_Timestamp.xml
含量 - 转移编码:7位
内容处置:附件; NAME =1094B_Request_TCC_Timestamp.xml
名称:1094B_Request_TCC_Timestamp.xml

< Form109495BTransmittalUpstream的xmlns:XSD =htt​​p://www.w3.org/2001/XMLSchema中的xmlns:XSI = http://www.w3.org/2001/XMLSchema-instance的xmlns =金塔:我们:政府网站:财政部:IRS:消息:form1094-1095Btransmitterupstreammessage>
< Form1094BUpstreamDetail RECORDTYPE =LINENUM =0的xmlns =金塔:我们:政府网站:财政部:IRS:分机:ACA:空气:7.0>
< SubmissionId> 1 LT; / SubmissionId>
< TaxYr的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> 2015< / TaxYr>
<&BUSINESSNAME GT;
< BusinessNameLine1Txt> FilerBusinessName< / BusinessNameLine1Txt>
< / BUSINESSNAME>
< TINRequestTypeCd的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> BUSINESS_TIN< / TINRequestTypeCd>
< EmployerEIN的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> 000000151< / EmployerEIN>
< ContactNameGrp>
< PersonFirstNm> TestFirstName< / PersonFirstNm>
< PersonLastNm> TestLastName< / PersonLastNm>
< / ContactNameGrp>
< ContactPhoneNum>电话和LT; / ContactPhoneNum>
< MailingAddressGrp>
< USAddressGrp>
< AddressLine1Txt>的StreetAddress< / AddressLine1Txt>
< CityNm的xmlns =金塔:我们:政府网站:财政部:国税局:常见的>城市< / CityNm>
< USStateCd>州及LT; / USStateCd>
< USZIPCd的xmlns =金塔:我们:政府网站:财政部:国税局:常见的>邮编及LT; / USZIPCd>
< / USAddressGrp>
< / MailingAddressGrp>
将; Form1095BAttachedCnt→2&下; / Form1095BAttachedCnt>
将; Form1095BUpstreamDetail RECORDTYPE =LINENUM =0>
<&recordId所GT; 1 LT; /&的recordId GT;
将; CorrectedInd大于0&下; / CorrectedInd>
< TaxYr的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> 2015年< / TaxYr>
< ResponsibleIndividualGrp>
< ResponsibleIndividualName>
< PersonFirstNm> TestFirstName< / PersonFirstNm>
< PersonMiddleNm> TestMiddleName< / PersonMiddleNm>
< PersonLastNm> TestLastName< / PersonLastNm>
< / ResponsibleIndividualName>
< TINRequestTypeCd的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> INDIVIDUAL_TIN< / TINRequestTypeCd>
< SSN的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> 000000101< / SSN>
< MailingAddressGrp>
< USAddressGrp>
< AddressLine1Txt>的StreetAddress< / AddressLine1Txt>
< CityNm的xmlns =金塔:我们:政府网站:财政部:国税局:常见的>城市< / CityNm>
< USStateCd>州及LT; / USStateCd>
< USZIPCd的xmlns =金塔:我们:政府网站:财政部:国税局:常见的>邮编及LT; / USZIPCd>
< / USAddressGrp>
< / MailingAddressGrp>
< PolicyOriginCd> D< / PolicyOriginCd>
< / ResponsibleIndividualGrp>
< SponsoringEmployerInfoGrp />
< IssuerInfoGrp>
<&BUSINESSNAME GT;
< BusinessNameLine1Txt>&BUSINESSNAME LT; / BusinessNameLine1Txt>
< / BUSINESSNAME>
< TINRequestTypeCd的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> BUSINESS_TIN< / TINRequestTypeCd>
< EIN的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> 000000151< / EIN>
< ContactPhoneNum>电话和LT; / ContactPhoneNum>
< MailingAddressGrp>
< USAddressGrp>
< AddressLine1Txt>的StreetAddress< / AddressLine1Txt>
< CityNm的xmlns =金塔:我们:政府网站:财政部:国税局:常见的>城市< / CityNm>
< USStateCd>州及LT; / USStateCd>
< USZIPCd的xmlns =金塔:我们:政府网站:财政部:国税局:常见的>邮编及LT; / USZIPCd>
< / USAddressGrp>
< / MailingAddressGrp>
< / IssuerInfoGrp>
< CoveredIndividualGrp>
< CoveredIndividualName>
< PersonFirstNm> TestFirstName< / PersonFirstNm>
< PersonMiddleNm> TestMiddleName< / PersonMiddleNm>
< PersonLastNm> TestLastName< / PersonLastNm>
< / CoveredIndividualName>
< TINRequestTypeCd的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> INDIVIDUAL_TIN< / TINRequestTypeCd>
< SSN的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> 000000101< / SSN>
< CoveredIndividualAnnualInd> 1 LT; / CoveredIndividualAnnualInd>
< CoveredIndividualMonthlyIndGrp>
将; JanuaryInd大于0&下; / JanuaryInd>
将; FebruaryInd大于0&下; / FebruaryInd>
将; MarchInd大于0&下; / MarchInd>
将; AprilInd大于0&下; / AprilInd>
将; MayInd大于0&下; / MayInd>
将; JuneInd大于0&下; / JuneInd>
将; JulyInd大于0&下; / JulyInd>
将; AugustInd大于0&下; / AugustInd>
将; SeptemberInd大于0&下; / SeptemberInd>
将; OctoberInd大于0&下; / OctoberInd>
将; NovemberInd大于0&下; / NovemberInd>
将; DecemberInd大于0&下; / DecemberInd>
< / CoveredIndividualMonthlyIndGrp>
< / CoveredIndividualGrp>
< CoveredIndividualGrp>
< CoveredIndividualName>
< PersonFirstNm> TestFirstName< / PersonFirstNm>
< PersonLastNm> TestLastName< / PersonLastNm>
< / CoveredIndividualName>
< TINRequestTypeCd的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> INDIVIDUAL_TIN< / TINRequestTypeCd>
< SSN的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> 000000102< / SSN>
< CoveredIndividualAnnualInd> 1 LT; / CoveredIndividualAnnualInd>
< CoveredIndividualMonthlyIndGrp>
将; JanuaryInd大于0&下; / JanuaryInd>
将; FebruaryInd大于0&下; / FebruaryInd>
将; MarchInd大于0&下; / MarchInd>
将; AprilInd大于0&下; / AprilInd>
将; MayInd大于0&下; / MayInd>
将; JuneInd大于0&下; / JuneInd>
将; JulyInd大于0&下; / JulyInd>
将; AugustInd大于0&下; / AugustInd>
将; SeptemberInd大于0&下; / SeptemberInd>
将; OctoberInd大于0&下; / OctoberInd>
将; NovemberInd大于0&下; / NovemberInd>
将; DecemberInd大于0&下; / DecemberInd>
< / CoveredIndividualMonthlyIndGrp>
< / CoveredIndividualGrp>
< / Form1095BUpstreamDetail>
将; Form1095BUpstreamDetail RECORDTYPE =LINENUM =0>
将;的recordId→2&下; /的recordId>
将; CorrectedInd大于0&下; / CorrectedInd>
< TaxYr的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> 2015< / TaxYr>
< ResponsibleIndividualGrp>
< ResponsibleIndividualName>
< PersonFirstNm> TestFirstName< / PersonFirstNm>
< PersonLastNm> TestLastName< / PersonLastNm>
< / ResponsibleIndividualName>
< BirthDt的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> 1973年2月6日< / BirthDt>
< MailingAddressGrp>
< USAddressGrp>
< AddressLine1Txt>的StreetAddress< / AddressLine1Txt>
< CityNm的xmlns =金塔:我们:政府网站:财政部:国税局:常见的>城市< / CityNm>
< USStateCd>州及LT; / USStateCd>
< USZIPCd的xmlns =金塔:我们:政府网站:财政部:国税局:常见的>邮编及LT; / USZIPCd>
< / USAddressGrp>
< / MailingAddressGrp>
< PolicyOriginCd> D< / PolicyOriginCd>
< / ResponsibleIndividualGrp>
< SponsoringEmployerInfoGrp />
< IssuerInfoGrp>
<&BUSINESSNAME GT;
< BusinessNameLine1Txt>&BUSINESSNAME LT; / BusinessNameLine1Txt>
< / BUSINESSNAME>
< TINRequestTypeCd的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> BUSINESS_TIN< / TINRequestTypeCd>
< EIN的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> 000000151< / EIN>
< ContactPhoneNum>电话和LT; / ContactPhoneNum>
< MailingAddressGrp>
< USAddressGrp>
< AddressLine1Txt>的StreetAddress< / AddressLine1Txt>
< CityNm的xmlns =金塔:我们:政府网站:财政部:国税局:常见的>城市< / CityNm>
< USStateCd>州及LT; / USStateCd>
< USZIPCd的xmlns =金塔:我们:政府网站:财政部:国税局:常见的>邮编及LT; / USZIPCd>
< / USAddressGrp>
< / MailingAddressGrp>
< / IssuerInfoGrp>
< CoveredIndividualGrp>
< CoveredIndividualName>
< PersonFirstNm> TestFirstName< / PersonFirstNm>
< PersonLastNm> TestLastName< / PersonLastNm>
< / CoveredIndividualName>
< BirthDt的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> DOB< / BirthDt>
将; CoveredIndividualAnnualInd大于0&下; / CoveredIndividualAnnualInd>
< CoveredIndividualMonthlyIndGrp>
将; JanuaryInd大于0&下; / JanuaryInd>
将; FebruaryInd大于0&下; / FebruaryInd>
将; MarchInd大于0&下; / MarchInd>
将; AprilInd大于0&下; / AprilInd>
将; MayInd大于0&下; / MayInd>
< JuneInd> 1 LT; / JuneInd>
< JulyInd> 1 LT; / JulyInd>
< AugustInd> 1 LT; / AugustInd>
< SeptemberInd> 1 LT; / SeptemberInd>
< OctoberInd> 1 LT; / OctoberInd>
< NovemberInd> 1 LT; / NovemberInd>
< D​​ecemberInd> 1 LT; / DecemberInd>
< / CoveredIndividualMonthlyIndGrp>
< / CoveredIndividualGrp>
< CoveredIndividualGrp>
< CoveredIndividualName>
< PersonFirstNm> TestFirstName< / PersonFirstNm>
< PersonLastNm> TestLastName< / PersonLastNm>
< / CoveredIndividualName>
< TINRequestTypeCd的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> INDIVIDUAL_TIN< / TINRequestTypeCd>
< SSN的xmlns =金塔:我们:政府网站:财政部:国税局:常见的> 000000120< / SSN>
将; CoveredIndividualAnnualInd大于0&下; / CoveredIndividualAnnualInd>
< CoveredIndividualMonthlyIndGrp>
将; JanuaryInd大于0&下; / JanuaryInd>
将; FebruaryInd大于0&下; / FebruaryInd>
将; MarchInd大于0&下; / MarchInd>
将; AprilInd大于0&下; / AprilInd>
将; MayInd大于0&下; / MayInd>
< JuneInd> 1 LT; / JuneInd>
< JulyInd> 1 LT; / JulyInd>
< AugustInd> 1 LT; / AugustInd>
< SeptemberInd> 1 LT; / SeptemberInd>
< OctoberInd> 1 LT; / OctoberInd>
< NovemberInd> 1 LT; / NovemberInd>
< D​​ecemberInd> 1 LT; / DecemberInd>
< / CoveredIndividualMonthlyIndGrp>
< / CoveredIndividualGrp>
< / Form1095BUpstreamDetail>
< / Form1094BUpstreamDetail>
< / Form109495BTransmittalUpstream>
-------------- 030003010806000401010306--


解决方案

对不起,我没有看到其他发表您的意见。



不幸的是,我不记得确切我有什么如何解决我这个帖子。我已经经过很多努力才能得到我所在的地方不同的事情的代码迭代,而我仍然在某处作为此项目的隧道的后半段。



不过,在审查你贴什么,反对什么我(目前)有工作比较(有错误,而不是上面的错误),请尝试从您的边界定义的开始拆除两个额外的破折号字符。



您定义了MIME边界, -------------- 030003010806000401010306 ,但在部分引用一下你们参考的开头两个额外虚线。



下面是我在我目前的工作的代码。




  • 我有我的边界设置为简单的东西: MIME_boundary

  • 在MIME头,它说之前的SOAP信封根元素之前FORMDATA文件的开头 - MIME_boundary

  • 然后,在请求的底部,它说 - MIME_boundary -


I am posting a GZip compressed SOAP request to IRS ACA webservice using httpClient. Below you will find the SOAP request. I get boundary error quoted below. Can anyone point to problems with my request?

Multipart stream ended before a terminating boundary was encountered

POST URL HTTP/1.1
SOAPAction: BulkRequestTransmitter
Accept-Encoding: gzip, deflate
Content-Type: multipart/related; type="application/xop + xml"; start="< http://tempuri.org/SOAP>"; start-info="text/xml"; boundary="------------030003010806000401010306"
MIME-Version: 1.0
Host: HOST
Content-Length: 17797
Expect: 100-continue
Connection: Keep-Alive

--------------030003010806000401010306
Content-Type: application/xop+xml; type="text/xml"; charset=utf-8
Content-ID: <http://tempuri.org/SOAP>
Content-Transfer-Encoding: 8bit

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header soap:mustunderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
        <wsse:Security>
            <ds:Signature Id="SIG-9c4e3c69-8d46-4868-90ce-6f3a8e6585b2" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
                <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-7b0551e0-3c09-44e5-9de8-e1e55db97921">
                        <ds:Transforms>
                            <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
                                <InclusiveNamespaces PrefixList="ds" xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" />
                            </ds:Transform>
                        </ds:Transforms>
                        <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
                        <ds:DigestValue>Reference1DigestValue</ds:DigestValue>
                    </ds:Reference>
                    <ds:Reference URI="#id-77b05a65-5962-4ad3-9987-068ff21bc387">
                        <ds:Transforms>
                            <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
                        </ds:Transforms>
                        <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
                        <ds:DigestValue>Reference2DigestValue=</ds:DigestValue>
                    </ds:Reference>
                    <ds:Reference URI="#id-c0901773-b32f-4870-a934-6812ad67f5a6">
                        <ds:Transforms>
                            <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
                        </ds:Transforms>
                        <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
                        <ds:DigestValue>Reference3DigestValue=</ds:DigestValue>
                    </ds:Reference>
                </ds:SignedInfo>
                <ds:SignatureValue>SignedInfo Signature Value</ds:SignatureValue>
                <ds:KeyInfo Id="KI-e3234134-1755-481b-a113-49ab4b692d94">
                    <wsse:SecurityTokenReference wsu:Id="STR-2a97bc36-9cb7-482d-90bb-2769b971d362">
                        <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">Public Key</wsse:KeyIdentifier>
                    </wsse:SecurityTokenReference>
                </ds:KeyInfo>
            </ds:Signature>
            <wsu:Timestamp wsu:Id="TS-7b0551e0-3c09-44e5-9de8-e1e55db97921">
                <wsu:Created>2016-03-07T16:25:11Z</wsu:Created>
                <wsu:Expires>2016-03-07T16:35:11Z</wsu:Expires>
            </wsu:Timestamp>
        </wsse:Security>
        <ACATrnsmtManifestReqDtlType xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" wsu:Id="id-77b05a65-5962-4ad3-9987-068ff21bc387" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <PaymentYr xmlns="urn:us:gov:treasury:irs:ext:aca:air:7.0">2015</PaymentYr>
            <PriorYearDataInd xmlns="urn:us:gov:treasury:irs:ext:aca:air:7.0">0</PriorYearDataInd>
            <EIN xmlns="urn:us:gov:treasury:irs:common">EIN</EIN>
            <TransmissionTypeCd xmlns="urn:us:gov:treasury:irs:ext:aca:air:7.0">O</TransmissionTypeCd>
            <TestFileCd xmlns="urn:us:gov:treasury:irs:ext:aca:air:7.0">T</TestFileCd>
            <TransmitterNameGrp xmlns="urn:us:gov:treasury:irs:ext:aca:air:7.0">
                <BusinessNameLine1Txt>Busness Name</BusinessNameLine1Txt>
            </TransmitterNameGrp>
            <CompanyInformationGrp xmlns="urn:us:gov:treasury:irs:ext:aca:air:7.0">
                <CompanyNm>Busness Name</CompanyNm>
                <MailingAddressGrp>
                    <USAddressGrp>
                        <AddressLine1Txt>Street Address</AddressLine1Txt>
                        <CityNm xmlns="urn:us:gov:treasury:irs:common">City</CityNm>
                        <USStateCd>State</USStateCd>
                        <USZIPCd xmlns="urn:us:gov:treasury:irs:common">Zip</USZIPCd>
                    </USAddressGrp>
                </MailingAddressGrp>
                <ContactNameGrp>
                    <PersonFirstNm>FirstName</PersonFirstNm>
                    <PersonLastNm>Last Name</PersonLastNm>
                </ContactNameGrp>
                <ContactPhoneNum>Contact Phone</ContactPhoneNum>
            </CompanyInformationGrp>
            <VendorInformationGrp xmlns="urn:us:gov:treasury:irs:ext:aca:air:7.0">
                <VendorCd>I</VendorCd>
                <ContactNameGrp>
                    <PersonFirstNm>FirstName</PersonFirstNm>
                    <PersonLastNm>Last Name</PersonLastNm>
                </ContactNameGrp>
                <ContactPhoneNum>Contact Phone</ContactPhoneNum>
            </VendorInformationGrp>
            <TotalPayeeRecordCnt xmlns="urn:us:gov:treasury:irs:ext:aca:air:7.0">2</TotalPayeeRecordCnt>
            <TotalPayerRecordCnt xmlns="urn:us:gov:treasury:irs:ext:aca:air:7.0">1</TotalPayerRecordCnt>
            <SoftwareId xmlns="urn:us:gov:treasury:irs:ext:aca:air:7.0">15A0000488</SoftwareId>
            <FormTypeCd xmlns="urn:us:gov:treasury:irs:ext:aca:air:7.0">1094/1095B</FormTypeCd>
            <BinaryFormatCd xmlns="urn:us:gov:treasury:irs:common">application/xml</BinaryFormatCd>
            <ChecksumAugmentationNum xmlns="urn:us:gov:treasury:irs:common">HASH</ChecksumAugmentationNum>
            <AttachmentByteSizeNum xmlns="urn:us:gov:treasury:irs:common">8919</AttachmentByteSizeNum>
            <DocumentSystemFileNm xmlns="urn:us:gov:treasury:irs:ext:aca:air:7.0">1094B_Request_TCC_Timestamp.xml</DocumentSystemFileNm>
        </ACATrnsmtManifestReqDtlType>
        <ACABulkBusinessHeaderRequestType xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" wsu:Id="id-c0901773-b32f-4870-a934-6812ad67f5a6" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
            <UniqueTransmissionId xmlns="urn:us:gov:treasury:irs:ext:aca:air:7.0">UniqueTransmissionId</UniqueTransmissionId>
            <Timestamp xmlns="urn:us:gov:treasury:irs:common">2016-03-07T08:25:08Z</Timestamp>
        </ACABulkBusinessHeaderRequestType>
    </soap:Header>
    <soap:Body>
        <ns0:ACABulkRequestTransmitter xmlns:ns0="urn:us:gov:treasury:irs:msg:irsacabulkrequesttransmitter" version="1.0">
            <ns1:BulkExchangeFile xmlns:ns1="urn:us:gov:treasury:irs:common">
                <xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:1094B_Request_TCC_Timestamp.xml" />
            </ns1:BulkExchangeFile>
        </ns0:ACABulkRequestTransmitter>
    </soap:Body>
</soap:Envelope>

--------------030003010806000401010306
Content-Type: application/xml
Content-ID: 1094B_Request_TCC_Timestamp.xml
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; name="1094B_Request_TCC_Timestamp.xml"
name: 1094B_Request_TCC_Timestamp.xml

<Form109495BTransmittalUpstream xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:us:gov:treasury:irs:msg:form1094-1095Btransmitterupstreammessage">
  <Form1094BUpstreamDetail recordType="" lineNum="0" xmlns="urn:us:gov:treasury:irs:ext:aca:air:7.0">
    <SubmissionId>1</SubmissionId>
    <TaxYr xmlns="urn:us:gov:treasury:irs:common">2015</TaxYr>
    <BusinessName>
      <BusinessNameLine1Txt>FilerBusinessName</BusinessNameLine1Txt>
    </BusinessName>
    <TINRequestTypeCd xmlns="urn:us:gov:treasury:irs:common">BUSINESS_TIN</TINRequestTypeCd>
    <EmployerEIN xmlns="urn:us:gov:treasury:irs:common">000000151</EmployerEIN>
    <ContactNameGrp>
      <PersonFirstNm>TestFirstName</PersonFirstNm>
      <PersonLastNm>TestLastName</PersonLastNm>
    </ContactNameGrp>
    <ContactPhoneNum>Phone</ContactPhoneNum>
    <MailingAddressGrp>
      <USAddressGrp>
        <AddressLine1Txt>StreetAddress</AddressLine1Txt>
        <CityNm xmlns="urn:us:gov:treasury:irs:common">City</CityNm>
        <USStateCd>State</USStateCd>
        <USZIPCd xmlns="urn:us:gov:treasury:irs:common">Zip</USZIPCd>
      </USAddressGrp>
    </MailingAddressGrp>
    <Form1095BAttachedCnt>2</Form1095BAttachedCnt>
    <Form1095BUpstreamDetail recordType="" lineNum="0">
      <RecordId>1</RecordId>
      <CorrectedInd>0</CorrectedInd>
      <TaxYr xmlns="urn:us:gov:treasury:irs:common">2015</TaxYr>
      <ResponsibleIndividualGrp>
        <ResponsibleIndividualName>
          <PersonFirstNm>TestFirstName</PersonFirstNm>
          <PersonMiddleNm>TestMiddleName</PersonMiddleNm>
          <PersonLastNm>TestLastName</PersonLastNm>
        </ResponsibleIndividualName>
        <TINRequestTypeCd xmlns="urn:us:gov:treasury:irs:common">INDIVIDUAL_TIN</TINRequestTypeCd>
        <SSN xmlns="urn:us:gov:treasury:irs:common">000000101</SSN>
        <MailingAddressGrp>
          <USAddressGrp>
            <AddressLine1Txt>StreetAddress</AddressLine1Txt>
            <CityNm xmlns="urn:us:gov:treasury:irs:common">City</CityNm>
            <USStateCd>State</USStateCd>
            <USZIPCd xmlns="urn:us:gov:treasury:irs:common">Zip</USZIPCd>
          </USAddressGrp>
        </MailingAddressGrp>
        <PolicyOriginCd>D</PolicyOriginCd>
      </ResponsibleIndividualGrp>
      <SponsoringEmployerInfoGrp />
      <IssuerInfoGrp>
        <BusinessName>
          <BusinessNameLine1Txt>BusinessName</BusinessNameLine1Txt>
        </BusinessName>
        <TINRequestTypeCd xmlns="urn:us:gov:treasury:irs:common">BUSINESS_TIN</TINRequestTypeCd>
        <EIN xmlns="urn:us:gov:treasury:irs:common">000000151</EIN>
        <ContactPhoneNum>Phone</ContactPhoneNum>
        <MailingAddressGrp>
          <USAddressGrp>
            <AddressLine1Txt>StreetAddress</AddressLine1Txt>
            <CityNm xmlns="urn:us:gov:treasury:irs:common">City</CityNm>
            <USStateCd>State</USStateCd>
            <USZIPCd xmlns="urn:us:gov:treasury:irs:common">Zip</USZIPCd>
          </USAddressGrp>
        </MailingAddressGrp>
      </IssuerInfoGrp>
      <CoveredIndividualGrp>
        <CoveredIndividualName>
          <PersonFirstNm>TestFirstName</PersonFirstNm>
          <PersonMiddleNm>TestMiddleName</PersonMiddleNm>
          <PersonLastNm>TestLastName</PersonLastNm>
        </CoveredIndividualName>
        <TINRequestTypeCd xmlns="urn:us:gov:treasury:irs:common">INDIVIDUAL_TIN</TINRequestTypeCd>
        <SSN xmlns="urn:us:gov:treasury:irs:common">000000101</SSN>
        <CoveredIndividualAnnualInd>1</CoveredIndividualAnnualInd>
        <CoveredIndividualMonthlyIndGrp>
          <JanuaryInd>0</JanuaryInd>
          <FebruaryInd>0</FebruaryInd>
          <MarchInd>0</MarchInd>
          <AprilInd>0</AprilInd>
          <MayInd>0</MayInd>
          <JuneInd>0</JuneInd>
          <JulyInd>0</JulyInd>
          <AugustInd>0</AugustInd>
          <SeptemberInd>0</SeptemberInd>
          <OctoberInd>0</OctoberInd>
          <NovemberInd>0</NovemberInd>
          <DecemberInd>0</DecemberInd>
        </CoveredIndividualMonthlyIndGrp>
      </CoveredIndividualGrp>
      <CoveredIndividualGrp>
        <CoveredIndividualName>
          <PersonFirstNm>TestFirstName</PersonFirstNm>
          <PersonLastNm>TestLastName</PersonLastNm>
        </CoveredIndividualName>
        <TINRequestTypeCd xmlns="urn:us:gov:treasury:irs:common">INDIVIDUAL_TIN</TINRequestTypeCd>
        <SSN xmlns="urn:us:gov:treasury:irs:common">000000102</SSN>
        <CoveredIndividualAnnualInd>1</CoveredIndividualAnnualInd>
        <CoveredIndividualMonthlyIndGrp>
          <JanuaryInd>0</JanuaryInd>
          <FebruaryInd>0</FebruaryInd>
          <MarchInd>0</MarchInd>
          <AprilInd>0</AprilInd>
          <MayInd>0</MayInd>
          <JuneInd>0</JuneInd>
          <JulyInd>0</JulyInd>
          <AugustInd>0</AugustInd>
          <SeptemberInd>0</SeptemberInd>
          <OctoberInd>0</OctoberInd>
          <NovemberInd>0</NovemberInd>
          <DecemberInd>0</DecemberInd>
        </CoveredIndividualMonthlyIndGrp>
      </CoveredIndividualGrp>
    </Form1095BUpstreamDetail>
    <Form1095BUpstreamDetail recordType="" lineNum="0">
      <RecordId>2</RecordId>
      <CorrectedInd>0</CorrectedInd>
      <TaxYr xmlns="urn:us:gov:treasury:irs:common">2015</TaxYr>
      <ResponsibleIndividualGrp>
        <ResponsibleIndividualName>
          <PersonFirstNm>TestFirstName</PersonFirstNm>
          <PersonLastNm>TestLastName</PersonLastNm>
        </ResponsibleIndividualName>
        <BirthDt xmlns="urn:us:gov:treasury:irs:common">1973-02-06</BirthDt>
        <MailingAddressGrp>
          <USAddressGrp>
            <AddressLine1Txt>StreetAddress</AddressLine1Txt>
            <CityNm xmlns="urn:us:gov:treasury:irs:common">City</CityNm>
            <USStateCd>State</USStateCd>
            <USZIPCd xmlns="urn:us:gov:treasury:irs:common">Zip</USZIPCd>
          </USAddressGrp>
        </MailingAddressGrp>
        <PolicyOriginCd>D</PolicyOriginCd>
      </ResponsibleIndividualGrp>
      <SponsoringEmployerInfoGrp />
      <IssuerInfoGrp>
        <BusinessName>
          <BusinessNameLine1Txt>BusinessName</BusinessNameLine1Txt>
        </BusinessName>
        <TINRequestTypeCd xmlns="urn:us:gov:treasury:irs:common">BUSINESS_TIN</TINRequestTypeCd>
        <EIN xmlns="urn:us:gov:treasury:irs:common">000000151</EIN>
        <ContactPhoneNum>Phone</ContactPhoneNum>
        <MailingAddressGrp>
          <USAddressGrp>
            <AddressLine1Txt>StreetAddress</AddressLine1Txt>
            <CityNm xmlns="urn:us:gov:treasury:irs:common">City</CityNm>
            <USStateCd>State</USStateCd>
            <USZIPCd xmlns="urn:us:gov:treasury:irs:common">Zip</USZIPCd>
          </USAddressGrp>
        </MailingAddressGrp>
      </IssuerInfoGrp>
      <CoveredIndividualGrp>
        <CoveredIndividualName>
          <PersonFirstNm>TestFirstName</PersonFirstNm>
          <PersonLastNm>TestLastName</PersonLastNm>
        </CoveredIndividualName>
        <BirthDt xmlns="urn:us:gov:treasury:irs:common">DOB</BirthDt>
        <CoveredIndividualAnnualInd>0</CoveredIndividualAnnualInd>
        <CoveredIndividualMonthlyIndGrp>
          <JanuaryInd>0</JanuaryInd>
          <FebruaryInd>0</FebruaryInd>
          <MarchInd>0</MarchInd>
          <AprilInd>0</AprilInd>
          <MayInd>0</MayInd>
          <JuneInd>1</JuneInd>
          <JulyInd>1</JulyInd>
          <AugustInd>1</AugustInd>
          <SeptemberInd>1</SeptemberInd>
          <OctoberInd>1</OctoberInd>
          <NovemberInd>1</NovemberInd>
          <DecemberInd>1</DecemberInd>
        </CoveredIndividualMonthlyIndGrp>
      </CoveredIndividualGrp>
      <CoveredIndividualGrp>
        <CoveredIndividualName>
          <PersonFirstNm>TestFirstName</PersonFirstNm>
          <PersonLastNm>TestLastName</PersonLastNm>
        </CoveredIndividualName>
        <TINRequestTypeCd xmlns="urn:us:gov:treasury:irs:common">INDIVIDUAL_TIN</TINRequestTypeCd>
        <SSN xmlns="urn:us:gov:treasury:irs:common">000000120</SSN>
        <CoveredIndividualAnnualInd>0</CoveredIndividualAnnualInd>
        <CoveredIndividualMonthlyIndGrp>
          <JanuaryInd>0</JanuaryInd>
          <FebruaryInd>0</FebruaryInd>
          <MarchInd>0</MarchInd>
          <AprilInd>0</AprilInd>
          <MayInd>0</MayInd>
          <JuneInd>1</JuneInd>
          <JulyInd>1</JulyInd>
          <AugustInd>1</AugustInd>
          <SeptemberInd>1</SeptemberInd>
          <OctoberInd>1</OctoberInd>
          <NovemberInd>1</NovemberInd>
          <DecemberInd>1</DecemberInd>
        </CoveredIndividualMonthlyIndGrp>
      </CoveredIndividualGrp>
    </Form1095BUpstreamDetail>
  </Form1094BUpstreamDetail>
</Form109495BTransmittalUpstream>
--------------030003010806000401010306--

解决方案

Sorry, I did not see your comments on the other post.

Unfortunately, I don't recall what exactly I had to do to fix the issue I reported in this post. I've had to go through a lot of iterations of code trying different things in order to get to where I am, and I'm still somewhere in the last half of the tunnel that is this project.

However, in reviewing what you posted and comparing against what I (currently) have working (with errors, but not the above error), try removing the two extra dash characters from beginning of your boundary definition.

You defined your MIME boundary as --------------030003010806000401010306 but the references in your parts have two extra dashes at the beginning of your reference.

Here's what I have in my current "working" code.

  • I have my boundary set to something simple: MIME_boundary.
  • In the MIME Header prior to the SOAP Envelope root element AND prior to the start of the FormData file, it says --MIME_boundary.
  • Then, at the bottom of the request, it says --MIME_boundary--.

这篇关于IRS ACA SOAP边界错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆