This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

I am having issue sending huge documents usign SOAP request.

 
Ajoo Bar
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am having issue sending huge documents usign SOAP request. The service I am calling has some data and array of Files. The files are transferred as byte array. I am using Axis2. Here is what is happening. If a request has no attachment or attachment with a size of say 100K, it works fine. If the size is huge when I make a request to websercice, it takes 2 to 3 mins to get response back; also on other side they don’t get a request immediately. Can someone guide me what could be the reason,

<dom:documents>
<!--Optional:-->
<dom:fileContent>cid:10187760028</dom:fileContent>
<!--Optional:-->
<dom:documentName>?</dom:documentName>
<!--Optional:-->
<dom:type>?</dom:type>
<!--Optional:-->
<dom:format>?</dom:format>
<!--Optional:-->
<dom:notes>?</dom:notes>
</dom:documents>
<!--Optional:-->


Thanks
 
Paul Clapham
Sheriff
Posts: 21892
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It makes sense to me that the larger the request is, the longer it takes to send it over the network, and the longer it takes the server to process it, and so on.
 
Abhay Agarwal
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not know what does WS implementation Server side do with that large attached document.
One way to recieve quick response is to use Async Web Service (polling or callback based) if we are just trying to perform a HTTP PUT operation through Web Service and we do not have correlated data back from Server side.

~ abhay
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are using SAAJ, correct? Wikipedia article on SAAJ.

Bill
 
K. Tsang
Bartender
Posts: 3610
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may want to check if Axis is using that SOAP Message Transmission Optimization Mechanism (MTOM) stuff. here
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!