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 "Simon Fell (JIRA)" <ji...@apache.org> on 2005/10/04 05:00:47 UTC

[jira] Created: (AXIS2-260) header parameters don't accept nulls

header parameters don't accept nulls
------------------------------------

         Key: AXIS2-260
         URL: http://issues.apache.org/jira/browse/AXIS2-260
     Project: Apache Axis 2.0 (Axis2)
        Type: Bug
  Components: client-api  
 Environment: WinXP, JDK 5.0, code from SVN as of 10/3/2005
    Reporter: Simon Fell


If the WSDL defines a soap header for the operation then a parameter is included in the stub for this header, in reality not all headers are required and you should be able to pass null, currently if you do that, you get an NPE, to avoid the NPE you have to create both the headerDocument & header objects.

-- 
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] Resolved: (AXIS2-260) header parameters don't accept nulls

Posted by "Ajith Harshana Ranabahu (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-260?page=all ]
     
Ajith Harshana Ranabahu resolved AXIS2-260:
-------------------------------------------

    Resolution: Fixed
     Assign To: Ajith Harshana Ranabahu

Added code (to the template) to only add the header parameters only if they are not null

> header parameters don't accept nulls
> ------------------------------------
>
>          Key: AXIS2-260
>          URL: http://issues.apache.org/jira/browse/AXIS2-260
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug
>   Components: client-api
>  Environment: WinXP, JDK 5.0, code from SVN as of 10/3/2005
>     Reporter: Simon Fell
>     Assignee: Ajith Harshana Ranabahu

>
> If the WSDL defines a soap header for the operation then a parameter is included in the stub for this header, in reality not all headers are required and you should be able to pass null, currently if you do that, you get an NPE, to avoid the NPE you have to create both the headerDocument & header objects.

-- 
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