Skip to main content


 

Symptoms


When calling the "Create" method on a particular SmartObject Web Service, a "The remote server returned an error: (405) Method Not Allowed" error is displayed.
 

Diagnoses


The create SmartObject web service method was called using client?s test code and the error was displayed. The SmartObject was executed successfully using the SmartObject tester tool.
The specific SmartObject was opened in K2 Designer and the individual methods was verified. It was found in the Method Details that the Type was configured incorrectly.
 

Resolution

The SmartObject method Types were verified and the Type was set to match the method
?Create? Method ? Create Type, ?Read? Method ? Read Type, etc.

The correct HTTP method (POST) was then used to call the Create SMO method and it worked correctly.

For more information on SmartObject Web Service HTTP Methods, please see the following article:
http://help.k2.com/onlinehelp/k2blackpearl/devref/current/default.htm#REST_Services2.html




 
Be the first to reply!

Reply