<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-2022-JP"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I found a problem of&nbsp; SOAP action between&nbsp; 3.3.3 and latest nighty
build (4.1.x).<br>
With a same LZX application and using SOAP data I/F.<br>
3.3.3 could send data to LPS, but the nighty could not.<br>
&nbsp;ex.<br>
&nbsp;&nbsp;&nbsp;&nbsp; send data 'burabura'<br>
&nbsp;&nbsp;&nbsp;&nbsp; debugging 'lzpostbody' in SOAPDataSource.java<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on 3.3.3:&nbsp; &lt;some tag&gt;[![CDATA[burabura]]&lt;/some
tag&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on 4.1.x:&nbsp; &lt;some tag/&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * in effect, those data were encoded.<br>
<br>
SOAPDataSource.java had not any changes between them.<br>
Are there some changing data interface specifications?<br>
I confirmed it was OK till 4.0.3, but 4.0.5 and later were NG.<br>
<br>
Regards,<br>
Keiji Ono<br>
<br>
Henry Minsky wrote:
<blockquote
 cite="mid8c61fad60710300511u65f7e51cme8e363c5a46dcae4@mail.gmail.com"
 type="cite"><br>
  <br>
  <div><span class="gmail_quote">On 10/30/07, <b
 class="gmail_sendername">keiji Ono</b> &lt;<a
 href="mailto:keiji_ono@net8.co.jp">keiji_ono@net8.co.jp</a>&gt; wrote:</span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I
have checked Apache-Axis library. And i knew where it was implemented<br>
but at the same time<br>
i did not understand about my issue whether it was a spec or bug. Then i<br>
will ask it for Axis forum.<br>
Thank you for everything.
    <br>
    <br>
BTW, i have been seeing OpenLaszlo source code by now, i would like to<br>
confirm and gather up my *understanding* on processing SOAP data. If<br>
this is incorrect, please correct me.<br>
    <br>
Issue: procedure SOAP message data to provide to client
    <br>
Example data: &lt;data tag&gt;burabura data&lt;/data tag&gt;<br>
Process:<br>
1. read SOAP data ( like the example data )<br>
2. disintegrate in tag and data<br>
3. the data will be converted to Flash data format<br>
4. reassemble the tag and the data
    <br>
5. put it out it to client by HttpServletResponse<br>
    <br>
But i did not find the point of *reassemble* clearly.</blockquote>
  <div><br>
Hello Keiji, <br>
  <br>
I was probably the last person to touch the SOAP code, when I <br>
added support for the DHTML runtime. <br>
  <br>
In SWF, the SOAP data is converted to flash, using the old data
compiler which used to be used for XML data, but is no longer used for
that.<br>
  <br>
In the DHTML&nbsp; version of the SOAP code, the data is converted to
  <br>
JSON format. This might be easier to understand than the swf code
paths, if you look at the<br>
output that is sent to the client. It is&nbsp; a JSON string which is just a
combination of string, number, and&nbsp; arrays and objects.
  <br>
  <br>
  <br>
It had been my intention to rewrite the SOAP server code for the SWF
runtime, so that<br>
instead of using the old data compiler, it would instead just use the
JSON<br>
format that we now use for DHTML, and compile the JSON string to swf
with the regular "script compiler" that all the other Laszlo code goes
through. This would simplify
  <br>
the code substantially on the server, as it would eliminate the two
duplicate<br>
code paths that exist now for SWF and DHTML. Unfortunately I have not
had<br>
time to do that.&nbsp; <br>
  <br>
Henry<br>
  <br>
  <br>
  <br>
  </div>
  <br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Best,<br>
Keiji Ono<br>
    <br>
&#65533;&#65533;&#65533; wrote:<br>
    <br>
&gt; We use "apache-axis" for this server-side job, see i.e. at<br>
&gt;
org.openlaszlo.remote.swf.soap.encoding.SOAPDataEncoder#buildHeaders(org.apache.axis.message.SOAPHeader
).<br>
&gt;<br>
&gt;<br>
&gt; So I guess you need to check the "axis.jar" (JavaDoc:<br>
&gt; "<a
 href="http://ws.apache.org/axis/java/apiDocs/org/apache/axis/message/package-summary.html">http://ws.apache.org/axis/java/apiDocs/org/apache/axis/message/package-summary.html
    </a>")<br>
&gt; to get any further.<br>
&gt;<br>
&gt; - Andr&#65533;&#65533;&#65533;<br>
&gt;<br>
&gt;&gt; Hi Ben,<br>
&gt;&gt;<br>
&gt;&gt; Thank you for your reply.<br>
&gt;&gt; Yes, i also found your point and i was searching the
implementation.
    <br>
&gt;&gt; If it did not implement in OpenLaszlo source, it must came from<br>
&gt;&gt; saaj.jar or other jars.<br>
&gt;&gt; As far as i know, this class declared as Interface class in
SAAJ, so<br>
&gt;&gt; i wondered<br>
&gt;&gt; where did it implement.
    <br>
&gt;&gt; In your opinion, OpenLaszlo depend on the standard of JARs,
right?<br>
&gt;&gt; If so, i would appreciate it if you gave me the information
about<br>
&gt;&gt; JARs version and so on.<br>
&gt;&gt;<br>
&gt;&gt; Best,
    <br>
&gt;&gt; Keiji Ono<br>
&gt;&gt;<br>
&gt;&gt; Benjamin Shine wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt;/<br>
&gt;&gt; /&gt;/ It looks to me like SOAPElement is imported from /&gt;/<br>
&gt;&gt; javax.xml.soap.SOAPElement:<br>
&gt;&gt; /&gt;/
    <br>
&gt;&gt; /&gt;/ $ grep SOAPElement `find . -name "SOAP*.java"`<br>
&gt;&gt; /&gt;/ ...<br>
&gt;&gt; /&gt;/
./WEB-INF/lps/server/src/org/openlaszlo/remote/swf/soap/encoding/<br>
&gt;&gt; /&gt;/ SOAPDataEncoder.java
:<br>
&gt;&gt; /&gt;/ import javax.xml.soap.SOAPElement;<br>
&gt;&gt; /&gt;/ ...<br>
&gt;&gt; /&gt;/<br>
&gt;&gt; /&gt;/ So that implementation must come from one of the jars
we ship<br>
&gt;&gt; with, /&gt;/ but I don't know which one.
    <br>
&gt;&gt; /&gt;/<br>
&gt;&gt; /&gt;/ Is this the information you were looking for?<br>
&gt;&gt; /&gt;/ -ben<br>
&gt;&gt; /&gt;/<br>
&gt;&gt; /&gt;/<br>
&gt;&gt; /&gt;/ On Oct 25, 2007, at 6:13 PM, keiji Ono wrote:<br>
&gt;&gt; /&gt;/
    <br>
&gt;&gt; /&gt;&gt;/ Hi<br>
&gt;&gt; /&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;/ I could make in focus on this issue.<br>
&gt;&gt; /&gt;&gt;/ I found the method of .getChildElements() was
rejecting all blanks<br>
&gt;&gt; /&gt;&gt;/ at the head and tail of SOAPElement class.
    <br>
&gt;&gt; /&gt;&gt;/ But as you know, SOAPElement class was declared by
Interface<br>
&gt;&gt; class in /&gt;&gt;/ SAAJ.<br>
&gt;&gt; /&gt;&gt;/ As the next step, i checked how SOAPElement class
had<br>
&gt;&gt; implemented in /&gt;&gt;/ OpenLaszlo.
    <br>
&gt;&gt; /&gt;&gt;/ but i could not find the point in OpenLaszlo source.<br>
&gt;&gt; /&gt;&gt;/ If i could find it, i could know it whether it was
bug or spec.<br>
&gt;&gt; /&gt;&gt;/ Hey Server Side Men, could you give some hints for
me?
    <br>
&gt;&gt; /&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;/ Best,<br>
&gt;&gt; /&gt;&gt;/ Keiji Ono<br>
&gt;&gt; /&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;/ keiji Ono wrote:<br>
&gt;&gt; /&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;/ I have been continuing to solve this issue.
    <br>
&gt;&gt; /&gt;&gt;&gt;/ And i look at the point of the suspicious, but
i could not know<br>
&gt;&gt; it /&gt;&gt;&gt;/ clearly.<br>
&gt;&gt; /&gt;&gt;&gt;/ At the point is in SOAPDataEncoder.java.<br>
&gt;&gt; /&gt;&gt;&gt;/ The 'issue' code is in the method of
_traverseDOM().
    <br>
&gt;&gt; /&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;/ SOAPDataEncoder.java _traverseDOM()<br>
&gt;&gt; /&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;/ iter = el.getChildElements();<br>
&gt;&gt; /&gt;&gt;&gt;/ while(iter.hasNext()){
    <br>
&gt;&gt; /&gt;&gt;&gt;/ Object o = iter.next(); &lt;---- 1<br>
&gt;&gt; /&gt;&gt;&gt;/ if( Text.class.isInstance(o) ){<br>
&gt;&gt; /&gt;&gt;&gt;/ characters(((Text)o).getValue() ); &lt;---- 2<br>
&gt;&gt; /&gt;&gt;&gt;/ }else{
    <br>
&gt;&gt; /&gt;&gt;&gt;/ .<br>
&gt;&gt; /&gt;&gt;&gt;/ .<br>
&gt;&gt; /&gt;&gt;&gt;/ }<br>
&gt;&gt; /&gt;&gt;&gt;/ }<br>
&gt;&gt; /&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;/ At the point of 1, when the Object o contained
a string
    <br>
&gt;&gt; /&gt;&gt;&gt;/ "&lt;sometag&gt;&lt;![CDATA[ Text
Strings]]&gt;&lt;/sometag&gt;",<br>
&gt;&gt; /&gt;&gt;&gt;/ .getValue() at the point of 2 got the string
"Text Strings" and<br>
&gt;&gt; /&gt;&gt;&gt;/ set it to the method of characters(). The
characters()
    <br>
