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 "daryoush mehrtash (JIRA)" <ax...@ws.apache.org> on 2005/01/27 03:22:17 UTC

[jira] Created: (AXIS-1785) DII doesn't allow you to register IN/OUT parameters

DII doesn't allow you to register IN/OUT parameters
---------------------------------------------------

         Key: AXIS-1785
         URL: http://issues.apache.org/jira/browse/AXIS-1785
     Project: Axis
        Type: Bug
    Reporter: daryoush mehrtash


The Call object's addparameter should be modified so that the Parameter description mode is set before the java type is set.  Otherwise, the param descriptor assume IN parameter, and wont allow you to add an in/out parameter:

  public void addParameter(QName paramName, QName xmlType,
            Class javaType, ParameterMode parameterMode) {

        if (operationSetManually) {
            throw new RuntimeException(
                    Messages.getMessage("operationAlreadySet"));
        }

        if (operation == null)
            operation = new OperationDesc();

        // In order to allow any Call to be re-used, Axis
        // chooses to allow parameters to be added when
        // parmAndRetReq==false.  This does not conflict with
        // JSR 101 which indicates an exception MAY be thrown.

        //if (parmAndRetReq) {
        ParameterDesc param = new ParameterDesc();

        byte mode = ParameterDesc.IN;
        if (parameterMode == ParameterMode.INOUT) {
            mode = ParameterDesc.INOUT;
        } else if (parameterMode == ParameterMode.OUT) {
            mode = ParameterDesc.OUT;
        }
        param.setMode(mode);

        
        param.setQName(new QName(paramName.getNamespaceURI(),Utils.getLastLocalPart(paramName.getLocalPart())));
        param.setTypeQName( xmlType );
        param.setJavaType( javaType );
 


-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (AXIS-1785) DII doesn't allow you to register IN/OUT parameters

Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS-1785?page=history ]
     
Davanum Srinivas resolved AXIS-1785:
------------------------------------

    Resolution: Fixed

Fixed.

thanks,
dims

> DII doesn't allow you to register IN/OUT parameters
> ---------------------------------------------------
>
>          Key: AXIS-1785
>          URL: http://issues.apache.org/jira/browse/AXIS-1785
>      Project: Axis
>         Type: Bug
>     Reporter: daryoush mehrtash

>
> The Call object's addparameter should be modified so that the Parameter description mode is set before the java type is set.  Otherwise, the param descriptor assume IN parameter, and wont allow you to add an in/out parameter:
>   public void addParameter(QName paramName, QName xmlType,
>             Class javaType, ParameterMode parameterMode) {
>         if (operationSetManually) {
>             throw new RuntimeException(
>                     Messages.getMessage("operationAlreadySet"));
>         }
>         if (operation == null)
>             operation = new OperationDesc();
>         // In order to allow any Call to be re-used, Axis
>         // chooses to allow parameters to be added when
>         // parmAndRetReq==false.  This does not conflict with
>         // JSR 101 which indicates an exception MAY be thrown.
>         //if (parmAndRetReq) {
>         ParameterDesc param = new ParameterDesc();
>         byte mode = ParameterDesc.IN;
>         if (parameterMode == ParameterMode.INOUT) {
>             mode = ParameterDesc.INOUT;
>         } else if (parameterMode == ParameterMode.OUT) {
>             mode = ParameterDesc.OUT;
>         }
>         param.setMode(mode);
>         
>         param.setQName(new QName(paramName.getNamespaceURI(),Utils.getLastLocalPart(paramName.getLocalPart())));
>         param.setTypeQName( xmlType );
>         param.setJavaType( javaType );
>  

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira