You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by he...@apache.org on 2004/06/14 10:22:57 UTC
cvs commit: ws-axis/contrib/ews/samples/ejb/time build.xml
hemapani 2004/06/14 01:22:57
Modified: contrib/ews/samples/mapper/google webservices.xml
Added: contrib/ews/samples/ejb/time/META-INF webservice.xml
ejb-jar.xml
contrib/ews/samples/ejb/math jaxrpc-mapping.xml ejb-jar.xml
webservice.xml math.wsdl
contrib/ews/samples/ejb/bookquote/com/jwsbook/jaxrpc
BookQuote.java BookQuoteBean.java
InvalidIsbnException.java
contrib/ews/samples/ejb/zip/META-INF webservice.xml
ejb-jar.xml
contrib/ews/samples/ejb/google/org/objectweb/wssample/gen/google
DirectoryCategory.java GoogleSearchPort.java
MyGoogleSearchResult.java ResultElement.java
GoogleSearchPortBean.java
contrib/ews/samples/ejb/bookquote/META-INF webservice.xml
ejb-jar.xml
contrib/ews/samples/servlet/math jaxrpc-mapping.xml web.xml
webservice.xml math.wsdl
contrib/ews/samples/ejb/time/org/objectweb/jonas/jtests/beans/time
TimeBean.java TimeBeanBean.java
contrib/ews/samples/ejb/google/META-INF ejb-jar.xml
webservice.xml
contrib/ews/samples/ejb/bookquote build.xml
contrib/ews/samples/ejb/zip/org/objectweb/jonas/zip
ZipBean.java Zip.java
contrib/ews/samples/ejb/zip build.xml
contrib/ews/samples/ejb/google build.xml
contrib/ews/samples/ejb/time build.xml
Log:
add new testcases for servlet and ejb based tests. there are four ejb based jar can be generate by
them to test the tool accept a jar as input
Revision Changes Path
1.1 ws-axis/contrib/ews/samples/ejb/time/META-INF/webservice.xml
Index: webservice.xml
===================================================================
<?xml version="1.0"?>
<webservices xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"
version="1.1">
<display-name>Time WebService</display-name>
<webservice-description>
<webservice-description-name>Time WebService</webservice-description-name>
<wsdl-file>TimePort.wsdl</wsdl-file>
<jaxrpc-mapping-file>TimeMapping.xml</jaxrpc-mapping-file>
<port-component>
<description>port component description</description>
<port-component-name>TimePort</port-component-name>
<!-- Should be the right way to use QName with JAXB parsing -->
<wsdl-port xmlns:time="jonas:Time">time:TimePort</wsdl-port>
<service-endpoint-interface>org.objectweb.jonas.jtests.beans.time.TimeBean</service-endpoint-interface>
<service-impl-bean>
<ejb-link>TimeBeanSLR</ejb-link>
</service-impl-bean>
</port-component>
</webservice-description>
</webservices>
1.1 ws-axis/contrib/ews/samples/ejb/time/META-INF/ejb-jar.xml
Index: ejb-jar.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar>
<display-name>null</display-name>
<enterprise-beans>
<session>
<ejb-name>timebean</ejb-name>
<home>org.objectweb.jonas.jtests.beans.time.TimeBeanHome</home>
<remote>org.objectweb.jonas.jtests.beans.time.TimeBeanEJB</remote>
<ejb-class>org.objectweb.jonas.jtests.beans.time.TimeBeanBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
1.1 ws-axis/contrib/ews/samples/ejb/math/jaxrpc-mapping.xml
Index: jaxrpc-mapping.xml
===================================================================
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<java-wsdl-mapping version="1.0" xmlns="http://java.sun.com/xml/ns/j2ee">
<package-mapping>
<package-type>testData.math</package-type>
<namespaceURI>http://math.testData</namespaceURI>
</package-mapping>
<service-interface-mapping>
<service-interface>testData.math.MathFaceService</service-interface>
<ns1:wsdl-service-name xmlns:ns1="http://java.sun.com/xml/ns/j2ee" xmlns="http://math.testData">MathFaceService</ns1:wsdl-service-name>
<port-mapping>
<port-name>math</port-name>
<java-port-name>math</java-port-name>
</port-mapping>
</service-interface-mapping>
<service-endpoint-interface-mapping>
<service-endpoint-interface>testData.math.MathFace</service-endpoint-interface>
<ns2:wsdl-port-type xmlns:ns2="http://java.sun.com/xml/ns/j2ee" xmlns="http://math.testData">MathFace</ns2:wsdl-port-type>
<ns3:wsdl-binding xmlns:ns3="http://java.sun.com/xml/ns/j2ee" xmlns="http://math.testData">mathSoapBinding</ns3:wsdl-binding>
<service-endpoint-method-mapping>
<java-method-name>add</java-method-name>
<wsdl-operation>add</wsdl-operation>
<method-param-parts-mapping>
<param-position>0</param-position>
<param-type>int</param-type>
<wsdl-message-mapping>
<ns4:wsdl-message xmlns:ns4="http://java.sun.com/xml/ns/j2ee" xmlns="http://math.testData">addRequest</ns4:wsdl-message>
<wsdl-message-part-name>in0</wsdl-message-part-name>
<parameter-mode>IN</parameter-mode>
</wsdl-message-mapping>
</method-param-parts-mapping>
<method-param-parts-mapping>
<param-position>0</param-position>
<param-type>int</param-type>
<wsdl-message-mapping>
<ns5:wsdl-message xmlns:ns5="http://java.sun.com/xml/ns/j2ee" xmlns="http://math.testData">addRequest</ns5:wsdl-message>
<wsdl-message-part-name>in1</wsdl-message-part-name>
<parameter-mode>IN</parameter-mode>
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
<method-return-value>int</method-return-value>
<ns6:wsdl-message xmlns:ns6="http://java.sun.com/xml/ns/j2ee" xmlns="http://math.testData">addResponse</ns6:wsdl-message>
<wsdl-message-part-name>addReturn</wsdl-message-part-name>
</wsdl-return-value-mapping>
</service-endpoint-method-mapping>
</service-endpoint-interface-mapping>
</java-wsdl-mapping>
1.1 ws-axis/contrib/ews/samples/ejb/math/ejb-jar.xml
Index: ejb-jar.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar>
<display-name>math</display-name>
<enterprise-beans>
<session>
<display-name>BookQuoteService</display-name>
<ejb-name>MathFace</ejb-name>
<home>testData.math.MathFaceHome</home>
<remote>testData.math.MathFace</remote>
<ejb-class>testData.math.MathFaceImpl</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</session
> </enterprise-beans>
</ejb-jar>
1.1 ws-axis/contrib/ews/samples/ejb/math/webservice.xml
Index: webservice.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<webservices xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns1="http://www.Monson-Haefel.com/jwsbook/BookQuote"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://www.ibm.com/standards/xml/webservices/j2ee/j2ee_web_services_1_1.xsd" version="1.1">
<webservice-description>
<webservice-description-name>MathFaceService</webservice-description-name>
<wsdl-file>math.wsdl</wsdl-file>
<jaxrpc-mapping-file>jaxrpc-mapping.xml</jaxrpc-mapping-file>
<port-component>
<port-component-name>MathFace</port-component-name>
<wsdl-port xmlns:ns1="http://math.testData">ns1:math</wsdl-port>
<service-endpoint-interface>testData.math.MathFace</service-endpoint-interface>
<service-impl-bean>
<ejb-link >MathFace</ejb-link>
</service-impl-bean>
</port-component>
</webservice-description>
</webservices>
1.1 ws-axis/contrib/ews/samples/ejb/math/math.wsdl
Index: math.wsdl
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://math.testData" xmlns:impl="http://math.testData" xmlns:intf="http://math.testData" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<!--WSDL created by Apache Axis version: 1.2beta
Built on Jun 10, 2004 (12:01:10 PDT)-->
<wsdl:message name="addRequest">
<wsdl:part name="in0" type="xsd:int"/>
<wsdl:part name="in1" type="xsd:int"/>
</wsdl:message>
<wsdl:message name="addResponse">
<wsdl:part name="addReturn" type="xsd:int"/>
</wsdl:message>
<wsdl:portType name="MathFace">
<wsdl:operation name="add" parameterOrder="in0 in1">
<wsdl:input name="addRequest" message="impl:addRequest"/>
<wsdl:output name="addResponse" message="impl:addResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="mathSoapBinding" type="impl:MathFace">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="add">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="addRequest">
<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://math.testData"/>
</wsdl:input>
<wsdl:output name="addResponse">
<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://math.testData"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="MathFaceService">
<wsdl:port name="math" binding="impl:mathSoapBinding">
<wsdlsoap:address location="http://127.0.0.1"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
1.1 ws-axis/contrib/ews/samples/ejb/bookquote/com/jwsbook/jaxrpc/BookQuote.java
Index: BookQuote.java
===================================================================
/**
* BookQuote.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2alpha Feb 10, 2004 (12:04:50 GMT+06:00) WSDL2Java emitter.
*/
package com.jwsbook.jaxrpc;
public interface BookQuote extends java.rmi.Remote {
public float getBookPrice(java.lang.String isbn) throws java.rmi.RemoteException, com.jwsbook.jaxrpc.InvalidIsbnException;
}
1.1 ws-axis/contrib/ews/samples/ejb/bookquote/com/jwsbook/jaxrpc/BookQuoteBean.java
Index: BookQuoteBean.java
===================================================================
package com.jwsbook.jaxrpc;
public class BookQuoteBean implements javax.ejb.SessionBean{
public float getBookPrice(java.lang.String isbn){
return 0.0f;
}
public javax.naming.Context getInitialContext()throws javax.naming.NamingException{
java.util.Properties env = new java.util.Properties();
env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
env.put(javax.naming.Context.PROVIDER_URL, "127.0.0.1:1099");
return new javax.naming.InitialContext(env);
}
public void ejbCreate() {}
public void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException {}
public void ejbPassivate() throws javax.ejb.EJBException, java.rmi.RemoteException {}
public void ejbRemove() throws javax.ejb.EJBException, java.rmi.RemoteException {}
public void setSessionContext(javax.ejb.SessionContext arg0)throws javax.ejb.EJBException, java.rmi.RemoteException {}
}
1.1 ws-axis/contrib/ews/samples/ejb/bookquote/com/jwsbook/jaxrpc/InvalidIsbnException.java
Index: InvalidIsbnException.java
===================================================================
/**
* InvalidIsbnException.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2alpha Feb 10, 2004 (12:04:50 GMT+06:00) WSDL2Java emitter.
*/
package com.jwsbook.jaxrpc;
public class InvalidIsbnException extends org.apache.axis.AxisFault {
public java.lang.String message;
public java.lang.String getMessage() {
return this.message;
}
public InvalidIsbnException() {
}
public InvalidIsbnException(java.lang.String message) {
this.message = message;
}
/**
* Writes the exception data to the faultDetails
*/
public void writeDetails(javax.xml.namespace.QName qname, org.apache.axis.encoding.SerializationContext context) throws java.io.IOException {
context.serialize(qname, null, message);
}
}
1.1 ws-axis/contrib/ews/samples/ejb/zip/META-INF/webservice.xml
Index: webservice.xml
===================================================================
<?xml version="1.0"?>
<webservices xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"
version="1.1">
<display-name>French Zip</display-name>
<webservice-description>
<webservice-description-name>French Zip WebService</webservice-description-name>
<wsdl-file>FrenchZip.wsdl</wsdl-file>
<jaxrpc-mapping-file>FrenchZipMapping.xml</jaxrpc-mapping-file>
<port-component>
<description>port component description</description>
<port-component-name>TimePort</port-component-name>
<!-- Should be the right way to use QName with JAXB parsing -->
<wsdl-port xmlns:ns="http://tempuri.org/">ns:IODCODESPOSTAUXPort</wsdl-port>
<service-endpoint-interface>org.objectweb.jonas.zip.Zip</service-endpoint-interface>
<service-impl-bean>
<ejb-link>ZipBean</ejb-link>
</service-impl-bean>
</port-component>
</webservice-description>
</webservices>
1.1 ws-axis/contrib/ews/samples/ejb/zip/META-INF/ejb-jar.xml
Index: ejb-jar.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar>
<display-name>null</display-name>
<enterprise-beans>
<session>
<display-name>null</display-name>
<ejb-name>iodcodespostaux</ejb-name>
<home>org.objectweb.jonas.zip.ZipHome</home>
<remote>org.objectweb.jonas.zip.ZipEJB</remote>
<ejb-class>org.objectweb.jonas.zip.ZipBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
1.1 ws-axis/contrib/ews/samples/ejb/google/org/objectweb/wssample/gen/google/DirectoryCategory.java
Index: DirectoryCategory.java
===================================================================
/**
* DirectoryCategory.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2alpha Feb 10, 2004 (12:04:50 GMT+06:00) WSDL2Java emitter.
*/
package org.objectweb.wssample.gen.google;
public class DirectoryCategory implements java.io.Serializable {
private java.lang.String fullViewableName;
private java.lang.String specialEncoding;
public DirectoryCategory() {
}
/**
* Gets the fullViewableName value for this DirectoryCategory.
*
* @return fullViewableName
*/
public java.lang.String getFullViewableName() {
return fullViewableName;
}
/**
* Sets the fullViewableName value for this DirectoryCategory.
*
* @param fullViewableName
*/
public void setFullViewableName(java.lang.String fullViewableName) {
this.fullViewableName = fullViewableName;
}
/**
* Gets the specialEncoding value for this DirectoryCategory.
*
* @return specialEncoding
*/
public java.lang.String getSpecialEncoding() {
return specialEncoding;
}
/**
* Sets the specialEncoding value for this DirectoryCategory.
*
* @param specialEncoding
*/
public void setSpecialEncoding(java.lang.String specialEncoding) {
this.specialEncoding = specialEncoding;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof DirectoryCategory)) return false;
DirectoryCategory other = (DirectoryCategory) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.fullViewableName==null && other.getFullViewableName()==null) ||
(this.fullViewableName!=null &&
this.fullViewableName.equals(other.getFullViewableName()))) &&
((this.specialEncoding==null && other.getSpecialEncoding()==null) ||
(this.specialEncoding!=null &&
this.specialEncoding.equals(other.getSpecialEncoding())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getFullViewableName() != null) {
_hashCode += getFullViewableName().hashCode();
}
if (getSpecialEncoding() != null) {
_hashCode += getSpecialEncoding().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
}
1.1 ws-axis/contrib/ews/samples/ejb/google/org/objectweb/wssample/gen/google/GoogleSearchPort.java
Index: GoogleSearchPort.java
===================================================================
/**
* GoogleSearchPort.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2alpha Feb 10, 2004 (12:04:50 GMT+06:00) WSDL2Java emitter.
*/
package org.objectweb.wssample.gen.google;
public interface GoogleSearchPort extends java.rmi.Remote {
public byte[] doGetCachedPage(java.lang.String key, java.lang.String url) throws java.rmi.RemoteException;
public java.lang.String doSpellingSuggestion(java.lang.String key, java.lang.String phrase) throws java.rmi.RemoteException;
public org.objectweb.wssample.gen.google.MyGoogleSearchResult doGoogleSearch(java.lang.String key, java.lang.String q, int start, int maxResults, boolean filter, java.lang.String restrict, boolean safeSearch, java.lang.String lr, java.lang.String ie, java.lang.String oe) throws java.rmi.RemoteException;
}
1.1 ws-axis/contrib/ews/samples/ejb/google/org/objectweb/wssample/gen/google/MyGoogleSearchResult.java
Index: MyGoogleSearchResult.java
===================================================================
/**
* MyGoogleSearchResult.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2alpha Feb 10, 2004 (12:04:50 GMT+06:00) WSDL2Java emitter.
*/
package org.objectweb.wssample.gen.google;
public class MyGoogleSearchResult implements java.io.Serializable {
private boolean documentFiltering;
private java.lang.String searchComments;
private int estimatedTotalResultsCount;
private boolean estimateIsExact;
private org.objectweb.wssample.gen.google.ResultElement[] resultElements;
private java.lang.String searchQuery;
private int startIndex;
private int endIndex;
private java.lang.String searchTips;
private org.objectweb.wssample.gen.google.DirectoryCategory[] directoryCategories;
private double searchTime;
public MyGoogleSearchResult() {
}
/**
* Gets the documentFiltering value for this MyGoogleSearchResult.
*
* @return documentFiltering
*/
public boolean isDocumentFiltering() {
return documentFiltering;
}
/**
* Sets the documentFiltering value for this MyGoogleSearchResult.
*
* @param documentFiltering
*/
public void setDocumentFiltering(boolean documentFiltering) {
this.documentFiltering = documentFiltering;
}
/**
* Gets the searchComments value for this MyGoogleSearchResult.
*
* @return searchComments
*/
public java.lang.String getSearchComments() {
return searchComments;
}
/**
* Sets the searchComments value for this MyGoogleSearchResult.
*
* @param searchComments
*/
public void setSearchComments(java.lang.String searchComments) {
this.searchComments = searchComments;
}
/**
* Gets the estimatedTotalResultsCount value for this MyGoogleSearchResult.
*
* @return estimatedTotalResultsCount
*/
public int getEstimatedTotalResultsCount() {
return estimatedTotalResultsCount;
}
/**
* Sets the estimatedTotalResultsCount value for this MyGoogleSearchResult.
*
* @param estimatedTotalResultsCount
*/
public void setEstimatedTotalResultsCount(int estimatedTotalResultsCount) {
this.estimatedTotalResultsCount = estimatedTotalResultsCount;
}
/**
* Gets the estimateIsExact value for this MyGoogleSearchResult.
*
* @return estimateIsExact
*/
public boolean isEstimateIsExact() {
return estimateIsExact;
}
/**
* Sets the estimateIsExact value for this MyGoogleSearchResult.
*
* @param estimateIsExact
*/
public void setEstimateIsExact(boolean estimateIsExact) {
this.estimateIsExact = estimateIsExact;
}
/**
* Gets the resultElements value for this MyGoogleSearchResult.
*
* @return resultElements
*/
public org.objectweb.wssample.gen.google.ResultElement[] getResultElements() {
return resultElements;
}
/**
* Sets the resultElements value for this MyGoogleSearchResult.
*
* @param resultElements
*/
public void setResultElements(org.objectweb.wssample.gen.google.ResultElement[] resultElements) {
this.resultElements = resultElements;
}
/**
* Gets the searchQuery value for this MyGoogleSearchResult.
*
* @return searchQuery
*/
public java.lang.String getSearchQuery() {
return searchQuery;
}
/**
* Sets the searchQuery value for this MyGoogleSearchResult.
*
* @param searchQuery
*/
public void setSearchQuery(java.lang.String searchQuery) {
this.searchQuery = searchQuery;
}
/**
* Gets the startIndex value for this MyGoogleSearchResult.
*
* @return startIndex
*/
public int getStartIndex() {
return startIndex;
}
/**
* Sets the startIndex value for this MyGoogleSearchResult.
*
* @param startIndex
*/
public void setStartIndex(int startIndex) {
this.startIndex = startIndex;
}
/**
* Gets the endIndex value for this MyGoogleSearchResult.
*
* @return endIndex
*/
public int getEndIndex() {
return endIndex;
}
/**
* Sets the endIndex value for this MyGoogleSearchResult.
*
* @param endIndex
*/
public void setEndIndex(int endIndex) {
this.endIndex = endIndex;
}
/**
* Gets the searchTips value for this MyGoogleSearchResult.
*
* @return searchTips
*/
public java.lang.String getSearchTips() {
return searchTips;
}
/**
* Sets the searchTips value for this MyGoogleSearchResult.
*
* @param searchTips
*/
public void setSearchTips(java.lang.String searchTips) {
this.searchTips = searchTips;
}
/**
* Gets the directoryCategories value for this MyGoogleSearchResult.
*
* @return directoryCategories
*/
public org.objectweb.wssample.gen.google.DirectoryCategory[] getDirectoryCategories() {
return directoryCategories;
}
/**
* Sets the directoryCategories value for this MyGoogleSearchResult.
*
* @param directoryCategories
*/
public void setDirectoryCategories(org.objectweb.wssample.gen.google.DirectoryCategory[] directoryCategories) {
this.directoryCategories = directoryCategories;
}
/**
* Gets the searchTime value for this MyGoogleSearchResult.
*
* @return searchTime
*/
public double getSearchTime() {
return searchTime;
}
/**
* Sets the searchTime value for this MyGoogleSearchResult.
*
* @param searchTime
*/
public void setSearchTime(double searchTime) {
this.searchTime = searchTime;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof MyGoogleSearchResult)) return false;
MyGoogleSearchResult other = (MyGoogleSearchResult) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
this.documentFiltering == other.isDocumentFiltering() &&
((this.searchComments==null && other.getSearchComments()==null) ||
(this.searchComments!=null &&
this.searchComments.equals(other.getSearchComments()))) &&
this.estimatedTotalResultsCount == other.getEstimatedTotalResultsCount() &&
this.estimateIsExact == other.isEstimateIsExact() &&
((this.resultElements==null && other.getResultElements()==null) ||
(this.resultElements!=null &&
java.util.Arrays.equals(this.resultElements, other.getResultElements()))) &&
((this.searchQuery==null && other.getSearchQuery()==null) ||
(this.searchQuery!=null &&
this.searchQuery.equals(other.getSearchQuery()))) &&
this.startIndex == other.getStartIndex() &&
this.endIndex == other.getEndIndex() &&
((this.searchTips==null && other.getSearchTips()==null) ||
(this.searchTips!=null &&
this.searchTips.equals(other.getSearchTips()))) &&
((this.directoryCategories==null && other.getDirectoryCategories()==null) ||
(this.directoryCategories!=null &&
java.util.Arrays.equals(this.directoryCategories, other.getDirectoryCategories()))) &&
this.searchTime == other.getSearchTime();
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
_hashCode += (isDocumentFiltering() ? Boolean.TRUE : Boolean.FALSE).hashCode();
if (getSearchComments() != null) {
_hashCode += getSearchComments().hashCode();
}
_hashCode += getEstimatedTotalResultsCount();
_hashCode += (isEstimateIsExact() ? Boolean.TRUE : Boolean.FALSE).hashCode();
if (getResultElements() != null) {
for (int i=0;
i<java.lang.reflect.Array.getLength(getResultElements());
i++) {
java.lang.Object obj = java.lang.reflect.Array.get(getResultElements(), i);
if (obj != null &&
!obj.getClass().isArray()) {
_hashCode += obj.hashCode();
}
}
}
if (getSearchQuery() != null) {
_hashCode += getSearchQuery().hashCode();
}
_hashCode += getStartIndex();
_hashCode += getEndIndex();
if (getSearchTips() != null) {
_hashCode += getSearchTips().hashCode();
}
if (getDirectoryCategories() != null) {
for (int i=0;
i<java.lang.reflect.Array.getLength(getDirectoryCategories());
i++) {
java.lang.Object obj = java.lang.reflect.Array.get(getDirectoryCategories(), i);
if (obj != null &&
!obj.getClass().isArray()) {
_hashCode += obj.hashCode();
}
}
}
_hashCode += new Double(getSearchTime()).hashCode();
__hashCodeCalc = false;
return _hashCode;
}
}
1.1 ws-axis/contrib/ews/samples/ejb/google/org/objectweb/wssample/gen/google/ResultElement.java
Index: ResultElement.java
===================================================================
/**
* ResultElement.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2alpha Feb 10, 2004 (12:04:50 GMT+06:00) WSDL2Java emitter.
*/
package org.objectweb.wssample.gen.google;
public class ResultElement implements java.io.Serializable {
private java.lang.String summary;
private java.lang.String URL;
private java.lang.String snippet;
private java.lang.String title;
private java.lang.String cachedSize;
private boolean relatedInformationPresent;
private java.lang.String hostName;
private org.objectweb.wssample.gen.google.DirectoryCategory directoryCategory;
private java.lang.String directoryTitle;
public ResultElement() {
}
/**
* Gets the summary value for this ResultElement.
*
* @return summary
*/
public java.lang.String getSummary() {
return summary;
}
/**
* Sets the summary value for this ResultElement.
*
* @param summary
*/
public void setSummary(java.lang.String summary) {
this.summary = summary;
}
/**
* Gets the URL value for this ResultElement.
*
* @return URL
*/
public java.lang.String getURL() {
return URL;
}
/**
* Sets the URL value for this ResultElement.
*
* @param URL
*/
public void setURL(java.lang.String URL) {
this.URL = URL;
}
/**
* Gets the snippet value for this ResultElement.
*
* @return snippet
*/
public java.lang.String getSnippet() {
return snippet;
}
/**
* Sets the snippet value for this ResultElement.
*
* @param snippet
*/
public void setSnippet(java.lang.String snippet) {
this.snippet = snippet;
}
/**
* Gets the title value for this ResultElement.
*
* @return title
*/
public java.lang.String getTitle() {
return title;
}
/**
* Sets the title value for this ResultElement.
*
* @param title
*/
public void setTitle(java.lang.String title) {
this.title = title;
}
/**
* Gets the cachedSize value for this ResultElement.
*
* @return cachedSize
*/
public java.lang.String getCachedSize() {
return cachedSize;
}
/**
* Sets the cachedSize value for this ResultElement.
*
* @param cachedSize
*/
public void setCachedSize(java.lang.String cachedSize) {
this.cachedSize = cachedSize;
}
/**
* Gets the relatedInformationPresent value for this ResultElement.
*
* @return relatedInformationPresent
*/
public boolean isRelatedInformationPresent() {
return relatedInformationPresent;
}
/**
* Sets the relatedInformationPresent value for this ResultElement.
*
* @param relatedInformationPresent
*/
public void setRelatedInformationPresent(boolean relatedInformationPresent) {
this.relatedInformationPresent = relatedInformationPresent;
}
/**
* Gets the hostName value for this ResultElement.
*
* @return hostName
*/
public java.lang.String getHostName() {
return hostName;
}
/**
* Sets the hostName value for this ResultElement.
*
* @param hostName
*/
public void setHostName(java.lang.String hostName) {
this.hostName = hostName;
}
/**
* Gets the directoryCategory value for this ResultElement.
*
* @return directoryCategory
*/
public org.objectweb.wssample.gen.google.DirectoryCategory getDirectoryCategory() {
return directoryCategory;
}
/**
* Sets the directoryCategory value for this ResultElement.
*
* @param directoryCategory
*/
public void setDirectoryCategory(org.objectweb.wssample.gen.google.DirectoryCategory directoryCategory) {
this.directoryCategory = directoryCategory;
}
/**
* Gets the directoryTitle value for this ResultElement.
*
* @return directoryTitle
*/
public java.lang.String getDirectoryTitle() {
return directoryTitle;
}
/**
* Sets the directoryTitle value for this ResultElement.
*
* @param directoryTitle
*/
public void setDirectoryTitle(java.lang.String directoryTitle) {
this.directoryTitle = directoryTitle;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof ResultElement)) return false;
ResultElement other = (ResultElement) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.summary==null && other.getSummary()==null) ||
(this.summary!=null &&
this.summary.equals(other.getSummary()))) &&
((this.URL==null && other.getURL()==null) ||
(this.URL!=null &&
this.URL.equals(other.getURL()))) &&
((this.snippet==null && other.getSnippet()==null) ||
(this.snippet!=null &&
this.snippet.equals(other.getSnippet()))) &&
((this.title==null && other.getTitle()==null) ||
(this.title!=null &&
this.title.equals(other.getTitle()))) &&
((this.cachedSize==null && other.getCachedSize()==null) ||
(this.cachedSize!=null &&
this.cachedSize.equals(other.getCachedSize()))) &&
this.relatedInformationPresent == other.isRelatedInformationPresent() &&
((this.hostName==null && other.getHostName()==null) ||
(this.hostName!=null &&
this.hostName.equals(other.getHostName()))) &&
((this.directoryCategory==null && other.getDirectoryCategory()==null) ||
(this.directoryCategory!=null &&
this.directoryCategory.equals(other.getDirectoryCategory()))) &&
((this.directoryTitle==null && other.getDirectoryTitle()==null) ||
(this.directoryTitle!=null &&
this.directoryTitle.equals(other.getDirectoryTitle())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getSummary() != null) {
_hashCode += getSummary().hashCode();
}
if (getURL() != null) {
_hashCode += getURL().hashCode();
}
if (getSnippet() != null) {
_hashCode += getSnippet().hashCode();
}
if (getTitle() != null) {
_hashCode += getTitle().hashCode();
}
if (getCachedSize() != null) {
_hashCode += getCachedSize().hashCode();
}
_hashCode += (isRelatedInformationPresent() ? Boolean.TRUE : Boolean.FALSE).hashCode();
if (getHostName() != null) {
_hashCode += getHostName().hashCode();
}
if (getDirectoryCategory() != null) {
_hashCode += getDirectoryCategory().hashCode();
}
if (getDirectoryTitle() != null) {
_hashCode += getDirectoryTitle().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
}
1.1 ws-axis/contrib/ews/samples/ejb/google/org/objectweb/wssample/gen/google/GoogleSearchPortBean.java
Index: GoogleSearchPortBean.java
===================================================================
package org.objectweb.wssample.gen.google;
public class GoogleSearchPortBean implements javax.ejb.SessionBean{
public byte[] doGetCachedPage(java.lang.String key,java.lang.String url){
return null;
}
public java.lang.String doSpellingSuggestion(java.lang.String key,java.lang.String phrase){
return null;
}
public org.objectweb.wssample.gen.google.MyGoogleSearchResult doGoogleSearch(java.lang.String key,java.lang.String q,int start,int maxResults,boolean filter,java.lang.String restrict,boolean safeSearch,java.lang.String lr,java.lang.String ie,java.lang.String oe){
return null;
}
public javax.naming.Context getInitialContext()throws javax.naming.NamingException{
java.util.Properties env = new java.util.Properties();
env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
env.put(javax.naming.Context.PROVIDER_URL, "127.0.0.1:1099");
return new javax.naming.InitialContext(env);
}
public void ejbCreate() {}
public void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException {}
public void ejbPassivate() throws javax.ejb.EJBException, java.rmi.RemoteException {}
public void ejbRemove() throws javax.ejb.EJBException, java.rmi.RemoteException {}
public void setSessionContext(javax.ejb.SessionContext arg0)throws javax.ejb.EJBException, java.rmi.RemoteException {}
}
1.1 ws-axis/contrib/ews/samples/ejb/bookquote/META-INF/webservice.xml
Index: webservice.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<webservices xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns1="http://www.Monson-Haefel.com/jwsbook/BookQuote"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://www.ibm.com/standards/xml/webservices/j2ee/j2ee_web_services_1_1.xsd" version="1.1">
<description>BookQuoteService</description>
<display-name>BookQuoteService</display-name>
<webservice-description >
<description>BookQuoteService</description>
<display-name>BookQuoteService</display-name>
<webservice-description-name >BookQuoteService</webservice-description-name>
<wsdl-file >BookQuote.wsdl</wsdl-file>
<jaxrpc-mapping-file >BookQuote.xml</jaxrpc-mapping-file>
<port-component >
<description >BookQuote</description>
<display-name >BookQuote</display-name>
<icon xml:lang="en-us" id="ID000298">
<small-icon>token</small-icon>
<large-icon>token</large-icon>
</icon>
<port-component-name >BookQuote</port-component-name>
<wsdl-port id="ID000311">ns1:BookQuotePort</wsdl-port>
<service-endpoint-interface >com.jwsbook.jaxrpc.BookQuote</service-endpoint-interface>
<service-impl-bean >
<ejb-link >com.jwsbook.jaxrpc.BookQuoteBean</ejb-link>
</service-impl-bean>
</port-component>
</webservice-description>
</webservices>
1.1 ws-axis/contrib/ews/samples/ejb/bookquote/META-INF/ejb-jar.xml
Index: ejb-jar.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar>
<display-name>BookQuoteService</display-name>
<enterprise-beans>
<session>
<display-name>BookQuoteService</display-name>
<ejb-name>bookquote</ejb-name>
<home>com.jwsbook.jaxrpc.BookQuoteHome</home>
<remote>com.jwsbook.jaxrpc.BookQuoteEJB</remote>
<ejb-class>com.jwsbook.jaxrpc.BookQuoteBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
1.1 ws-axis/contrib/ews/samples/servlet/math/jaxrpc-mapping.xml
Index: jaxrpc-mapping.xml
===================================================================
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<java-wsdl-mapping version="1.0" xmlns="http://java.sun.com/xml/ns/j2ee">
<package-mapping>
<package-type>testData.math</package-type>
<namespaceURI>http://math.testData</namespaceURI>
</package-mapping>
<service-interface-mapping>
<service-interface>testData.math.MathFaceService</service-interface>
<ns1:wsdl-service-name xmlns:ns1="http://java.sun.com/xml/ns/j2ee" xmlns="http://math.testData">MathFaceService</ns1:wsdl-service-name>
<port-mapping>
<port-name>math</port-name>
<java-port-name>math</java-port-name>
</port-mapping>
</service-interface-mapping>
<service-endpoint-interface-mapping>
<service-endpoint-interface>testData.math.MathFace</service-endpoint-interface>
<ns2:wsdl-port-type xmlns:ns2="http://java.sun.com/xml/ns/j2ee" xmlns="http://math.testData">MathFace</ns2:wsdl-port-type>
<ns3:wsdl-binding xmlns:ns3="http://java.sun.com/xml/ns/j2ee" xmlns="http://math.testData">mathSoapBinding</ns3:wsdl-binding>
<service-endpoint-method-mapping>
<java-method-name>add</java-method-name>
<wsdl-operation>add</wsdl-operation>
<method-param-parts-mapping>
<param-position>0</param-position>
<param-type>int</param-type>
<wsdl-message-mapping>
<ns4:wsdl-message xmlns:ns4="http://java.sun.com/xml/ns/j2ee" xmlns="http://math.testData">addRequest</ns4:wsdl-message>
<wsdl-message-part-name>in0</wsdl-message-part-name>
<parameter-mode>IN</parameter-mode>
</wsdl-message-mapping>
</method-param-parts-mapping>
<method-param-parts-mapping>
<param-position>0</param-position>
<param-type>int</param-type>
<wsdl-message-mapping>
<ns5:wsdl-message xmlns:ns5="http://java.sun.com/xml/ns/j2ee" xmlns="http://math.testData">addRequest</ns5:wsdl-message>
<wsdl-message-part-name>in1</wsdl-message-part-name>
<parameter-mode>IN</parameter-mode>
</wsdl-message-mapping>
</method-param-parts-mapping>
<wsdl-return-value-mapping>
<method-return-value>int</method-return-value>
<ns6:wsdl-message xmlns:ns6="http://java.sun.com/xml/ns/j2ee" xmlns="http://math.testData">addResponse</ns6:wsdl-message>
<wsdl-message-part-name>addReturn</wsdl-message-part-name>
</wsdl-return-value-mapping>
</service-endpoint-method-mapping>
</service-endpoint-interface-mapping>
</java-wsdl-mapping>
1.1 ws-axis/contrib/ews/samples/servlet/math/web.xml
Index: web.xml
===================================================================
<web-app>
<display-name>Apache-Axis</display-name>
<servlet>
<servlet-name>AxisServlet</servlet-name>
<display-name>Apache-Axis Servlet</display-name>
<servlet-class>org.apache.axis.transport.http.AxisServlet</servlet-class>
</servlet>
</web-app>
1.1 ws-axis/contrib/ews/samples/servlet/math/webservice.xml
Index: webservice.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<webservices xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns1="http://www.Monson-Haefel.com/jwsbook/BookQuote"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://www.ibm.com/standards/xml/webservices/j2ee/j2ee_web_services_1_1.xsd" version="1.1">
<webservice-description>
<webservice-description-name>MathFaceService</webservice-description-name>
<wsdl-file>math.wsdl</wsdl-file>
<jaxrpc-mapping-file>jaxrpc-mapping.xml</jaxrpc-mapping-file>
<port-component>
<port-component-name>MathFace</port-component-name>
<wsdl-port xmlns:ns1="http://math.testData">ns1:math</wsdl-port>
<service-endpoint-interface>testData.math.MathFace</service-endpoint-interface>
<service-impl-bean>
<servlet-link>MathFace</servlet-link>
</service-impl-bean>
</port-component>
</webservice-description>
</webservices>
1.1 ws-axis/contrib/ews/samples/servlet/math/math.wsdl
Index: math.wsdl
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://math.testData" xmlns:impl="http://math.testData" xmlns:intf="http://math.testData" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<!--WSDL created by Apache Axis version: 1.2beta
Built on Jun 10, 2004 (12:01:10 PDT)-->
<wsdl:message name="addRequest">
<wsdl:part name="in0" type="xsd:int"/>
<wsdl:part name="in1" type="xsd:int"/>
</wsdl:message>
<wsdl:message name="addResponse">
<wsdl:part name="addReturn" type="xsd:int"/>
</wsdl:message>
<wsdl:portType name="MathFace">
<wsdl:operation name="add" parameterOrder="in0 in1">
<wsdl:input name="addRequest" message="impl:addRequest"/>
<wsdl:output name="addResponse" message="impl:addResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="mathSoapBinding" type="impl:MathFace">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="add">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="addRequest">
<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://math.testData"/>
</wsdl:input>
<wsdl:output name="addResponse">
<wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://math.testData"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="MathFaceService">
<wsdl:port name="math" binding="impl:mathSoapBinding">
<wsdlsoap:address location="http://127.0.0.1"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
1.2 +1 -1 ws-axis/contrib/ews/samples/mapper/google/webservices.xml
Index: webservices.xml
===================================================================
RCS file: /home/cvs/ws-axis/contrib/ews/samples/mapper/google/webservices.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- webservices.xml 19 Feb 2004 10:34:09 -0000 1.1
+++ webservices.xml 14 Jun 2004 08:22:56 -0000 1.2
@@ -5,7 +5,7 @@
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"
version="1.1">
- <display-name>French Zip</display-name>
+ <display-name>Google Serach</display-name>
<webservice-description>
<webservice-description-name>Google Serach WebService</webservice-description-name>
<wsdl-file>GoogleSearch.wsdl</wsdl-file>
1.1 ws-axis/contrib/ews/samples/ejb/time/org/objectweb/jonas/jtests/beans/time/TimeBean.java
Index: TimeBean.java
===================================================================
/**
* TimeBean.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2alpha Feb 10, 2004 (12:04:50 GMT+06:00) WSDL2Java emitter.
*/
package org.objectweb.jonas.jtests.beans.time;
public interface TimeBean extends java.rmi.Remote {
public java.util.Calendar getDate() throws java.rmi.RemoteException;
public long getDateAsLong() throws java.rmi.RemoteException;
}
1.1 ws-axis/contrib/ews/samples/ejb/time/org/objectweb/jonas/jtests/beans/time/TimeBeanBean.java
Index: TimeBeanBean.java
===================================================================
package org.objectweb.jonas.jtests.beans.time;
public class TimeBeanBean implements javax.ejb.SessionBean{
public java.util.Calendar getDate(){
return null;
}
public long getDateAsLong(){
return 1123L;
}
public javax.naming.Context getInitialContext()throws javax.naming.NamingException{
java.util.Properties env = new java.util.Properties();
env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
env.put(javax.naming.Context.PROVIDER_URL, "127.0.0.1:1099");
return new javax.naming.InitialContext(env);
}
public void ejbCreate() {}
public void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException {}
public void ejbPassivate() throws javax.ejb.EJBException, java.rmi.RemoteException {}
public void ejbRemove() throws javax.ejb.EJBException, java.rmi.RemoteException {}
public void setSessionContext(javax.ejb.SessionContext arg0)throws javax.ejb.EJBException, java.rmi.RemoteException {}
}
1.1 ws-axis/contrib/ews/samples/ejb/google/META-INF/ejb-jar.xml
Index: ejb-jar.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar>
<display-name>null</display-name>
<enterprise-beans>
<session>
<display-name>null</display-name>
<ejb-name>googlesearchport</ejb-name>
<home>org.objectweb.wssample.gen.google.GoogleSearchHome</home>
<remote>org.objectweb.wssample.gen.google.GoogleSearchPortEJB</remote>
<ejb-class>org.objectweb.wssample.gen.google.GoogleSearchPortBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Bean</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
1.1 ws-axis/contrib/ews/samples/ejb/google/META-INF/webservice.xml
Index: webservice.xml
===================================================================
<?xml version="1.0"?>
<webservices xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"
version="1.1">
<display-name>French Zip</display-name>
<webservice-description>
<webservice-description-name>Google Serach WebService</webservice-description-name>
<wsdl-file>GoogleSearch.wsdl</wsdl-file>
<jaxrpc-mapping-file>GoogleSearch.xml</jaxrpc-mapping-file>
<port-component>
<description>port component description</description>
<port-component-name>GoogleSearchPort</port-component-name>
<!-- Should be the right way to use QName with JAXB parsing -->
<wsdl-port xmlns:ns="urn:GoogleSearch">ns:GoogleSearchPort</wsdl-port>
<service-endpoint-interface>org.objectweb.wssample.gen.google.GoogleSearchPort</service-endpoint-interface>
<service-impl-bean>
<ejb-link>GoogleBean</ejb-link>
</service-impl-bean>
</port-component>
</webservice-description>
</webservices>
1.1 ws-axis/contrib/ews/samples/ejb/bookquote/build.xml
Index: build.xml
===================================================================
<?xml version="1.0"?>
<project basedir="." default="jar">
<property name="src" location="."/>
<property name="build" location="build"/>
<property name="build.classes" location="${build}/classes"/>
<property name="build.lib" location="${build}/lib"/>
<property name="lib" location="lib"/>
<target name="compile">
<mkdir dir="${build.classes}"/>
<mkdir dir="${build.lib}"/>
<javac destdir="${build.classes}" debug="on">
<classpath refid="maven.dependency.classpath" />
<src path="${src}"/>
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="${build.classes}/META-INF/"/>
<copy file ="${basedir}/META-INF/webservice.xml" todir="${build.classes}/META-INF"/>
<copy file ="${basedir}/META-INF/ejb-jar.xml" todir="${build.classes}/META-INF"/>
<jar jarfile="../../../target/generated/samples/bookquote.jar" basedir="${build.classes}" >
<include name="**" />
<manifest>
<section name="org/apache/ws4j2ee">
<attribute name="Implementation-Title" value="Apache jsr109 impl"/>
<attribute name="Implementation-Vendor" value="Apache Web Services"/>
</section>
</manifest>
</jar>
<delete dir="${build}"/>
</target>
</project>
1.1 ws-axis/contrib/ews/samples/ejb/zip/org/objectweb/jonas/zip/ZipBean.java
Index: ZipBean.java
===================================================================
package org.objectweb.jonas.zip;
public class ZipBean implements javax.ejb.SessionBean{
public java.lang.String getDepartmentForCode(java.lang.String DepCode){
return null;
}
public java.lang.String getDepartmentAdminCenterForCode(java.lang.String DepCode){
return null;
}
public java.lang.String getDepartmentList(java.lang.String Separator){
return null;
}
public java.lang.String getTownForZip(java.lang.String ZipCode,java.lang.String Separator){
return null;
}
public java.lang.String getZipForTown(java.lang.String Town,java.lang.String Separator,boolean ExactMatch){
return null;
}
public java.lang.String getTownsForSoundex(java.lang.String SearchFor,java.lang.String Separator){
return null;
}
public void reportErrorInFile(java.lang.String YourName,java.lang.String YourMail,java.lang.String YourMessage){
}
public javax.naming.Context getInitialContext()throws javax.naming.NamingException{
java.util.Properties env = new java.util.Properties();
env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
env.put(javax.naming.Context.PROVIDER_URL, "127.0.0.1:1099");
return new javax.naming.InitialContext(env);
}
public void ejbCreate() {}
public void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException {}
public void ejbPassivate() throws javax.ejb.EJBException, java.rmi.RemoteException {}
public void ejbRemove() throws javax.ejb.EJBException, java.rmi.RemoteException {}
public void setSessionContext(javax.ejb.SessionContext arg0)throws javax.ejb.EJBException, java.rmi.RemoteException {}
}
1.1 ws-axis/contrib/ews/samples/ejb/zip/org/objectweb/jonas/zip/Zip.java
Index: Zip.java
===================================================================
/**
* Zip.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2alpha Feb 10, 2004 (12:04:50 GMT+06:00) WSDL2Java emitter.
*/
package org.objectweb.jonas.zip;
public interface Zip extends java.rmi.Remote {
public java.lang.String getDepartmentForCode(java.lang.String depCode) throws java.rmi.RemoteException;
public java.lang.String getDepartmentAdminCenterForCode(java.lang.String depCode) throws java.rmi.RemoteException;
public java.lang.String getDepartmentList(java.lang.String separator) throws java.rmi.RemoteException;
public java.lang.String getTownForZip(java.lang.String zipCode, java.lang.String separator) throws java.rmi.RemoteException;
public java.lang.String getZipForTown(java.lang.String town, java.lang.String separator, boolean exactMatch) throws java.rmi.RemoteException;
public java.lang.String getTownsForSoundex(java.lang.String searchFor, java.lang.String separator) throws java.rmi.RemoteException;
public void reportErrorInFile(java.lang.String yourName, java.lang.String yourMail, java.lang.String yourMessage) throws java.rmi.RemoteException;
}
1.1 ws-axis/contrib/ews/samples/ejb/zip/build.xml
Index: build.xml
===================================================================
<?xml version="1.0"?>
<project basedir="." default="jar">
<property name="src" location="."/>
<property name="build" location="build"/>
<property name="build.classes" location="${build}/classes"/>
<property name="build.lib" location="${build}/lib"/>
<property name="lib" location="lib"/>
<target name="compile">
<mkdir dir="${build.classes}"/>
<mkdir dir="${build.lib}"/>
<javac destdir="${build.classes}" debug="on">
<classpath refid="maven.dependency.classpath" />
<src path="${src}"/>
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="${build.classes}/META-INF/"/>
<copy file ="${src}/META-INF/webservice.xml" todir="${build.classes}/META-INF"/>
<copy file ="${src}/META-INF/ejb-jar.xml" todir="${build.classes}/META-INF"/>
<jar jarfile="../../../target/generated/samples/zip.jar" basedir="${build.classes}" >
<include name="**" />
<manifest>
<section name="org/apache/ws4j2ee">
<attribute name="Implementation-Title" value="Apache jsr109 impl"/>
<attribute name="Implementation-Vendor" value="Apache Web Services"/>
</section>
</manifest>
</jar>
<delete dir="${build}"/>
</target>
</project>
1.1 ws-axis/contrib/ews/samples/ejb/google/build.xml
Index: build.xml
===================================================================
<?xml version="1.0"?>
<project basedir="." default="jar">
<property name="src" location="."/>
<property name="build" location="build"/>
<property name="build.classes" location="${build}/classes"/>
<property name="build.lib" location="${build}/lib"/>
<property name="lib" location="lib"/>
<target name="compile">
<mkdir dir="${build.classes}"/>
<mkdir dir="${build.lib}"/>
<javac destdir="${build.classes}" debug="on">
<classpath refid="maven.dependency.classpath" />
<src path="${src}"/>
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="${build.classes}/META-INF/"/>
<copy file ="${src}/META-INF/webservice.xml" todir="${build.classes}/META-INF"/>
<copy file ="${src}/META-INF/ejb-jar.xml" todir="${build.classes}/META-INF"/>
<jar jarfile="../../../target/generated/samples/google.jar" basedir="${build.classes}" >
<include name="**" />
<manifest>
<section name="org/apache/ws4j2ee">
<attribute name="Implementation-Title" value="Apache jsr109 impl"/>
<attribute name="Implementation-Vendor" value="Apache Web Services"/>
</section>
</manifest>
</jar>
<delete dir="${build}"/>
</target>
</project>
1.1 ws-axis/contrib/ews/samples/ejb/time/build.xml
Index: build.xml
===================================================================
<?xml version="1.0"?>
<project basedir="." default="jar">
<property name="src" location="."/>
<property name="build" location="build"/>
<property name="build.classes" location="${build}/classes"/>
<property name="build.lib" location="${build}/lib"/>
<property name="lib" location="lib"/>
<target name="compile">
<mkdir dir="${build.classes}"/>
<mkdir dir="${build.lib}"/>
<javac destdir="${build.classes}" debug="on">
<classpath refid="maven.dependency.classpath" />
<src path="${src}"/>
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="${build.classes}/META-INF/"/>
<copy file ="${src}/META-INF/webservice.xml" todir="${build.classes}/META-INF"/>
<copy file ="${src}/META-INF/ejb-jar.xml" todir="${build.classes}/META-INF"/>
<jar jarfile="../../../target/generated/samples/time.jar" basedir="${build.classes}" >
<include name="**" />
<manifest>
<section name="org/apache/ws4j2ee">
<attribute name="Implementation-Title" value="Apache jsr109 impl"/>
<attribute name="Implementation-Vendor" value="Apache Web Services"/>
</section>
</manifest>
</jar>
<delete dir="${build}"/>
</target>
</project>