{"id":16643716,"url":"https://github.com/zaimramlan/rails-external-xml-services","last_synced_at":"2026-05-05T00:40:02.428Z","repository":{"id":75716652,"uuid":"109003876","full_name":"zaimramlan/rails-external-xml-services","owner":"zaimramlan","description":"A sample rails app to interact with clients via XML","archived":false,"fork":false,"pushed_at":"2017-11-05T07:13:16.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-28T16:22:59.204Z","etag":null,"topics":["prototype","rails","rss","ruby","xml"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zaimramlan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-31T14:01:45.000Z","updated_at":"2020-08-03T02:48:30.000Z","dependencies_parsed_at":"2023-03-11T20:15:00.942Z","dependency_job_id":null,"html_url":"https://github.com/zaimramlan/rails-external-xml-services","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zaimramlan/rails-external-xml-services","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaimramlan%2Frails-external-xml-services","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaimramlan%2Frails-external-xml-services/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaimramlan%2Frails-external-xml-services/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaimramlan%2Frails-external-xml-services/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaimramlan","download_url":"https://codeload.github.com/zaimramlan/rails-external-xml-services/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaimramlan%2Frails-external-xml-services/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32631058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["prototype","rails","rss","ruby","xml"],"created_at":"2024-10-12T08:09:22.862Z","updated_at":"2026-05-05T00:40:02.401Z","avatar_url":"https://github.com/zaimramlan.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rails External XML Services\nThis Rails project is a sample to communicate with 3rd party services that uses XML (RSS type) as their request/response body.\n\nOther XML services (WSDL, SOAP or RDF type) are not covered (or will be added - when necessary) since there are already gems to assist in that area.\n\n## Concept\nThere are 3 main parts to the concept.\n1. Adapter Class\n1. Service Class\n1. Schema (Helper Class)\n\n### Flow\nBut first, we go through an example flow:\n1. User details are filled in and submitted\n1. Once user is successfully created, the controller calls the _adapter_ to submit the request to a 3rd party service's endpoint\n\n### Adapter\nThe adapter acts like a plug-n-play 3rd party wrapper for communicating with their endpoints (in our case - `CompanyFooAdapter`)\n1. The adapter builds the user data into an XML through a _service_ called `BuildUserXmlService` \n1. The XML is then sent to the 3rd party endpoint\n\n### Service\nThe service builds the user data based on the _schema_ received from the 3rd party\n\n### Schema\n1. The 3rd party provides an XML request/response body sample\n1. We create a 3rd party schema wrapper (in our case - `CompanyFooWrapper`) that loads the XML request/response body sample file into callable methods\n\n## More Info\nTo understand more what's happening under the hood, simply run `$ rspec --format documentation` or dive into the codes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaimramlan%2Frails-external-xml-services","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaimramlan%2Frails-external-xml-services","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaimramlan%2Frails-external-xml-services/lists"}