axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "keith chapman" <keithgchap...@gmail.com>
Subject Re: WSDL / void POJO functions (patch included)
Date Wed, 07 May 2008 02:14:12 GMT
Hi Felix,

Would be better if you can create a Jira and attach the patch. Jira makes it
easier to keep track of changes.

Thanks,
Keith.

On Tue, May 6, 2008 at 7:57 PM, Felix J. Ogris <fjo-lists@ogris.de> wrote:

> Hi,
>
> I had some issues with Axis2 1.4 and MS Visual Studio when using POJO
> functions without any parameters, eg.:
>
> public String getSomething() {
> ...
> }
>
> From the WSDL, VS generated a prototype for getSomething() that returns an
> instance of getSomethingResponse instead of a String. getSomethingResponse
> contained one member variable, a String called return. It turned out that
> VS
> needs an empty input element in the WSDL, eg.:
>
> <xs:element name="getSomething">
>  <xs:complexType>
>    <xs:sequence/>
>  </xs:complexType>
> </xs:element>
>
> My patch applies to
>
> modules/kernel/src/org/apache/axis2/description/java2wsdl/DefaultSchemaGener
> ator.java. It does nothing more than removing the check whether
> paras.length
> is greater than zero in processMethods().
>
> Regards,
> Felix
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>



-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Mime
View raw message