axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arnie Chien" <ach...@knfbreader.com>
Subject problem with upload to REST-enabled service
Date Thu, 04 Sep 2008 21:19:37 GMT
Hi,
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>
    <description/>
    <operation name="getVC">
            <parameter name="RESTMethod">POST</parameter>
            <parameter name="RESTLocation">getVC</parameter>
    </operation>
</service> 

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 *
axis2_KIPSvc_getVC(
    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: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Mime
View raw message