I didn't find any autogenerate parameter in axis2.xml in official documentation of Axis2.
apart from this, I've checked that no matter what the name of .wsdl is, or wheter useOriginalWsdl appears or not. and lastly, Well,. I'll check what you said. Eco.wsdl or Other.wsdl.... nothing changes. I've looked for the parameter list I can put in axis2.xml and services.xml and I found nothing (include the official documentation). I would like to know, for example, what is origin of useOriginalWsdl, since I only saw in some forums from anon users. Finally, I checked the multiple wsdl, and checked this: eco?wsdl (without any META-INF/.wsdl) = eco.wsdl (obvious, since I maked a copy-paste) but eco?wsdl (existing eco.wsdl) changed /> for ></part> and /></input> and /></output>. But this changes don't changes the behaviour, I think. Other question is: what I'm trying (POJO and then, customize WSDL) is a normal option? My intention is to have a POJO but having the hightest control over it as possible. Thank you, Martin. On Wed, May 25, 2011 at 9:36 AM, J. Hondius <[email protected]> wrote: > I got it to work some time ago. > Dont remember exactly, sorry. > Guessing: > > Are you shure Eco.wsdl is the right name? > And i think there may be a setting in axis2.xml like autogenerate=false etc > > What does http://127.0.0.1/SNMP/services/Eco?wsdl > look like after you put it into the META-INF? > > Good luck. > > > Martín R. schreef: > > Ok, I'm bored with this now :( >> >> I have that service: >> >> package sample; >> >> public class Service { >> >> >> public String eco(int eco) { >> return "return: " + eco; >> } >> >> public String ecoString(String eco) { >> return "return: " + eco; >> } >> >> } >> >> >> And its services.xml: >> >> <service> >> <Description> >> <b>Echo</b> >> </Description> >> <parameter name="ServiceClass" locked="false">sample.Service</parameter> >> >> <messageReceivers> >> <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out" >> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/> >> </messageReceivers> >> >> </service> >> >> >> >> Well, I try with browser: >> >> http://127.0.0.1/SNMP/services/Eco/eco?args0=3 >> http://127.0.0.1/SNMP/services/Eco/ecoString?args0=something >> >> OK, it works. >> >> Then, I copy the autogenerated WSDL from >> http://127.0.0.1/SNMP/services/Eco?wsdl in /META-INF/Eco.wsdl , and >> restart Tomcat. and the results now are: >> >> http://127.0.0.1/SNMP/services/Eco/eco?args0=5 -----> >> <soapenv:Reason> >> <soapenv:Text xml:lang="en-US">unknown</soapenv:Text> >> </soapenv:Reason> >> >> >> http://127.0.0.1/SNMP/services/Eco/ecoString?args0=something ------> >> >> <ns:ecoStringResponse> >> <ns:return>return: </ns:return> >> </ns:ecoStringResponse> >> >> >> >> WHY, my god! >> >> > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
