$ du -ks csd_images 80200 csd_images
$du -sh csd_images
This notebook is a collection of code snippets and technical "how to" instructions.
$ du -ks csd_images 80200 csd_images
$du -sh csd_images
|
|
|
To list already deployed services
|
|
|
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring_axis-servlet.xml</param-value>
</context-param>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<servlet>
<servlet-name>springaxis</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>spring_axis</servlet-name>
<url-pattern>*.axis</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>AxisServlet </servlet-name>
<display-name>Apache-Axis Servlet</display-name>
<servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
<load-on-startup>5</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/soap/*</url-pattern>
</servlet-mapping>
<!-- Generate WSDL -->
<target name="generateAuthenticationWSDL" depends="compile">
<axis-java2wsdl
classname="com.hmco.morse.authentication.service.RemoteAuthenticationService"
namespace="urn:AuthenticationWS"
location="${soap.service}/AuthenticationWS"
output="${project.config.dir}/AuthenticationWS.wsdl">
<mapping namespace="urn:AuthenticationWS" package="com.hmco.morse.authentication.service"/>
</axis-java2wsdl>
</target>
<!-- Generate WSDL -->
<target name="generateAuthenticationWrappedWSDL" depends="compile">
<axis-java2wsdl
classname="com.hmco.morse.authentication.service.RemoteAuthenticationService"
namespace="urn:AuthenticationWS"
location="${soap.service}/AuthenticationWS"
output="${project.config.dir}/AuthenticationWS.wsdl"
style="wrapped">
<mapping namespace="urn:AuthenticationWS" package="com.hmco.morse.authentication.service"/>
</axis-java2wsdl>
</target>
<!-- Generate Client And Move Descriptors -->
<target name="generateAuthenticationClient">
<axis-wsdl2java
url="${project.config.dir}/AuthenticationWS.wsdl"
output="${java2wsdl.output.dir}"
deployscope="request"
serverSide="yes"
verbose="true"
helpergen="false">
<mapping namespace="urn:AuthenticationWS" package="com.hmco.morse.authentication.service"/>
</axis-wsdl2java>
<antcall target="moveAxisDescriptors"/>
</target>
<target name="moveAxisDescriptors">
<echo message="moving: ${java2wsdl.output.dir}/com/hmco/morse/authentication/service/deploy.wsdd"/>
<move file="${java2wsdl.output.dir}/com/hmco/morse/authentication/service/deploy.wsdd" todir="${project.deploy.dir}" failonerror="false"/>
<echo message="moving: ${java2wsdl.output.dir}/com/hmco/morse/authentication/service/undeploy.wsdd"/>
<move file="${java2wsdl.output.dir}/com/hmco/morse/authentication/service/undeploy.wsdd" todir="${project.deploy.dir}" failonerror="false"/>
</target>
var list = new ArrayList();
list.add("c");
list.add("f");
list.add("a");
list.add("d");
list.add("e");
list.add("b");
list.remove("d");
alert('get(): ' + list.get());
alert('getSortedAsc(): ' + list.getSortedAsc());
alert('getSortedDesc(): ' + list.getSortedDesc());
function ArrayList() {
var _array = [];
this.add = add;
this.get = get;
this.remove = remove;
this.size = size;
this.toString = toString;
this.getElementIndex = getElementIndex;
this.getSortedAsc = getSortedAsc;
this.getSortedDesc = getSortedDesc;
this.isElementExists = isElementExists;
this.hasAnyNotNullElement = hasAnyNotNullElement;
function add(value){
_array.push(value);
}
function remove(value){
var toDelete = getElementIndex(value);
delete _array[toDelete];
}
function size(){
return _array.length;
}
function toString(){
var t = '';
for(var i = 0; i < size(); i++){
t += _array[i];
if(i < size() - 1) t += ', ';
}
return t;
}
function getElementIndex(value){
for(var i = 0; i < size(); i++)
if(_array[i] == value) return i;
return 'false';
}
function isElementExists(value){
return (getElementIndex(value) == 'false') ? false : true;
}
function hasAnyNotNullElement(){
for(var i = 0; i < size(); i++){
if(_array[i] != '' && typeof(_array[i]) != 'undefined')
return true;
}
return false;
}
function get(){
var tmp = [];
var j = 0;
for(var i = 0; i < size(); i++){
if(typeof(_array[i]) != 'undefined'){
tmp[j] = _array[i];
j++;
}
}
return tmp;
}
function getSortedAsc(){
var tmp = [];
tmp = get();
return tmp.sort();
}
function getSortedDesc(){
var tmp = [];
tmp = get();
tmp.sort();
return tmp.reverse();
}
}