我在向 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);
......
繁星点点滴滴
心有法竹
婷婷同学_
噜噜哒
相关分类