Skip to content

Commit

Permalink
test: wsdl without types
Browse files Browse the repository at this point in the history
  • Loading branch information
tiaguinho committed Jul 2, 2020
1 parent 9d3097d commit 9ad5306
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions encode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,20 @@ func TestClient_MarshalXML2(t *testing.T) {
}
}

func TestClient_MarshalXML3(t *testing.T) {
soap, err := SoapClient("https://kasapi.kasserver.com/soap/wsdl/KasAuth.wsdl", nil)
if err != nil {
t.Errorf("error not expected: %s", err)
}

for _, test := range mapParamsTests {
_, err = soap.Call("checkVat", test.Params)
if err == nil {
t.Errorf(test.Err)
}
}
}

func TestSetCustomEnvelope(t *testing.T) {
SetCustomEnvelope("soapenv", map[string]string{
"xmlns:soapenv": "http://schemas.xmlsoap.org/soap/envelope/",
Expand Down

0 comments on commit 9ad5306

Please sign in to comment.