Adding namespaces to Envelope #23

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@ennui2342

Hi,

I made this change as I am using node-soap to access Exchange web services. In my case each element in the message needs to be namespaced and there is no overall wrapping element. ie this is for setting the out of office message by calling SetUserOofSettings:

{
"t:Mailbox": {
"t:Address": "me@example.com"
},
"t:UserOofSettings": {
"t:OofState": "Disabled",
"t:ExternalAudience": "All",
"t:InternalReply": {
"t:Message": "I have left the building"
},
"t:ExternalReply": {
"t:Message": "How may I help you?"
}
}
}

As you can see I have added support for indicating the namespace in the element name which is then pulled from the wsdl into the Envelope. I'm not sure if this is the right way to do this, I'm no expert on SOAP, but you or others might find this useful.

-Mark

@aheckmann
Collaborator

Closing due to it being unmergeable and missing tests. Please reopen after a rebase and tests are added. Thank you.

@aheckmann aheckmann closed this Jan 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment