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

Is there a size limit on sending data over a soap call

 
Ranch Hand
Posts: 680
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a web service which I send files to, when I send a file of 5m or more, I get a javax.xml.soap.SOAPFaultException. I am deploying my webservice with Weblogic 8.1.

Monitoring the Client and Server memory usage, I notice that the Client JVM Memory heap spikes when the client serialises the java into XML, and then the Server JVM spikes when it attempts to serialises the XML back into Java.

Thanks for any help

Tony
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which specific error does the SOAP fault encapsulate?
[ June 06, 2006: Message edited by: Ulf Dittmer ]
 
Tony Evans
Ranch Hand
Posts: 680
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ulf it returns 500 error code (Internal Server Error). Looking at the net it seems that it is better to pass files as attachments rather than in the message body.

Since I am passing a array of string, I will have to use a DataHandler.

Is it a case of in the calling client program, I transfer the Array of String into a DataSource, wrap it in a DataHandler, pass the DataHandler as a parameter and in the server extract the datahandler and the datasource.

I think in Weblogic if they see a parameter as a DataHandler it is treated automaticaly as a attachment and I do not have to add anything to the servicegen.

Thanks for any help

Tony
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Looking at the net it seems that it is better to pass files as attachments rather than in the message body.


Absolutely correct. Text in the message body will be parsed as XML, taking much more time and memory.
Bill
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic