What you have is looking for a POST
that is XML. As per the source,
it gets passed through A trait that defines the TestPost extractor. Is the request a POST, has JSON or XML data in the post body and something that expects JSON or XML in the response.
I'm not sure if you are just making the request or if you are actually sending data. But, assuming you are just making a post request, I would try posting XML in the body. Otherwise, you could try rewriting the rule using Post
instead of XmlPost
like:
case Post("api" :: "validate" :: Nil, req) =>
<system>
<id>TEST</id>
<name>PILOT</name>
<version>1</version>
<ip_address>192.168.2.18</ip_address>
<connector>
<id>UPD</id>
</connector>
</system>