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
-- 
View this message in context: 
http://www.nabble.com/Axis2-return-name-tp18112183p18112183.html
Sent from the Axis - User mailing list archive at Nabble.com.


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

Reply via email to