You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2005/02/22 04:32:14 UTC

cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava Emitter.java

dims        2005/02/21 19:32:14

  Modified:    java/src/org/apache/axis/wsdl/toJava Emitter.java
  Log:
  Mirror the changes made in org.apache.axis.wsdl.fromJava.Emitter
  
  Revision  Changes    Path
  1.81      +2 -1      ws-axis/java/src/org/apache/axis/wsdl/toJava/Emitter.java
  
  Index: Emitter.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/toJava/Emitter.java,v
  retrieving revision 1.80
  retrieving revision 1.81
  diff -u -r1.80 -r1.81
  --- Emitter.java	12 Feb 2005 04:41:21 -0000	1.80
  +++ Emitter.java	22 Feb 2005 03:32:14 -0000	1.81
  @@ -769,7 +769,8 @@
               } else if (typeMappingVersion.equals("1.2")) {
                   defaultTM=DefaultSOAPEncodingTypeMappingImpl.create();
               } else if (typeMappingVersion.equals("1.3")) {
  -                defaultTM=DefaultJAXRPC11TypeMappingImpl.create();
  +                defaultTM=DefaultSOAPEncodingTypeMappingImpl.getSingleton();
  +                defaultTM.setDelegate(DefaultJAXRPC11TypeMappingImpl.create());
               } else {
                   throw new RuntimeException(org.apache.axis.utils.Messages.getMessage("j2wBadTypeMapping00"));
               }
  
  
  

Re: cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava Emitter.java

Posted by Davanum Srinivas <da...@gmail.com>.
Let's wait for Glen's next check-in (hopefully later today). things
should get easier with that.

-- dims


On Wed, 23 Feb 2005 14:38:36 +0100, Guillaume Sauthier
<Gu...@objectweb.org> wrote:
> Davanum Srinivas wrote:
> 
> >Guillaume,
> >
> >We are yet to pass all the tests with "1.3" on...
> >
> Great :)
> 
> >Can you repro the
> >problem in a standalone axis environment? (looping?)
> >
> >
> Havn't tried yet.
> But Glen seems to be working actively on this part, and loop was
> introduced/appeared when switching SoapEnc and JaxRpc TM.
> 
> I just wanted to know why the default TM was SOAPEnc with JAXRPC TM as
> delegate whne specifying 1.3 TM (aka JAXRPC TM in my mind) :)
> 
> Am currently thinking about differences between Axis serverside in
> standalone (works) and Axis in JOnAS.
> Because I've traced exchanged message : they're identical (standalone/jonas)
> so problem comes from the server side in JOnAS
> I've compared the generated deploy.wsdd : JOnAS one contains more
> typeMappings but the ones that are presents in axis are also in jonas.
> I'm still thinking ...
> 'll warn you if I find something usefull.
> 
> Cheers
> Guillaume
> 
> 
> >thanks,
> >dims
> >
> >
> >On Wed, 23 Feb 2005 14:15:23 +0100, Guillaume Sauthier
> ><Gu...@objectweb.org> wrote:
> >
> >
> >>Any thoughts ?
> >>
> >>JOnAS TCK complains about this :)
> >>I must switch them to pass the generation/compilation step.
> >>
> >>And after, I've goot infinite loops on getSerializer, I must add a
> >>checkLoop recursive method in setDelegate to make sure that delegation
> >>*chain* do not produce a loop.
> >>
> >>Cheers
> >>Guillaume
> >>
> >>Guillaume Sauthier wrote:
> >>
> >>
> >>
> >>>Just for understanding
> >>>
> >>>Why do we set the JAXRPC TM as delegate ?
> >>>Seems logical to me that if we set 1.3 TM, we want the JAXRPC TM as
> >>>principal TM, and this one should delegate to SOAPEnc TM.
> >>>
> >>>Cheers
> >>>Guillaume
> >>>
> >>>dims@apache.org wrote:
> >>>
> >>>
> >>>
> >>>>dims        2005/02/21 19:32:14
> >>>>
> >>>> Modified:    java/src/org/apache/axis/wsdl/toJava Emitter.java
> >>>> Log:
> >>>> Mirror the changes made in org.apache.axis.wsdl.fromJava.Emitter
> >>>>
> >>>> Revision  Changes    Path
> >>>> 1.81      +2 -1
> >>>>ws-axis/java/src/org/apache/axis/wsdl/toJava/Emitter.java
> >>>>
> >>>> Index: Emitter.java
> >>>> ===================================================================
> >>>> RCS file:
> >>>>/home/cvs/ws-axis/java/src/org/apache/axis/wsdl/toJava/Emitter.java,v
> >>>> retrieving revision 1.80
> >>>> retrieving revision 1.81
> >>>> diff -u -r1.80 -r1.81
> >>>> --- Emitter.java    12 Feb 2005 04:41:21 -0000    1.80
> >>>> +++ Emitter.java    22 Feb 2005 03:32:14 -0000    1.81
> >>>> @@ -769,7 +769,8 @@
> >>>>              } else if (typeMappingVersion.equals("1.2")) {
> >>>>                  defaultTM=DefaultSOAPEncodingTypeMappingImpl.create();
> >>>>              } else if (typeMappingVersion.equals("1.3")) {
> >>>> -                defaultTM=DefaultJAXRPC11TypeMappingImpl.create();
> >>>> +
> >>>>defaultTM=DefaultSOAPEncodingTypeMappingImpl.getSingleton();
> >>>> +
> >>>>defaultTM.setDelegate(DefaultJAXRPC11TypeMappingImpl.create());
> >>>>              } else {
> >>>>                  throw new
> >>>>RuntimeException(org.apache.axis.utils.Messages.getMessage("j2wBadTypeMapping00"));
> >>>>
> >>>>              }
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>
> >>
> >
> >
> >
> >
> 
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/

