axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rune Sindahl">
Subject SV: REST PUT with optional parameters in URL
Date Thu, 27 Oct 2011 07:25:26 GMT
To follow up on my own question I managed to fetch the parameters from the
URL manually by getting the endpoint_ref from the msg_ctx and then retrieve
the URL string that the requester used to access the resource, by calling
axis2_endpoint_ref_get_address(.). Then all that was left to do was to parse
the requested resource apart from the URL-string


Best regards,

Rune Sindahl


Fra: Rune Sindahl [] 
Sendt: 24. oktober 2011 16:11
Emne: REST PUT with optional parameters in URL


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



Ingen virus fundet i denne indkommende meddelelse.
Kontrolleret af AVG -
Version: 9.0.917 / Virusdatabase: 271.1.1/3970 - Udgivelsesdato: 10/23/11

View raw message