axis2

Transport level information does not match with SOAP Message namespace URI

一世执手 提交于 2020-01-03 07:21:08
问题 I'm getting the error "Transport level information does not match with SOAP Message namespace URI" . Request you provide the details to fix the issue. I have set the below in the client side. HttpTransportProperties.ProxyProperties proxyProperties = new HttpTransportProperties.ProxyProperties(); proxyProperties.setProxyName(proxyAddress); proxyProperties.setProxyPort(proxyPort); stub._getServiceClient().getOptions().setProperty(HTTPConstants.CHUNKED,Boolean.FALSE); stub._getServiceClient()

Axis 2 webservice SSL communication

匆匆过客 提交于 2020-01-03 06:33:54
问题 I am getting Soap Response from this code SOAPConnectionFactory sfc = SOAPConnectionFactory.newInstance(); SOAPConnection connection = sfc.createConnection(); SOAPMessage soapMessageResponse = connection.call(soapRequest, new URL(serviceLocation)); How can I make it SSL based? I know how to create SSLSocketFactory from SSLContext giving my specified keystore . How can I tell SOAPConnection class about SSLSocketFactory or SSLContext ? So that my communication can be secured. I do not want to

SOAP Attachments using apache axis2

久未见 提交于 2020-01-03 05:18:13
问题 Does anyone know a good beginner's tutorial on how to send attachments with SOAP messages using axis2. Every tutorial I have found so far has been very difficult to follow. Any pointers will be appreciated. 回答1: Few months ago I've read the book "Developing Web Services with Apache Axis2" by Mr. Kent Ka Iok Tong . I think this is an excellent book for beginners, example driven and easy to understand. It contains plenty of code/xml snippets and has a chapter devoted to your question. Perhaps

org.apache.axis2.AxisFault: Transport out has not been set

青春壹個敷衍的年華 提交于 2020-01-03 04:27:05
问题 I have a big problem with WS with Axis2 use case (localhost server, no internet access [under proxy]) : I have created a little local web service and a client which calls this service.... endpoint is something like this "http://localhost:8080/MyService" that's all ok: client requests and server responses!! i'm bas***d and i want test my client, so i have changed endpoint in "http://localhost:8082/MyService" (port is changed) that's all ok: client requests...and it goes in timeout...no service

Code generation from WSDL causes exception

北慕城南 提交于 2020-01-02 04:24:07
问题 I'm using Axis2 1.5.1 (wsdl2java) for code generation (client stubs) from a given WSDL file. The webservice is provided by an external application. <?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility- 1.0.xsd" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:tns="http://tempuri

How to create an Axis2 Web Service Client in Eclipse?

喜你入骨 提交于 2020-01-01 09:19:29
问题 I'd like to use the "Web Service Client" wizard to create a web service client in Eclipse, but the wizard doesn't allow me to choose Axis2 as the web service runtime; I'm stuck with just plain Axis. I start off at the following screen (which I got to via File -> New -> Other -> Web Service Client ): I click on "Web service runtime: Apache Axis", to get this new "Client Environment Configuration" dialog: I've chosen "Apache Axis2", but the OK button is grayed out. Not matter what I choose in

Axis2 generated Stubs are thread-safe?

有些话、适合烂在心里 提交于 2019-12-30 10:13:09
问题 Are the Stubs generated by WSDL2JAVA (using XMLBeans binding option) through Axis2 1.5.4 thread-safe? Actually I have created one Stub for a Web Service that I am invoking through multiple threads. I have configured my own MultiThreadedHttpConnectionmanager and set the HTTPConstants.REUSE_HTTP_CLIENT as well but I am seeing some NullPointerExceptions in stub._getServiceClient().cleanupTransport that I call after each invocation. Sometimes the threads hang too. At the same time I noticed that

Java client for SOAP web service with NTLM authentication

限于喜欢 提交于 2019-12-30 09:32:49
问题 I spent many days and nights trying to find a proper Java framework that could connect to Microsoft Dynamics CRM which uses Negotiate/NTLM authentication. I tried all existing suggestions on Stackoverflow and other resources with JAX-WS, Axis2, CXF with various HTTP protocol handlers. No one of them worked as expected. The best approach currently is Axis2/commons-httpclient-3.1, where I can trace at least all three phases with NTLM digest, however the target IIS still refuses the

Java client for SOAP web service with NTLM authentication

淺唱寂寞╮ 提交于 2019-12-30 09:32:42
问题 I spent many days and nights trying to find a proper Java framework that could connect to Microsoft Dynamics CRM which uses Negotiate/NTLM authentication. I tried all existing suggestions on Stackoverflow and other resources with JAX-WS, Axis2, CXF with various HTTP protocol handlers. No one of them worked as expected. The best approach currently is Axis2/commons-httpclient-3.1, where I can trace at least all three phases with NTLM digest, however the target IIS still refuses the

How can I get jcifs to play nicely with apache axis

匆匆过客 提交于 2019-12-29 07:17:13
问题 I need to connect Apache Axis 1.4 to a Webservice that uses NTLM authentication to restrict access to its operations. I'm expecting to use Samba Jcifs to handle the NTLM handshake. I found http://hc.apache.org/httpcomponents-client/ntlm.html which gives me fantastic directions for how to wire up HttpClient 4.0 with jcifs. Trouble is, Axis wants to use Http Client 3.0 and the two apis look very different. There are 2 possibilities that I can see Write an object for Axis that lets it plug into