如何解决org.apache.axis2.AxisFault:传输错误:404 错误:
我在 JAX WS 中编写了一个客户端代码来访问 informatica Webservice,这是一个服务器端代码。我正在使用基于 SOAP 的网络服务。客户端之前正在工作并且能够从服务器获得响应,但突然间我开始收到以下错误。我在下面附上代码和堆栈跟踪.. 我使用 wsimport 命令生成存根文件.. 非常感谢任何帮助。
代码******
PaymentMethodsByCustomerIdsV1PortType port = getPaymentMethodsByCustomerIdsV1Service();
PaymentMethodsByCustomerIdsV1Request request = new PaymentMethodsByCustomerIdsV1Request();
Map<String,Object> req_ctx = ((BindingProvider)port).getRequestContext();
req_ctx.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,informatica_endpoint);
req_ctx.put(BindingProvider.USERNAME_PROPERTY,AppProperties.getInstance().getProperty("informatica.username"));
req_ctx.put(BindingProvider.PASSWORD_PROPERTY,AppProperties.getInstance().getProperty("informatica.password"));
HashMap<String,String> customerBankData = new HashMap<String,String>();
List<PaymentMethodsType> paymethodsTypelist;
request.setCustomerIds(customerNumber);
System.out.println("**** Endpoint URL *****" +informatica_endpoint);
PaymentMethodsByCustomerIdsV1Response response = port.paymentMethodsByCustomerIdsV1(request);
List<PaymentMethodsByCustomerIdsResponseType> ctr = response.getPaymentMethodsByCustomerIdsResponse();
下面的堆栈跟踪错误*
2021-07-19 13:37:01,597 ERROR InspremInvNIProcessor - Issue in Retrieving CustomerBankInfo from informatica
javax.xml.ws.soap.soAPFaultException: org.apache.axis2.AxisFault: Transport error: 404 Error:
at org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.createSystemException(MethodMarshallerUtils.java:1326)
at org.apache.axis2.jaxws.marshaller.impl.alt.MethodMarshallerUtils.demarshalFaultResponse(MethodMarshallerUtils.java:1052)
at org.apache.axis2.jaxws.marshaller.impl.alt.DocLitBareMinimalMethodMarshaller.demarshalFaultResponse(DocLitBareMinimalMethodMarshaller.java:440)
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.getFaultResponse(JAXWSProxyHandler.java:580)
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.createResponse(JAXWSProxyHandler.java:523)
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invokeSEIMethod(JAXWSProxyHandler.java:389)
at org.apache.axis2.jaxws.client.proxy.JAXWSProxyHandler.invoke(JAXWSProxyHandler.java:174)
at com.sun.proxy.$Proxy131.paymentMethodsByCustomerIdsV1(UnkNown Source)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。