{"id":19903466,"url":"https://github.com/zdavatz/sandoz.xmlconv.bbmb.ch","last_synced_at":"2025-09-04T04:22:12.561Z","repository":{"id":66323544,"uuid":"60683212","full_name":"zdavatz/sandoz.xmlconv.bbmb.ch","owner":"zdavatz","description":"xmlconv for Sandoz","archived":false,"fork":false,"pushed_at":"2018-10-22T17:32:09.000Z","size":309,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T21:27:05.624Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zdavatz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-06-08T08:50:27.000Z","updated_at":"2018-10-22T17:32:11.000Z","dependencies_parsed_at":"2023-02-25T08:15:11.934Z","dependency_job_id":null,"html_url":"https://github.com/zdavatz/sandoz.xmlconv.bbmb.ch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdavatz%2Fsandoz.xmlconv.bbmb.ch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdavatz%2Fsandoz.xmlconv.bbmb.ch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdavatz%2Fsandoz.xmlconv.bbmb.ch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdavatz%2Fsandoz.xmlconv.bbmb.ch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zdavatz","download_url":"https://codeload.github.com/zdavatz/sandoz.xmlconv.bbmb.ch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241331011,"owners_count":19945274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-12T20:23:54.287Z","updated_at":"2025-03-01T07:21:23.537Z","avatar_url":"https://github.com/zdavatz.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sandoz.xmlconv.bbmb.ch\n\n## Description\n\nThe xml converter files for Sandoz Switzerland.\n\ngraphical overview:\n![sandozxmlconv](https://raw.githubusercontent.com/zdavatz/sandoz.xmlconv.bbmb.ch/master/sandozxmlconv.jpeg)\n\n## Repository\n\nhttps://github.com/zdavatz/sandoz.xmlconv.bbmb.ch\n\n## Requirements\n\n* xmlconv\n* sbsm\n* odba\n* soap4r\n* yus (runtime)\n\nSee `Gemfile`\n\n## Install\n\n```bash\n$ git clone https://github.com/zdavatz/sandoz.xmlconv.bbmb.ch.git\n$ mkdir -p log var/output\n```\n\n## Setup\n\n* bundle install\n* create and adapt etc/polling.yml\n* create and adapt etc/config.yml\n* integrate it with apache\n* setup yus (authentication) server\n\n```bash\n# xmlconvd\n$ bundle exec rackup\n\n# bin/admin\n\nUse something like `sudo -u bbmb /usr/local/bin/ruby-240 /usr/local/bin/xmlconv_admin config=/var/www/sandoz.xmlconv.bbmb.ch/etc/xmlconv.yml`\n# yusd\n$ bundle exec yusd config=/path/to/etc/yus.yml\n```\n\n## Testing\n\n```bash\n# feature test using watir (rspec)\n$ bundle exec rake spec\n\n# unit-test and integration test (minitest)\n$ bundle exec rake test\n```\n\n### soap request for generating an invoice\n\n`curl -v http://sandoz.xmlconv.bbmb.ngiger.ch/propharma -d@test/data/confuse.xml`\n\nwhere test/data/confuse.xml is a file and sandoz.xmlconv.bbmb.ngiger.ch your testing domain.\n\nThe command should have a result status of 0 and respond with something like\n  *   Trying 62.12.131.46...\n  * TCP_NODELAY set\n    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                  Dload  Upload   Total   Spent    Left  Speed\n    0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to sandoz.xmlconv.bbmb.ch (62.12.131.46) port 80 (#0)\n  \u003e POST /propharma HTTP/1.1\n  \u003e Host: sandoz.xmlconv.bbmb.ch\n  \u003e User-Agent: curl/7.50.3\n  \u003e Accept: */*\n  \u003e Content-Length: 625\n  \u003e Content-Type: application/x-www-form-urlencoded\n  \u003e\n  } [625 bytes data]\n  * upload completely sent off: 629 out of 629 bytes\n  \u003c HTTP/1.1 200 OK\n  \u003c Date: Mon, 12 Jun 2017 12:15:03 GMT\n  * Server WEBrick/1.3.1 (Ruby/2.4.0/2016-12-24) is not blacklisted\n  \u003c Server: WEBrick/1.3.1 (Ruby/2.4.0/2016-12-24)\n  \u003c Content-Length: 0\n  \u003c Content-Type: text/html;charset=UTF-8\n  \u003c Set-Cookie: _session_id=3c2b018a11c1438855db71923b; path=/\n  \u003c\n  \u003c?xml version='1.0' encoding='UTF-8'?\u003e\n  \u003ccustomerOrderResponse xmlns='http://www.e-galexis.com/schemas/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation='http://www.e-galexis.com/schemas/ http://www.e-galexis.com/schemas/POS/customerOrder/customerOrderResponse.xsd' version='1.0' roundUpForCondition='false' backLogDesired='false' language='de' productDescriptionDesired='false'\u003e\n    \u003cclientResponse number='99-130'/\u003e\n    \u003corderHeaderResponse referenceNumber='99'\u003e\n      \u003cdeliveryAddress/\u003e\n    \u003c/orderHeaderResponse\u003e\n    \u003corderLinesResponse\u003e\n      \u003cproductOrderLineResponse lineAccepted='true' backLogLine='false' roundUpForConditionDone='false' productReplaced='false'\u003e\n        \u003cproductOrderLine orderQuantity='2'\u003e\n          \u003cpharmaCode id='2508375'/\u003e\n        \u003c/productOrderLine\u003e\n        \u003cproductResponse wholesalerProductCode='44060678' description='Cip eco 250 mg Filmtabl 10'/\u003e\n        \u003cavailability status='yes'/\u003e\n      \u003c/productOrderLineResponse\u003e\n      \u003cproductOrderLineResponse lineAccepted='true' backLogLine='false' roundUpForConditionDone='false' productReplaced='false'\u003e\n        \u003cproductOrderLine orderQuantity='2'\u003e\n          \u003cpharmaCode id='5195126'/\u003e\n        \u003c/productOrderLine\u003e\n        \u003cproductResponse wholesalerProductCode='05201388' description='Candesartan Sandoz 8 mg Tbl 98'/\u003e\n        \u003cavailability status='yes'/\u003e\n      \u003c/productOrderLineResponse\u003e\n    \u003c/orderLinesResponse\u003e\n  \u003c/customerOrderResponse\n  * Connection #0 to host sandoz.xmlconv.bbmb.ngiger.ch left intact\n\n  80.218.53.88 - - [31/May/2017:15:12:03 +0200] \"POST /propharma HTTP/1.1\" 500 - \"-\" \"curl/7.50.3\"\n\nVerify in the admin web interface:\n  * that a new transaction is generated\n  * that the fiel 'Absender' contains the correct remote IP address (numerically)\n  * it status is 'Bestellung via BBMB erfolgreich'\n  * its detail contains the correct orderlines\n\nVerify in your sandoz.bbmb.ch that\n  * the user 99 lists also the new order\n\nIt is normal to see polling errors, as long as you dont specify a valid pop\n\n## Developers\n\n* Zeno R.R. Davatz\n* Masaomi Hatakeyama\n* Hannes Wyss (up to Version 1.0.0)\n* Niklaus Giger (ported to Ruby 2.3)\n\n## License\n\nGPLv2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzdavatz%2Fsandoz.xmlconv.bbmb.ch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzdavatz%2Fsandoz.xmlconv.bbmb.ch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzdavatz%2Fsandoz.xmlconv.bbmb.ch/lists"}