Skip to content

Latest commit

History

45 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

soapor

SOAPor is a java SOAP client.

Build Status

  • Build a payload based on template and a map
  • Send the payload to a web service and get response
  • Extract the response result by XPath

The mvn dependency:

<dependency>
<groupId>com.github.sinall</groupId>
<artifactId>soapor-core</artifactId>
<version>1.1.3</version>
</dependency>
<dependency>
<groupId>com.github.sinall</groupId>
<artifactId>soapor-matchers</artifactId>
<version>1.1.3</version>
</dependency>

Usage:

Basic usage:
importcom.github.sinall.soapor.*;
// ...SOAPParametersparams = newSOAPParameters();
params.put("param1", "123");
SOAPRequestrequest = SOAPRequest.getInstance("com/github/sinall/soapor/payload/example.xml", params);
log.info("Request soap message to {}:\n{}", endpoint, request);
SOAPClientclient = newSOAPClient(endpoint);
SOAPResponseresponse = client.send(request);
log.info("Response soap message:\n{}", response);
Matcher:
SOAPMessagesoapMessage = SOAPMessageFactory.create("com/github/sinall/soapor/payload/example.xml");
assertThat(soapMessage, hasValueInXPath("/Envelope/Body/doubleAnInteger/param1", "123"));

About

SOAPor is a java SOAP client.

Resources

Stars

3 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages