M
Mark A. Richman
soap4r is generating this:
POST /Wahp.Provisioning/User.asmx HTTP/1.1
SOAPAction: "http://affinity.com/Wahp/Provisioning/IsValidLogin"
Content-Type: text/xml; charset=utf-8
Authorization: Basic U0hBUkVEXuaXN0cmF0b3I6JZSQ=
User-Agent: SOAP4R/1.5.5 (/114, ruby 1.8.5 (2006-08-25) [i386-mswin32])
Date: Wed Sep 20 13:44:12 -0400 2006
Content-Length: 437
Host: web001whp001:3250
<?xml version="1.0" encoding="utf-8" ?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Body>
<n1:IsValidLogin xmlns:n1="http://affinity.com/Wahp/Provisioning/">
<n1:username>Username</n1:username>
<n1assword>Password</n1assword>
</n1:IsValidLogin>
</env:Body>
</env:Envelope>
My service expects this:
POST /Wahp.Provisioning/User.asmx HTTP/1.1
Host: web001whp001
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://affinity.com/Wahp/Provisioning/IsValidLogin"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<IsValidLogin xmlns="http://affinity.com/Wahp/Provisioning">
<username>string</username>
<password>string</password>
</IsValidLogin>
</soap:Body>
</soap:Envelope>
What am I doing wrong?
class Test
def initialize()
@driver = Driver.new(URL,NS)
@driver.wiredump_dev = STDOUT
@driver.options["protocol.http.basic_auth"] << [URL, USERNAME,
PASSWORD]
@driver.default_encodingstyle =
SOAP::EncodingStyle::ASPDotNetHandler::Namespace
@driver.add_method_with_soapaction('IsValidLogin',SOAP_ACTION,'username','password')
puts @driver.IsValidLogin("Username","Password")
end
end
- Mark
POST /Wahp.Provisioning/User.asmx HTTP/1.1
SOAPAction: "http://affinity.com/Wahp/Provisioning/IsValidLogin"
Content-Type: text/xml; charset=utf-8
Authorization: Basic U0hBUkVEXuaXN0cmF0b3I6JZSQ=
User-Agent: SOAP4R/1.5.5 (/114, ruby 1.8.5 (2006-08-25) [i386-mswin32])
Date: Wed Sep 20 13:44:12 -0400 2006
Content-Length: 437
Host: web001whp001:3250
<?xml version="1.0" encoding="utf-8" ?>
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Body>
<n1:IsValidLogin xmlns:n1="http://affinity.com/Wahp/Provisioning/">
<n1:username>Username</n1:username>
<n1assword>Password</n1assword>
</n1:IsValidLogin>
</env:Body>
</env:Envelope>
My service expects this:
POST /Wahp.Provisioning/User.asmx HTTP/1.1
Host: web001whp001
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://affinity.com/Wahp/Provisioning/IsValidLogin"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<IsValidLogin xmlns="http://affinity.com/Wahp/Provisioning">
<username>string</username>
<password>string</password>
</IsValidLogin>
</soap:Body>
</soap:Envelope>
What am I doing wrong?
class Test
def initialize()
@driver = Driver.new(URL,NS)
@driver.wiredump_dev = STDOUT
@driver.options["protocol.http.basic_auth"] << [URL, USERNAME,
PASSWORD]
@driver.default_encodingstyle =
SOAP::EncodingStyle::ASPDotNetHandler::Namespace
@driver.add_method_with_soapaction('IsValidLogin',SOAP_ACTION,'username','password')
puts @driver.IsValidLogin("Username","Password")
end
end
- Mark