&gt;&gt; /&gt;&gt;&gt;/ push it to client through FlashBuffer class.<br>
&gt;&gt; /&gt;&gt;&gt;/ The issue of it is the blank of the start
strings has been<br>
&gt;&gt; rejected /&gt;&gt;&gt;/ by getValue().<br>
&gt;&gt; /&gt;&gt;&gt;/
    <br>
&gt;&gt; /&gt;&gt;&gt;/ I do not know whether this is the specification
of getValue()<br>
&gt;&gt; of /&gt;&gt;&gt;/ org.apache.xml.message.Text class.<br>
&gt;&gt; /&gt;&gt;&gt;/ Is not there the person knowing a lot about
this?
    <br>
&gt;&gt; /&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;/ Keiji Ono<br>
&gt;&gt; /&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;/ Hummm, it did not effect to the log file.<br>
&gt;&gt; /&gt;&gt;&gt;&gt;/ Basically, i did not use multibyte data, so
whichever use
    <br>
&gt;&gt; UTF-8 /&gt;&gt;&gt;&gt;/ parameter in the properties file,<br>
&gt;&gt; /&gt;&gt;&gt;&gt;/ it did not effect to it, i think.<br>
&gt;&gt; /&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;/ BTW, the reason why i am taking this issue,
because i have a
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;/ trouble on SOAP data handling on LPS.<br>
&gt;&gt; /&gt;&gt;&gt;&gt;/ The trouble is like this.<br>
&gt;&gt; /&gt;&gt;&gt;&gt;/ When i sent data from a OpenLaszlo
application, like ' ABC' to
    <br>
