axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: minor patches to send XSI type & SOAPHeader processing
Date Thu, 15 Aug 2002 11:50:48 GMT
Thomas, 
Done. Please cross check. Any testcases would be welcome.

Thanks,
dims

--- Thomas Sandholm <sandholm@mcs.anl.gov> wrote:
> SerializationContextImpl.java
> I sent in a mail about this problem earlier. Basically we use a literal 
> binding and we want to force XSI type not to be sent. However, even if the 
> SEND_TYPE_ATTR property is turned off in the stubs the serializeActual 
> method overrides it. The patch I added seems to comply to the commit log 
> message:
> 
> "Change SerializationContext to take a Boolean instead of a boolean
> for the "sendTypes" argument. This allows three values:
> true - force sending xsi:type regardless of configuration
> false - force no xsi:type regardless of configuration
> null - respect configuration (sendXsiTypes option, etc)"
> 
> SOAPHeader.java
> If getHeaderByName was called on the client side when SOAPService was not 
> set, this code threw a null pointer exception.
> 
> Both of the above issues were show stoppers for us so I'd appreciate if a 
> committer could put them into CVS so that we could base our upcoming 
> release on an unmodified version of axis.
> 
> Thanks,
>    Thomas
> 
> 
> Thomas Sandholm <sandholm@mcs.anl.gov>
> The Globus Project(tm) <http://www.globus.org>
> Ph: 630-252-1682, Fax: 630-252-1997
> Argonne National Laboratory
> > cvs server: Diffing .
> cvs server: Diffing javax
> cvs server: Diffing javax/rpc
> cvs server: Diffing javax/rpc/encoding
> cvs server: Diffing javax/rpc/holders
> cvs server: Diffing javax/rpc/namespace
> cvs server: Diffing javax/rpc/soap
> cvs server: Diffing javax/xml
> cvs server: Diffing javax/xml/messaging
> cvs server: Diffing javax/xml/namespace
> cvs server: Diffing javax/xml/rpc
> cvs server: Diffing javax/xml/rpc/encoding
> cvs server: Diffing javax/xml/rpc/handler
> cvs server: Diffing javax/xml/rpc/handler/soap
> cvs server: Diffing javax/xml/rpc/holders
> cvs server: Diffing javax/xml/rpc/namespace
> cvs server: Diffing javax/xml/rpc/server
> cvs server: Diffing javax/xml/rpc/soap
> cvs server: Diffing javax/xml/soap
> cvs server: Diffing javax/xml/transform
> cvs server: Diffing javax/xml/transform/dom
> cvs server: Diffing javax/xml/transform/sax
> cvs server: Diffing javax/xml/transform/stream
> cvs server: Diffing org
> cvs server: Diffing org/apache
> cvs server: Diffing org/apache/avalon
> cvs server: Diffing org/apache/avalon/excalibur
> cvs server: Diffing org/apache/avalon/excalibur/cli
> cvs server: Diffing org/apache/axis
> cvs server: Diffing org/apache/axis/attachments
> cvs server: Diffing org/apache/axis/client
> cvs server: Diffing org/apache/axis/client/http
> cvs server: Diffing org/apache/axis/client/tcp
> cvs server: Diffing org/apache/axis/common
> cvs server: Diffing org/apache/axis/components
> cvs server: Diffing org/apache/axis/components/bytecode
> cvs server: Diffing org/apache/axis/components/compiler
> cvs server: Diffing org/apache/axis/components/logger
> cvs server: Diffing org/apache/axis/components/net
> cvs server: Diffing org/apache/axis/components/session
> cvs server: Diffing org/apache/axis/configuration
> cvs server: Diffing org/apache/axis/deployment
> cvs server: Diffing org/apache/axis/deployment/simple
> cvs server: Diffing org/apache/axis/deployment/v2dd
> cvs server: Diffing org/apache/axis/deployment/v2dd/providers
> cvs server: Diffing org/apache/axis/deployment/wsdd
> cvs server: Diffing org/apache/axis/deployment/wsdd/providers
> cvs server: Diffing org/apache/axis/deployment/wsml
> cvs server: Diffing org/apache/axis/description
> cvs server: Diffing org/apache/axis/encoding
> Index: org/apache/axis/encoding/SerializationContextImpl.java
> ===================================================================
> RCS file:
> /home/cvspublic/xml-axis/java/src/org/apache/axis/encoding/SerializationContextImpl.java,v
> retrieving revision 1.52
> diff -u -r1.52 SerializationContextImpl.java
> --- org/apache/axis/encoding/SerializationContextImpl.java	8 Aug 2002 16:44:15 -0000
1.52
> +++ org/apache/axis/encoding/SerializationContextImpl.java	15 Aug 2002 05:13:42 -0000
> @@ -1163,7 +1163,7 @@
>              if (info == null) {
>                  info = getSerializer(javaType, value);
>                  // Must send type if it does not match preferred type
> -                if (xmlType != null) {
> +                if ((xmlType != null) && (sendType != null)) {
>                      shouldSendType = true;
>                  }
>                  xmlType = null;
> cvs server: Diffing org/apache/axis/encoding/ser
> cvs server: Diffing org/apache/axis/enum
> cvs server: Diffing org/apache/axis/handlers
> cvs server: Diffing org/apache/axis/handlers/http
> cvs server: Diffing org/apache/axis/handlers/providers
> cvs server: Diffing org/apache/axis/handlers/soap
> cvs server: Diffing org/apache/axis/handlers/tcp
> cvs server: Diffing org/apache/axis/holders
> cvs server: Diffing org/apache/axis/message
> Index: org/apache/axis/message/SOAPHeader.java
> ===================================================================
> RCS file: /home/cvspublic/xml-axis/java/src/org/apache/axis/message/SOAPHeader.java,v
> retrieving revision 1.53
> diff -u -r1.53 SOAPHeader.java
> --- org/apache/axis/message/SOAPHeader.java	4 Aug 2002 12:56:59 -0000	1.53
> +++ org/apache/axis/message/SOAPHeader.java	15 Aug 2002 05:13:43 -0000
> @@ -61,6 +61,7 @@
>  import org.apache.axis.encoding.DeserializationContext;
>  import org.apache.axis.encoding.SerializationContext;
>  import org.apache.axis.utils.JavaUtils;
> +import org.apache.axis.handlers.soap.SOAPService;
>  
>  import org.apache.axis.components.logger.LogFactory;
>  import org.apache.commons.logging.Log;
> @@ -211,11 +212,14 @@
>              if (mc != null) {
>                  if (header != null) {
>                      String actor = header.getActor();
> -                    ArrayList actors = mc.getService().getActors();
> -                    if ((actor != null) &&
> +                    SOAPService soapService = mc.getService();
> +                    if (soapService != null) {
> +                        ArrayList actors = mc.getService().getActors();
> +                        if ((actor != null) &&
>                              !Constants.URI_SOAP11_NEXT_ACTOR.equals(actor) &&
>                              (actors == null || !actors.contains(actor))) {
> -                        header = null;
> +                          header = null;
> +                        }
>                      }
>                  }
>              }
> cvs server: Diffing org/apache/axis/message/events
> cvs server: Diffing org/apache/axis/providers
> cvs server: Diffing org/apache/axis/providers/java
> cvs server: Diffing org/apache/axis/registries
> cvs server: Diffing org/apache/axis/resolver
> cvs server: Diffing org/apache/axis/resolver/ejb
> cvs server: Diffing org/apache/axis/resolver/java
> cvs server: Diffing org/apache/axis/resolver/jws
> cvs server: Diffing org/apache/axis/resolver/sd
> cvs server: Diffing org/apache/axis/resolver/sd/schema
> cvs server: Diffing org/apache/axis/resolver/sd/schema/providers
> cvs server: Diffing org/apache/axis/rpc
> cvs server: Diffing org/apache/axis/rpc/encoding
> cvs server: Diffing org/apache/axis/rpc/holders
> cvs server: Diffing org/apache/axis/rpc/namespace
> cvs server: Diffing org/apache/axis/rpc/soap
> cvs server: Diffing org/apache/axis/schema
> cvs server: Diffing org/apache/axis/security
> cvs server: Diffing org/apache/axis/security/servlet
> cvs server: Diffing org/apache/axis/security/simple
> cvs server: Diffing org/apache/axis/server
> cvs server: Diffing org/apache/axis/server/transports
> cvs server: Diffing org/apache/axis/session
> cvs server: Diffing org/apache/axis/soap
> cvs server: Diffing org/apache/axis/strategies
> cvs server: Diffing org/apache/axis/suppliers
> cvs server: Diffing org/apache/axis/transport
> cvs server: Diffing org/apache/axis/transport/http
> cvs server: Diffing org/apache/axis/transport/local
> cvs server: Diffing org/apache/axis/transport/tcp
> cvs server: Diffing org/apache/axis/types
> cvs server: Diffing org/apache/axis/utils
> cvs server: Diffing org/apache/axis/utils/bytecode
> cvs server: Diffing org/apache/axis/utils/cache
> cvs server: Diffing org/apache/axis/utils/compiler
> cvs server: Diffing org/apache/axis/utils/events
> cvs server: Diffing org/apache/axis/utils/events/debug
> cvs server: Diffing org/apache/axis/visitors
> cvs server: Diffing org/apache/axis/wsdl
> cvs server: Diffing org/apache/axis/wsdl/fromJava
> cvs server: Diffing org/apache/axis/wsdl/gen
> cvs server: Diffing org/apache/axis/wsdl/holders
> cvs server: Diffing org/apache/axis/wsdl/symbolTable
> cvs server: Diffing org/apache/axis/wsdl/test
> cvs server: Diffing org/apache/axis/wsdl/toJava
> cvs server: Diffing org/apache/axis/wsdlgen
> cvs server: Diffing org/apache/axis2
> cvs server: Diffing org/apache/axis2/message
> cvs server: Diffing org/apache/axis2/message/adapters
> cvs server: Diffing org/apache/axis2/message/impl
> cvs server: Diffing org/apache/axis2/util
> cvs server: Diffing org/apache/axis2/util/xml
> 


=====
Davanum Srinivas - http://xml.apache.org/~dims/

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

Mime
View raw message