• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What's the best way to send xml to a web service?

 
Ranch Hand
Posts: 281
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Currently I'm using Axis2 and I have a single service that takes a String as a parameter. What I need to send to this service is some XML. I thought I'd be able to send it as a String but I'm running into trouble doing that (I've even tried surrounding it with <![CDATA[ ]]> (I get an error about Unexpected close tag </body> . Should I not send this XML as a String? Maybe I should expose the parameter as Document and send a Document object instead?
 
reply
    Bookmark Topic Watch Topic
  • New Topic