&gt;&gt; SOAP /&gt;&gt;&gt;&gt;/ server, but the return was<br>
&gt;&gt; /&gt;&gt;&gt;&gt;/ 'ABC'. Pay attention this, LPS cut out
those spaces of the data.<br>
&gt;&gt; /&gt;&gt;&gt;&gt;/ I traced how to treat the data in LPS, so i
reached
    <br>
&gt;&gt; FileUtil.java. /&gt;&gt;&gt;&gt;/ I know the data from SOAP
server<br>
&gt;&gt; /&gt;&gt;&gt;&gt;/ to LPS are correct, that mean the data has
the spaces.<br>
&gt;&gt; /&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;/ Any advances. Thank you.
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;/ Keiji Ono<br>
&gt;&gt; /&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;/ P T Withington wrote:<br>
&gt;&gt; /&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;/ I wonder if the problem is that log4j
is not configured for<br>
&gt;&gt; UTF8? /&gt;&gt;&gt;&gt;&gt;/ I found this with Google:<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;/ Debugging can be fun with high byte
characters as generally
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;/ logging to a console isn't going to
show you the characters<br>
&gt;&gt; you /&gt;&gt;&gt;&gt;&gt;&gt;/ are expecting. If you did this:<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;/ System.out.println(new String(new
byte[] { -28, -72,<br>
&gt;&gt; -83},"UTF-8")<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;/ Then you'd probably just see a ?
rather than the Chinese
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;/ character that it really should be.
However, you can make<br>
&gt;&gt; log4j /&gt;&gt;&gt;&gt;&gt;&gt;/ log UTF-8 messages. Just add<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;/ &lt;param name="Encoding"
value="UTF-8"/&gt;
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;/ To the appender in your log4j.xml
config. Or this:<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;/
log4j.appender.myappender.Encoding=UTF-8
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;/ To your log4j.properties file. You
might still only see the<br>
&gt;&gt; UTF-8 /&gt;&gt;&gt;&gt;&gt;&gt;/ data properly if you view the
log file in an editor/
    <br>
&gt;&gt; viewer that /&gt;&gt;&gt;&gt;&gt;&gt;/ can view UTF-8 data
(Windows notepad is ok for<br>
&gt;&gt; instance).<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;/
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;/ [Java UTF???????????????????????????8
international character<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;/ support with Tomcat and Oracle,
26/03/07, Kieran's
    <br>
&gt;&gt; blog](<a class="moz-txt-link-freetext" href="http://">http://</a> /&gt;&gt;&gt;&gt;&gt;/ <a
 href="http://blogs.warwick.ac.uk/kieranshaw/entry/">blogs.warwick.ac.uk/kieranshaw/entry/</a>
/&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; utf-8_internationalisation_with/)<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;/
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;/ Also, I wonder if using the Firebug
extension to Firefox<br>
&gt;&gt; might /&gt;&gt;&gt;&gt;&gt;/ help. Using the Net pane, you
should be able to see the<br>
&gt;&gt; content of /&gt;&gt;&gt;&gt;&gt;/ the http get.
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;/ On 2007-09-27, at 20:20 EDT, keiji Ono
wrote:<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;/ Who dose maintenance this Java file
?
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;/ If you give me a little tip, i can
progress on it.<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;/ keiji Ono wrote:<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;/
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ Ben,<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ Thank you for your suggestion,
but i tried already it on<br>
&gt;&gt; 4.0.5 /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ as a trial ,
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ but it did not work on it.<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ I know it worked till on 4.0.3.
:@<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ It will be good if i can give
you a sample code of it , but
    <br>
&gt;&gt; as /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ you know<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ it is not<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ easy to give SOAP sample.<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ And our application is now
working on 3.3.3, so i would<br>
&gt;&gt; like to /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ try on<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ 3.3.3.<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ I am thinking as following
steps now.
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ 1. Check it on 3.3.3<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ 2. If i find looks like bug in
it, i will change it.<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ 3. Then i am going to look at
4.0.5 source.<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ So could you give some advance?<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ Thank you.<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ Keiji ono<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ Benjamin Shine wrote:<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ Keiji, I suggest you work
with lps-4.0.5. It is the most<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ current, and<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ we are more likely to be
familiar with the code that
    <br>
&gt;&gt; you're /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ working<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ with. See<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ <a
 href="http://www.openlaszlo.org/node/383">http://www.openlaszlo.org/node/383
    </a><br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ for the announcment.<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ -ben<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ On Sep 26, 2007, at 5:03
AM, keiji Ono wrote:<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ Adding, it was the
source of lps-3.3.3, and the data was<br>
&gt;&gt; not /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ multibyte<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ character.
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ Keiji Ono<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ Hi all,<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ I am checking about
Input/Output data on LPS now.
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ Because when i take
SOAP interface on my application,<br>
&gt;&gt; the /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ getting data<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ is wrong.
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ Then i would like
to check data where output from LPS.<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ At the point of
FileUtils.java, i add some code like<br>
&gt;&gt; following<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ (BlockName-A).<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ But it got
unreadable data to write lps.log as following.<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ How can i get
'readable' log on lps.log ?<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ &lt;checking code
on FileUtils.java&gt;<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ public static int
sendToStream(InputStream input,
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ OutputStream
output, int size)<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ throws IOException {<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ int c = 0;
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ byte[] buffer = new
byte[size];<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ int b = 0;<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ while(true) {
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ try {<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ // Until end of
stream<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ if ((b =
input.read(buffer)) &lt;= 0) {
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ return c;<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ }<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ } catch
(IOException e) {<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ throw new
StreamReadingException(
e.getMessage());<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ }<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ c += b;<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ try {<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/
output.write(buffer, 0, b);<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ //=== adding from
here BlockName-A<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ {
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ String aString =
new String(buffer, "UTF-8");<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ mLogger.debug(
"OUTPUT: " + aString );<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&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;&gt;&gt;&gt;&gt;&gt;/ Thanks any advance.
    <br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;/ Keiji Ono<br>
&gt;&gt; /&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;<br>
    <br>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
Henry Minsky<br>
Software Architect<br>
  <a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br>
  <br>
</blockquote>
</body>
</html>