- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在向 IRS ACA 网站提交 1094/1095C 时随机遇到错误。它一直是一个有效的代码,有一段时间我没有对代码进行任何更改,突然我开始在很少的提交中看到这个错误。
代码是java的。我们仍然能够成功完成完整提交,但某些提交会返回 SOAP 错误。
........
org.apache.cxf.endpoint.Client yclient = (org.apache.cxf.endpoint.Client) factory.create();
GZIPInInterceptor ininterceptor = new GZIPInInterceptor();
yclient.getInInterceptors().add(ininterceptor);
Endpoint eEndpoint = yclient.getEndpoint();
EndpointInfo einfo = eEndpoint.getEndpointInfo();
BindingInfo b = einfo.getBinding();
ProviderFactory pf = ServerProviderFactory.getInstance();
eEndpoint.put(ProviderFactory.class.getName(), pf);
yclient.getRequestContext().put("soap.env.ns.map", nsMap);
yclient.getRequestContext().put("org.apache.cxf.client", Boolean.FALSE);
Collection<BindingOperationInfo> c = b.getOperations();
Iterator<BindingOperationInfo> it = c.iterator();
while (it.hasNext()) {
BindingOperationInfo bi = it.next();
QName name = bi.getOperationInfo().getName();
System.out.println(name.toString());
GZIPOutInterceptor interceptor = new GZIPOutInterceptor();
interceptor.setForce(true);
yclient.getOutInterceptors().add(interceptor);
Map<String, Object> ycontext = yclient.getRequestContext();
ycontext.put(MessageContext.HTTP_REQUEST_HEADERS, head);
Map<Integer, Class<?>> wssConfigActions = new HashMap<Integer, Class<?>>();
Map<String, Object> serverOutParams = createServerOutParams(wssConfigActions, true);
yclient.getOutInterceptors().add(new SOAPSecurityInterceptor());
yclient.getOutInterceptors().add(new SecurityHeaderHandler(null));
AIRXMLSignInterceptor sigInterceptor = new AIRXMLSignInterceptor(serverOutParams, true);
sigInterceptor.privateKey = PrivateKey;
yclient.getOutInterceptors().add(sigInterceptor);
AddressingProperties maps = new AddressingProperties();
AttributedURIType iri = new AttributedURIType();
iri.setValue("RequestSubmissionStatusDetail");
maps.setAction(iri);
ACABulkRequestTransmitterStatusDetailRequestType statusRequest = new ACABulkRequestTransmitterStatusDetailRequestType();
statusRequest.setId("id-00E7E0006E615C14D6000736030986000");
statusRequest.setVersion("1.0");
ACABulkReqTrnsmtStsReqGrpDtlType reqDetail = new ACABulkReqTrnsmtStsReqGrpDtlType();
reqDetail.setReceiptId(submissionRecord.StatusInfo.ReceiptId);
statusRequest.setACABulkReqTrnsmtStsReqGrpDtl(reqDetail);
ACABulkBusinessHeaderRequestType businessHeader = new ACABulkBusinessHeaderRequestType();
businessHeader.setId("id-00E7E0006E615C14D6000736030986000");
businessHeader.setUniqueTransmissionId(submissionRecord.StatusInfo.UniqueTransmissionId);
GregorianCalendar gregory = new GregorianCalendar();
TimeZone utc = TimeZone.getTimeZone("UTC");
gregory.setTime(UTCDate.now());
gregory.setTimeZone(utc);
XMLGregorianCalendar calendar = DatatypeFactory.newInstance().newXMLGregorianCalendar(gregory);
BusinessHeaderTimeStamp bhts = new BusinessHeaderTimeStamp(calendar);
businessHeader.setTimestamp(bhts);
System.out.println(bhts.toXMLFormat());
javax.xml.ws.Holder<ACABulkBusinessHeaderRequestType> businessHeaderWrapper = new javax.xml.ws.Holder<ACABulkBusinessHeaderRequestType>();
businessHeaderWrapper.value = businessHeader;
SecurityHeaderType securityHeader = configureSecurityHeader(now);
System.out.println("Polling receiptId: " + submissionRecord.StatusInfo.ReceiptId);
TransmitterACASecurityHeaderType acaSecurityHeader = new TransmitterACASecurityHeaderType();
acaSecurityHeader.setUserId(ASID);
Object[] res1 = yclient.invoke(bi, statusRequest, acaSecurityHeader, securityHeader,
businessHeaderWrapper);
ACABulkRequestTransmitterStatusDetailResponseType response = (ACABulkRequestTransmitterStatusDetailResponseType) res1[0];
submissionRecord.StatusInfo.Response = response;
String xml = submissionRecord.StatusInfo.toXML();
return xml;
......
最终请求:
<soapenv:Envelope xmlns:irs="urn:us:gov:treasury:irs:common" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:us:gov:treasury:irs:ext:aca:air:ty18" xmlns:urn2="urn:us:gov:treasury:irs:msg:acabusinessheader" xmlns:urn3="urn:us:gov:treasury:irs:srv:irsacabulkrequesttransmitter"
xmlns:urn4="urn:us:gov:treasury:irs:msg:acasecurityheader" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsse:Security xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="SIG-0000E45A7D26C7FA400002296060180000">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments"/>
<ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>
<ds:Reference URI="#TS-0000E45A7D26C7FA471572296060100000">
<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 irs soapenv urn urn2 urn3 urn4 wsse"/>
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
<ds:DigestValue>2+tTV2cozq0boqXSgb+K6FY2EqjM5fCvBMiwbBR97sE=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#id-081a1c66-00d0-45cd-9d00-bf8c4eddf19e">
<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 irs soapenv urn2 urn3 urn4 wsse"/>
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
<ds:DigestValue>ENBnod7vKlXCLiWqft1H4duETdaR4MxotsJ8JVUhZDc=</ds:DigestValue>
</ds:Reference>
<ds:Reference URI="#id-E68EBBF1696C5DD4AA143353323390578">
<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 irs soapenv urn urn3 urn4 wsse"/>
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
<ds:DigestValue>0gJBTeYumHhBgwSM08x0lAQeiFb9xGlsacSe7E5GzeQ=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>eXaUaEVZMzg1Bxsy+EVoIG4d4to3lrUW+7==</ds:SignatureValue>
<ds:KeyInfo Id="KI-1057E45A7D26C7FA471572296060184463">
<wsse:SecurityTokenReference wsu:Id="STR-1057E45A7D26C7FA471572296060184464">
<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">MIIGNTCCBR2gAwIBAgIQQAF...VIrQSgw</wsse:KeyIdentifier>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
<wsu:Timestamp wsu:Id="TS-1057E45A7D26C7FA471572296060184461">
<wsu:Created>2019-10-28T20:54:20.184Z</wsu:Created>
<wsu:Expires>2019-10-28T21:04:20.184Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
<Action xmlns="http://www.w3.org/2005/08/addressing">BulkRequestTransmitter</Action>
<MessageID xmlns="http://www.w3.org/2005/08/addressing">urn:uuid:d0711332-e90f-4587-848b-3ee0da27c2e9</MessageID>
<To xmlns="http://www.w3.org/2005/08/addressing">https://la.www4.irs.gov/airp/aca/a2a/1095BC_Transmission</To>
<ReplyTo xmlns="http://www.w3.org/2005/08/addressing">
<Address>http://www.w3.org/2005/08/addressing/anonymous</Address>
</ReplyTo>
<urn4:ACASecurityHeader xmlns:ns6="http://www.w3.org/2000/09/xmldsig#" xmlns:ns7="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ns8="urn:us:gov:treasury:irs:msg:irsacabulkrequesttransmitter">
<irs:UserId>0aB0000</irs:UserId>
</urn4:ACASecurityHeader>
<urn2:ACABusinessHeader xmlns:ns6="http://www.w3.org/2000/09/xmldsig#" xmlns:ns7="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ns8="urn:us:gov:treasury:irs:msg:irsacabulkrequesttransmitter" ns7:Id="id-E00EBBF0000C5DD4AA143353323390000">
<urn:UniqueTransmissionId>65fc42c9-8ecd-46f2-0000-00000d58b9be:SYS12:BB01F::T</urn:UniqueTransmissionId>
<irs:Timestamp>2019-10-28T20:54:20Z</irs:Timestamp>
</urn2:ACABusinessHeader>
<urn:ACATransmitterManifestReqDtl xmlns:ns6="http://www.w3.org/2000/09/xmldsig#" xmlns:ns7="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ns8="urn:us:gov:treasury:irs:msg:irsacabulkrequesttransmitter" ns7:Id="id-00000c66-00d0-45cd-9d00-bf8c4eddf19e">
<urn:PaymentYr>2016</urn:PaymentYr>
<urn:PriorYearDataInd>1</urn:PriorYearDataInd>
<irs:EIN>000000000</irs:EIN>
<urn:TransmissionTypeCd>O</urn:TransmissionTypeCd>
<urn:TestFileCd>P</urn:TestFileCd>
<urn:TransmitterNameGrp>
<urn:BusinessNameLine1Txt>First Capitol Consulting</urn:BusinessNameLine1Txt>
</urn:TransmitterNameGrp>
<urn:CompanyInformationGrp>
<urn:CompanyNm>F Co</urn:CompanyNm>
<urn:MailingAddressGrp>
<urn:USAddressGrp>
<urn:AddressLine1Txt>Abc Blvd</urn:AddressLine1Txt>
<urn:AddressLine2Txt>Suite 000</urn:AddressLine2Txt>
<irs:CityNm>L city</irs:CityNm>
<urn:USStateCd>aA</urn:USStateCd>
<irs:USZIPCd>00000</irs:USZIPCd>
</urn:USAddressGrp>
</urn:MailingAddressGrp>
<urn:ContactNameGrp>
<urn:PersonFirstNm>a</urn:PersonFirstNm>
<urn:PersonLastNm>b</urn:PersonLastNm>
</urn:ContactNameGrp>
<urn:ContactPhoneNum>0000000000</urn:ContactPhoneNum>
</urn:CompanyInformationGrp>
<urn:VendorInformationGrp>
<urn:VendorCd>I</urn:VendorCd>
<urn:ContactNameGrp>
<urn:PersonFirstNm>f</urn:PersonFirstNm>
<urn:PersonLastNm>a</urn:PersonLastNm>
</urn:ContactNameGrp>
<urn:ContactPhoneNum>0000000000</urn:ContactPhoneNum>
</urn:VendorInformationGrp>
<urn:TotalPayeeRecordCnt>180</urn:TotalPayeeRecordCnt>
<urn:TotalPayerRecordCnt>1</urn:TotalPayerRecordCnt>
<urn:SoftwareId>00A0000000</urn:SoftwareId>
<urn:FormTypeCd>1094/1095C</urn:FormTypeCd>
<irs:BinaryFormatCd>application/xml</irs:BinaryFormatCd>
<irs:ChecksumAugmentationNum>dc4206d79d71cc9c8d5e9183677580e0b68b2a708543409aaec7a407c66d6a0e</irs:ChecksumAugmentationNum>
<irs:AttachmentByteSizeNum>336472</irs:AttachmentByteSizeNum>
<urn:DocumentSystemFileNm>1094C_Request_BB01F_20191028T205416001Z.xml</urn:DocumentSystemFileNm>
</urn:ACATransmitterManifestReqDtl>
</soapenv:Header>
<soapenv:Body>
<ns8:ACABulkRequestTransmitter xmlns:ns6="http://www.w3.org/2000/09/xmldsig#" xmlns:ns7="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ns8="urn:us:gov:treasury:irs:msg:irsacabulkrequesttransmitter" version="1.0">
<irs:BulkExchangeFile>
<xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:734ca002-8275-4680-a24c-923694dc777e-93@urn%3Aus%3Agov%3Atreasury%3Airs%3Acommon"/>
</irs:BulkExchangeFile>
</ns8:ACABulkRequestTransmitter>
</soapenv:Body>
</soapenv:Envelope>
--uuid:c82296c0-0eaf-4133-971d-7838bafae222
我收到以下错误 (500)
ID:98响应代码:500
编码:UTF-8
内容类型:text/xml;charset=utf-8
header :{connection=[close]、Content-Length=[613]、content-type=[text/xml;charset=utf-8]、Date=[Mon, 28 Oct 2019 20:54:36 GMT]、Set -Cookie=[dc=dcd;Path=/;Version=1;Secure;Httponly;Max-Age=900],Strict-Transport-Security=[max-age=31536000],X-Connection=[close]}
有效负载:
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>Error in assertion processing</faultstring>
<faultactor>ssg</faultactor>
<detail>
<l7:policyResult xmlns:l7="http://www.layer7tech.com/ws/policy/fault" status="Multipart stream ended before a terminating boundary was encountered"/>
</detail>
</soapenv:Fault>
有人可以解释一下我遗漏了什么或做错了什么吗?
最佳答案
通过修改我们的配置,我们能够在 Apache CXF v3.1.4 上使用它;我们添加了AllowChunking =“false”和secureSocketProtocol =“TLSv1.2”。在此更改之前,自 2019 年 10 月开始,对于任何大于 60 KB 左右的传输,我们还收到了“断言处理错误”的响应。以下是我们对 Apache CXF XML 配置所做的更改:
<http-conf:conduit name="*.http-conduit">
AllowChunking="false"
/>
<http-conf:tlsClientParameters
secureSocketProtocol="TLSv1.2"
/>
</http-conf:conduit>
关于java - IRS ACA 1095C SOAP 故障 : Error in assertion processing,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58616647/
我已经设置了自定义 SSIS IR,但是从 IR 节点上的当前工作目录或临时文件夹读取文件时遇到问题 https://learn.microsoft.com/en-us/sql/integration
我已经编写了一个修改中间表示 (IR) 代码的 LLVM pass。为了增加可移植性,我还希望它与 gcc 编译器一起工作。所以我想知道是否有任何工具可以将 gcc 的某些中间表示 (IR) 转换为
我已经下载了 Sony Android Add-on IR SDK ( http://developer.sonymobile.com/knowledge-base/sdks/sony-add-on-
我在手机中使用其他应用程序,使用它的 IR。但是当我尝试在任何项目中使用 IREmitter 时,它会触发该错误! mCIR = (ConsumerIrManager)getSystemService
我想找到一些 Clang/LLVM 的调试选项,其工作方式类似于 GCC -fdump-tree-all-all , -fdump-rtl-all ,和 -fdump-ipa-all-all . 基本
我使用 LLVM opt 来运行一个传递,例如,opt -load libMyPass.so my-pass foo.ll > foo1.ll。 foo.ll 是一个 IR 文件,我希望 foo1.l
我在 Raspian jessie(无像素)(所有更新和升级)上安装了当前的 lirc 包(0.9.0~pre1-1.2)并连接到(lirc 默认)GPIO 端口: 到 gpio 端口 17 - 通过
在学习 Antlr4 时,我使用 Golang 作为目标语言,所以我的玩具语言中的语句如下: $myVar = 10 $myVar + 5 将转换为一些生成结果“15”的 Golang 代码 但是,据
我正在尝试使用 SSIS 脚本任务连接到本地 REST Web 服务,并在 Azure 数据工厂的 SSIS-IR 上运行它,该 SSIS-IR 具有自托管 IR 的代理,最终连接到本地服务器。可行吗
我正在尝试关注 this链接以便为 c 代码生成 IR 表示。我使用的c代码如下 void main() { int c1 = 17; int c2 = 25; int c3 = c1 + c2
在为 lto 链接后,有没有办法获得 llvm IR?例如,我有以下行: $ clang -flto -O2 a.c main.c -fuse-ld=gold -v -save-temps 所以我想获
我正在通过这个学习 LLVM IR LangRef . 如本引用所述: LLVM programs are composed of Modules, each of which is a transl
如果这个问题听起来很愚蠢,我很抱歉。 为什么inverse document frequency使用日志?日志在 tf/idf 中有何帮助? 最佳答案 AFAIK,使用日志有助于使用几何分布对数字进行
我建立了一个LLVM定位前端,该前端会产生一些IR。随后并且完全可以预期,在某些情况下,IR输出是不正确的(例如,它看起来正确,但是执行时结果程序崩溃)。但是,我还没有找到很多有用的工具来解决这一问题
我想将C#编译为LLVM IR。因此,我认为将编译的CIL转换为LLVM IR是我可以尝试的一种方法。 我可以使用一些工具,例如vmkit和mono-llvm。 有人在使用此工具吗?或者如何将CIL转
如何创建图像以及如何使用十六进制颜色代码逐像素为其着色? 例如。我想创建一个 100x100 像素的图像,并且我想要 1x1 区域的颜色为“$002125”,2x2 区域的颜色为“$125487”..
我正在测试一个 main 函数,它只返回 void 并且在使用 lli 运行位码时出现核心转储错误(信号 65 或 73)。 : define void @main() { entry: ret
我收到一个要求,其中我有一个 c 文件,并且我正在为其生成 LLVM IR。从为每条指令生成的 LLVM IR 中,我正在计算执行需要多少个周期,现在我的问题是如何追溯到 C 代码并显示特定的 C 代
我目前正在尝试运行其他人留下的 sql 命令/脚本来建立数据库。他们有这个脚本 BEGIN; \ir file.sql \ir file.sql END; 它在第一个反斜杠处给出错误。我正在使用 Po
我特别需要在我的 C++ 代码运行期间逐行解析 LLVM IR 代码,我需要知道每行的哪些操作数发生了什么操作。 例如,如果 IR 代码是: %0 = load i32* %a, align 4 我想
我是一名优秀的程序员,十分优秀!