I have to make a pseudo-REST call to a URL within our enterprise.  The required 
POST data is somewhat "mutant".  It needs to look like the following:
--------------
xmlMessage=<message type=\"contact.send.message\" id=\"$FROM_USERID\" 
password=\"$FROM_PASSWORD\" contactId=\"$TO\"> <statement from=\"$FROM_USERID\" 
to=\"$TO\" text=\"$MSG\" type=\"meeting\"/></message>
--------------

It's mostly XML, but it needs to begin with "xmlMessage=".  Since I'm doing 
this in a CXF-based JAX-RS REST service, I figure I should use the facilities 
already provided, being the JAX-RS ClientBuilder, but I can't figure out how to 
just send plain text.

Can someone show me the required pieces to do this?

Reply via email to