SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
Caused by: java.lang.NoClassDefFoundError: Calculator (wrong name: com/test/axis/Calculator); nested exception is:
java.lang.NoClassDefFoundError: Calculator (wrong name: com/test/axis/Calculator)
Caused by: Error while compiling: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\services\WEB-INF\jwsClasses\Calculator.javaIWAV0052E Invocation Target Exception creating CalcClient
Keith SmithA wrote:
Surely there must be someone out there who has successfully used Axis for something useful other than passing strings or ints back and forth... Surely there must be a way Axis can cope with a sodding bean!
My free books and tutorials: http://www.slideshare.net/krizsan
Hi , How to remove this commend line <!--WSDL created by Apache Axis version: 1.4 <br /> Built on Apr 22, 2006 (06:55:48 PDT)--> please help me . They wanted me to remove because it was a security vulnerability.Kevin P Smith wrote:I have been tryint ot get an example axis web service running and have been having an issue with the following error:
SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
...and I think I have found the issue but am not sure.
The original example is a simple calculator that add/subtracts, passing in two int values (i1, i2) and returning a single int (result) value. I have ammended the example to pass in a bean containing the two ints and return int.
As I say, since doing this I have been getting the above error, and I think it might be because when I run the following URL:
The generated XML has this within it:
Now it appears to me that it is still trying to use the two ints and return an int, I'd expect it would have had a reference to my new bean. So I guess my question is, where is this WSDL kept or rather what generates it as I think mine is incorrect.
Cheers in advance
KS
Curse your sudden but inevitable betrayal! And this tiny ad too!
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
|