You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by michel <co...@videotron.ca> on 2002/12/09 02:11:57 UTC

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;
  }







Axis Buggy?

Posted by michel <co...@videotron.ca>.
I've been trying to use Axis for about a week now, and I'm frankly
disappointed in what appears to be a highly unreliable software. I will run
an application twice, and while it runs the second time fine, the first time
it threw an exception. Another application worked fine for a while, now it
doesn't. How does Axis stack up against Wasp or Glue? I'm pretty well fed up
with Axis and am ready to try one of the above.


Thanks for any response!!!


Axis Buggy?

Posted by michel <co...@videotron.ca>.
I've been trying to use Axis for about a week now, and I'm frankly
disappointed in what appears to be a highly unreliable software. I will run
an application twice, and while it runs the second time fine, the first time
it threw an exception. Another application worked fine for a while, now it
doesn't. How does Axis stack up against Wasp or Glue? I'm pretty well fed up
with Axis and am ready to try one of the above.


Thanks for any response!!!


Re: Passing a Class File Content

Posted by Scott Nichol <sn...@scottnichol.com>.
You cannot send binary data as a string.  You should something like
byte[] instead.

Scott Nichol

----- Original Message -----
From: "michel" <co...@videotron.ca>
To: <so...@xml.apache.org>
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:
<ma...@xml.apache.org>
> For additional commands, e-mail:
<ma...@xml.apache.org>
>
>


Re: Passing a Class File Content

Posted by Scott Nichol <sn...@scottnichol.com>.
You cannot send binary data as a string.  You should something like
byte[] instead.

Scott Nichol

----- Original Message -----
From: "michel" <co...@videotron.ca>
To: <so...@xml.apache.org>
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:
<ma...@xml.apache.org>
> For additional commands, e-mail:
<ma...@xml.apache.org>
>
>