• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Reading Webservice data and writing into a file

 
Greenhorn
Posts: 10
Eclipse IDE MySQL Database Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So here I am trying to read some xml from a WSDL Webservice. I read it with a buffer, store it in a String and then save it to a .xml file. Problem is... So far with 200 or so blocks of content, it works. Thought this client is supposed to save data from a hundred thousand blocks of content. What I've read so far that has been useful, but hasn't solved the problem is this: Stack Overflow.

My piece of code is really bad for now. So.. If you guy point me in the right direction and just find a way.
(Here's the code)



I know the problem with storing the all the xml data into a String. And I tried to use the Read and Write at the same time, but I get some crashes..
As stated above, I just need to be pointed into something helpful
 
Ranch Hand
Posts: 171
Hibernate Spring Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
why are you taking the response into memory & then writing it to file. do reading & writing in parallel, like this -

 
Igor Santos
Greenhorn
Posts: 10
Eclipse IDE MySQL Database Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Srry I took this long to answer. I was testing it with as many results as possible.
It worked just fine, tyvm! I had never used a BufferedReader with bytes before,
and that's probably the reason I didn't find a solution online for myself.

TYVM indeed, sir
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic