This week's giveaway is in the Threads forum.
We're giving away four copies of Java Concurrency Live Lessons and have Doug Schmidt on-line!
See this thread for details.
Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with primitive types in an Axis Webservice  RSS feed

 
Dennis Korbar
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I've written a small Testwebservice which says Hello to a given username, this works fine as long as the return value stays "String", if I create a Testservice with int as the returnvalue the soap Message that I get inside of eclipse's web services explorer will only display something like

Same happens when I use a complex type.

Can anyone tell me why the int value isn't there?

Dennis
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
axis, xsd:int and multiRef

Do yourself a favor and ditch SOAP encoding and rpc/encoded right now!

It has caused so much trouble in the past that current generation SOAP stacks (JAX-WS, Axis2, Apache CXF) no longer support it.
So unless you have a compelling reason to use it (supporting old SOAP clients that can actually successfully interoperate with Axis 1.x) switch to document/literal.

Which style of WSDL should I use?
wrapped document/literal convention

Moving to Axis2 would also enable you to use Axis Archives (*.aar) for deployment.
 
Dennis Korbar
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was thinking that it might have to do with the encoding, I didn't know how to change it though...
Axis 2 might be a better idea anyways, I started to use axis 1.4 because I thought it might be more stable.
I will try to create the service on axis2 tomorrow, thanks for the support!

Dennis
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!