axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charitha Kankanamge <chari...@wso2.com>
Subject Re: Axis2 return name
Date Wed, 25 Jun 2008 13:26:01 GMT
Hi,
I think the answer for your question is explained here [1]

[1] http://wso2.org/library/3743

regards
Charitha
sdr wrote:

>Hi,
>
>I'm generating a wsdl out of code with following java code:
>
>public class EmbeddedAxis2Server {
>    public static void main(String[] args) throws Exception {
>        ConfigurationContext context =
>ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,
>null);
>        context.setContextRoot("lmpg-ws");
>
>        AxisService service =
>AxisService.createService(UssdIvrInterface.class.getName(),
>                context.getAxisConfiguration());
>        context.getAxisConfiguration().addService(service);
>        
>        SimpleHTTPServer server = new SimpleHTTPServer(context, 8080);
>        server.start();
>    }
>}
>
>The wsdl that is generated is as follows:
>
>
>- <wsdl:types>
>- <xs:schema xmlns:ns="http://ws.apache.org/axis2"
>attributeFormDefault="qualified" elementFormDefault="unqualified"
>targetNamespace="http://ws.apache.org/axis2">
>- <xs:element name="Register12Ring">
>- <xs:complexType>
>- <xs:sequence>
>  <xs:element minOccurs="0" name="in" nillable="true"
>type="ns1:Register12RingRequest" /> 
>  </xs:sequence>
>  </xs:complexType>
>  </xs:element>
>- <xs:element name="Register12RingResponse">
>- <xs:complexType>
>- <xs:sequence>
>  <xs:element minOccurs="0" name="return" nillable="true"
>type="ns1:Common12RingResponse" /> 
>  </xs:sequence>
>  </xs:complexType>
>  </xs:element>
>- <xs:element name="Reload12Ring">
>- <xs:complexType>
>- <xs:sequence>
>  <xs:element minOccurs="0" name="in" nillable="true"
>type="ns1:Reload12RingRequest" /> 
>  </xs:sequence>
>  </xs:complexType>
>  </xs:element>
>- <xs:element name="Reload12RingResponse">
>...etc
>
>
>Is there a possibility to change name="return" into something else?  We have
>troubles creating a c++ client as return is a keyword in c++.  
>I'm not able to use annotations as I have to use java 1.4
>
>Kind regards,
>Sdr
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message