Skip to content

Instantly share code, notes, and snippets.

@dnet
Created June 12, 2011 18:20
Show Gist options
  • Save dnet/1021840 to your computer and use it in GitHub Desktop.
Save dnet/1021840 to your computer and use it in GitHub Desktop.
SUDS: PasswordText without nonce and created
POST /?wsdl HTTP/1.1
Accept-Encoding: identity
Content-Length: 757
Soapaction: "say_hello"
Host: 127.0.0.1:15100
User-Agent: Python-urllib/2.7
Connection: close
Content-Type: text/xml; charset=utf-8
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:ns0="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="tns" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header><wsse:Security mustUnderstand="true"><wsse:UsernameToken><wsse:Username>foo</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">bar</wsse:Password></wsse:UsernameToken></wsse:Security></SOAP-ENV:Header><ns0:Body><ns1:say_hello><ns1:name>world</ns1:name><ns1:times>3</ns1:times></ns1:say_hello></ns0:Body></SOAP-ENV:Envelope>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment