antelder 2002/12/12 03:51:04 Modified: java/test/soap InputPartsTest.java MissingInputPartTest.java java/test/async AsyncTests.java java/test/invocation DynamicInvokerTest.java java/test/performance SpeedTest.java java/test/jndi JNDIAddressBookTest.java java/test/stockquote StockquoteTest.java java/test/translated/messages TranslatedMessagesUtilities.java java/test/serialization SerializationTest.java java/test/headers HeadersTest.java java/test/wsdl WsdlLoadingTest.java java/test/addressbook AddressBookTest.java java/test/providers ProvidersInitialisationTest.java Added: java/test/addressbook/wsiftypes Phone.java AddressBook.java Address.java java/test/stockquote/wsifservice DeploymentDescriptor.xml GetQuoteInputMessage.java README.txt StockquotePT.java Stockquote.wsdl GetQuoteOutputMessage.java java/test/addressbook/wsifservice AddressBook.java DeploymentDescriptor.xml AddressBook.wsdl java/test/stockquote/wsiftypes StockQuote.java Removed: java/samples/stockquote/wsifservice README.txt GetQuoteOutputMessage.java DeploymentDescriptor.xml GetQuoteInputMessage.java Stockquote.wsdl StockquotePT.java java/samples/stockquote/wsiftypes StockQuote.java Log: Change the testcases to have thier own addressbook and stockquote, wsifservice and wsiftypes packages Revision Changes Path 1.1 xml-axis-wsif/java/test/addressbook/wsiftypes/Phone.java Index: Phone.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "WSIF" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation and was * originally based on software copyright (c) 2001, 2002, International * Business Machines, Inc., http://www.apache.org. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ /* *This class is automatically generated by schema to Java program. *Only a subset of schema is handled and some of the schema information *may be lost during translation */ package addressbook.wsiftypes; import java.io.Serializable; public class Phone implements Serializable { //instance variables private int areaCode; private java.lang.String exchange; private java.lang.String number; //constructors public Phone () { } public Phone (int areaCode, java.lang.String exchange, java.lang.String number) { this.areaCode = areaCode; this.exchange = exchange; this.number = number; } public int getAreaCode() { return areaCode; } public void setAreaCode(int areaCode) { this.areaCode = areaCode; } public java.lang.String getExchange() { return exchange; } public void setExchange(java.lang.String exchange) { this.exchange = exchange; } public java.lang.String getNumber() { return number; } public void setNumber(java.lang.String number) { this.number = number; } public boolean equals(Phone rhs) { return this.areaCode == rhs.getAreaCode() && this.exchange.equals(rhs.getExchange()) && this.number.equals(rhs.getNumber()); } public String toString() { return "areaCode=" + areaCode + "\n" + "exchange=" + exchange + "\n" + "number=" + number; } } 1.1 xml-axis-wsif/java/test/addressbook/wsiftypes/AddressBook.java Index: AddressBook.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "WSIF" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation and was * originally based on software copyright (c) 2001, 2002, International * Business Machines, Inc., http://www.apache.org. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ package addressbook.wsiftypes; import java.util.*; import org.w3c.dom.*; import javax.xml.parsers.*; import addressbook.wsiftypes.*; /** * Sample service that provides add/get functionality. * * @author Matthew J. Duftler ([EMAIL PROTECTED]) * @author Aleksander Slominski */ public class AddressBook { private HashMap name2AddressTable = new HashMap(); public AddressBook() { addEntry("John B. Good", new Address(123, "Main Street", "Anytown", "NY", 12345, new Phone(123, "456", "7890"))); addEntry("Bob Q. Public", new Address(456, "North Whatever", "Notown", "ME", 12424, new Phone(987, "444", "5566"))); } public void addEntry(String name, Address address) { name2AddressTable.put(name, address); } public void addEntry(String firstName, String lastName, Address address) { name2AddressTable.put(firstName+" "+lastName, address); } public Address getAddressFromName(String name) throws IllegalArgumentException { return (Address)name2AddressTable.get(name); } } 1.1 xml-axis-wsif/java/test/addressbook/wsiftypes/Address.java Index: Address.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "WSIF" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation and was * originally based on software copyright (c) 2001, 2002, International * Business Machines, Inc., http://www.apache.org. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ /* *This class is automatically generated by schema to Java program. *Only a subset of schema is handled and some of the schema information *may be lost during translation */ package addressbook.wsiftypes; import java.io.Serializable; public class Address implements Serializable { //instance variables private int streetNum; private java.lang.String streetName; private java.lang.String city; private java.lang.String state; private int zip; private Phone phoneNumber; //constructors public Address () { } public Address (int streetNum, java.lang.String streetName, java.lang.String city, java.lang.String state, int zip, Phone phoneNumber) { this.streetNum = streetNum; this.streetName = streetName; this.city = city; this.state = state; this.zip = zip; this.phoneNumber = phoneNumber; } public int getStreetNum() { return streetNum; } public void setStreetNum(int streetNum) { this.streetNum = streetNum; } public java.lang.String getStreetName() { return streetName; } public void setStreetName(java.lang.String streetName) { this.streetName = streetName; } public java.lang.String getCity() { return city; } public void setCity(java.lang.String city) { this.city = city; } public java.lang.String getState() { return state; } public void setState(java.lang.String state) { this.state = state; } public int getZip() { return zip; } public void setZip(int zip) { this.zip = zip; } public Phone getPhoneNumber() { return phoneNumber; } public void setPhoneNumber(Phone phoneNumber) { this.phoneNumber = phoneNumber; } public boolean equals(Address rhs) { return this.streetNum == rhs.getStreetNum() && this.streetName.equals(rhs.getStreetName()) && this.city.equals(rhs.getCity()) && this.state.equals(rhs.getState()) && this.zip == rhs.getZip() && this.phoneNumber.equals(rhs.getPhoneNumber()); } public String toString() { return "streetNum=" + streetNum + "\n" + "streetName=" + streetName + "\n" + "city=" + city + "\n" + "state=" + state + "\n" + "zip=" + zip + "\n" + "phoneNumber=" + phoneNumber; } } 1.4 +1 -1 xml-axis-wsif/java/test/soap/InputPartsTest.java Index: InputPartsTest.java =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/test/soap/InputPartsTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- InputPartsTest.java 7 Dec 2002 12:33:51 -0000 1.3 +++ InputPartsTest.java 12 Dec 2002 11:51:02 -0000 1.4 @@ -87,7 +87,7 @@ */ public class InputPartsTest extends TestCase { static final String WSDL_LOCATION = - TestUtilities.getWsdlPath("java\\samples\\addressbook\\wsifservice") + + TestUtilities.getWsdlPath("java\\test\\addressbook\\wsifservice") + "AddressBook.wsdl"; public InputPartsTest(String name) { 1.4 +1 -1 xml-axis-wsif/java/test/soap/MissingInputPartTest.java Index: MissingInputPartTest.java =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/test/soap/MissingInputPartTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- MissingInputPartTest.java 7 Dec 2002 12:33:51 -0000 1.3 +++ MissingInputPartTest.java 12 Dec 2002 11:51:02 -0000 1.4 @@ -80,7 +80,7 @@ */ public class MissingInputPartTest extends TestCase { String wsdlLocation = - TestUtilities.getWsdlPath("java\\samples\\addressbook\\wsifservice") + TestUtilities.getWsdlPath("java\\test\\addressbook\\wsifservice") + "AddressBook.wsdl"; public MissingInputPartTest(String name) { 1.1 xml-axis-wsif/java/test/stockquote/wsifservice/DeploymentDescriptor.xml Index: DeploymentDescriptor.xml =================================================================== <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment" id="urn:xmltoday-delayed-quotes"> <isd:provider type="java" scope="Application" methods="getQuote"> <isd:java class="stockquote.wsiftypes.StockQuote"/> </isd:provider> <isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener> </isd:service> 1.1 xml-axis-wsif/java/test/stockquote/wsifservice/GetQuoteInputMessage.java Index: GetQuoteInputMessage.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "WSIF" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation and was * originally based on software copyright (c) 2001, 2002, International * Business Machines, Inc., http://www.apache.org. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ package stockquote.wsifservice; import java.util.Iterator; import java.util.List; import java.util.Map; import javax.wsdl.Message; import org.apache.wsif.WSIFException; import org.apache.wsif.WSIFMessage; public class GetQuoteInputMessage implements WSIFMessage { private String partNames[] = { "symbol" }; protected String _symbol; private String representationStyle; public GetQuoteInputMessage() { } public String getName() { return "GetQuoteInput"; } public void setName(String s) { } public java.util.Iterator getPartNames() { System.err.println(this.getClass().getName() + "getPartNames"); List resp = new java.util.LinkedList(); for (int i = 0; i < partNames.length; i++) { resp.add(partNames[i]); } return resp.iterator(); } public String getPt_Symbol() { return _symbol; } public void setPt_Symbol(String value) { this._symbol = value; } public boolean getBooleanPart(String partName) { throw new IllegalArgumentException("Part " + partName + " not found"); } public void setBooleanPart(String partName, boolean value) { throw new IllegalArgumentException("Part " + partName + " not found"); } public char getCharPart(String partName) { throw new IllegalArgumentException("Part " + partName + " not found"); } public void setCharPart(String partName, char value) { throw new IllegalArgumentException("Part " + partName + " not found"); } public String getStringPart(String partName) { if (partName.equals("symbol")) { return _symbol; } else throw new IllegalArgumentException("Part " + partName + " not found"); } public void setStringPart(String partName, String value) { if (partName.equals("symbol")) { this._symbol = value; } else throw new IllegalArgumentException("Part " + partName + " not found"); } public byte getBytePart(String partName) { throw new IllegalArgumentException("Part " + partName + " not found"); } public void setBytePart(String partName, byte value) { throw new IllegalArgumentException("Part " + partName + " not found"); } public short getShortPart(String partName) { throw new IllegalArgumentException("Part " + partName + " not found"); } public void setShortPart(String partName, short value) { throw new IllegalArgumentException("Part " + partName + " not found"); } public int getIntPart(String partName) { throw new IllegalArgumentException("Part " + partName + " not found"); } public void setIntPart(String partName, int value) { throw new IllegalArgumentException("Part " + partName + " not found"); } public long getLongPart(String partName) { throw new IllegalArgumentException("Part " + partName + " not found"); } public void setLongPart(String partName, long value) { throw new IllegalArgumentException("Part " + partName + " not found"); } public float getFloatPart(String partName) { throw new IllegalArgumentException("Part " + partName + " not found"); } public void setFloatPart(String partName, float value) { throw new IllegalArgumentException("Part " + partName + " not found"); } public double getDoublePart(String partName) { throw new IllegalArgumentException("Part " + partName + " not found"); } public void setDoublePart(String partName, double value) { throw new IllegalArgumentException("Part " + partName + " not found"); } public Object getObjectPart(String partName) { if (partName.equals("symbol")) { return _symbol; } else throw new IllegalArgumentException("Part " + partName + " not found"); } public Object getObjectPart(String partName, Class sourceClass) { if (partName.equals("symbol")) { return _symbol; } else throw new IllegalArgumentException("Part " + partName + " not found"); } public void setObjectPart(String partName, Object value) { if (partName.equals("symbol")) { this._symbol = (String) value; } else throw new IllegalArgumentException("Part " + partName + " not found"); } public Iterator getParts() { Map resp = new java.util.HashMap(); resp.put("symbol", _symbol); return resp.values().iterator(); } public void getParts(Map resp) { resp.put("symbol", _symbol); } public void setParts(Map source) { _symbol = (String) source.get("symbol"); } private GetQuoteInputMessage(GetQuoteInputMessage msg) throws WSIFException { this.partNames = msg.partNames; this.representationStyle = msg.representationStyle; this._symbol = new String(msg._symbol); } public String getRepresentationStyle() { return representationStyle; } public void setRepresentationStyle(String style) { representationStyle = style; } public Object clone() throws CloneNotSupportedException { try { return new GetQuoteInputMessage(this); } catch (WSIFException ex) { throw new CloneNotSupportedException(ex.getMessage()); } } public Message getMessageDefinition() { return null; } public void setMessageDefinition(Message msgDef) {} } 1.1 xml-axis-wsif/java/test/stockquote/wsifservice/README.txt Index: README.txt =================================================================== Sample service that retrieves a 20-min delayed quote for a ticker symbol (taken from ApacheSOAP 2.2). To install this service on an Apache-SOAP listener, you need to make the services.stockquote package available on the Apache-SOAP listener's classpath. Then deploy this service by filling in the deployment template using the info in the deployment descriptor in this directory or by using the service manager client: java org.apache.soap.server.ServiceManagerClient routerURL deploy DeploymentDescriptor.xml where routerURL is the URL of the SOAP RPC router and dd.xml is the name of the deployment descriptor file. For example: java org.apache.soap.server.ServiceManagerClient \ http://localhost:8080/soap/servlet/rpcrouter deploy DeploymentDescriptor.xml For more documentation see README.html in top level directory. 1.1 xml-axis-wsif/java/test/stockquote/wsifservice/StockquotePT.java Index: StockquotePT.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "WSIF" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation and was * originally based on software copyright (c) 2001, 2002, International * Business Machines, Inc., http://www.apache.org. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ /** * StockquotePT.java * * This file was auto-generated from WSDL * by the Apache Axis Wsdl2java emitter. */ package stockquote.wsifservice; public interface StockquotePT extends java.rmi.Remote { public float getQuote(java.lang.String symbol) throws java.rmi.RemoteException; } 1.1 xml-axis-wsif/java/test/stockquote/wsifservice/Stockquote.wsdl Index: Stockquote.wsdl =================================================================== <?xml version="1.0" ?> <definitions targetNamespace="http://wsifservice.stockquote/" xmlns:tns="http://wsifservice.stockquote/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:jms="http://schemas.xmlsoap.org/wsdl/jms/" xmlns:format="http://schemas.xmlsoap.org/wsdl/formatbinding/" xmlns:java="http://schemas.xmlsoap.org/wsdl/java/" xmlns="http://schemas.xmlsoap.org/wsdl/"> <message name="GetQuoteInput"> <part name="symbol" type="xsd:string"/> </message> <message name="GetQuoteOutput"> <part name="quote" type="xsd:float"/> </message> <portType name="StockquotePT"> <operation name="getQuote"> <input message="tns:GetQuoteInput"/> <output message="tns:GetQuoteOutput"/> </operation> </portType> <binding name="JavaBinding" type="tns:StockquotePT"> <java:binding/> <format:typeMapping encoding="Java" style="Java"> <format:typeMap typeName="xsd:string" formatType="java.lang.String" /> </format:typeMapping> <operation name="getQuote"> <java:operation methodName="getQuote" parameterOrder="symbol" methodType="instance" /> <input/> <output/> </operation> </binding> <binding name="SOAPHttpBinding" type="tns:StockquotePT"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="getQuote"> <soap:operation soapAction="http://example.com/GetTradePrice"/> <input> <soap:body use="encoded" namespace="urn:xmltoday-delayed-quotes" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:xmltoday-delayed-quotes" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> </binding> <binding name="SOAPJmsBinding" type="tns:StockquotePT"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/jms"/> <operation name="getQuote"> <soap:operation soapAction="http://example.com/GetTradePrice"/> <input> <soap:body use="encoded" namespace="urn:xmltoday-delayed-quotes" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="urn:xmltoday-delayed-quotes" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> </binding> <binding name="NativeJmsBinding" type="tns:StockquotePT"> <jms:binding type="ObjectMessage"/> <format:typeMapping encoding="Java"> <format:typeMap formatType="java.lang.String" typeName="xsd:string"/> </format:typeMapping> <operation name="getQuote"> <input> <jms:property name="JMSReplyTo" part="partJmsReplyTo"/> <jms:property name="JMSPriority" part="partJmsPriority"/> <jms:body parts="symbol" use="encoded"/> </input> <output> <!-- <jms:property name="JMSExpiration" part="expiration"/> --> <jms:body parts="quote" use="encoded"/> </output> </operation> </binding> <service name="StockquoteService"> <documentation>Stock quote service</documentation> <port name="SOAPPort" binding="tns:SOAPHttpBinding"> <soap:address location="http://localhost:8080/soap/servlet/rpcrouter"/> </port> <port name="JavaPort" binding="tns:JavaBinding"> <java:address className="stockquote.wsiftypes.StockQuote"/> </port> <port name="SOAPJMSPort" binding="tns:SOAPJmsBinding"> <jms:address jndiDestinationName="SoapJmsStockquoteQueue" destinationStyle="queue" jndiConnectionFactoryName="WSIFSampleQCF" initialContextFactory="com.sun.jndi.fscontext.RefFSContextFactory" jndiProviderURL="file:///JNDI-Directory"/> </port> <port name="NativeJmsPort" binding="tns:NativeJmsBinding"> <jms:address jndiDestinationName="NativeJmsRequestQueue" destinationStyle="queue" jndiConnectionFactoryName="WSIFSampleQCF" initialContextFactory="com.sun.jndi.fscontext.RefFSContextFactory" jndiProviderURL="file://C:/JNDI-Directory"> <jms:propertyValue name="JMSReplyTo" type="xsd:string" value="NativeJmsResponseQueue"/> </jms:address> </port> </service> </definitions> 1.1 xml-axis-wsif/java/test/stockquote/wsifservice/GetQuoteOutputMessage.java Index: GetQuoteOutputMessage.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "WSIF" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation and was * originally based on software copyright (c) 2001, 2002, International * Business Machines, Inc., http://www.apache.org. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ package stockquote.wsifservice; import java.util.Iterator; import java.util.List; import java.util.Map; import javax.wsdl.Message; import org.apache.wsif.WSIFException; import org.apache.wsif.WSIFMessage; public class GetQuoteOutputMessage implements WSIFMessage { private String partNames[] = { "quote" }; protected float _quote; private String representationStyle; public GetQuoteOutputMessage() { } public String getName() { return "GetQuoteOutput"; } public void setName(String s) { } public java.util.Iterator getPartNames() { System.err.println(this.getClass().getName() + "getPartNames"); List resp = new java.util.LinkedList(); for (int i = 0; i < partNames.length; i++) { resp.add(partNames[i]); } return resp.iterator(); } public float getPt_Quote() { return _quote; } public void setPt_Quote(float value) { this._quote = value; } public boolean getBooleanPart(String partName) { throw new IllegalArgumentException("Part " + partName + " not found"); } public void setBooleanPart(String partName, boolean value) { throw new IllegalArgumentException("Part " + partName + " not found"); } public char getCharPart(String partName) { throw new IllegalArgumentException("Part " + partName + " not found"); } public void setCharPart(String partName, char value) { throw new IllegalArgumentException("Part " + partName + " not found"); } public String getStringPart(String partName) { throw new IllegalArgumentException("Part " + partName + " not found"); } public void setStringPart(String partName, String value) { throw new IllegalArgumentException("Part " + partName + " not found"); } public byte getBytePart(String partName) { throw new IllegalArgumentException("Part " + partName + " not found"); } public void setBytePart(String partName, byte value) { throw new IllegalArgumentException("Part " + partName + " not found"); } public short getShortPart(String partName) { throw new IllegalArgumentException("Part " + partName + " not found"); } public void setShortPart(String partName, short value) { throw new IllegalArgumentException("Part " + partName + " not found"); } public int getIntPart(String partName) { throw new IllegalArgumentException("Part " + partName + " not found"); } public void setIntPart(String partName, int value) { throw new IllegalArgumentException("Part " + partName + " not found"); } public long getLongPart(String partName) { throw new IllegalArgumentException("Part " + partName + " not found"); } public void setLongPart(String partName, long value) { throw new IllegalArgumentException("Part " + partName + " not found"); } public float getFloatPart(String partName) { if (partName.equals("quote")) { return _quote; } else throw new IllegalArgumentException("Part " + partName + " not found"); } public void setFloatPart(String partName, float value) { if (partName.equals("quote")) { this._quote = value; } else throw new IllegalArgumentException("Part " + partName + " not found"); } public double getDoublePart(String partName) { throw new IllegalArgumentException("Part " + partName + " not found"); } public void setDoublePart(String partName, double value) { throw new IllegalArgumentException("Part " + partName + " not found"); } public Object getObjectPart(String partName) { if (partName.equals("quote")) { return new Float(_quote); } else throw new IllegalArgumentException("Part " + partName + " not found"); } public Object getObjectPart(String partName, Class sourceClass) { if (partName.equals("quote")) { return new Float(_quote); } else throw new IllegalArgumentException("Part " + partName + " not found"); } public void setObjectPart(String partName, Object value) { if (partName.equals("quote")) { this._quote = ((Float) value).floatValue(); } else throw new IllegalArgumentException("Part " + partName + " not found"); } public Iterator getParts() { Map resp = new java.util.HashMap(); resp.put("quote", new Float(_quote)); return resp.values().iterator(); } public void getParts(Map resp) { resp.put("quote", new Float(_quote)); } public void setParts(Map source) { _quote = ((Float) source.get("quote")).floatValue(); } private GetQuoteOutputMessage(GetQuoteOutputMessage msg) throws WSIFException { this.partNames = msg.partNames; this.representationStyle = msg.representationStyle; this._quote = msg._quote; } public String getRepresentationStyle() { return representationStyle; } public void setRepresentationStyle(String style) { representationStyle = style; } public Object clone() throws CloneNotSupportedException { try { return new GetQuoteOutputMessage(this); } catch (WSIFException ex) { throw new CloneNotSupportedException(ex.getMessage()); } } public Message getMessageDefinition() { return null; } public void setMessageDefinition(Message msgDef) {} } 1.1 xml-axis-wsif/java/test/addressbook/wsifservice/AddressBook.java Index: AddressBook.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "WSIF" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation and was * originally based on software copyright (c) 2001, 2002, International * Business Machines, Inc., http://www.apache.org. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ /** * AddressBook.java * * This file was auto-generated from WSDL * by the Apache Axis Wsdl2java emitter. */ package addressbook.wsifservice; public interface AddressBook extends java.rmi.Remote { public addressbook.wsiftypes.Address getAddressFromName(java.lang.String name) throws java.rmi.RemoteException; public void addEntry(java.lang.String wholeName, addressbook.wsiftypes.Address address) throws java.rmi.RemoteException; public void addEntry(java.lang.String firstName, java.lang.String lastName, addressbook.wsiftypes.Address address) throws java.rmi.RemoteException; } 1.1 xml-axis-wsif/java/test/addressbook/wsifservice/DeploymentDescriptor.xml Index: DeploymentDescriptor.xml =================================================================== <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment" id="http://wsifservice.addressbook/"> <isd:provider type="java" scope="Application" methods="addEntry getAddressFromName"> <isd:java class="addressbook.wsiftypes.AddressBook" static="false"/> </isd:provider> <isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener> <isd:mappings> <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:x="http://wsiftypes.addressbook/" qname="x:address" javaType="addressbook.wsiftypes.Address" java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer" xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/> <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:x="http://wsiftypes.addressbook/" qname="x:phone" javaType="addressbook.wsiftypes.Phone" java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer" xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/> </isd:mappings> </isd:service> 1.1 xml-axis-wsif/java/test/addressbook/wsifservice/AddressBook.wsdl Index: AddressBook.wsdl =================================================================== <?xml version="1.0" ?> <definitions targetNamespace="http://wsifservice.addressbook/" xmlns:tns="http://wsifservice.addressbook/" xmlns:typens="http://wsiftypes.addressbook/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:format="http://schemas.xmlsoap.org/wsdl/formatbinding/" xmlns:java="http://schemas.xmlsoap.org/wsdl/java/" xmlns:jms="http://schemas.xmlsoap.org/wsdl/jms/" xmlns="http://schemas.xmlsoap.org/wsdl/"> <!-- type defs --> <types> <xsd:schema targetNamespace="http://wsiftypes.addressbook/" xmlns:xsd="http://www.w3.org/1999/XMLSchema"> <xsd:complexType name="phone"> <xsd:element name="areaCode" type="xsd:int"/> <xsd:element name="exchange" type="xsd:string"/> <xsd:element name="number" type="xsd:string"/> </xsd:complexType> <xsd:complexType name="address"> <xsd:element name="streetNum" type="xsd:int"/> <xsd:element name="streetName" type="xsd:string"/> <xsd:element name="city" type="xsd:string"/> <xsd:element name="state" type="xsd:string"/> <xsd:element name="zip" type="xsd:int"/> <xsd:element name="phoneNumber" type="typens:phone"/> </xsd:complexType> </xsd:schema> </types> <!-- message declns --> <message name="AddEntryWholeNameRequestMessage"> <part name="name" type="xsd:string"/> <part name="address" type="typens:address"/> </message> <message name="AddEntryFirstAndLastNamesRequestMessage"> <part name="firstName" type="xsd:string"/> <part name="lastName" type="xsd:string"/> <part name="address" type="typens:address"/> </message> <message name="GetAddressFromNameRequestMessage"> <part name="name" type="xsd:string"/> </message> <message name="GetAddressFromNameResponseMessage"> <part name="address" type="typens:address"/> </message> <!-- port type declns --> <portType name="AddressBook"> <operation name="addEntry"> <input name="AddEntryWholeNameRequest" message="tns:AddEntryWholeNameRequestMessage"/> </operation> <operation name="addEntry"> <input name="AddEntryFirstAndLastNamesRequest" message="tns:AddEntryFirstAndLastNamesRequestMessage"/> </operation> <operation name="getAddressFromName"> <input name="GetAddressFromNameRequest" message="tns:GetAddressFromNameRequestMessage"/> <output name="GetAddressFromNameResponse" message="tns:GetAddressFromNameResponseMessage"/> </operation> </portType> <!-- binding declns --> <binding name="SOAPHttpBinding" type="tns:AddressBook"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="addEntry"> <soap:operation soapAction=""/> <input name="AddEntryWholeNameRequest"> <soap:body use="encoded" namespace="http://wsifservice.addressbook/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> </operation> <operation name="addEntry"> <soap:operation soapAction=""/> <input name="AddEntryFirstAndLastNamesRequest"> <soap:body use="encoded" namespace="http://wsifservice.addressbook/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> </operation> <operation name="getAddressFromName"> <soap:operation soapAction=""/> <input name="GetAddressFromNameRequest"> <soap:body use="encoded" namespace="http://wsifservice.addressbook/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output name="GetAddressFromNameResponse"> <soap:body use="encoded" namespace="http://wsifservice.addressbook/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> </binding> <binding name="SOAPJmsBinding" type="tns:AddressBook"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/jms"/> <operation name="addEntry"> <soap:operation soapAction=""/> <input name="AddEntryWholeNameRequest"> <soap:body use="encoded" namespace="http://wsifservice.addressbook/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> </operation> <operation name="addEntry"> <soap:operation soapAction=""/> <input name="AddEntryFirstAndLastNamesRequest"> <soap:body use="encoded" namespace="http://wsifservice.addressbook/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> </operation> <operation name="getAddressFromName"> <soap:operation soapAction=""/> <input name="GetAddressFromNameRequest"> <soap:body use="encoded" namespace="http://wsifservice.addressbook/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output name="GetAddressFromNameResponse"> <soap:body use="encoded" namespace="http://wsifservice.addressbook/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation> </binding> <binding name="JavaBinding" type="tns:AddressBook"> <java:binding/> <format:typeMapping encoding="Java" style="Java"> <format:typeMap typeName="typens:address" formatType="addressbook.wsiftypes.Address" /> <format:typeMap typeName="xsd:string" formatType="java.lang.String" /> </format:typeMapping> <operation name="addEntry"> <java:operation methodName="addEntry" parameterOrder="name address" methodType="instance" /> <input name="AddEntryWholeNameRequest"/> </operation> <operation name="addEntry"> <java:operation methodName="addEntry" parameterOrder="firstName lastName address" methodType="instance" /> <input name="AddEntryFirstAndLastNamesRequest"/> </operation> <operation name="getAddressFromName"> <java:operation methodName="getAddressFromName" parameterOrder="name" methodType="instance" returnPart="address" /> <input name="GetAddressFromNameRequest"/> <output name="GetAddressFromNameResponse"/> </operation> </binding> <binding name="NativeJmsBinding" type="tns:AddressBook"> <jms:binding type="ObjectMessage"/> <format:typeMapping encoding="Java" style="Java"> <format:typeMap typeName="typens:address" formatType="com.ibm.www.namespace.wsif.samples.ab.types.Address" /> <format:typeMap typeName="xsd:string" formatType="java.lang.String" /> </format:typeMapping> <operation name="addEntry"> <input name="AddEntryWholeNameRequest"> <jms:input parts="name address"/> </input> </operation> <operation name="addEntry"> <input name="AddEntryFirstAndLastNamesRequest"/> </operation> <operation name="getAddressFromName"> <input name="GetAddressFromNameRequest"/> <output name="GetAddressFromNameResponse"/> </operation> </binding> <!-- service decln --> <service name="AddressBookService"> <port name="SOAPPort" binding="tns:SOAPHttpBinding"> <soap:address location="http://localhost:8080/soap/servlet/rpcrouter"/> </port> <port name="JavaPort" binding="tns:JavaBinding"> <java:address className="addressbook.wsiftypes.AddressBook"/> </port> <port name="SOAPJMSPort" binding="tns:SOAPJmsBinding"> <jms:address jndiDestinationName="SoapJmsAddressBookQueue" destinationStyle="queue" jndiConnectionFactoryName="WSIFSampleQCF" initialContextFactory="com.sun.jndi.fscontext.RefFSContextFactory" jndiProviderURL="file:///JNDI-Directory"/> </port> <port name="NativeJmsPort" binding="tns:NativeJmsBinding"> <jms:address jndiDestinationName="NativeJmsRequestQueue" destinationStyle="queue" jndiConnectionFactoryName="WSIFSampleQCF" initialContextFactory="com.sun.jndi.fscontext.RefFSContextFactory" jndiProviderURL="file:///JNDI-Directory"> <jms:propertyValue name="JMSReplyTo" type="xsd:string" value="NativeJmsResponseQueue"/> </jms:address> </port> </service> </definitions> 1.15 +2 -2 xml-axis-wsif/java/test/async/AsyncTests.java Index: AsyncTests.java =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/test/async/AsyncTests.java,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- AsyncTests.java 7 Dec 2002 12:33:54 -0000 1.14 +++ AsyncTests.java 12 Dec 2002 11:51:03 -0000 1.15 @@ -233,7 +233,7 @@ String operationName = "addEntry"; String wsdlLocation = - TestUtilities.getWsdlPath("java\\samples\\addressbook\\wsifservice") + TestUtilities.getWsdlPath("java\\test\\addressbook\\wsifservice") + "AddressBook.wsdl"; System.out.println("\n=== AddressBook_addEntry"); @@ -287,7 +287,7 @@ String operationName = "getAddressFromName"; String wsdlLocation = - TestUtilities.getWsdlPath("java\\samples\\addressbook\\wsifservice") + TestUtilities.getWsdlPath("java\\test\\addressbook\\wsifservice") + "AddressBook.wsdl"; System.out.println("\n=== AddressBook_getAddressFromName"); 1.5 +1 -1 xml-axis-wsif/java/test/invocation/DynamicInvokerTest.java Index: DynamicInvokerTest.java =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/test/invocation/DynamicInvokerTest.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- DynamicInvokerTest.java 7 Dec 2002 12:34:03 -0000 1.4 +++ DynamicInvokerTest.java 12 Dec 2002 11:51:03 -0000 1.5 @@ -73,7 +73,7 @@ */ public class DynamicInvokerTest extends TestCase { String wsdlLocation = - TestUtilities.getWsdlPath("java\\samples\\stockquote\\wsifservice") + TestUtilities.getWsdlPath("java\\test\\stockquote\\wsifservice") + "Stockquote.wsdl"; public DynamicInvokerTest(String name) { 1.1 xml-axis-wsif/java/test/stockquote/wsiftypes/StockQuote.java Index: StockQuote.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "WSIF" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact [EMAIL PROTECTED] * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation and was * originally based on software copyright (c) 2001, 2002, International * Business Machines, Inc., http://www.apache.org. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ package stockquote.wsiftypes; import java.net.URL; import java.io.*; import org.w3c.dom.*; import org.xml.sax.*; import javax.xml.parsers.*; /** * This sample is taken from ApacheSOAP and changed to get * JAXP document builder directly (no need for Apache SOAP classes). * * @author Alekander Slominski ([EMAIL PROTECTED]) * @author Sanjiva Weerawarana ([EMAIL PROTECTED]) */ public class StockQuote { public float getQuote (String symbol) throws Exception { if (symbol==null || symbol.length()==0) return -1.0F; DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder xdb= factory.newDocumentBuilder(); // get a real (delayed by 20min) stockquote from // http://www.xmltoday.com/examples/stockquote/. The IP addr // below came from the host that the above form posts to .. URL url = new URL ("http://www.xmltoday.com/examples/stockquote/getxmlquote.vep?s="+symbol); InputStream is = url.openStream (); Document d = xdb.parse(is); Element e = d.getDocumentElement (); NodeList nl = e.getElementsByTagName ("price"); e = (Element) nl.item (0); String quoteStr = e.getAttribute ("value"); try { return Float.valueOf (quoteStr).floatValue (); } catch (NumberFormatException e1) { // mebbe its an int? try { return Integer.valueOf (quoteStr).intValue () * 1.0F; } catch (NumberFormatException e2) { return -1.0F; } } } } 1.8 +1 -1 xml-axis-wsif/java/test/performance/SpeedTest.java Index: SpeedTest.java =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/test/performance/SpeedTest.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- SpeedTest.java 7 Dec 2002 12:34:02 -0000 1.7 +++ SpeedTest.java 12 Dec 2002 11:51:03 -0000 1.8 @@ -146,7 +146,7 @@ static Properties stats, newStats; static final String wsdlLocation = - TestUtilities.getWsdlPath("java\\samples\\addressbook\\wsifservice") + TestUtilities.getWsdlPath("java\\test\\addressbook\\wsifservice") + "AddressBook.wsdl"; public SpeedTest(String name) { 1.3 +1 -1 xml-axis-wsif/java/test/jndi/JNDIAddressBookTest.java Index: JNDIAddressBookTest.java =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/test/jndi/JNDIAddressBookTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- JNDIAddressBookTest.java 7 Dec 2002 12:34:03 -0000 1.2 +++ JNDIAddressBookTest.java 12 Dec 2002 11:51:03 -0000 1.3 @@ -81,7 +81,7 @@ */ public class JNDIAddressBookTest extends TestCase { String wsdlLocation = - TestUtilities.getWsdlPath("java\\samples\\addressbook\\wsifservice") + TestUtilities.getWsdlPath("java\\test\\addressbook\\wsifservice") + "AddressBook.wsdl"; static String name1 = "Purdue Boilermaker"; 1.9 +1 -1 xml-axis-wsif/java/test/stockquote/StockquoteTest.java Index: StockquoteTest.java =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/test/stockquote/StockquoteTest.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- StockquoteTest.java 7 Dec 2002 12:34:05 -0000 1.8 +++ StockquoteTest.java 12 Dec 2002 11:51:03 -0000 1.9 @@ -76,7 +76,7 @@ */ public class StockquoteTest extends TestCase { String wsdlLocation = - TestUtilities.getWsdlPath("java\\samples\\stockquote\\wsifservice") + TestUtilities.getWsdlPath("java\\test\\stockquote\\wsifservice") + "Stockquote.wsdl"; public StockquoteTest(String name) { 1.3 +1 -1 xml-axis-wsif/java/test/translated/messages/TranslatedMessagesUtilities.java Index: TranslatedMessagesUtilities.java =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/test/translated/messages/TranslatedMessagesUtilities.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- TranslatedMessagesUtilities.java 7 Dec 2002 12:33:47 -0000 1.2 +++ TranslatedMessagesUtilities.java 12 Dec 2002 11:51:03 -0000 1.3 @@ -68,7 +68,7 @@ */ class TranslatedMessagesUtilities { static String wsdlLocation = - TestUtilities.getWsdlPath("java\\samples\\stockquote\\wsifservice") + TestUtilities.getWsdlPath("java\\test\\stockquote\\wsifservice") + "Stockquote.wsdl"; static void doit(Locale name) { 1.4 +3 -3 xml-axis-wsif/java/test/serialization/SerializationTest.java Index: SerializationTest.java =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/test/serialization/SerializationTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- SerializationTest.java 11 Dec 2002 18:16:52 -0000 1.3 +++ SerializationTest.java 12 Dec 2002 11:51:03 -0000 1.4 @@ -204,7 +204,7 @@ WSIFService service = factory.getService( TestUtilities.getWsdlPath( - "java\\samples\\addressbook\\wsifservice") + "java\\test\\addressbook\\wsifservice") + "AddressBook.wsdl", null, null, @@ -261,7 +261,7 @@ WSIFService service = factory.getService( TestUtilities.getWsdlPath( - "java\\samples\\addressbook\\wsifservice") + "java\\test\\addressbook\\wsifservice") + "AddressBook.wsdl", null, null, @@ -285,7 +285,7 @@ WSIFService service = factory.getService( TestUtilities.getWsdlPath( - "java\\samples\\addressbook\\wsifservice") + "java\\test\\addressbook\\wsifservice") + "AddressBook.wsdl", null, null, 1.10 +1 -1 xml-axis-wsif/java/test/headers/HeadersTest.java Index: HeadersTest.java =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/test/headers/HeadersTest.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- HeadersTest.java 7 Dec 2002 12:33:55 -0000 1.9 +++ HeadersTest.java 12 Dec 2002 11:51:03 -0000 1.10 @@ -88,7 +88,7 @@ public class HeadersTest extends TestCase { String wsdlLocation = - TestUtilities.getWsdlPath("java\\samples\\stockquote\\wsifservice") + "Stockquote.wsdl"; + TestUtilities.getWsdlPath("java\\test\\stockquote\\wsifservice") + "Stockquote.wsdl"; public HeadersTest(String name) { super(name); 1.3 +3 -3 xml-axis-wsif/java/test/wsdl/WsdlLoadingTest.java Index: WsdlLoadingTest.java =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/test/wsdl/WsdlLoadingTest.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- WsdlLoadingTest.java 7 Dec 2002 12:33:52 -0000 1.2 +++ WsdlLoadingTest.java 12 Dec 2002 11:51:03 -0000 1.3 @@ -81,7 +81,7 @@ public class WsdlLoadingTest extends TestCase { String urlWsdl = "http://localhost:8080/wsdl/AddressBook.wsdl"; String fileWsdl = - TestUtilities.getWsdlPath("java\\samples\\addressbook\\wsifservice") + + TestUtilities.getWsdlPath("java\\test\\addressbook\\wsifservice") + "AddressBook.wsdl"; static String name1 = "Purdue Boilermaker"; @@ -107,7 +107,7 @@ public void testFile() { - doit(TestUtilities.getWsdlPath("java\\samples\\addressbook\\wsifservice") + + doit(TestUtilities.getWsdlPath("java\\test\\addressbook\\wsifservice") + "AddressBook.wsdl",null); } @@ -119,7 +119,7 @@ public void testBadFile() { - doit(TestUtilities.getWsdlPath("java\\samples\\addressbook\\wsifservice") + + doit(TestUtilities.getWsdlPath("java\\test\\addressbook\\wsifservice") + "AddressBok.wsdl","MalformedURLException"); } 1.19 +1 -1 xml-axis-wsif/java/test/addressbook/AddressBookTest.java Index: AddressBookTest.java =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/test/addressbook/AddressBookTest.java,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- AddressBookTest.java 7 Dec 2002 12:34:02 -0000 1.18 +++ AddressBookTest.java 12 Dec 2002 11:51:04 -0000 1.19 @@ -85,7 +85,7 @@ */ public class AddressBookTest extends TestCase { String wsdlLocation = - TestUtilities.getWsdlPath("java\\samples\\addressbook\\wsifservice") + TestUtilities.getWsdlPath("java\\test\\addressbook\\wsifservice") + "AddressBook.wsdl"; static String name1 = "Purdue Boilermaker"; 1.4 +1 -1 xml-axis-wsif/java/test/providers/ProvidersInitialisationTest.java Index: ProvidersInitialisationTest.java =================================================================== RCS file: /home/cvs/xml-axis-wsif/java/test/providers/ProvidersInitialisationTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ProvidersInitialisationTest.java 7 Dec 2002 12:34:04 -0000 1.3 +++ ProvidersInitialisationTest.java 12 Dec 2002 11:51:04 -0000 1.4 @@ -74,7 +74,7 @@ public class ProvidersInitialisationTest extends TestCase { String wsdlLocation = - TestUtilities.getWsdlPath("java\\samples\\stockquote\\wsifservice") + TestUtilities.getWsdlPath("java\\test\\stockquote\\wsifservice") + "Stockquote.wsdl"; public ProvidersInitialisationTest(String name) {