2
1
0

We have been building our Groovy layer to interface UI and the Service layer using TM 4.3

We had an use case to send xml data as a list of type "application/x-www-form-urlencoded" as an input to a web service.

Hence we used XMLParser to parse the XML, create a list of org.apache.http.NameValuePair and create UrlEncodedFormEntity object with the list and create HttpPost with it. It works.

Now, we are upgrading the Groovy layer to TM 5. Apache HttpClient library are not accessible in Groovy.

Is there a way to create a list from XML as a label value pair in TM 5 Fluent API?

    CommentAdd your comment...

    1 answer

    1.  
      3
      2
      1

      For XML parsing there is a very handy new utility class in the Fluent API called Path. See also:

      Regarding the HTTP functions, have you reviewed the com.avoka.tm.http package in the Fluent API. I believe these classes should give you what you need. See also:

       

      1. Ben Warner

        Hey Sathiyachalam, did this resolve your query?

      CommentAdd your comment...