Subdialog - 405 Method Not Allowed

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

  • Author
  • Message


  • Posts: 53
  • Joined: Wed May 13, 2015 7:46 pm

Subdialog - 405 Method Not Allowed

PostTue Feb 06, 2018 2:03 pm

Hi Plum

I am getting 405 Method not allowed error when using <subdialog> tag with raw method.
Can you please help? Thanks.

HTTP/1.1 405 Method Not Allowed - ... ml/API.xml
DocumentParser::FetchBuffer - could not open URL: ... ml/API.xml
DocumentParser::FetchDocument - exiting with error result 2
errno: 203 uri ... ml/API.xml

I have pasted the code I am using below

Code: Select all
               var uKey = "\"" + getUniqueKey() + "\"";
               var headers = {"requestId": uKey, "MerchantId":"60300004053"};
               var JSONRequest = {
               "header": headers,
               "body": {
                  "cardNumber": card_Number,
                  "expirationMonth": expirationMonth,
                  "expirationYear":  expirationYear,
                  "securityCode": cvv2,
      <log expr="'*****Before API Call*****' + JSON.stringify(JSONRequest)"/>
      <subdialog name="verifyCard" method="raw" enctype="application/json" rawexpr="JSON.stringify(JSONRequest)" srcexpr="apiServer"/>
         <log expr="'*****After API Call*****' + JSON.stringify(verifyCard)"/>
         Hello <value expr="verifyCard.JSONResponse.transactionId"/>.


  • Posts: 3544
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: Subdialog - 405 Method Not Allowed

PostTue Feb 06, 2018 3:28 pm


When you use method="raw" that will ultimately create an HTTP POST request from our platform. The "HTTP/1.1 405 Method Not Allowed" error is coming from your web server and it indicates that your server / script does not allow a POST request. You should double check to make sure that the script is configured to accept an HTTP POST to avoid this error.

Please let us know if this does not resolve your issue.

Plum Support

Return to Plum DEV Q&A

Who is online

Users browsing this forum: No registered users and 1 guest