pathParams.setParameter( "path", "/StubService" );
pathParams.setParameter( "remoteaddr", "http:test" );
parameterProviders.put( "path", pathParams );
contentGenerator.setParameterProviders( parameterProviders );
MockHttpServletRequest request = new MockHttpServletRequest();
MockHttpServletResponse response = new MockHttpServletResponse();
request.setMethod( "POST" );
request.setRequestURI( "/pentaho/content/ws-run/StubService" );
request.setRequestURL( "http://localhost:8080/pentaho/content/ws-run/StubService" );
request.setRemoteAddr( REMOTE_ADDRESS );
request.setContentType( "application/soap+xml; charset=UTF-8; action=\"urn:getString\"" );
String xml =
"<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv=\"http://www.w3"
+ ".org/2003/05/soap-envelope\"><soapenv:Body><ns2:getString xmlns:ns2=\"http://webservice.pentaho"
+ ".com\"></ns2:getString></soapenv:Body></soapenv:Envelope>";
request.setBodyContent( xml );
pathParams.setParameter( "httprequest", request );
pathParams.setParameter( "httpresponse", response );
try {