Re: cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava Emitter.java

Posted by Guillaume Sauthier <Gu...@objectweb.org>.
Davanum Srinivas wrote:

>Guillaume,
>
>We are yet to pass all the tests with "1.3" on...
>
Great :)

>Can you repro the
>problem in a standalone axis environment? (looping?)
>  
>
Havn't tried yet.
But Glen seems to be working actively on this part, and loop was 
introduced/appeared when switching SoapEnc and JaxRpc TM.

I just wanted to know why the default TM was SOAPEnc with JAXRPC TM as 
delegate whne specifying 1.3 TM (aka JAXRPC TM in my mind) :)


Am currently thinking about differences between Axis serverside in 
standalone (works) and Axis in JOnAS.
Because I've traced exchanged message : they're identical (standalone/jonas)
so problem comes from the server side in JOnAS
I've compared the generated deploy.wsdd : JOnAS one contains more 
typeMappings but the ones that are presents in axis are also in jonas.
I'm still thinking ...
'll warn you if I find something usefull.


Cheers
Guillaume


>thanks,
>dims
>
>
>On Wed, 23 Feb 2005 14:15:23 +0100, Guillaume Sauthier
><Gu...@objectweb.org> wrote:
>  
>
>>Any thoughts ?
>>
>>JOnAS TCK complains about this :)
>>I must switch them to pass the generation/compilation step.
>>
>>And after, I've goot infinite loops on getSerializer, I must add a
>>checkLoop recursive method in setDelegate to make sure that delegation
>>*chain* do not produce a loop.
>>
>>Cheers
>>Guillaume
>>
>>Guillaume Sauthier wrote:
>>
>>    
>>
>>>Just for understanding
>>>
>>>Why do we set the JAXRPC TM as delegate ?
>>>Seems logical to me that if we set 1.3 TM, we want the JAXRPC TM as
>>>principal TM, and this one should delegate to SOAPEnc TM.
>>>
>>>Cheers
>>>Guillaume
>>>
>>>dims@apache.org wrote:
>>>
>>>      
>>>
>>>>dims        2005/02/21 19:32:14
>>>>
>>>> Modified:    java/src/org/apache/axis/wsdl/toJava Emitter.java
>>>> Log:
>>>> Mirror the changes made in org.apache.axis.wsdl.fromJava.Emitter
>>>>
>>>> Revision  Changes    Path
>>>> 1.81      +2 -1
>>>>ws-axis/java/src/org/apache/axis/wsdl/toJava/Emitter.java
>>>>
>>>> Index: Emitter.java
>>>> ===================================================================
>>>> RCS file:
>>>>/home/cvs/ws-axis/java/src/org/apache/axis/wsdl/toJava/Emitter.java,v
>>>> retrieving revision 1.80
>>>> retrieving revision 1.81
>>>> diff -u -r1.80 -r1.81
>>>> --- Emitter.java    12 Feb 2005 04:41:21 -0000    1.80
>>>> +++ Emitter.java    22 Feb 2005 03:32:14 -0000    1.81
>>>> @@ -769,7 +769,8 @@
>>>>              } else if (typeMappingVersion.equals("1.2")) {
>>>>                  defaultTM=DefaultSOAPEncodingTypeMappingImpl.create();
>>>>              } else if (typeMappingVersion.equals("1.3")) {
>>>> -                defaultTM=DefaultJAXRPC11TypeMappingImpl.create();
>>>> +
>>>>defaultTM=DefaultSOAPEncodingTypeMappingImpl.getSingleton();
>>>> +
>>>>defaultTM.setDelegate(DefaultJAXRPC11TypeMappingImpl.create());
>>>>              } else {
>>>>                  throw new
>>>>RuntimeException(org.apache.axis.utils.Messages.getMessage("j2wBadTypeMapping00"));
>>>>
>>>>              }
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>      
>>>
>>    
>>
>
>
>  
>


