-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command payload wants a xmlns
attribute.
#123
Comments
@fiorix the simplest solution is to add this on all the generated command types: // Command
type Command struct {
+ ActionNamespace string `xml:"xmlns,attr,omitempty"`
CommandArg *string `xml:"CommandArg,omitempty" json:"CommandArg,omitempty" yaml:"CommandArg,omitempty"`
} This way, the user can just set the fields they want when calling the command. example: res, err := Client.Command(&smsprows.Command{
+ ActionNamespace: "https://mosano.eu",
CommandArg: true,
}) |
Or, you can also add a struct that gets extended by all the Action structs so the users can set a config file on the side with all the attributes they want to set. :D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have an issue where the tag after the
<soap:Body>
tag requires axmlns
attribute.Currently the request begins like the following:
However the following is required
My current work around:
Is there any other way of doing this that would work on requests that are available?
The text was updated successfully, but these errors were encountered: