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]>

Reply via email to