• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Problem with primitive types in an Axis Webservice

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic