cancel
Showing results for 
Search instead for 
Did you mean: 

MTOM Transfer cut short

Former Member
0 Kudos

Hi.

I have a web service which takes a String and some data, which is accessed using a DataHandler on the server side.

I have 2 clients for this: one which streams and one doesnt. In both cases the data is sent as an attachment.

The problem arises whenever the streaming client sends a request to the web service. It definately sends the full attachement as I have monitored the network packets going and coming from the service, but the server does not seem to be able to access anything after around 7K.

If we dont stream, we dont get this problem, as im assuming the whole 'package' is there.

Is there any known issues regarding streaming through web services?

Regards,

Andy

Update: I used the JAX-WS mtom-large example to create both web service and client and deployed to the sap server.

Web service deployed ok. But when client connected I got the following HTTP Error code (after seemingly everything was sent):

400 Bad Request

date: Thu, 10 Apr 2008 16:01:11 GMT

pragma: no-cache

connection: close

content-length: 919

content-type: text/html

server: SAP NetWeaver Application Server 7.10 / ICM 7.10

<html><head><title>Application Server Error</title>

<style type="text/css">

body { font-family: arial, sans-serif;}

</style>

</head>

<BODY><table width=800>

<tr><td width=50 nowrap>

</td><td>

<H2><b>400 Bad HTTP request </b></H2><br>Bad HTTP request<br><br><hr>

<table border="0">

<tr><td>Error:</td><td>-21</td></tr>

<tr><td>Version:</td><td>7010</td></tr>

<tr><td>Component:</td><td>HTTP_PLG</td></tr>

<tr><td>Date/Time:</td><td>Thu Apr 10 17:01:11 2008

</td></tr>

<tr><td>Module:</td><td>http_plg.c</td></tr>

<tr><td>Line:</td><td>2385</td></tr>

<tr><td>Server:</td><td>edfsas_DTS_00</td></tr>

<tr><td>Error Tag:</td><td></td></tr>

<tr><td>Detail:</td><td>request too big</td></tr>

</table>

<p></p>

</td></tr></table>

<table><tr><td width=50 nowrap></td>

<td nowrap><FONT SIZE=-1><a href="http://www.sap.com/">&copy; 2001-2007, SAP AG</a></FONT>

</td></tr></table>

</body></html>

Edited by: Andrew Morton on Apr 10, 2008 5:09 PM

Update 2:

Upon deploying the jaxws 2.1.3 libraries as a shared library and referencing them via the application-j2ee-engine.xml file, the server didnt even come back - it just stopped the stream in its tracks. Strange...

Edited by: Andrew Morton on Apr 10, 2008 5:25 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

oliver_luik
Explorer
0 Kudos

Hi Andrew,

there is maximum upload size for requests configured in your system. The default value for the ICM parameter icm/HTTP/max_request_size_KB is set to 102400 (100MB).

Online Help for the parameter values:

Link: [http://help.sap.com/saphelp_nw04s/helpdata/en/b8/2a8d65be7eee4eb66067f8a33d1c8b/frameset.htm]

Either the parameter is set to a smaller value (can be checked with MMC -> ICM -> Parameter) or the chunked request contains wrong / illegal content length settings.

Regards,

Oliver

Former Member
0 Kudos

JAX-WS library cannot be overriden - question now kinda pointless...