doedje / jquery.soap

This script uses $.ajax to send a SOAP:Envelope. It can take XML DOM, XML string or JSON as input and the response can be returned as either XML DOM, XML string or JSON too.
352 stars 147 forks source link

update to add optional WS-security header to the soap envelope #10

Closed headwinds closed 11 years ago

headwinds commented 11 years ago

I've provided an optional securityHeader configuration if one requires that WS-Security header - simple pass null or don't define if you don't need it

I created a demos folder to demo both the original "simple" example and the new "security" example which would allow future demos too ;-D

I've also updated the logging in the response to be a bit more descriptive - instead of "a" and "c", I've replaced them with xmlResponse and objectResponse - I ran into an issue where I needed to know what was failing and found that helpful

doedje commented 11 years ago

Ah, you already did some coding.... I will review it as soon as I can, bit of a deadline right now....

doedje commented 11 years ago

Don't get me wrong here, I really appreciate the effort. But I rather implement this the way I described in issue #9 The way you did it the header won't show up yet in the request callback (at least, that's what I expect from reading your code) and the header won't be added when the params that are put in are already wrapped with an envelope (but the question could be if that would be a bad thing....)

But for now I'll close this issue and are looking forward to continue the discussion in issue #9