Skip to content

storebrand/shampoo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shampoo

A simple SOAP client. This support both SOAP 1.1 and SOAP 1.2.

Make sure you create the request using the correct version.

Status

Maven Central

Community

Adopters

Are you using shampoo? Please consider opening a pull request to list your organization here:

  • Storebrand
  • Your Organization here

Example

package org.example;

import no.storebrand.shampoo.*;
import no.storebrand.shampoo.jdk.UrlConnectionSoapClient;

import static JDOM2Utils.*;

public class Main {
    public static void main(String[] args){        
        SoapClient client = new UrlConnectionSoapClient(URI.create(String.format("http://example.com/echo", port)));
        Result<SoapFault, SoapDocument> result = client.execute(SoapRequest.soap11(
                new SoapBody(elem("echo", "value")),
                java.util.Collections.emptyList(),
                SoapAction.of("http://example.com/echo")                 
        ));      
        
        //use result
    }
}

Maven

<dependency>
  <groupId>no.storebrand.shampoo</groupId>
  <artifactId>shampoo</artifactId>
  <version>VERSION</version>
</dependency>

Gradle

compile 'no.storebrand.shampoo:shampoo:VERSION'

SBT

libraryDependencies += "no.storebrand.shampoo" % "shampoo" % "VERSION"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages