axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Daniels <g...@thoughtcraft.com>
Subject RE: cvs commit: ws-axis/java/src/org/apache/axis/wsdl/fromJava Emitter.java
Date Mon, 12 Apr 2004 21:07:26 GMT

What rationale does BP give for saying that putting namespace declarations
on soap:Body is a bad thing?  Seems silly to me.

--Glen 

> -----Original Message-----
> From: dims@apache.org [mailto:dims@apache.org] 
> Sent: Monday, April 12, 2004 5:04 PM
> To: ws-axis-cvs@apache.org
> Subject: cvs commit: 
> ws-axis/java/src/org/apache/axis/wsdl/fromJava Emitter.java
> 
> dims        2004/04/12 14:04:26
> 
>   Modified:    java/src/org/apache/axis/wsdl/fromJava Emitter.java
>   Log:
>   Fix for AXIS-1300 - Axis 1.2beta puts namespace on soapbody 
> for document/literal services; violates BP1.0a
>   
>   Revision  Changes    Path
>   1.118     +10 -8     
> ws-axis/java/src/org/apache/axis/wsdl/fromJava/Emitter.java
>   
>   Index: Emitter.java
>   ===================================================================
>   RCS file: 
> /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/fromJava/Emitt
> er.java,v
>   retrieving revision 1.117
>   retrieving revision 1.118
>   diff -u -r1.117 -r1.118
>   --- Emitter.java	12 Apr 2004 20:47:40 -0000	1.117
>   +++ Emitter.java	12 Apr 2004 21:04:25 -0000	1.118
>   @@ -1270,14 +1270,16 @@
>                soapBody.setUse("literal");
>            }
>    
>   -        if (targetService == null) {
>   -            soapBody.setNamespaceURI(intfNS);
>   -        } else {
>   -            soapBody.setNamespaceURI(targetService);
>   -        }
>   -
>   -        if ((operQName != null) && 
> !operQName.getNamespaceURI().equals("")) {
>   -            soapBody.setNamespaceURI(operQName.getNamespaceURI());
>   +        if (style == Style.RPC) {
>   +            if (targetService == null) {
>   +                soapBody.setNamespaceURI(intfNS);
>   +            } else {
>   +                soapBody.setNamespaceURI(targetService);
>   +            }
>   +    
>   +            if ((operQName != null) && 
> !operQName.getNamespaceURI().equals("")) {
>   +                
> soapBody.setNamespaceURI(operQName.getNamespaceURI());
>   +            }
>            }
>    
>            // The parts attribute will get set if we have headers.
>   
>   
>   
> 
> 

Mime
View raw message