HP3000-L Archives

December 2002, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Thu, 5 Dec 2002 18:12:42 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (80 lines)
We are posting XML messages from a COBOL program on the HP3000 to a web URL
(java client) using a custom socket.

We have pretty big messages to be loaded and we found out that orders with
a length bigger than 29900 characters do not get read properly by the
  java listener program which failed with :

  java.lang.IndexOutOfBoundsException

If we push the same order XML message thru a standard IE page, the listener
read the whole message by buckets of  8760 and the order is posted in full.

If we post the same XML message form the COBOL program using the listener
tries to read the whole message at once and got problems managing the
message size.see below


  MY IE Page
  ----------
  Entered main
  Created Server Socket
  Connection Accepted
  POST /tibco/TAW HTTP/1.1
  Accept: application/vnd.ms-excel, application/msword,
  application/vnd.ms-powerpoint, image/gif, image/x-xbitmap, image/jpeg,
  image/pjpeg, */*
  Accept-Language: en-securid
  Content-Type: application/x-www-form-urlencoded
  Accept-Encoding: gzip, deflate
  User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0;
  adidas-Salomon AG)
  Host: 141.175.80.28
  Content-Length: 66542
  Connection: Keep-Alive
  Cache-Control: no-cache
  Content read: 8760 body is:[C@4672d0
  Content read: 8760 body is:[C@4672d0
  Content read: 8760 body is:[C@4672d0
  Content read: 8760 body is:[C@4672d0
  Content read: 8760 body is:[C@4672d0
  Content read: 8760 body is:[C@4672d0
  Content read: 8760 body is:[C@4672d0
  Content read: 5222 body is:[C@4672d0


  >From COBOL
  -----------
  Entered main
  Created Server Socket
  Connection Accepted
  POST /tibco/TAW HTTP/1.1
  Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
  application/vnd.ms-excel, application/msword, application/vnd.ms-
powerpoint,
  */*
  Accept-Language: en-us
  Content-Type: application/x-www-form-urlencoded
  Accept-Encoding: gzip, deflate
  User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)
  Host: 141.175.80.28
  Content-Length:     25000
  Connection: Keep-Alive
  Cache-Control: no-cache
  Content read: 25000 body is:[C@4abc9


We ran a network trace on both and what we found out is that the difference
between the 2 messages is that the one sent from the HP3000 is not
transfered under the HTTP protocol ( everything else is the same, port, IP )


ANY HELP WOULD BE GREATLY APPRECIATE !!!!!!

Thanks a lot

Didier

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2