Showing results for 
Search instead for 
Did you mean: 

Unsupported HTTP Method: PUT

Regular Visitor

Unsupported HTTP Method: PUT


I am using SOAPUI Open Source 5.5.0 for both windows and linux environment.

I have created a mock response service on my windows machine and using DISPATCH as SCRIPT.

I have defined two responses depending on parameter in request.I have tested this on the windows machine and it is working fine.

However when I export this project and run this in linux environment using ./ -m.

Now when I fire a request with HTTP PUT method,I am receiving an exception com.eviware.soapui.impl.wsdl.mock.DispatchException: Unsupported HTTP Method: PUT.

Can I get some clue as of why I am receiving this exception.

Below is the script code:

import javax.xml.xpath.*
import groovy.xml.StreamingMarkupBuilder
import groovy.lang.Binding;
import groovy.lang.Script;
def util = new context )
def xml = new XmlSlurper().parseText(mockRequest.requestContent)
def country = xml.Body.Set.MOAttributes.SetSubscription.api_code
def str = country.toString()
def resultingResponse = "none" str
//def len = str.size()
// len
if(str == "5300")
//context.ResultResponse = 'Response2'
resultingResponse = 'Response1' "r1"
else if(str != "5300")
resultingResponse = 'Response2' "r2"
context.ResultResponse = resultingResponse


Below is the full exception log:

2019-12-11 06:48:46,627 ERROR [errorlog] com.eviware.soapui.impl.wsdl.mock.DispatchException: Unsupported HTTP Method: PUT
com.eviware.soapui.impl.wsdl.mock.DispatchException: Unsupported HTTP Method: PUT
at com.eviware.soapui.impl.wsdl.mock.WsdlMockDispatcher.dispatchRequest(
at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchRequest(
at com.eviware.soapui.monitor.JettyMockEngine$ServerHandler.handle(
at org.mortbay.jetty.handler.HandlerCollection.handle(
at org.mortbay.jetty.handler.HandlerWrapper.handle(
at org.mortbay.jetty.Server.handle(
at org.mortbay.jetty.HttpConnection.handleRequest(
at org.mortbay.jetty.HttpConnection$RequestHandler.content(
at org.mortbay.jetty.HttpParser.parseNext(
at org.mortbay.jetty.HttpParser.parseAvailable(
at org.mortbay.jetty.HttpConnection.handle(
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$

New Here?
Join us and watch the welcome video:
Top Kudoed Authors