Compose Post request using Fiddler to send xml string

2 posts, 0 answers
  1. Vinod
    Vinod avatar
    1 posts
    Member since:
    Feb 2012

    Posted 30 Jul 2014 Link to this post


    I am trying to test a ASP.NET Webapi method using fiddler. I have a method which accepts XML in the form of a string parameter. I know its not a good design, but I am in the process of porting a legacy WCF implementation to Webapi and initially I have to keep the method signature as is and then eventually I can make it to follow a better design. Anyway, so here is my method signature.

    public int CreatePGT([FromBody] string pgtXml, [FromUri] string transactionId)
         return 10; // Some processing happens and actual implementation returns an id

    How can I compose a request using following URL http://localhost:62050/api/proposal/CreatePGT?transactionId=ttt and post the following xml string in request body
    <?xml version="1.0" encoding="UTF-8" ?><PGT  xmlns:xsi="" xsi:noNamespaceSchemaLocation="pgt.xsd">
    <title>Test Proposal</title></PGT> 

  2. Eric Lawrence
    Eric Lawrence avatar
    832 posts

    Posted 30 Jul 2014 Link to this post

    Hi, Vinod-- I think you're looking for something like this:

    Eric Lawrence

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top