You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First off I'd like to say a big thank you to the makers of this package, your work has helped save my a lot of time in setting up my soap server and client.
However when using the client, to make a call (i.e. client.Call(...)) I get a This is not a SOAP-Message error even when sending valid XML envelopes. I did some digging around and I found this line of code below in the client.go file:
if !(strings.Contains(string(rawbody), "<soap") || strings.Contains(string(rawbody), "<SOAP")) {
l("This is not a SOAP-Message: \n" + string(rawbody))
return nil, errors.New("This is not a SOAP-Message: \n" + string(rawbody))
}
This checks to see if the incoming SOAP envelope has either a "<soap"or "<SOAP" tag anywhere in the response envelope.
I'd like to know first of all why this is important to check for, as some of SOAP envelopes do not contain a soap prefix at all, as see in this example below:
Hi, the check is indeed a bit sloppy. However, if I am not mistaken your xml is not valid SOAP since it's not using the SOAP namespace. If you need a quick solution I would suggest that you just create a fork and adjust it to your needs since we have no capacity right now to dig into this deeper.
First off I'd like to say a big thank you to the makers of this package, your work has helped save my a lot of time in setting up my soap server and client.
However when using the client, to make a call (i.e.
client.Call(...)
) I get aThis is not a SOAP-Message
error even when sending valid XML envelopes. I did some digging around and I found this line of code below in theclient.go
file:This checks to see if the incoming SOAP envelope has either a "<soap"or "<SOAP" tag anywhere in the response envelope.
I'd like to know first of all why this is important to check for, as some of SOAP envelopes do not contain a soap prefix at all, as see in this example below:
And also can this be removed? so that Envelopes as given in the example below can be parsed as well.
Thank you very much
The text was updated successfully, but these errors were encountered: