Hello,
I would like to be able to create a service with optional url parameters.
The use of url parameters is possible but does not allow the optional character of the parameters.
If I define my service as well
<rest:operation name="adresse:RechercherAdresses">
<rest:http-method>GET</rest:http-method>
<rest:path-template>/</rest:path-template>
<rest:http-body-type>none</rest:http-body-type>
<rest:xml-template>
<adresse:rechercher>
<ligneAdresse>{texte}</ligneAdresse>
<nomCommune>{commune}</nomCommune>
<codePostal>{cp}</codePostal>
<coorX>{x}</coorX>
<coorY>{y}</coorY>
<type>{type}</type>
</adresse:rechercher>
</rest:xml-template>
With the following URL /?texte=xx&type=zz
the result will be
<adresse:rechercher>
<ligneAdresse>xx</ligneAdresse>
<nomCommune>{commune}</nomCommune>
<codePostal>{cp}</codePostal>
<coorX>{x}</coorX>
<coorY>{y}</coorY>
<type>zz</type>
</adresse:rechercher>
The goal is to have at least
<adresse:rechercher>
<ligneAdresse>xx</ligneAdresse>
<nomCommune></nomCommune>
<codePostal></codePostal>
<coorX></coorX>
<coorY></coorY>
<type>zz</type>
</adresse:rechercher>
attached a diff to achieve this feature.
Thank you