axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rune Sindahl">
Subject REST PUT with optional parameters in URL
Date Mon, 24 Oct 2011 14:10:45 GMT
Hi Axis2C user group.


I have been struggling some time figuring out how to fetch the optional
parameters from the URL in a REST PUT request. Originally I had a query
string(key/value-list) in my http payload, but we decided to change this so
we instead receive an XML-payload in the body of the http-request. With the
query string I had no troubles fetching the key/value pairs from both the
URL and the body of the http-request, as this was automatically inserted
into the beginning of the axiom_node_t* that I retrieved all my values from.


The service.xml looks like this:


<operation name="SetBusStopVisits"


    <parameter name="RESTMethod">PUT</parameter>


    <!--BusNo and OriginTime are the optional parameters-->




With the XML-payload it seems different, I simply cannot find the parameters
{BusNo} and {OriginTime} inside the axiom_node_t*. 


Does anyone have any clue about how to fetch these values in a different way
than from the axiom_node_t* ?


Best Regards,

Rune Sindahl



View raw message