Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (24 sloc) 430 Bytes
package gosoap
import (
// Soap Request
type Request struct {
Method string
Params Params
func NewRequest(m string, p Params) *Request {
return &Request{
Method: m,
Params: p,
type RequestStruct interface {
SoapBuildRequest() *Request
func NewRequestByStruct(s RequestStruct) (*Request, error) {
if s == nil {
return nil, fmt.Errorf("'s' cannot be 'nil'")
return s.SoapBuildRequest(), nil
You can’t perform that action at this time.