AnsweredAssumed Answered

Update XML file - Web Request PUT method

Question asked by casaz on Aug 5, 2015
Latest reply on Sep 29, 2015 by cju@evolusys.ch

Hi,

 

I am trying to update an XML file using the Web Request action and PUT method

The XML file lives on a server in IIS

I keep getting a "Method not allowed" error

I have already configured IIS on the remote server to accept PUT (by default from IIS 7.5 it's not allowed)

I feel like I am missing to specify something in the headers but I am not sure what, I have tried using Content-Type as header's name but not sure about the header's value

 

This is the response I get from GET:

 

Response status code: 200

Response content:

<?xml version='1.0'?><ECC><code>SHUTDOWN</code><ChangeTime>5/08/2015 9:33:23 AM</ChangeTime></ECC>

Response headers:

Persistent-Auth=true

Access-Control-Allow-Origin=*

Access-Control-Allow-Headers=Content-Type

Access-Control-Allow-Methods=GET, POST, PUT, DELETE, OPTIONS

Connection=close

Accept-Ranges=bytes

Content-Length=98

Content-Type=text/xml

Date=Thu, 06 Aug 2015 06:42:21 GMT

ETag="d0884ef4dcfd01:0"

Last-Modified=Tue, 04 Aug 2015 23:33:23 GMT

Server=Microsoft-IIS/8.5

X-Powered-By=ASP.NET

Response cookies:

 

This is what I get from PUT

Request failed with status: Method Not Allowed.

 

This is Nintex Workflows 2013 on-prem

Outcomes