axis2

Eclipse is very slow when using Code Assist (org.eclipse.mylyn.java.ui.javaAllCompletionProposalComputer)

不羁岁月 提交于 2019-12-05 20:32:45
Can you guess what happens? I generated a client stub using Eclipse WTP [Axis2] and while working on a client I get Eclipse working very slowly when it tries to use Code Assist, that is, press a dot to get a list of methods, there's up to 30 seconds hang-ups of the workbench. eclipse.buildId=M20090917-0800 java.version=1.6.0_15 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ru_RU Framework arguments: -product org.eclipse.epp.package.jee.product Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product Warning

How to do Basic Authentication with an Axis2 ADB Client?

白昼怎懂夜的黑 提交于 2019-12-05 14:54:16
问题 I'm trying to figure out how to do Basic Authentication with an ADB Axis2 version 1.5 Client. I'm trying the following: HttpTransportProperties.Authenticator basicAuth = new HttpTransportProperties.Authenticator(); basicAuth.setUsername(username); basicAuth.setPassword(password); final Options clientOptions = serviceStub._getServiceClient().getOptions(); clientOptions.setProperty(HTTPConstants.AUTHENTICATE, basicAuth); However this does not work and the needed line in the message header is

common logging jar conflict with apache axis soap client

拥有回忆 提交于 2019-12-05 10:39:11
问题 I am getting this exception while trying to call SOAP webservice using axis. basically I have written a axis client. org.apache.commons.discovery.DiscoveryException: Class org.apache.commons.logging.impl.SLF4JLogFactory does not implement org.apache.commons.logging.LogFactory. When I remove the all the common-logging jars, I would able to remove these errors but these jars are coming from other apis, i dont have control on them. Is there any way to overcome this problem? 回答1: There is a

using axis2 ramaprt module with own security framework

微笑、不失礼 提交于 2019-12-05 09:08:49
I have webservice (server-side) implemented using axis2 in my project. We want to enable WS-security in the existing web services. We are evaluating if apache ramapart module fits our need. Here is our requirement: Basically we have in-house security framework which provides encryption,signature and token generation capabilites. Our in-house security framework basically requires a set of configurations in form of XML and it expose various APIs to do various security operations. Now with above environment, I can think of three possbile solutions:- I can develop an axis2 module around in-house

Apache Axis2 Web service runtime in Tomcat v7.0 Server does not support the service project Test

扶醉桌前 提交于 2019-12-04 22:19:06
Apache Axis2 Web service runtime in Tomcat v7.0 Server does not support the service project Test. Why? Please help me I just had the same issue. It turns out that Axis2 doesn't like the 3.0 dynamic web projects of Eclipse. Just create a new dynamic web project and choose "Dynamic Web Module Version" to be below 3.0, i.e. 2.5, 2.4. I used the 2.5 version and now everything works like a charm. Trying to change the version from the "Project Facets" in Preferences does not work :( so a new project must be made. Good luck! I have got the same error like " The Tomcat v5.5 Server server does not

WebService之Axis2快速入门(4): 传输二进制文件

心不动则不痛 提交于 2019-12-04 21:55:41
在《 WebService之Axis2快速入门(2): 传递复合类型的数据 》中讲过,如果要传递二进制文件(如图像、音频文件等),可以使用byte[]作为数据类型进行传递,然后客户端使用RPC方式进行调用。这样做只是其中的一种方法,除此之外,在客户端还可以使用wsdl2java命令生成相应的stub类来调用WebService,wsdl2java命令的用法详见《 WebService之Axis2快速入门(1): 用POJO实现0配置的WebService 》。 WebService类中包含byte[]类型参数的方法在wsdl2java生成的stub类中对应的数据类型不再是byte[]类型,而是javax.activation.DataHandler。DataHandler类是专门用来映射WebService二进制类型的。 在WebService类中除了可以使用byte[]作为传输二进制的数据类型外,也可以使用javax.activation.DataHandler作为数据类型。不管是使用byte[],还是使用javax.activation.DataHandler作为WebService方法的数据类型,使用wsdl2java命令生成的stub类中相应方法的类型都是javax.activation.DataHandler。而象使用.net

Client giving error when invoking a secured web service

百般思念 提交于 2019-12-04 21:16:18
I have written a client that invokes webservice. My client is: String publisherEPR = "https://abc:8280/services/ProviderPublication"; protected void publicationOpenSession(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { System.out.println("Inside publicationOpenSession"); date = new Date(); namespace = "http://www.openoandm.org/xml/ISBM/"; fac = OMAbstractFactory.getOMFactory(); OMNamespace ns = fac.createOMNamespace(namespace, "ns1"); OMElement result = null; channelURI = request.getParameter("TxtPublisher1ChannelURI"); textfield = request

The ServiceClass object does not implement the required method in the following form: OMElement login(OMElement e)

偶尔善良 提交于 2019-12-04 14:34:09
After i upgraded the axis2 from 1.6.2 to 1.7.0 i get the following exception: "The ServiceClass object does not implement the required method in the following form: OMElement" most of the answers I found suggest to set the rpc message receivers in services.xml which i already had from previous version: <service name="LogService" scope="transportsession"> <description> Log </description> <messageReceivers> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only" class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"

Axis2 fails to load DLL

99封情书 提交于 2019-12-04 13:30:07
I came across the below line in the Apache-Axis2 log file. [Sat Nov 14 12:16:08 2015] [error] ..\..\util\src\class_loader.c(167) Loading shared library ..//lib/axis2_http_sender.dll Failed. DLERROR IS DLL Load Error 126: The specified module could not be found. On analyzing the class_loader.c file from line#156 to line#167 as given below: dll_name = axutil_dll_desc_get_name(dll_desc, env); AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "Shared library to be loaded is %s",dll_name); dl_handler = AXIS2_PLATFORM_LOADLIB(dll_name); if (!dl_handler) { #ifndef WIN32 AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI,

Package org.apache.axis2 does not exist

和自甴很熟 提交于 2019-12-04 12:11:14
I'm trying to import packages: import org.apache.axis2.context.ConfigurationContext; import org.apache.axis2.description.AxisService; import org.apache.axis2.engine.ServiceLifeCycle; But I'm getting errors: package org.apache.axis2.context does not exist package org.apache.axis2.description does not exist package org.apache.axis2.engine does not exist I've added %AXIS2_HOME%\bin in my PATH environment variable and have also set C:\apache-tomcat-6.0.30\webapps\axis2\WEB-INF\lib in my CLASSPATH , but I still can't compile my Java file due to the same errors. Does anyone know what are the