W
Wes Shaddix
------=_NextPart_000_0027_01C5DA34.99A48DE0
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: 7bit
I'm trying to create a simple SOAP client in Ruby and up to this point have
been unsuccessful. Here is my code and the output. I a new to Ruby so if
there is anything else I can offer to get more assistance let me know.
require 'soap/rpc/driver'
class CustomerController < ApplicationController
ENDPOINT = "http://xxx/MyWebService/"
NAMESPACE = "http://myserver.com/namespace"
def create
end
def save_customer
soapProxy = SOAP::RPC:river.new(ENDPOINT,
NAMESPACE)
soapProxy.add_method('ContactNew')
soapProxy.add_method('ContactSave', 'contact')
contact = soapProxy.ContactNew
contact.FirstName = "Wes"
contact.LastName = "Shaddix"
contactKey = soapProxy.ContactSave(contact)
redirect_toaction => "create")
end
end
OUTPUT
SOAP:ostUnavailableError in Customer#save_customer
405: Method Not Allowed
------=_NextPart_000_0027_01C5DA34.99A48DE0--
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: 7bit
I'm trying to create a simple SOAP client in Ruby and up to this point have
been unsuccessful. Here is my code and the output. I a new to Ruby so if
there is anything else I can offer to get more assistance let me know.
require 'soap/rpc/driver'
class CustomerController < ApplicationController
ENDPOINT = "http://xxx/MyWebService/"
NAMESPACE = "http://myserver.com/namespace"
def create
end
def save_customer
soapProxy = SOAP::RPC:river.new(ENDPOINT,
NAMESPACE)
soapProxy.add_method('ContactNew')
soapProxy.add_method('ContactSave', 'contact')
contact = soapProxy.ContactNew
contact.FirstName = "Wes"
contact.LastName = "Shaddix"
contactKey = soapProxy.ContactSave(contact)
redirect_toaction => "create")
end
end
OUTPUT
SOAP:ostUnavailableError in Customer#save_customer
405: Method Not Allowed
------=_NextPart_000_0027_01C5DA34.99A48DE0--