/** * Set a XML to this request. * The <tt>Content-Type</tt> header of the request is set to <tt>application/xml</tt>. * @param xml the XML */ public RequestBuilder bodyXml(InputSource xml) { return body(new AnyContentAsXml(scala.xml.XML.load(xml)), "application/xml"); }
/** * Set a XML to this request. * The <tt>Content-Type</tt> header of the request is set to <tt>application/xml</tt>. * The method is set to <tt>POST</tt>. * @param xml the XML * @return the Fake Request */ public FakeRequest withXmlBody(InputSource xml) { return withAnyContent(new AnyContentAsXml(scala.xml.XML.load(xml)), "application/xml", Helpers.POST); }