{"id":18675428,"url":"https://github.com/manuparra/phpdiserver","last_synced_at":"2025-04-12T02:11:28.137Z","repository":{"id":35317960,"uuid":"39579573","full_name":"manuparra/phpDIServer","owner":"manuparra","description":"PHP Interface to SAP Business One Data Interface Server (DI server). It enables to develop SOAP-based solutions to read, write, update, and remove data objects on the database level. It provides a suitable infrastructure for server-oriented partner solutions","archived":false,"fork":false,"pushed_at":"2015-07-23T18:15:50.000Z","size":136,"stargazers_count":21,"open_issues_count":1,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-25T21:51:13.380Z","etag":null,"topics":["di-server","php","sap","soap","wsdl"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/manuparra.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}},"created_at":"2015-07-23T16:51:14.000Z","updated_at":"2023-06-01T20:18:33.000Z","dependencies_parsed_at":"2022-08-28T18:34:26.564Z","dependency_job_id":null,"html_url":"https://github.com/manuparra/phpDIServer","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/manuparra%2FphpDIServer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuparra%2FphpDIServer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuparra%2FphpDIServer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manuparra%2FphpDIServer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manuparra","download_url":"https://codeload.github.com/manuparra/phpDIServer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505928,"owners_count":21115354,"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":["di-server","php","sap","soap","wsdl"],"created_at":"2024-11-07T09:24:58.038Z","updated_at":"2025-04-12T02:11:28.114Z","avatar_url":"https://github.com/manuparra.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# phpDIServer\n\nThe DI Server enables business partners to develop SOAP-based solutions to read, write, update, and remove data objects on the database level. It provides a suitable infrastructure for server-oriented partner solutions\n\nSAP Business One DI Server (Data Interface Server) is a Component Object Model (COM) service running on a server that enables multiple clients to access and manipulate SAP Business One company database, using SOAP version 1.1 messages.\n\n**phpDiServer** is a multifunctional  wrapper to integrate SAP BO and DIServer with your application in PHP.\nWith this code (AddOrderSap.php), you can develop and integrate on PHP multiple functions avaliables in DIServer\n\n## Functionality included\n\n-  Login \n-  LoginResponse \n-  LogOut \n-  LogOutResponse \n-  GetEmptyQuotationXml  \n-  GetEmptyQuotationXmlResponse  \n-  GetEmptyQuotationXmlResult  \n-  GetEmptyOrderXml  \n-  GetEmptyOrderXmlResponse  \n-  GetEmptyOrderXmlResult  \n-  GetRecordsetXml  \n-  GetRecordsetXmlResponse  \n-  GetRecordsetXmlResult  \n-  AddQuotation  \n-  AddQuotationResponse \n-  AddQuotationResult  \n-  AddOrder  \n-  AddOrderResponse  \n-  AddOrderResult  \n-  UpdateQuotation  \n-  UpdateQuotationResponse  \n-  UpdateQuotationResult  \n-  AddOrder_DI  \n-  dsOrder  \n-  AddOrder_DIResponse \n-  AddOrder_DIResult   \n\n## Requirements\n\nphpDiServer works with PHP \u003e=5 and SOAP 1.1 / 1.2 and it can be used in WSDL or non-WSDL mode. \n\n## Setup\n\nChange line 200 in DIServerService.php, use your SAP BO DiServerServices URL for WDSL, or modify YOURSAPBOHOST\n\n ```php\n$wsdl = \"http://YOURSAPBOHOST/wsSalesQuotation/DiServerServices.asmx?WSDL\"\n```\n\n## Usage\n\nThis is a simple example of usage where we use:\n\n- LOGIN  (Login)\n- NEW ORDER (AddOrder)\n\n ```php\nrequire_once 'DiServerServices.php';\n\n// Create DiServerService object\n$service = new DiServerServicesSample();\n\n// Create Login Object with Service data\n$login= new Login();\n$login-\u003eDataBaseServer=\"\";\n$login-\u003eDataBaseName=\"\";\n$login-\u003eDataBaseType=\"\";\n$login-\u003eDataBaseUserName=\"\"; // string\n$login-\u003eDataBasePassword=\"\"; // string\n$login-\u003eCompanyUserName=\"\"; // string\n$login-\u003eCompanyPassword=\"\"; // string\n$login-\u003eLanguage=\"23\"; // string\n$login-\u003eLicenseServer=\"HOST:30000\"; // Change HOST and port\n\n// Call to Login Service with the $login Object\n$IdSession=$service-\u003eLogin($login)-\u003eLoginResult;\n\n// Check Here if $IdSession is OK. Otherwise, it had a problem \n// with login credentials\n\n// Create a new SAP Order\n$addOrder= new AddOrder();\n// Order require Valid IDSession\n$addOrder-\u003eSessionID=$IdSession;\n\n// xmlOrderComposed is defined in another file: xmlorder_var.php \n// please see xmlorder_var.php, yo know how you can compose a XML order for \n// DiServer in SAP BO\n// You can paste the code in xmlorder_var.php here \n\n$addOrder-\u003esXmlOrderObject=$xmlOrderComposed;\n\n$result=$service-\u003eAddOrder($addOrder);\n\n// In result-\u003eAddOrderResult-\u003eany and AddOrderResult \n// you have the XML SOAP code with the result of the order (ID, etc.)\n\n//echo $result-\u003eAddOrderResult-\u003eany;\n```\n\n## License\n\nThe MIT License (MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuparra%2Fphpdiserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanuparra%2Fphpdiserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuparra%2Fphpdiserver/lists"}