Re: cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava Emitter.java

Posted by Davanum Srinivas <da...@gmail.com>.
Guillaume,

We are yet to pass all the tests with "1.3" on...Can you repro the
problem in a standalone axis environment? (looping?)

thanks,
dims


On Wed, 23 Feb 2005 14:15:23 +0100, Guillaume Sauthier
<Gu...@objectweb.org> wrote:
> Any thoughts ?
> 
> JOnAS TCK complains about this :)
> I must switch them to pass the generation/compilation step.
> 
> And after, I've goot infinite loops on getSerializer, I must add a
> checkLoop recursive method in setDelegate to make sure that delegation
> *chain* do not produce a loop.
> 
> Cheers
> Guillaume
> 
> Guillaume Sauthier wrote:
> 
> > Just for understanding
> >
> > Why do we set the JAXRPC TM as delegate ?
> > Seems logical to me that if we set 1.3 TM, we want the JAXRPC TM as
> > principal TM, and this one should delegate to SOAPEnc TM.
> >
> > Cheers
> > Guillaume
> >
> > dims@apache.org wrote:
> >
> >> dims        2005/02/21 19:32:14
> >>
> >>  Modified:    java/src/org/apache/axis/wsdl/toJava Emitter.java
> >>  Log:
> >>  Mirror the changes made in org.apache.axis.wsdl.fromJava.Emitter
> >>
> >>  Revision  Changes    Path
> >>  1.81      +2 -1
> >> ws-axis/java/src/org/apache/axis/wsdl/toJava/Emitter.java
> >>
> >>  Index: Emitter.java
> >>  ===================================================================
> >>  RCS file:
> >> /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/toJava/Emitter.java,v
> >>  retrieving revision 1.80
> >>  retrieving revision 1.81
> >>  diff -u -r1.80 -r1.81
> >>  --- Emitter.java    12 Feb 2005 04:41:21 -0000    1.80
> >>  +++ Emitter.java    22 Feb 2005 03:32:14 -0000    1.81
> >>  @@ -769,7 +769,8 @@
> >>               } else if (typeMappingVersion.equals("1.2")) {
> >>                   defaultTM=DefaultSOAPEncodingTypeMappingImpl.create();
> >>               } else if (typeMappingVersion.equals("1.3")) {
> >>  -                defaultTM=DefaultJAXRPC11TypeMappingImpl.create();
> >>  +
> >> defaultTM=DefaultSOAPEncodingTypeMappingImpl.getSingleton();
> >>  +
> >> defaultTM.setDelegate(DefaultJAXRPC11TypeMappingImpl.create());
> >>               } else {
> >>                   throw new
> >> RuntimeException(org.apache.axis.utils.Messages.getMessage("j2wBadTypeMapping00"));
> >>
> >>               }
> >>
> >>
> >>
> >>
> >>
> >>
> >
> >
> 
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/

Re: cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava Emitter.java

Posted by Guillaume Sauthier <Gu...@objectweb.org>.
Any thoughts ?

