[ 
http://issues.apache.org/jira/browse/AXIS2-1185?page=comments#action_12438256 ] 
            
Derek Foster commented on AXIS2-1185:
-------------------------------------

I definitely think a clear error message about this case is necessary. A lot of 
people on the mailing list (myself included) have tripped over this issue and 
spent a lot of effort trying to figure out what is going on. If a user uses a 
'type' in document/literal mode, or if the user uses an 'element' in RPC style, 
WSDL2Java should output an error message saying these are not allowed according 
to the WS-I Basic Profile. Note that this also applies to 'fault' messages. (It 
seems to me that I actually got a NullPointerException or somesuch one time I 
tried to put a 'type' attribute in a 'fault' message.)



> Generation of a return message when 'type' is specified on the output message 
> part
> ----------------------------------------------------------------------------------
>
>                 Key: AXIS2-1185
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1185
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.0
>         Environment: Axis 2.0 build: 2006-09-18, Windows XP
>            Reporter: Brennan Spies
>
> When specifying a 'type' rather than 'element' on a WSDL message part, the 
> Axis 2.0 code generation does not put a return type in the corresponding Java 
> method, hence the returned SOAP message would not be meaningful. 
> For example,
> <message name="Response">
>      <part name="output" type="ns:responseType"/>
> </message>
> If the operation is
> <wsdl:portType name="ActionInterface">
>       <wsdl:operation name="Action">
>               <wsdl:input message="tns:Request" />
>               <wsdl:output message="tns:Response" />
>       </wsdl:operation>
> </wsdl:portType>
> The Axis code generator (with XMLBeans databinding) will generate an "Action" 
> method in the skeleton that has a "void" return type.

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to