User: jung
Date: 01/01/03 05:54:27
Modified: src/org/zoap/soap/meta ArgumentElement.java BodyElement.java
BodyType.java DetailElement.java DetailType.java
HeaderElement.java RequestElement.java
RequestType.java ResponseElement.java
ResponseType.java ReturnElement.java
SoapBinding.java
Log:
exception redesign. Improved null-pointer treatment. coherent environment and
logging facilities.
LGPL references.
Revision Changes Path
1.3 +64 -103 zoap/src/org/zoap/soap/meta/ArgumentElement.java
Index: ArgumentElement.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/ArgumentElement.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ArgumentElement.java 2000/12/04 12:36:06 1.2
+++ ArgumentElement.java 2001/01/03 13:54:24 1.3
@@ -1,47 +1,25 @@
-/*
- * $Id: ArgumentElement.java,v 1.2 2000/12/04 12:36:06 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached 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 infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "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 INFOR: BUSINESS SOLUTIONS AG 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.
+/*
+ * $Source: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/ArgumentElement.java,v
$
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
package org.zoap.soap.meta;
import org.zoap.soap.Environment;
@@ -61,99 +39,73 @@
import java.util.Collection;
import java.util.ArrayList;
-/**
- * an element that represents an argument to a method request
- */
+/** an element that represents an argument to a method request */
public class ArgumentElement extends Element {
- /** we keep the number of the argument in the parameter list */
- int arity;
+ /** we keep the number of the argument in the parameter list */
+ int arity;
- /** empty constructor */
- public ArgumentElement() {
+ /** empty constructor */
+ public ArgumentElement() {
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.print(toString()+"()\n");
- }
+ }
- /** accessor to the arity of this argument */
- public void setArity(int arity) {
- this.arity=arity;
- }
+ /** accessor to the arity of this argument */
+ public void setArity(int arity) {
+ this.arity = arity;
+ }
- /** sets the arity of this argument */
- public int getArity() {
- return arity;
- }
+ /** sets the arity of this argument */
+ public int getArity() {
+ return arity;
+ }
- /** access the argument inside a MethodRequest */
- public Object[] getElementContents(Object object,boolean isNew,Properties
references)
- throws ElementException {
+ /** access the argument inside a MethodRequest */
+ public Object[] getElementContents(Object object, boolean isNew, Properties
references)
+ throws ElementException {
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
-
Environment.out.print(toString()+".getElementContents("+object+","+isNew+","+references+")\n");
- if(object instanceof MethodRequest) {
- Object[] allArguments=((MethodRequest) object).getArguments();
+ if (object instanceof MethodRequest) {
+ Object[] allArguments = ((MethodRequest)object).getArguments();
- if(allArguments!=null && allArguments.length>arity)
- return new Object[] {allArguments[arity]};
- else
- // how that?
- throw new ElementException();
- }
+ if (allArguments != null && allArguments.length > arity)
+ return new Object[] { allArguments[arity] };
+ else
+ // how that?
+ throw new ElementException(toString() +
".getElementContents(" + object +
+ "," + isNew + "," + references + "): could not
access argument of arity " + arity);
+ }
- return null;
- }
+ return null;
+ }
- /** put the argument inside the methodrequest */
+ /** put the argument inside the methodrequest */
- public Object addElementContent(Object object, Object value, Map references,
Map nameSpaces) {
+ public Object addElementContent(Object object, Object value, Map references,
Map nameSpaces) {
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
-
Environment.out.print(toString()+".addElementContent("+object+","+value+","+references+")\n");
- if(object instanceof MethodRequest) {
+ if (object instanceof MethodRequest) {
- Object[] arguments=((MethodRequest) object).getArguments();
+ Object[] arguments = ((MethodRequest)object).getArguments();
- if(arguments!=null && arguments.length>arity)
- arguments[arity]=value;
- else {
- Object[] newArguments=new Object[arity+1];
+ if (arguments != null && arguments.length > arity)
+ arguments[arity] = value;
+ else {
+ Object[] newArguments = new Object[arity + 1];
- if(arguments!=null)
- System.arraycopy(arguments,0,newArguments,0,arguments.length);
+ if (arguments != null)
+ System.arraycopy(arguments, 0, newArguments,
0, arguments.length);
- newArguments[arity]=value;
+ newArguments[arity] = value;
- ((MethodRequest) object).setArguments(newArguments);
- }
- }
+ ((MethodRequest)object).setArguments(newArguments);
+ }
+ }
- return object;
- }
+ return object;
+ }
} // ArgumentElement
-/*
- * $Log: ArgumentElement.java,v $
- * Revision 1.2 2000/12/04 12:36:06 jung
- * adopted to latest jboss container,
- *
- * added decimal and date
- *
- * removed some problems due to forward-referencing in meta-data
- *
- * added serialisation policy
- *
- * Revision 1.1.1.1 2000/08/10 21:07:04 jung
- * Initial import.
- *
- *
- * Revision 1.1.2.3 2000/08/04 17:20:18 jung
- * close to beta stadium. Meta-Data import now works.
- *
- */
1.3 +64 -136 zoap/src/org/zoap/soap/meta/BodyElement.java
Index: BodyElement.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/BodyElement.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- BodyElement.java 2000/12/04 12:36:06 1.2
+++ BodyElement.java 2001/01/03 13:54:24 1.3
@@ -1,45 +1,22 @@
-/*
- * $Id: BodyElement.java,v 1.2 2000/12/04 12:36:06 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached 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 infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "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 INFOR: BUSINESS SOLUTIONS AG 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.
+/*
+ * $Source: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/BodyElement.java,v $
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
@@ -63,117 +40,59 @@
* this builtin implements the strange SOAP-Envelope body construct
* why cant these MS people read good specifications? Then they would know
* how to implement the body and polymorphism correctly. Suckers. I bet
- * they do that intendedly ... nobody can be so stupid on his own.
- * <br>
+ * they do that intendedly ... nobody can be so stupid on his own. <br>
* @author $Author: jung $
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class BodyElement extends Element {
-
- SoapBinding binding;
- /** empty constructor */
- public BodyElement(SoapBinding binding, SoapSchema schema, FaultElement
faultElement) {
+ SoapBinding binding;
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.print(toString()+"("+binding+","+faultElement+")\n");
+ /** empty constructor */
+ public BodyElement(SoapBinding binding, SoapSchema schema, FaultElement
faultElement) {
- this.binding=binding;
- setAppearanceName("Body");
- setAppearanceSchema(schema);
- setType(new BodyType(binding,schema,faultElement));
- }
-
-
- /** sets the body of the envelope and throw an exception if it is none */
- public Object addElementContent(Object object, Object value, Map references,
Map nameSpaces)
- throws ElementException {
-
- if(object!=null) {
-
- if(object instanceof Envelope) {
- ((Envelope) object).setBody(value);
- } else {
- throw new ElementException();
- }
- }
-
- return object;
- }
-
- /** retrieve the body out of the given envelope */
- public Object[] getElementContents(Object envelope, boolean isNew, Properties
references)
- throws ElementException {
-
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
-
Environment.out.println("EnvelopeType.getElementContents("+envelope+","+isNew+","+references+")");
-
- if(envelope!=null)
- if(envelope instanceof Envelope) {
- return new Object[] {((Envelope) envelope).getBody()};
- } else {
- // what the hell?
- throw new ElementException();
- } else return null;
- }
+ this.binding = binding;
+ setAppearanceName("Body");
+ setAppearanceSchema(schema);
+ setType(
+ new BodyType(binding, schema, faultElement));
+ }
+
+
+ /** sets the body of the envelope and throw an exception if it is none */
+ public Object addElementContent(Object object, Object value, Map references,
Map nameSpaces)
+ throws ElementException {
+
+ if (object != null) {
+
+ if (object instanceof Envelope) {
+ ((Envelope)object).setBody(value);
+ } else {
+ throw new ElementException(toString() +
+ ".addElementContent(" + object + "," + value + "," +
references + "," + nameSpaces + "): could only set body to org.zoap.soap.Envelope.");
+ }
+ }
+
+ return object;
+ }
+
+ /** retrieve the body out of the given envelope */
+ public Object[] getElementContents(Object envelope, boolean isNew, Properties
references)
+ throws ElementException {
+
+
+ if (envelope != null)
+ if (envelope instanceof Envelope) {
+ return new Object[] { ((Envelope)envelope).getBody() };
+ } else {
+ // what the hell?
+ throw new ElementException(toString() +
+ ".getElementContents(" + envelope + "," + isNew + ","
+ references + "): could only get body of org.zoap.soap.Envelope.");
+ } else
+ return null;
+ }
} // BodyElement
-/*
- * $Log: BodyElement.java,v $
- * Revision 1.2 2000/12/04 12:36:06 jung
- * adopted to latest jboss container,
- *
- * added decimal and date
- *
- * removed some problems due to forward-referencing in meta-data
- *
- * added serialisation policy
- *
- * Revision 1.1.1.1 2000/08/10 21:07:04 jung
- * Initial import.
- *
- *
- * Revision 1.1.2.3 2000/08/04 17:20:18 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.2 2000/07/20 14:35:26 jung
- * some refactoring inside infor:xml
- *
- * Revision 1.1.2.1 2000/07/17 12:46:16 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:19 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.2.2.3 2000/07/11 08:08:34 jung
- * added functionality to store retrieve a part of a types elements
- * within "ignored" strings. Useful for writing generic handlers that
- * just process a part of the XML and transfer the rest.
- *
- * Revision 1.2.2.2 2000/07/07 15:50:02 jung
- * Request-Response Structure close to MS-SOAP
- *
- * removed a mega-bug in return element
- *
- * Revision 1.2.2.1 2000/07/07 12:42:40 jung
- * changed the method-request and response structure to be more
- * explicit instead of just serializable (such that MS-SOAP gets the
- * chance ot do something with that stuff).
- *
- * Revision 1.2 2000/07/06 16:55:06 jung
- * moved the default binding caches in order to make apartments
- * with different versions of the same class possible.
- *
- * Revision 1.1.1.1 2000/07/06 14:11:26 jung
- * Import of a pre beta version of ZOAP source with a new directory structure,
- * ant-based make, apache-kind of license, etc.
- *
- * jars are coming later because of cvs-history reasons.
- *
- */
1.3 +31 -43 zoap/src/org/zoap/soap/meta/BodyType.java
Index: BodyType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/BodyType.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- BodyType.java 2000/12/04 12:36:06 1.2
+++ BodyType.java 2001/01/03 13:54:24 1.3
@@ -1,23 +1,25 @@
-/*
- * $Id: BodyType.java,v 1.2 2000/12/04 12:36:06 jung Exp $
- * Copyright (c) 2000 infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
+/*
+ * $Source: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/BodyType.java,v $
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
*
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
package org.zoap.soap.meta;
import org.zoap.soap.Envelope;
@@ -40,25 +42,22 @@
* this builtin implements the strange SOAP-Envelope body construct
* why cant these MS people read good specifications? Then they would know
* how to implement the body and polymorphism correctly. Suckers. I bet
- * they do that intendedly ... nobody can be so stupid on his own. <br>
- * I hardcoded the relation to faultElement here ....
+ * they do that intendedly ... nobody can be so stupid on his own. <br> I hardcoded
the relation to faultElement here ....
* @author $Author: jung $
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class BodyType extends ComplexType {
SoapBinding binding;
- FaultElement faultElement;
+ FaultElement faultElement;
/** empty constructor */
public BodyType(SoapBinding binding, SoapSchema schema, FaultElement
faultElement) {
- if (Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.print(toString() + "(" + binding + "," +
schema + ","+ faultElement+")\n");
this.binding = binding;
- this.faultElement=faultElement;
+ this.faultElement = faultElement;
setAssociatedClass(Object.class);
setTypeName("Body");
setTypeSchema(schema);
@@ -71,20 +70,18 @@
public Element[] getElements(Object object) {
- if (Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.print(toString() + ".getElements(" + object +
")");
- if(object instanceof Throwable)
- return new Element[] {faultElement};
- else {
- Element embeddedElement =
- binding.findElementCompatibleTo(object, null);
+ if (object instanceof Throwable)
+ return new Element[] { faultElement };
+ else {
+ Element embeddedElement =
+ binding.findElementCompatibleTo(object, null);
- if (embeddedElement == null)
- return null;
+ if (embeddedElement == null)
+ return null;
- return new Element[] { embeddedElement };
- }
+ return new Element[] { embeddedElement };
+ }
}
@@ -100,8 +97,6 @@
/** "create" the content of this attribute we collect the subelements in a
collection */
public Object newInstance(Map attributes, Map references, Map nameSpaces) {
- if (Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.print(toString() + ".create()\n");
return null;
}
@@ -121,19 +116,3 @@
}
} // BodyType
-/*
- * $Log: BodyType.java,v $
- * Revision 1.2 2000/12/04 12:36:06 jung
- * adopted to latest jboss container,
- *
- * added decimal and date
- *
- * removed some problems due to forward-referencing in meta-data
- *
- * added serialisation policy
- *
- * Revision 1.1.1.1 2000/08/10 21:07:05 jung
- * Initial import.
- *
- *
- */
1.3 +39 -49 zoap/src/org/zoap/soap/meta/DetailElement.java
Index: DetailElement.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/DetailElement.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DetailElement.java 2000/12/04 12:36:06 1.2
+++ DetailElement.java 2001/01/03 13:54:24 1.3
@@ -1,23 +1,25 @@
-/*
- * $Id: DetailElement.java,v 1.2 2000/12/04 12:36:06 jung Exp $
- * Copyright (c) 2000 infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
+/*
+ * $Source: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/DetailElement.java,v $
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
*
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
package org.zoap.soap.meta;
import org.zoap.soap.Environment;
@@ -40,57 +42,36 @@
/** FaultDetail is an inner element to FaultType implemented as a stringtype */
public class DetailElement extends Element {
- /** empty constructor */
- public DetailElement() {
- setAppearanceName("Detail");
- }
-
- /** how to obtain the value of this element - use the java class */
- public Object[] getElementContents(Object fault,boolean isNew,
- Properties references) {
-
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
-
Environment.out.print(toString()+".getElementContents("+fault+","+isNew+","+references+")\n");
-
- if(fault!=null)
-// return new Object[] {fault.getClass().getName()};
- return new Object[] {fault};
-
- return null;
- }
-
- /** just deliver an exception with the corresponding class */
-
- public Object addElementContent(Object object, Object value, Map
references, Map nameSpaces)
- throws ElementException {
-
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
-
Environment.out.print(toString()+".addElementContent("+object+","+value+","+
- references+")\n");
-
- if(value!=null)
- return value;
- else
- return object;
-
- } // addElementContent
-
- } // FaultDetail
-
-
-/*
- * $Log: DetailElement.java,v $
- * Revision 1.2 2000/12/04 12:36:06 jung
- * adopted to latest jboss container,
- *
- * added decimal and date
- *
- * removed some problems due to forward-referencing in meta-data
- *
- * added serialisation policy
- *
- * Revision 1.1.1.1 2000/08/10 21:07:05 jung
- * Initial import.
- *
- *
- */
+ /** empty constructor */
+ public DetailElement() {
+ setAppearanceName("Detail");
+ }
+
+ /** how to obtain the value of this element - use the java class */
+ public Object[] getElementContents(Object fault, boolean isNew,
+ Properties references) {
+
+
+ if (fault != null)
+ // return new Object[] {fault.getClass().getName()};
+ return new Object[] { fault };
+
+ return null;
+ }
+
+ /** just deliver an exception with the corresponding class */
+
+ public Object addElementContent(Object object, Object value, Map references,
Map nameSpaces)
+ throws ElementException {
+
+
+
+ if (value != null)
+ return value;
+ else
+ return object;
+
+ } // addElementContent
+
+} // FaultDetail
+
1.3 +24 -34 zoap/src/org/zoap/soap/meta/DetailType.java
Index: DetailType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/DetailType.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DetailType.java 2000/12/04 12:36:06 1.2
+++ DetailType.java 2001/01/03 13:54:24 1.3
@@ -1,23 +1,25 @@
-/*
- * $Id: DetailType.java,v 1.2 2000/12/04 12:36:06 jung Exp $
- * Copyright (c) 2000 infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
+/*
+ * $Source: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/DetailType.java,v $
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
*
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
package org.zoap.soap.meta;
import org.zoap.soap.Envelope;
@@ -39,7 +41,7 @@
/**
* this builtin implements the strange detail node inside a SOAP:FAULT <br>
* @author $Author: jung $
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class DetailType extends ComplexType {
@@ -49,8 +51,6 @@
/** empty constructor */
public DetailType(SoapBinding binding, SoapSchema schema) {
- if (Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.print(toString() + "(" + binding + "," +
schema + ")\n");
this.binding = binding;
setAssociatedClass(Throwable.class);
@@ -65,9 +65,8 @@
public Element[] getElements(Object object) {
- if (Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.print(toString() + ".getElements(" + object +
")");
+
Element embeddedElement =
binding.findElementCompatibleTo(object, null);
@@ -87,34 +86,16 @@
/** "create" the content of this attribute we collect the subelements in a
collection */
public Object newInstance(Map attributes, Map references, Map nameSpaces) {
+
- if (Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.print(toString() + ".create()\n");
return new java.rmi.RemoteException();
}
- public boolean isStateless() {
- return true;
- }
+ public boolean isStateless() {
+ return true;
+ }
}
-
-/*
- * $Log: DetailType.java,v $
- * Revision 1.2 2000/12/04 12:36:06 jung
- * adopted to latest jboss container,
- *
- * added decimal and date
- *
- * removed some problems due to forward-referencing in meta-data
- *
- * added serialisation policy
- *
- * Revision 1.1.1.1 2000/08/10 21:07:05 jung
- * Initial import.
- *
- *
- */
1.3 +60 -127 zoap/src/org/zoap/soap/meta/HeaderElement.java
Index: HeaderElement.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/HeaderElement.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- HeaderElement.java 2000/12/04 12:36:07 1.2
+++ HeaderElement.java 2001/01/03 13:54:24 1.3
@@ -1,45 +1,22 @@
-/*
- * $Id: HeaderElement.java,v 1.2 2000/12/04 12:36:07 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached 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 infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "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 INFOR: BUSINESS SOLUTIONS AG 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.
+/*
+ * $Source: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/HeaderElement.java,v $
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
@@ -64,112 +41,59 @@
* this builtin implements the strange SOAP-Envelope header construct
* why cant these MS people read good specifications? Then they would know
* how to implement the header with arrays and polymorphism correctly. Suckers.
- * I bet they do that intendedly ... nobody can be so stupid on his own.
- * <br>
+ * I bet they do that intendedly ... nobody can be so stupid on his own. <br>
* Several parts of the header will be placed into additional header
* annotations, for the moment. Maybe this is is not according to the spec, but
- * I have not seen yet an example with more than one entry in the header.
- * These whimps ... really making me angry.
- * <br>
+ * I have not seen yet an example with more than one entry in the header. These
whimps ... really making me angry. <br>
* @author $Author: jung $
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class HeaderElement extends Element {
- SoapBinding binding;
+ SoapBinding binding;
- /** empty constructor */
- public HeaderElement(SoapBinding binding, SoapSchema schema) {
- this.binding=binding;
- setAppearanceName("Header");
- setAppearanceSchema(schema);
- setType(binding.findTypeCompatibleTo(null,Object[].class));
- }
-
- /** retrieve the headers out of the given envelope */
- public Object[] getElementContents(Object envelope, boolean isNew, Properties
references)
- throws ElementException {
-
- if(envelope!=null)
- if(envelope instanceof Envelope)
- return ((Envelope) envelope).getHeader();
- else
- // what the hell?
- throw new ElementException();
-
- return null;
- }
-
- public Object addElementContent(Object object, Object value, Map references,
Map nameSpaces) {
- if(object instanceof Envelope) {
- Object[] headers=((Envelope) object).getHeader();
- Object[] newHeaders=null;
-
- if(headers==null)
- newHeaders=new Object[1];
- else
- newHeaders=new Object[headers.length+1];
+ /** empty constructor */
+ public HeaderElement(SoapBinding binding, SoapSchema schema) {
+ this.binding = binding;
+ setAppearanceName("Header");
+ setAppearanceSchema(schema);
+ setType(binding.findTypeCompatibleTo(null, Object[].class));
+ }
+
+ /** retrieve the headers out of the given envelope */
+ public Object[] getElementContents(Object envelope, boolean isNew, Properties
references)
+ throws ElementException {
+
+ if (envelope != null)
+ if (envelope instanceof Envelope)
+ return ((Envelope)envelope).getHeader();
+ else
+ // what the hell?
+ throw new ElementException(toString() +
".getElementContents(" + envelope + "," +
+ isNew + "," + references + "): could only get
header of org.zoap.soap.Envelope.");
+
+ return null;
+ }
+
+ public Object addElementContent(Object object, Object value, Map references,
Map nameSpaces) {
+ if (object instanceof Envelope) {
+ Object[] headers = ((Envelope)object).getHeader();
+ Object[] newHeaders = null;
+
+ if (headers == null)
+ newHeaders = new Object[1];
+ else
+ newHeaders = new Object[headers.length + 1];
- newHeaders[headers.length]=value;
+ newHeaders[headers.length] = value;
- ((Envelope) object).setHeader(newHeaders);
- }
+ ((Envelope)object).setHeader(newHeaders);
+ }
- return object;
- }
+ return object;
+ }
} // HeaderElement
-/*
- * $Log: HeaderElement.java,v $
- * Revision 1.2 2000/12/04 12:36:07 jung
- * adopted to latest jboss container,
- *
- * added decimal and date
- *
- * removed some problems due to forward-referencing in meta-data
- *
- * added serialisation policy
- *
- * Revision 1.1.1.1 2000/08/10 21:07:08 jung
- * Initial import.
- *
- *
- * Revision 1.1.2.3 2000/08/04 17:20:18 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.2 2000/07/20 14:35:26 jung
- * some refactoring inside infor:xml
- *
- * Revision 1.1.2.1 2000/07/17 12:46:17 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:19 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.2.2.2 2000/07/11 08:08:34 jung
- * added functionality to store retrieve a part of a types elements
- * within "ignored" strings. Useful for writing generic handlers that
- * just process a part of the XML and transfer the rest.
- *
- * Revision 1.2.2.1 2000/07/07 12:42:40 jung
- * changed the method-request and response structure to be more
- * explicit instead of just serializable (such that MS-SOAP gets the
- * chance ot do something with that stuff).
- *
- * Revision 1.2 2000/07/06 16:55:06 jung
- * moved the default binding caches in order to make apartments
- * with different versions of the same class possible.
- *
- * Revision 1.1.1.1 2000/07/06 14:11:26 jung
- * Import of a pre beta version of ZOAP source with a new directory structure,
- * ant-based make, apache-kind of license, etc.
- *
- * jars are coming later because of cvs-history reasons.
- *
- */
1.4 +21 -93 zoap/src/org/zoap/soap/meta/RequestElement.java
Index: RequestElement.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/RequestElement.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- RequestElement.java 2000/12/22 15:49:41 1.3
+++ RequestElement.java 2001/01/03 13:54:24 1.4
@@ -1,45 +1,22 @@
-/*
- * $Id: RequestElement.java,v 1.3 2000/12/22 15:49:41 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached 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 infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "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 INFOR: BUSINESS SOLUTIONS AG 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.
+/*
+ * $Source: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/RequestElement.java,v $
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package org.zoap.soap.meta;
@@ -80,14 +57,13 @@
public Object[] getElementContents(Object object, boolean isNew, Properties
references)
throws ElementException {
- if (Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.print(toString() + ".getElementContents(" +
object + "," + isNew + "," + references + ")\n");
if (object != null) {
if (object instanceof MethodRequest) {
return new Object[] { object };
} else
- throw new ElementException();
+ throw new
ElementException(toString()+".getElementContents("+object+","+isNew+","+
+ references+"): could only get request out of
org.zoap.soap.MethodRequest.");
}
return null;
@@ -97,8 +73,6 @@
public Object addElementContent(Object object, Object value, Map references,
Map nameSpaces) {
- if (Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.print(toString() + ".addElementContent(" +
object + "," + value + "," + references + "," + nameSpaces + ")");
return value;
}
@@ -106,52 +80,3 @@
}
-/*
- * $Log: RequestElement.java,v $
- * Revision 1.3 2000/12/22 15:49:41 jung
- * repackaged thread pooling. Coherent environment. Exception extensions.
- *
- * Revision 1.2 2000/12/04 12:36:07 jung
- * adopted to latest jboss container,
- *
- * added decimal and date
- *
- * removed some problems due to forward-referencing in meta-data
- *
- * added serialisation policy
- *
- * Revision 1.1.1.1 2000/08/10 21:07:09 jung
- * Initial import.
- *
- *
- * Revision 1.1.2.1 2000/08/04 17:20:18 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.2 2000/07/20 14:35:26 jung
- * some refactoring inside infor:xml
- *
- * Revision 1.1.2.1 2000/07/17 12:46:17 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:19 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.1.2.3 2000/07/11 08:08:34 jung
- * added functionality to store retrieve a part of a types elements
- * within "ignored" strings. Useful for writing generic handlers that
- * just process a part of the XML and transfer the rest.
- *
- * Revision 1.1.2.2 2000/07/07 15:50:02 jung
- * Request-Response Structure close to MS-SOAP
- *
- * removed a mega-bug in return element
- *
- * Revision 1.1.2.1 2000/07/07 12:45:21 jung
- * changed the method-request and response structure to be more
- * explicit instead of just serializable (such that MS-SOAP gets the
- * chance ot do something with that stuff).
- *
- */
1.4 +20 -90 zoap/src/org/zoap/soap/meta/RequestType.java
Index: RequestType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/RequestType.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- RequestType.java 2000/12/22 15:49:41 1.3
+++ RequestType.java 2001/01/03 13:54:25 1.4
@@ -1,47 +1,25 @@
-/*
- * $Id: RequestType.java,v 1.3 2000/12/22 15:49:41 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached 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 infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "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 INFOR: BUSINESS SOLUTIONS AG 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.
+/*
+ * $Source: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/RequestType.java,v $
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
package org.zoap.soap.meta;
import org.zoap.soap.Environment;
@@ -79,8 +57,6 @@
/** public constructor is responsible for initialising the meta-data */
public RequestType() {
- if (Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.println(toString() + "()\n");
setAssociatedClass(MethodRequest.class);
}
@@ -120,52 +96,3 @@
}
-/*
- * $Log: RequestType.java,v $
- * Revision 1.3 2000/12/22 15:49:41 jung
- * repackaged thread pooling. Coherent environment. Exception extensions.
- *
- * Revision 1.2 2000/12/04 12:36:07 jung
- * adopted to latest jboss container,
- *
- * added decimal and date
- *
- * removed some problems due to forward-referencing in meta-data
- *
- * added serialisation policy
- *
- * Revision 1.1.1.1 2000/08/10 21:07:09 jung
- * Initial import.
- *
- *
- * Revision 1.1.2.3 2000/08/04 17:20:18 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.2 2000/07/20 14:35:26 jung
- * some refactoring inside infor:xml
- *
- * Revision 1.1.2.1 2000/07/17 12:46:17 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:19 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.1.2.3 2000/07/11 08:08:34 jung
- * added functionality to store retrieve a part of a types elements
- * within "ignored" strings. Useful for writing generic handlers that
- * just process a part of the XML and transfer the rest.
- *
- * Revision 1.1.2.2 2000/07/07 15:50:02 jung
- * Request-Response Structure close to MS-SOAP
- *
- * removed a mega-bug in return element
- *
- * Revision 1.1.2.1 2000/07/07 12:45:21 jung
- * changed the method-request and response structure to be more
- * explicit instead of just serializable (such that MS-SOAP gets the
- * chance ot do something with that stuff).
- *
- */
1.4 +23 -94 zoap/src/org/zoap/soap/meta/ResponseElement.java
Index: ResponseElement.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/ResponseElement.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ResponseElement.java 2000/12/22 15:49:41 1.3
+++ ResponseElement.java 2001/01/03 13:54:25 1.4
@@ -1,47 +1,25 @@
-/*
- * $Id: ResponseElement.java,v 1.3 2000/12/22 15:49:41 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached 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 infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "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 INFOR: BUSINESS SOLUTIONS AG 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.
+/*
+ * $Source: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/ResponseElement.java,v
$
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
package org.zoap.soap.meta;
import org.zoap.soap.Environment;
@@ -74,8 +52,7 @@
/** private constructor is responsible for initialising the meta-data */
public ResponseElement() {
- if (Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.print(toString() + "()\n");
+
}
@@ -86,14 +63,12 @@
public Object[] getElementContents(Object object, boolean isNew, Properties
references)
throws ElementException {
- if (Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.println("ResponseElement.getElementContents("
+ object + "," + isNew + "," + references + ")");
-
if (object != null) {
if (object instanceof MethodResponse) {
return new Object[] { object };
} else
- throw new ElementException();
+ throw new
ElementException(toString()+".getElementContents("+object+","+isNew+","+references+
+ "): could only get response out of
org.zoap.soap.MethodResponse.");
}
return null;
@@ -101,52 +76,3 @@
}
-/*
- * $Log: ResponseElement.java,v $
- * Revision 1.3 2000/12/22 15:49:41 jung
- * repackaged thread pooling. Coherent environment. Exception extensions.
- *
- * Revision 1.2 2000/12/04 12:36:07 jung
- * adopted to latest jboss container,
- *
- * added decimal and date
- *
- * removed some problems due to forward-referencing in meta-data
- *
- * added serialisation policy
- *
- * Revision 1.1.1.1 2000/08/10 21:07:10 jung
- * Initial import.
- *
- *
- * Revision 1.1.2.1 2000/08/04 17:20:18 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.2 2000/07/20 14:35:26 jung
- * some refactoring inside infor:xml
- *
- * Revision 1.1.2.1 2000/07/17 12:46:17 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:19 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.1.2.2 2000/07/11 08:08:34 jung
- * added functionality to store retrieve a part of a types elements
- * within "ignored" strings. Useful for writing generic handlers that
- * just process a part of the XML and transfer the rest.
- *
- * Revision 1.1.2.1 2000/07/07 15:50:54 jung
- * Request-Response Structure close to MS-SOAP
- *
- * removed a mega-bug in return element
- *
- * Revision 1.1.2.1 2000/07/07 12:45:21 jung
- * changed the method-request and response structure to be more
- * explicit instead of just serializable (such that MS-SOAP gets the
- * chance ot do something with that stuff).
- *
- */
1.4 +20 -90 zoap/src/org/zoap/soap/meta/ResponseType.java
Index: ResponseType.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/ResponseType.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- ResponseType.java 2000/12/22 15:49:41 1.3
+++ ResponseType.java 2001/01/03 13:54:25 1.4
@@ -1,47 +1,25 @@
-/*
- * $Id: ResponseType.java,v 1.3 2000/12/22 15:49:41 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached 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 infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "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 INFOR: BUSINESS SOLUTIONS AG 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.
+/*
+ * $Source: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/ResponseType.java,v $
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
package org.zoap.soap.meta;
import org.zoap.soap.Environment;
@@ -77,8 +55,6 @@
/** public constructor is empty */
public ResponseType() {
- if (Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.print(toString() + "()\n");
setAssociatedClass(MethodResponse.class);
}
@@ -117,52 +93,3 @@
}
-/*
- * $Log: ResponseType.java,v $
- * Revision 1.3 2000/12/22 15:49:41 jung
- * repackaged thread pooling. Coherent environment. Exception extensions.
- *
- * Revision 1.2 2000/12/04 12:36:07 jung
- * adopted to latest jboss container,
- *
- * added decimal and date
- *
- * removed some problems due to forward-referencing in meta-data
- *
- * added serialisation policy
- *
- * Revision 1.1.1.1 2000/08/10 21:07:10 jung
- * Initial import.
- *
- *
- * Revision 1.1.2.3 2000/08/04 17:20:18 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.2 2000/07/20 14:35:26 jung
- * some refactoring inside infor:xml
- *
- * Revision 1.1.2.1 2000/07/17 12:46:17 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:19 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.1.2.2 2000/07/11 08:08:34 jung
- * added functionality to store retrieve a part of a types elements
- * within "ignored" strings. Useful for writing generic handlers that
- * just process a part of the XML and transfer the rest.
- *
- * Revision 1.1.2.1 2000/07/07 15:50:54 jung
- * Request-Response Structure close to MS-SOAP
- *
- * removed a mega-bug in return element
- *
- * Revision 1.1.2.1 2000/07/07 12:45:21 jung
- * changed the method-request and response structure to be more
- * explicit instead of just serializable (such that MS-SOAP gets the
- * chance ot do something with that stuff).
- *
- */
1.3 +19 -46 zoap/src/org/zoap/soap/meta/ReturnElement.java
Index: ReturnElement.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/ReturnElement.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ReturnElement.java 2000/12/04 12:36:07 1.2
+++ ReturnElement.java 2001/01/03 13:54:25 1.3
@@ -1,45 +1,22 @@
-/*
- * $Id: ReturnElement.java,v 1.2 2000/12/04 12:36:07 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached 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 infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "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 INFOR: BUSINESS SOLUTIONS AG 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.
+/*
+ * $Source: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/ReturnElement.java,v $
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package org.zoap.soap.meta;
@@ -61,16 +38,12 @@
public ReturnElement() {
- if (Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.print(toString() + "()\n");
}
public Object[] getElementContents(Object object, boolean isNew, Properties
references) {
- if (Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.print(toString() +
".getElementContents("+object+","+isNew+","+references+")\n");
if (object instanceof MethodResponse) {
return new Object[] { ((MethodResponse)object).getValue() };
1.3 +53 -106 zoap/src/org/zoap/soap/meta/SoapBinding.java
Index: SoapBinding.java
===================================================================
RCS file: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/SoapBinding.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- SoapBinding.java 2000/12/04 12:36:07 1.2
+++ SoapBinding.java 2001/01/03 13:54:25 1.3
@@ -1,47 +1,25 @@
-/*
- * $Id: SoapBinding.java,v 1.2 2000/12/04 12:36:07 jung Exp $
- * Copyright 2000 (C) infor:business solutions AG, Hauerstrasse 12,
- * D-66299 Friedrichsthal, Germany. All Rights Reserved.
- *
- * License Statement
- *
- * Redistribution and use of this software and associated documentation
("Software"), with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * 1. Redistributions of source code must retain copyright statements and
notices.
- * Redistributions must also contain a copy of this document.
- *
- * 2. Redistributions in binary form must reproduce the attached 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 infor:
business solutions AG
- * (http://www.infor.de/)." Alternately, this acknowledgment may appear
in the software itself,
- * if and wherever such third-party acknowledgments normally appear.
- *
- * 4. The name "infor" must not be used to endorse or promote products
derived from this
- * Software without prior written permission of infor: business solutions
AG.
- * For written permission, please contact [EMAIL PROTECTED]
- *
- * 5. Products derived from this Software may not be called "infor" nor may
"infor" appear
- * in their names without prior written permission of infor: business
solutions AG. infor
- * is a registered trademark of infor:business solutions AG.
- *
- * Disclaimer
- *
- * THIS SOFTWARE IS PROVIDED BY INFOR: BUSINESS SOLUTIONS AG AND CONTRIBUTORS "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 INFOR: BUSINESS SOLUTIONS AG 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.
+/*
+ * $Source: /products/cvs/ejboss/zoap/src/org/zoap/soap/meta/SoapBinding.java,v $
+ * The Zero-effort Object Access Package is a library to support XML/SOAP
serialisation and invocation.
+ * Copyright (c) 2000 infor business solutions AG, Hauerstrasse 12,
+ * D-66299 Friedrichsthal, Germany. All Rights Reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
package org.zoap.soap.meta;
import org.zoap.soap.Environment;
@@ -68,105 +46,65 @@
/**
* SoapBinding is an extension to the infor:XML binding that comes with a set of
predefined
- * elements and types, such as envelope, header, and faults.
- * <br>
+ * elements and types, such as envelope, header, and faults. <br>
* @see <related>
* @author $Author: jung $
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
*/
public class SoapBinding extends Binding {
+
+ /** register the additional soap schema which overrides some defaults */
+ public SoapBinding() {
- /** register the additional soap schema which overrides some defaults */
- public SoapBinding() {
- if(Environment.DEBUG_SOAP && Environment.DEBUG_SOAP_META)
- Environment.out.print(toString()+"()\n");
- SoapSchema soapSchema=new SoapSchema();
+ SoapSchema soapSchema = new SoapSchema();
- addSchema(soapSchema);
+ addSchema(soapSchema);
- FaultElement faultElement=new FaultElement();
+ FaultElement faultElement = new FaultElement();
- FaultType faultType=new FaultType();
+ FaultType faultType = new FaultType();
- faultType.setTypeSchema(soapSchema);
+ faultType.setTypeSchema(soapSchema);
- DetailElement faultDetail=new DetailElement();
+ DetailElement faultDetail = new DetailElement();
- faultDetail.setAppearanceSchema(soapSchema);
+ faultDetail.setAppearanceSchema(soapSchema);
- DetailType detailType=new DetailType(this,soapSchema);
+ DetailType detailType = new DetailType(this, soapSchema);
- faultDetail.setType(detailType);
+ faultDetail.setType(detailType);
- faultType.addElement(faultDetail);
+ faultType.addElement(faultDetail);
- faultElement.setType(faultType);
+ faultElement.setType(faultType);
- faultElement.setAppearanceSchema(soapSchema);
+ faultElement.setAppearanceSchema(soapSchema);
- EnvelopeElement envelopeElement=
- new EnvelopeElement(this,soapSchema,faultElement);
+ EnvelopeElement envelopeElement =
+ new EnvelopeElement(this, soapSchema, faultElement);
- soapSchema.addElement(faultElement);
+ soapSchema.addElement(faultElement);
- soapSchema.addElement(envelopeElement);
+ soapSchema.addElement(envelopeElement);
- }
+ }
- /** we keep a static reference to a singleton */
- private static SoapBinding soapBinding;
+ /** we keep a static reference to a singleton */
+ private static SoapBinding soapBinding;
- /** retrieve the singleton */
- public static SoapBinding getSoapBinding() {
- if(soapBinding==null)
- synchronized(SoapBinding.class) {
- if(soapBinding==null)
- soapBinding=new SoapBinding();
- }
+ /** retrieve the singleton */
+ public static SoapBinding getSoapBinding() {
+ if (soapBinding == null)
+ synchronized(SoapBinding.class) {
+ if (soapBinding == null)
+ soapBinding = new SoapBinding();
+ }
- return soapBinding;
- }
+ return soapBinding;
+ }
}
-/*
- * $Log: SoapBinding.java,v $
- * Revision 1.2 2000/12/04 12:36:07 jung
- * adopted to latest jboss container,
- *
- * added decimal and date
- *
- * removed some problems due to forward-referencing in meta-data
- *
- * added serialisation policy
- *
- * Revision 1.1.1.1 2000/08/10 21:07:11 jung
- * Initial import.
- *
- *
- * Revision 1.1.2.2 2000/08/04 17:20:18 jung
- * close to beta stadium. Meta-Data import now works.
- *
- * Revision 1.1.2.1 2000/07/17 12:46:17 jung
- * refactored package and meta-model
- *
- * Revision 1.1.2.1 2000/07/13 12:46:20 jung
- * package renaming, most of the zoap stuff now under org.zoap
- * util and http stay infor.ce, containerInvoker etc move to org.jboss
- *
- * changed the makefile, adopted most of the licenses
- *
- * Revision 1.2.2.2 2000/07/07 15:50:02 jung
- * Request-Response Structure close to MS-SOAP
- *
- * removed a mega-bug in return element
- *
- * Revision 1.2.2.1 2000/07/07 12:42:40 jung
- * changed the method-request and response structure to be more
- * explicit instead of just serializable (such that MS-SOAP gets the
- * chance ot do something with that stuff).
- *
- */