How can I pass XML data in a POST to a REST Web Service

I have web service that takes in XML data with an HTTP POST in the following format:

<Object>

      <Property1>Value</Property1>

      <Property2>Value</Property2>

</Object>

How would I go about sending that from Verivo? I created an element in the following format in the XML schema for the service definition, but it doesn't seem to be working for me, and I haven't been able to find any documentation....

<requesttemplate>
     <![CDATA[
          <Object>
                <Property1>#Property1#</Property1>
                <Property2>#Property2#</Property2>
          </Object>
      ]]>
</requesttemplate>

Am I missing something in there, is this even possible? I've seen examples of using the POST headers, which I could do, but it would require rewriting a lot of existing code, so I'm hoping I can use this method.

Thanks for the help!

Paul


 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk