I have an existing Rails API using ActionWebService that is used for
billing. I have been given a site written in PHP that accepts billing
information and now needs to submit this information to the
ActionWebService API. I need to know how I can submit billing
information from the PHP site to the Rails ActionWebService. Any
insights on how to make this work (links to other places, other
suggestions, etc.) would be appreciated.
This is the basic wiring of the API:
class CustomerChangeAPI < ActionWebService::API::Base
class ServerResponse < ActionWebService::Struct
member :successful, :bool
member :error_message, :string
end
class NewCustomerResponse < ServerResponse
member :uid, :int
end
class NewCreditCardResponse < ServerResponse
member :cardid, :int
end
…
end
I have an existing Rails API using ActionWebService that is used for
billing. I have been given a site written in PHP that accepts billing
information and now needs to submit this information to the
ActionWebService API. I need to know how I can submit billing
information from the PHP site to the Rails ActionWebService. Any
insights on how to make this work (links to other places, other
suggestions, etc.) would be appreciated.
This is the basic wiring of the API:
Read up on php’s SOAP clients. ActionWebService will generate a wsdl
for you