The method I called is public HitList search (Vector criteria); where input argument is a vector of Criterion class object. The return is a HitList object which in turn contains a vector of Hit object. I attached all three class files to this email.
I searched and found many people have reported this problem, but mostly they discussed this at XML parsing level. The best discussion I found is this: http://www.biglist.com/lists/xsl-list/archives/200104/msg01485.html but I could not find any reply that gives an answer. Some suggested that parser is too old but one of the person who has similiar issue said they have tested with xerces 2.0 but it still did not work. I tested also with xerces 2.0, also did not work. Some suggested that the JavaBean passing should not contain any null pointer but this is not cure for me. Interesting thing is that if I call search(), getdoc(), logon(), search(), then I have no problem. but if I call search(), getdoc9), search(), then search reported error. So it seems to be related to saerch() method. I also put the Java class that provides the server to this email, and the client side code that access the service. Thanks. -----Original Message----- From: Scott Nichol [mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 1:21 PM To: [EMAIL PROTECTED] Subject: Re: An invalid XML character (Unicode: 0x1) What is being returned from the server? The error looks like the client encounters the character while reading the server's response. Scott Nichol ----- Original Message ----- From: "Jian Zhang" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 04, 2002 1:09 PM Subject: RE: An invalid XML character (Unicode: 0x1) > > I pass in my code byte[] and I got the base64 encoded data in the TunnelGui > program. > > Thanks. Jian > > > -----Original Message----- > From: Scott Nichol [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 04, 2002 11:34 AM > To: [EMAIL PROTECTED] > Subject: Re: An invalid XML character (Unicode: 0x1) > > > If you are sending image data, you should send it as a byte[] parameter. > The serializer for that type will use Base64 encoding. > > Scott Nichol > > ----- Original Message ----- > From: "Jian Zhang" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, October 03, 2002 2:53 PM > Subject: RE: An invalid XML character (Unicode: 0x1) > > > > > > The image that I sent is actually using base64. > > > > How do I wrap the data with cdata? The XML is generated by the soap > > implementation > > automatically, right? > > > > Thanks, > > > > > > > > > > -----Original Message----- > > From: James Black [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, October 02, 2002 3:47 PM > > To: [EMAIL PROTECTED] > > Subject: Re: An invalid XML character (Unicode: 0x1) > > > > > > Jian Zhang wrote: > > > > > Caught SOAPException (SOAP-ENV:Client): Parsing error, response was: > > > An invalid XML character (Unicode: 0x1) was found in the element > content > > of > > > the > > > > This is a guess, but you may need to have the bytes that make up the > image > > be > > within a cdata tag, or use base64 encoding. > > Most likely there is a character that is inside the image that has a > > different meaning to XML. > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
HitList.java
Description: Binary data
Hit.java
Description: Binary data
Criterion.java
Description: Binary data
SoapFacade.java
Description: Binary data
ODClient.java
Description: Binary data
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>