Originally posted by: SystemAdmin
> I need to send data thru the socket adapter to a java
> server. The java server is looking for the first 2
> bytes to be created by a writeshort function followed
> by the stream of data. My questions is how do you
> create the first two bytes using a type tree or a map
> function that will produce the same results as a java
> writeshort function or the writeutf function if
> sending xml data.
>
> For example if I send a string of 16 characters, the
> first 2 bytes of the data sent over the socket should
> be hex is "00 16" then the string on 16 chars.
>
> Any help or ideas would be appreciated.
The issue I discovered was that the Java server is expecting the low level protocol to be sent. For example two byte length, not the 4 byte length the socket adapter sends. Next to send xml data, protocol needs to send two bytes for length and the two additional bytes in utf-8 format for length followed by the string. Hence the java writeutf function.
Anyone have any further ideas how to overcome this issue?
Thanks
#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender#DataExchange