axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J. Hondius" <jhond...@rem.nl>
Subject Re: something in here uses a non-autogenerated WSDL? how?
Date Wed, 25 May 2011 07:36:50 GMT
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: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Mime
View raw message