Methods Summary |
---|
public void | testAxisFaultIsXML()axis faults.
WebRequest request = new GetMethodWebRequest(url
+ "/EchoHeaders.jws");
request.setParameter("method", "throwAxisFault");
request.setParameter("param", "oops!");
expectErrorCode(request, 500,
"<faultcode>soapenv:Server.generalException</faultcode>");
|
public void | testEchoHeaders()
WebRequest request = new GetMethodWebRequest(url + "/EchoHeaders.jws");
assertStringInBody(request, "Web Service");
|
public void | testEchoHeadersEcho()send an echo with a space down
WebRequest request = new GetMethodWebRequest(url
+ "/EchoHeaders.jws");
request.setParameter("method","echo");
request.setParameter("param", "foo bar");
assertStringInBody(request, "foo bar");
|
public void | testEchoHeadersList()do we get a list of headers back?
WebRequest request = new GetMethodWebRequest(url
+ "/EchoHeaders.jws");
request.setHeaderField("x-header","echo-header-test");
request.setParameter("method", "list");
assertStringInBody(request, "echo-header-test");
|
public void | testEchoHeadersWhoami()see that we get a hello back
WebRequest request = new GetMethodWebRequest(url
+ "/EchoHeaders.jws");
request.setParameter("method", "whoami");
assertStringInBody(request, "Hello");
|
public void | testEchoHeadersWsdl()
WebRequest request = new GetMethodWebRequest(url + "/EchoHeaders.jws?wsdl");
assertStringInBody(request, "<wsdl:definitions");
|
public void | testExceptionIsXML()exceptions are user faults
WebRequest request = new GetMethodWebRequest(url
+ "/EchoHeaders.jws");
request.setParameter("method", "throwAxisFault");
request.setParameter("param", "oops!");
expectErrorCode(request, 500,
"<faultcode>soapenv:Server.userException</faultcode>");
|
public void | testMissingJWSRaisesException()we throw an error on missing JWS pages
WebRequest request = new GetMethodWebRequest(url
+ "/EchoHeaders-not-really-there.jws");
expectErrorCode(request,404, "No service");
|
public void | testStockQuote()
WebRequest request = new GetMethodWebRequest(url+"/StockQuoteService.jws?wsdl");
assertStringInBody(request,"<wsdl:definitions");
|