axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arnie Chien" <>
Subject problem with upload to REST-enabled service
Date Thu, 04 Sep 2008 21:19:37 GMT
I'm trying to upload an image to an axis2c server.  The image is handled by
a service which is REST-enabled (modeled after the echo sample).  The
services.xml is

<service name="KIPSvc">
    <parameter name="ServiceClass" locked="xsd:false">KIPSvc</parameter>
    <operation name="getVC">
            <parameter name="RESTMethod">POST</parameter>
            <parameter name="RESTLocation">getVC</parameter>

The client is written in Java, but does not use the axis2 API; it just
constructs a POST request using the java HttpConnection class.  (My
understanding of REST is that this should be okay.)  It sets content-type to
text/xml, and sends the image data as a sequence of bytes.

Processing gets into the service dll, such that the getVC operation

axiom_node_t *
    const axutil_env_t * env,
    axiom_node_t * node)

is called.  But the "node" argument is null.  Could someone could tell me
what the problem might be?  Many thanks in advance- 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message