wsdl

package
v0.0.0-...-9243753 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package wsdl parses Web Service Definition Language documents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Definition

type Definition struct {
	Doc      string
	Ports    []Port
	Message  map[xml.Name]Message
	TargetNS string
}

A Definition contains all information necessary to generate Go code from a wsdl document.

func Parse

func Parse(data []byte) (*Definition, error)

Parse reads the first WSDL definition from data.

func (*Definition) String

func (def *Definition) String() string

type Message

type Message struct {
	Name  xml.Name
	Parts []Part
}

A Message is a set of zero or more parameters for WSDL operations.

func (*Message) String

func (m *Message) String() string

type Operation

type Operation struct {
	Doc           string
	SOAPAction    string
	Name          xml.Name
	Input, Output xml.Name
}

An Operation describes an RPC call that can be made against the remote server. Its inputs, outputs and transport information are parsed from the WSDL definition. Many Operations can be defined for a single endpoint.

type Part

type Part struct {
	Name          string
	Type, Element xml.Name
}

A Part describes the name and type of a parameter to pass to a WSDL endpoint.

type Port

type Port struct {
	Name, Address, Method string
	Operations            []Operation
}

A Port describes a set of RPCs and the address to reach them.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL