axis

Java client calling WSE 2.0 with DIME attachment

余生长醉 提交于 2019-12-08 08:49:09
问题 I need to integrate with a legacy .NET Web Service that uses WSE 2.0 for WS-Security and DIME. The catch is I need to do this from a Java application. I'm expecting that Axis2 works fine with the WS-Security because folks around here have done it before. It's the DIME that I'm concerned about. I see a reference to DIME at http://ws.apache.org/axis/java/client-side-axis.html, but I'm wondering if anyone has actually done this with Axis and a WSE 2.0 Web Service. 回答1: I can't tell you anything

How to disable SSLv2 socket protocol in axis

回眸只為那壹抹淺笑 提交于 2019-12-08 07:48:56
问题 I have a problem with consuming a web service using axis.This happen because axis sent a SSLv2 ClientHello and the server that offer the webservice does not support the SSLv2 protocol. To fix this i have to disable this protocol. The code for disable it in Java is : SocketFactory socketFactory = SSLSocketFactory.getDefault(); SSLSocket socket = (SSLSocket) socketFactory.createSocket(hostname, port); socket.setEnabledProtocols(new String[] {"SSLv3", "TLSv1"}); I refer to these link. Now, the

Axis webservice call returns null

被刻印的时光 ゝ 提交于 2019-12-08 07:32:10
问题 In my application, I hit an external web service. For this web service, I have got the WSDL and generated model classes and Stub classes using WSDL2JAVA. The problem now I face is, while hitting the external web service, I receive null from the web service and no exception or error. While debugging, I have noticed that _call.invoke (below line) in the stub class returns a null object. 'java.lang.Object _resp = _call.invoke(new java.lang.Object[] {parameters});' I have monitored the Web

Java .Net Interop. Axis java.util.Map

回眸只為那壹抹淺笑 提交于 2019-12-08 05:22:43
问题 I have wsdl that needs to be interpreted by wsdl.exe (.net sdk 2.0) This wsdl is generated on runtime by axis engine, and it is reading a wsdd file to generate this. One of my return types have java.util.Map inside and here is the schema for a map in wsdl (just one part of wsdl) <schema targetNamespace="http://xml.apache.org/xml-soap" xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://schemas.xmlsoap.org/soap/encoding/" /> <complexType name="Map"> <sequence> <element

Apache axis logging - ClassCastException while using it inside a Jira plugin

别来无恙 提交于 2019-12-08 04:55:35
问题 My Jira 5.0 plugin is broken with the following exception: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... Caused by: java.lang.ExceptionInInitializerError at org.apache.axis.description.OperationDesc.<clinit>(OperationDesc.java:65) at com.xyz.germander.AddTestTrackLinkDialogAction.doConfirm(AddTestTrackLinkDialogAction.java:23) ... 148 more Caused by: java.lang.ClassCastException: org.apache.commons.logging.impl.SLF4JLogFactory

pandas.apply()函数

杀马特。学长 韩版系。学妹 提交于 2019-12-07 22:51:25
1、介绍 apply函数是pandas里面所有函数中自由度最高的函数。该函数如下: DataFrame.apply(func, axis=0, broadcast=False, raw=False, reduce=None, args=(), **kwds) 该函数最有用的是第一个参数,这个参数是函数,相当于C/C++的函数指针。 这个函数需要自己实现,函数的传入参数根据axis来定,比如axis = 1,就会把一行数据作为Series的数据 结构传入给自己实现的函数中,我们在函数中实现对Series不同属性之间的计算,返回一个结果,则apply函数 会自动遍历每一行DataFrame的数据,最后将所有结果组合成一个Series数据结构并返回。 2、样例 import numpy as np import pandas as pd if __name__ == '__main__': f = lambda x : x.max() - x.min() df = pd.DataFrame(np.random.randn(4, 3), columns=list('bde'), index=['utah', 'ohio', 'texas', 'oregon']) #columns表述列标, index表述行标 print(df) t1 = df.apply(f) #df.apply

WebService框架JWS、Axis2、XFire、CXF的区别

ⅰ亾dé卋堺 提交于 2019-12-07 21:39:40
1、JWS是Java语言对WebService服务的一种实现,用来开发和发布服务。而从服务本身的角度来看JWS服务是没有语言界限的。但是Java语言为Java开发者提供便捷发布和调用WebService服务的一种途径。 2、Axis2是Apache下的一个重量级WebService框架,准确说它是一个Web Services / SOAP / WSDL 的引擎,是WebService框架的集大成者,它能不但能制作和发布WebService,而且可以生成Java和其他语言版WebService客户端和服务端代码。这是它的优势所在。但是,这也不可避免的导致了Axis2的复杂性,使用过的开发者都知道,它所依赖的包数量和大小都是很惊人的,打包部署发布都比较麻烦,不能很好的与现有应用整合为一体。但是如果你要开发Java之外别的语言客户端,Axis2提供的丰富工具将是你不二的选择。 3、XFire是一个高性能的WebService框架,在Java6之前,它的知名度甚至超过了Apache的Axis2,XFire的优点是开发方便,与现有的Web整合很好,可以融为一体,并且开发也很方便。但是对Java之外的语言,没有提供相关的代码工具。XFire后来被Apache收购了,原因是它太优秀了,收购后,随着Java6 JWS的兴起,开源的WebService引擎已经不再被看好,渐渐的都败落了。 4

Apache axis logging - ClassCastException while using it inside a Jira plugin

僤鯓⒐⒋嵵緔 提交于 2019-12-07 19:23:26
My Jira 5.0 plugin is broken with the following exception: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... Caused by: java.lang.ExceptionInInitializerError at org.apache.axis.description.OperationDesc.<clinit>(OperationDesc.java:65) at com.xyz.germander.AddTestTrackLinkDialogAction.doConfirm(AddTestTrackLinkDialogAction.java:23) ... 148 more Caused by: java.lang.ClassCastException: org.apache.commons.logging.impl.SLF4JLogFactory cannot be cast to org.apache.commons.logging.LogFactory at org.apache.axis.components.logger.LogFactory

android摇一摇功能的实现

守給你的承諾、 提交于 2019-12-07 15:16:37
很多人赶脚摇一摇用着很欢乐~实际实现起来很简单。了解 Sensor传感器使用方法即可。 摇一摇功能只使用到Sensor.TYPE_ACCELEROMETER加速度传感器 首先acticity要实现SensorEventListener接口 初始化传感器服务 mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE); 然后重写onSensorChanged方法根据时间类型和偏移值判断即可 事件类型:event.sensor.getType() 偏移值 event.values 加速度传感器返回值的单位是加速度的单位 m/s^2(米每二次方秒),有三个方向的值分别是   values[0]: x-axis 方向加速度   values[1]: y-axis 方向加速度   values[2]: z-axis 方向加速度   其中x,y,z方向的定义是以水平放置在的手机的右下脚为参照系坐标原点   x 方向就是手机的水平方向,右为正   y 方向就是手机的水平垂直方向,前为正   z方向就是手机的空间垂直方向,天空的方向为正,地心的方向为负 最后要注意在onStop() onPause()里注销传感器的服务 mSensorManager.unregisterListener(this); onResume(

Web service response contains an invalid XML character

你说的曾经没有我的故事 提交于 2019-12-07 12:14:51
问题 My application is connecting to a web service rpc/encoded. Im using Axis 1.4. When the webservice sends a response, it sends an invalid character then an exception: http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x3) was found in the element content of the document. The xml encoding is "ISO-8859-1". I think that is the problem. My question is: Is there any configuration that i can make in my application to accept this invalid character