Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to transfere larg XML content using a web service?  RSS feed

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • 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
 
Jesus Angeles
Ranch Hand
Posts: 2069
  • Mark post as helpful
  • send pies
  • 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: 2069
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!