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 "Rodrigo Ruiz (JIRA)" <ax...@ws.apache.org> on 2005/07/26 17:14:18 UTC

[jira] Created: (AXIS-2140) CLONE -Java2WSDL not generating nillable attribute for primitive wrapper types

CLONE -Java2WSDL not generating nillable attribute for primitive wrapper types
------------------------------------------------------------------------------

         Key: AXIS-2140
         URL: http://issues.apache.org/jira/browse/AXIS-2140
     Project: Apache Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.0    
 Environment: Operating System: Windows NT/2K
Platform: All
    Reporter: Rodrigo Ruiz
     Fix For: current (nightly)


In previous versions, Java2WSDL generated soapenc mappings,
in which nillable is implicit.  Now it generates xsd mappings,
it needs to generate a nillable attribute for wrapper types,
as in JAX-RPC 1.0 section 5.3.1.  It does this for members
of complex types, but does NOT for stand-alone parameters.

Thus: Long  -> Java2WSDL ->  xsd:long  -> WSDL2Java ->  long

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2140) CLONE -Java2WSDL not generating nillable attribute for primitive wrapper types

Posted by "Rodrigo Ruiz (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2140?page=comments#action_12316760 ] 

Rodrigo Ruiz commented on AXIS-2140:
------------------------------------

I am experiencing this bug with Axis 1.2.1 release version. Primitive wrapper types are not made nillable from Java2WSDL.

I am using the following java2wsdl parameters:

--typeMappingVersion 1.2 --style WRAPPED --use LITERAL

And for a method with a signature like process4(Integer v1, Long v2, Short v3), I am getting the following element definition:

   <element name="process4">
    <complexType>
     <sequence>
      <element name="v1" type="xsd:int"/>
      <element name="v2" type="xsd:long"/>
      <element name="v3" type="xsd:short"/>
     </sequence>
    </complexType>
   </element>

Sorry for the cloning, I think I have clicked where I haven't to :-S


> CLONE -Java2WSDL not generating nillable attribute for primitive wrapper types
> ------------------------------------------------------------------------------
>
>          Key: AXIS-2140
>          URL: http://issues.apache.org/jira/browse/AXIS-2140
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.0
>  Environment: Operating System: Windows NT/2K
> Platform: All
>     Reporter: Rodrigo Ruiz
>      Fix For: current (nightly)

>
> In previous versions, Java2WSDL generated soapenc mappings,
> in which nillable is implicit.  Now it generates xsd mappings,
> it needs to generate a nillable attribute for wrapper types,
> as in JAX-RPC 1.0 section 5.3.1.  It does this for members
> of complex types, but does NOT for stand-alone parameters.
> Thus: Long  -> Java2WSDL ->  xsd:long  -> WSDL2Java ->  long

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (AXIS-2140) CLONE -Java2WSDL not generating nillable attribute for primitive wrapper types

Posted by "Rodrigo Ruiz (JIRA)" <ax...@ws.apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS-2140?page=comments#action_12316761 ] 

Rodrigo Ruiz commented on AXIS-2140:
------------------------------------

It also happens when using parameters of "wrapper holder" types. If I have a method in the server with a signature:

public void process4(IntegerWrapperHolder v1, LongWrapperHolder v2, ShortWrapperHolder v3);

The generated stub has the following signature:

public void process4(IntHolder v1, LongHolder v2, ShortHolder v3) throws java.rmi.RemoteException;


> CLONE -Java2WSDL not generating nillable attribute for primitive wrapper types
> ------------------------------------------------------------------------------
>
>          Key: AXIS-2140
>          URL: http://issues.apache.org/jira/browse/AXIS-2140
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.0
>  Environment: Operating System: Windows NT/2K
> Platform: All
>     Reporter: Rodrigo Ruiz
>      Fix For: current (nightly)

>
> In previous versions, Java2WSDL generated soapenc mappings,
> in which nillable is implicit.  Now it generates xsd mappings,
> it needs to generate a nillable attribute for wrapper types,
> as in JAX-RPC 1.0 section 5.3.1.  It does this for members
> of complex types, but does NOT for stand-alone parameters.
> Thus: Long  -> Java2WSDL ->  xsd:long  -> WSDL2Java ->  long

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira