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

Attachment: axis2-1.4-VoidParams.patch
Description: Binary data

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

Reply via email to