S
steven shingler
[Note: parts of this message were removed to make it a legal post.]
Hi all,
I have a little bit of code which uses the WSDLDriverFactory library:
class Swrapper
def initialize(wsdl)
wsdl = SOAP::WSDLDriverFactory.new(wsdl)
@soap = wsdl.create_rpc_driver
end
def send_soap(method, params)
@soap.send("#{method}", params)
end
end
But, I can't figure out how to add stuff into the header of the soap message
- like this:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:bet="http://www.example.com/namespace/xsd/webservice">
<soapenv:Header>
<ticket:identity>
<ticket:id>3</bet:id>
<ticket:code>test</ticket:code>
<ticket
assword>password</ticket
assword>
</ticket:identity>
</soapenv:Header>
<soapenv:Body>
<ticket:title>
<ticket:summary>1</ticket:summary>
</ticket:title>
</soapenv:Body>
</soapenv:Envelope>
If anyone's used this library and knows, please shout!
Thanks all
Steven
Hi all,
I have a little bit of code which uses the WSDLDriverFactory library:
class Swrapper
def initialize(wsdl)
wsdl = SOAP::WSDLDriverFactory.new(wsdl)
@soap = wsdl.create_rpc_driver
end
def send_soap(method, params)
@soap.send("#{method}", params)
end
end
But, I can't figure out how to add stuff into the header of the soap message
- like this:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:bet="http://www.example.com/namespace/xsd/webservice">
<soapenv:Header>
<ticket:identity>
<ticket:id>3</bet:id>
<ticket:code>test</ticket:code>
<ticket
</ticket:identity>
</soapenv:Header>
<soapenv:Body>
<ticket:title>
<ticket:summary>1</ticket:summary>
</ticket:title>
</soapenv:Body>
</soapenv:Envelope>
If anyone's used this library and knows, please shout!
Thanks all
Steven