axis

使用axis发布webservice - 小头猪 - JavaEye技术网站

只愿长相守 提交于 2019-12-18 15:05:12
首先到apache的网站下载axis的开发包,好久没看了,现在已经开始出2.0的啦,不过好像还不是很成熟,这里,我们还是用1.x的包。最新的是1.4的包。 一、服务器端开发 首先编写服务端程序,这时我们完全不用考虑他是不是当作webservcies来发布的,因为在写法上没有什么不同。比如我们写了一个很简单的java程序,代码如下: package samples.userguide.example2; public class Calculator { public int add(int i1, int i2) { return i1 + i2; } public int subtract(int i1, int i2) { return i1 - i2; } } 如果我们要把他发布成为services,首先需要把axis-1_3下的lib文件复制到我们的web服务的web-inf 的lib下。 然后在web.xml里增加以下内容 <servlet> <display-name>Apache-Axis Servlet</display-name> <servlet-name>AxisServlet</servlet-name> <servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class> <

XSLT mixed content node

∥☆過路亽.° 提交于 2019-12-18 13:05:25
问题 I have a quite stupid question. How can I make sure that my XML mixed content node doesn't get mixed up? I have, say, an XML structure resembling this. <root> <book> <title>Stuff</title> <description> This book is <i>great</i> if you need to know about stuff. I suggest <link ref="Things">this one</link> if you need to know about things. </description> </book> [other books] </root> I need the final content to look like this <h1>List of books</h1> <h2><a name="Stuff"/>Stuff</h2> <p> This book

pandas的concat函数和append方法

China☆狼群 提交于 2019-12-18 12:11:32
pd.concat(objs, axis=0, join='outer', join_axes=None, ignore_index=False,keys=None, levels=None, names=None, verify_integrity=False) objs: series,dataframe或者是panel构成的序列list axis:需要合并链接的轴,0是行,1是列 join: 连接的方式 :inner,outer 1.相同字段的表首尾相接 import pandas pd.concat([df1,df2,df3]) 相接的时候在加上一个层次的keys来识别数据源自于哪张表,可以增加keys参数: import pandas pd.concat([df1,df2,df3],keys=["df1","df2","df3"]) 2.行对齐进行拼接 pd.concat([df1,df4],axis=1) 3.join属性:’inner’是两表的交集,“outer”是两表的并集 pd.concat([df1, df4], axis=1, join='inner') 4.join_axes:可以指定根据那个轴来对齐数据 pd.concat([df1, df4], axis=1, join_axes=[df1.index]) 4.无视index

deploy war file in tomcat server

我是研究僧i 提交于 2019-12-18 11:45:53
问题 I have copied the sample.war file in webapps directory of tomcat. I can acess localhost:8080. deploying of wars is automatic by default -i have checked my webapps folder for an extracted folder "sample" but it is not extracted.why the war file is doesn't extracted.please give me solution for this. 回答1: Delete that war file from webapps/ directory. Then open link http://localhost:8080/ in your web browser. Click Tomcat Manager then enter user name and password. In next page you can see one

opengl rotation problem

烂漫一生 提交于 2019-12-18 09:31:28
问题 can anyone tell me how to make my model rotate at its own center go gravity in stead of the default (0,0,0) axis? and my rotation seems to be only going left and right not 360 degree.. 回答1: If you want to rotate an object around its center, you first have to translate it to the origin, then rotate and translate it back. Since transformation matrices affect your vectors from right to left, you have to code these steps in opposite order. Here is some pseudocode since I don't know OpenGL

Gnuplot how to lower the number of tics in x axis

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 08:26:02
问题 The figure has too many xtics and ytics. Can I have half of them? I know I can manually set tics in a way similar to this: set xtics (1,2,4,8,16,32,64,128,256,512,1024) But I feel it is not a general solution. You can not manually set tics for all figures. I have loads of them and the gnuplot code is automatically generated using Java. Here is the code for the figure: https://dl.dropboxusercontent.com/u/45318932/gnuplot2.plt Can you help lower down the number of x and y tics? 回答1: There is no

Gnuplot how to lower the number of tics in x axis

对着背影说爱祢 提交于 2019-12-18 08:25:29
问题 The figure has too many xtics and ytics. Can I have half of them? I know I can manually set tics in a way similar to this: set xtics (1,2,4,8,16,32,64,128,256,512,1024) But I feel it is not a general solution. You can not manually set tics for all figures. I have loads of them and the gnuplot code is automatically generated using Java. Here is the code for the figure: https://dl.dropboxusercontent.com/u/45318932/gnuplot2.plt Can you help lower down the number of x and y tics? 回答1: There is no

Gnuplot how to lower the number of tics in x axis

那年仲夏 提交于 2019-12-18 08:25:05
问题 The figure has too many xtics and ytics. Can I have half of them? I know I can manually set tics in a way similar to this: set xtics (1,2,4,8,16,32,64,128,256,512,1024) But I feel it is not a general solution. You can not manually set tics for all figures. I have loads of them and the gnuplot code is automatically generated using Java. Here is the code for the figure: https://dl.dropboxusercontent.com/u/45318932/gnuplot2.plt Can you help lower down the number of x and y tics? 回答1: There is no

ggplot2: Reversing secondary continuous x axis

佐手、 提交于 2019-12-18 07:20:58
问题 I am trying to reverse the secondary X axis on top of my ggplot. ggplot( data=MasterTable, aes(x=Concentration, y=Signal, color=factor(Assay))) + scale_x_continuous("Chemical 1", sec.axis = sec_axis(~ . *1, name = "Chemical 2"), scale_x_reverse(limits=c(400,0))) If you remove the last section of the code ( scale_x_reverse ...) it makes a plot with a secondary that is identical to the bottom X axis. I have managed to reverse the bottom axis but this also reverses the top axis. I am looking to

ggplot2: Reversing secondary continuous x axis

流过昼夜 提交于 2019-12-18 07:20:13
问题 I am trying to reverse the secondary X axis on top of my ggplot. ggplot( data=MasterTable, aes(x=Concentration, y=Signal, color=factor(Assay))) + scale_x_continuous("Chemical 1", sec.axis = sec_axis(~ . *1, name = "Chemical 2"), scale_x_reverse(limits=c(400,0))) If you remove the last section of the code ( scale_x_reverse ...) it makes a plot with a secondary that is identical to the bottom X axis. I have managed to reverse the bottom axis but this also reverses the top axis. I am looking to