Win a copy of Head First Android this week in the Android forum!
  • 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

how to transfere larg XML content using a web service?

 
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Thank you for reading my post
How i can transform larg portion of XML files using web services ?
for example should i use String as return type of business method or there are some other mechanism for this .


thanks
 
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you use document style, you can just pass the xml as the content of the soap body.

If you use rpc, try return SoapElement. I believe, in wsdl, that would be xml schema type 'any'.
 
Jesus Angeles
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
also, if you are allowed to use swa(soap messages with attachments), you can put the xml as an attachment

it will be mime type text/xml, or application/xml

i believe j2ee web services implementations are required to support at least one of them. they are similar, you can use either one. text/xml merely is for more human-readable xml. either one is okay.

in wsdl, it will be 'string'.

and in java it will be javax.xml.transform.Source
reply
    Bookmark Topic Watch Topic
  • New Topic