Skip to content

FlocoApps/soap-on-a-rope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

soap-on-a-rope

A Go package designed to make your experiences with SOAP a little lesss unpleasant.

Features

  • SOAP Client support for TLS and basic auth
  • Service oriented design

Example

import (
	"fmt"
	"github.com/FlocoApps/soap-on-a-rope"
)

...

reqTemplate := rope.StdEnvelope(AvailabilityRequestTemplate)
	bodyString := fmt.Sprintf(reqTemplate, accessCode)
	url := PreProductionURL + AvailabilityService
	auth := &rope.BasicAuth{
		Username: "UserID",
		Password: "Password",
	}

	soap := &rope.SoapClient{
		UseTLS: true,
		Auth:   auth,
	}

	responseString, err := soap.SendRequest(bodyString, url)
	if err != nil {
		fmt.Println(err)
	} else {
		fmt.Println(responseString)
	}

About

Go package for working with SOAP services

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages