In this context: is that true that if we create
a String object with a String literate like this:

        String strObj = "d89dnd^0d0d%%%</myXMLtag>";

which contains arbitrary characters (but all are typed into),
then it is developer's responsibility to make sure that
all the characters used are legal XML characters, or
they are indeed characters and we do not need to worry about whether
they are valid XML characters or not?

Thanks,


-----Original Message-----
From: Scott Nichol [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 09, 2002 10:20 AM
To: [EMAIL PROTECTED]
Subject: Re: Passing a Class File Content


You cannot send binary data as a string.  You should something like
byte[] instead.

Scott Nichol

----- Original Message -----
From: "michel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 08, 2002 8:11 PM
Subject: Passing a Class File Content


> I'm trying to send the content of a java class file  to a server
through a
> SOAP request (as an XMLType.XSD_STRING");
>  but I'm getting the following error:
>
> "org.xml.sax.SAXParseException: An invalid XML character (Unicode:
0x0) was
> found in the element content of the document"
>
>
>
> Is there some way of encoding the request to avoid the problem?
>
>
>
> Thanks for any response!!
>
>
>
>  /**  sends the content of a class file as a   XMLType.XSD_STRING **/
>   public final String upload(String content,String path) throws
Exception {
>     call.setOperationName(new QName("Admin","upload"));
>     call.setReturnType(XMLType.SOAP_STRING);
>
>
call.addParameter("content",XMLType.XSD_STRING,ParameterMode.PARAM_MODE_
IN);
>     this.response = (String) call.invoke(new Object[]{content});
>     call.removeAllParameters();
>     return response;
>   }
>
>
>
>
>
>
>
> --
> 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]>

Reply via email to