multipart-binary-wadl.xml 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. <?xml version="1.0"?>
  2. <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xmlns="http://research.sun.com/wadl/2006/10"
  4. xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  5. xsi:schemaLocation="http://research.sun.com/wadl/2006/10/wadl.xsd">
  6. <resources base="http://www.example.com/">
  7. <resource path="" type="#service-root"/>
  8. </resources>
  9. <resource_type id="service-root">
  10. <method name="POST" id="service-root-operation">
  11. <request>
  12. <representation mediaType="multipart/form-data">
  13. <param style="plain" name="text_field" required="true" />
  14. <param style="plain" name="optional_field" />
  15. <param style="plain" name="binary_field" type="binary"
  16. required="true" />
  17. </representation>
  18. </request>
  19. </method>
  20. <method name="POST" id="mystery-operation">
  21. <request>
  22. <representation mediaType="text/unknown">
  23. <param style="plain" name="field" required="true" />
  24. </representation>
  25. </request>
  26. </method>
  27. </resource_type>
  28. </application>