JOnAS TCK complains about this :)
I must switch them to pass the generation/compilation step.

And after, I've goot infinite loops on getSerializer, I must add a 
checkLoop recursive method in setDelegate to make sure that delegation 
*chain* do not produce a loop.

Cheers
Guillaume

Guillaume Sauthier wrote:

> Just for understanding
>
> Why do we set the JAXRPC TM as delegate ?
> Seems logical to me that if we set 1.3 TM, we want the JAXRPC TM as 
> principal TM, and this one should delegate to SOAPEnc TM.
>
> Cheers
> Guillaume
>
> dims@apache.org wrote:
>
>> dims        2005/02/21 19:32:14
>>
>>  Modified:    java/src/org/apache/axis/wsdl/toJava Emitter.java
>>  Log:
>>  Mirror the changes made in org.apache.axis.wsdl.fromJava.Emitter
>>  
>>  Revision  Changes    Path
>>  1.81      +2 -1      
>> ws-axis/java/src/org/apache/axis/wsdl/toJava/Emitter.java
>>  
>>  Index: Emitter.java
>>  ===================================================================
>>  RCS file: 
>> /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/toJava/Emitter.java,v
>>  retrieving revision 1.80
>>  retrieving revision 1.81
>>  diff -u -r1.80 -r1.81
>>  --- Emitter.java    12 Feb 2005 04:41:21 -0000    1.80
>>  +++ Emitter.java    22 Feb 2005 03:32:14 -0000    1.81
>>  @@ -769,7 +769,8 @@
>>               } else if (typeMappingVersion.equals("1.2")) {
>>                   defaultTM=DefaultSOAPEncodingTypeMappingImpl.create();
>>               } else if (typeMappingVersion.equals("1.3")) {
>>  -                defaultTM=DefaultJAXRPC11TypeMappingImpl.create();
>>  +                
>> defaultTM=DefaultSOAPEncodingTypeMappingImpl.getSingleton();
>>  +                
>> defaultTM.setDelegate(DefaultJAXRPC11TypeMappingImpl.create());
>>               } else {
>>                   throw new 
>> RuntimeException(org.apache.axis.utils.Messages.getMessage("j2wBadTypeMapping00")); 
>>
>>               }
>>  
>>  
>>  
>>
>>  
>>
>
>


Re: cvs commit: ws-axis/java/src/org/apache/axis/wsdl/toJava Emitter.java

Posted by Guillaume Sauthier <Gu...@objectweb.org>.
Just for understanding

Why do we set the JAXRPC TM as delegate ?
Seems logical to me that if we set 1.3 TM, we want the JAXRPC TM as 
principal TM, and this one should delegate to SOAPEnc TM.

Cheers
Guillaume

dims@apache.org wrote:

>dims        2005/02/21 19:32:14
>
>  Modified:    java/src/org/apache/axis/wsdl/toJava Emitter.java
>  Log:
>  Mirror the changes made in org.apache.axis.wsdl.fromJava.Emitter
>  
>  Revision  Changes    Path
>  1.81      +2 -1      ws-axis/java/src/org/apache/axis/wsdl/toJava/Emitter.java
>  
>  Index: Emitter.java
>  ===================================================================
>  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/wsdl/toJava/Emitter.java,v
>  retrieving revision 1.80
>  retrieving revision 1.81
>  diff -u -r1.80 -r1.81
>  --- Emitter.java	12 Feb 2005 04:41:21 -0000	1.80
>  +++ Emitter.java	22 Feb 2005 03:32:14 -0000	1.81
>  @@ -769,7 +769,8 @@
>               } else if (typeMappingVersion.equals("1.2")) {
>                   defaultTM=DefaultSOAPEncodingTypeMappingImpl.create();
>               } else if (typeMappingVersion.equals("1.3")) {
>  -                defaultTM=DefaultJAXRPC11TypeMappingImpl.create();
>  +                defaultTM=DefaultSOAPEncodingTypeMappingImpl.getSingleton();
>  +                defaultTM.setDelegate(DefaultJAXRPC11TypeMappingImpl.create());
>               } else {
>                   throw new RuntimeException(org.apache.axis.utils.Messages.getMessage("j2wBadTypeMapping00"));
>               }
>  
>  
>  
>
>  
>