A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_database_driver::open($save_path, $name) should either be compatible with SessionHandlerInterface::open(string $path, string $name): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_database_driver.php

Line Number: 129

Backtrace:

File: /home/siteco/domains/sitecoder.ir/public_html/application/controllers/Home.php
Line: 16
Function: library

File: /home/siteco/domains/sitecoder.ir/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_database_driver::close() should either be compatible with SessionHandlerInterface::close(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_database_driver.php

Line Number: 280

Backtrace:

File: /home/siteco/domains/sitecoder.ir/public_html/application/controllers/Home.php
Line: 16
Function: library

File: /home/siteco/domains/sitecoder.ir/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_database_driver::read($session_id) should either be compatible with SessionHandlerInterface::read(string $id): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_database_driver.php

Line Number: 151

Backtrace:

File: /home/siteco/domains/sitecoder.ir/public_html/application/controllers/Home.php
Line: 16
Function: library

File: /home/siteco/domains/sitecoder.ir/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_database_driver::write($session_id, $session_data) should either be compatible with SessionHandlerInterface::write(string $id, string $data): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_database_driver.php

Line Number: 208

Backtrace:

File: /home/siteco/domains/sitecoder.ir/public_html/application/controllers/Home.php
Line: 16
Function: library

File: /home/siteco/domains/sitecoder.ir/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_database_driver::destroy($session_id) should either be compatible with SessionHandlerInterface::destroy(string $id): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_database_driver.php

Line Number: 297

Backtrace:

File: /home/siteco/domains/sitecoder.ir/public_html/application/controllers/Home.php
Line: 16
Function: library

File: /home/siteco/domains/sitecoder.ir/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: 8192

Message: Return type of CI_Session_database_driver::gc($maxlifetime) should either be compatible with SessionHandlerInterface::gc(int $max_lifetime): int|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

Filename: drivers/Session_database_driver.php

Line Number: 335

Backtrace:

File: /home/siteco/domains/sitecoder.ir/public_html/application/controllers/Home.php
Line: 16
Function: library

File: /home/siteco/domains/sitecoder.ir/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 282

Backtrace:

File: /home/siteco/domains/sitecoder.ir/public_html/application/controllers/Home.php
Line: 16
Function: library

File: /home/siteco/domains/sitecoder.ir/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 294

Backtrace:

File: /home/siteco/domains/sitecoder.ir/public_html/application/controllers/Home.php
Line: 16
Function: library

File: /home/siteco/domains/sitecoder.ir/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 304

Backtrace:

File: /home/siteco/domains/sitecoder.ir/public_html/application/controllers/Home.php
Line: 16
Function: library

File: /home/siteco/domains/sitecoder.ir/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 314

Backtrace:

File: /home/siteco/domains/sitecoder.ir/public_html/application/controllers/Home.php
Line: 16
Function: library

File: /home/siteco/domains/sitecoder.ir/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 315

Backtrace:

File: /home/siteco/domains/sitecoder.ir/public_html/application/controllers/Home.php
Line: 16
Function: library

File: /home/siteco/domains/sitecoder.ir/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 316

Backtrace:

File: /home/siteco/domains/sitecoder.ir/public_html/application/controllers/Home.php
Line: 16
Function: library

File: /home/siteco/domains/sitecoder.ir/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 317

Backtrace:

File: /home/siteco/domains/sitecoder.ir/public_html/application/controllers/Home.php
Line: 16
Function: library

File: /home/siteco/domains/sitecoder.ir/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: ini_set(): Session ini settings cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 375

Backtrace:

File: /home/siteco/domains/sitecoder.ir/public_html/application/controllers/Home.php
Line: 16
Function: library

File: /home/siteco/domains/sitecoder.ir/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent

Filename: Session/Session.php

Line Number: 110

Backtrace:

File: /home/siteco/domains/sitecoder.ir/public_html/application/controllers/Home.php
Line: 16
Function: library

File: /home/siteco/domains/sitecoder.ir/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: session_start(): Session cannot be started after headers have already been sent

Filename: Session/Session.php

Line Number: 143

Backtrace:

File: /home/siteco/domains/sitecoder.ir/public_html/application/controllers/Home.php
Line: 16
Function: library

File: /home/siteco/domains/sitecoder.ir/public_html/index.php
Line: 315
Function: require_once

ساخت وب سرویس

ساخت وب سرویس SOAP و RESTful API

ساخت وب سرویس

وب سرویس SOAP


ویژگی های SOAP

SOAP پروتکل دسترسی ساده به اشیاست.

یک پروتکل مبتنی بر XML برای دسترسی به وب سرویس است.

SOAP یک توصیه W3C برای ارتباط بین دو برنامه است.

SOAP پروتکل مبتنی بر XML است. مستقل ازپلتفرم و مستقل از زبان است.

با استفاده از SOAP، شما قادر خواهید بود با سایر برنامه های کاربردی زبان برنامه نویسی تعامل داشته باشید.



تجربه ما در ساخت وب سرویس SOAP

گروه ما در ساخت وب سرویس های SOAP سابقه دراز مدتی را دارد

چندین شرکت و ارگان از وب سرویس هایی که گروه سایت کدر در اختیار آنها قرار داده است در حال استفاده می باشند

توجه داشته باشید که این نوع وب سرویس منسوخ شده و محبوبیت قبلی خود را ندارد اما با توجه به اینکه بسیاری از سیستم ها نحوه ارتباطشان همچنان وب سرویس SOAP می باشد گروه ما محدودیتی در ساخت چنین وب سرویس هایی ندارد و امکان پیاده سازی هر نوع وب سرویس SOAP برای ما وجود دارد

نمونه ای از یک وب سرویس SOAP

  1. ساخت وب سرویس

    وب سرویس ماشین حساب

    ورودی این وب سرویس اعداد و نوع عملیات و خروجی آن پاسخ عملیات می باشد

ساخت وب سرویس

وب سرویس RESTful API


ویژگی های وب سرویس RESTful

REST مخفف Representational State Transfer است.( انتقال بازنمودی حالت)

REST یک سبک معماری است نه یک پروتکل.

سرعت: خدمات وب RESTful سریع هستند زیرا هیچ ویژگی سخت افزاری مانند SOAP وجود ندارد. REST پهنای باند و منابع کمتری مصرف می کند.

زبان و پلت فرم مستقل: وب سرویس RESTful را می توان در هر زبان برنامه نویسی نوشته و در هر پلت فرم اجرا کرد.

می توان از SOAP استفاده کرد: وب سرویس های RESTful می توانند از وب سرویس های soap برای پیاده سازی استفاده کنند.

اجازه دسترسی به فرمت های مختلف دیتا: وب سرویس RESTful اجازه دسترسی به فرمت داده های مختلف مانند متن ساده، HTML، XML و JSON را می دهد .



تجربه ما در ساخت وب سرویس RESTful API

با توجه به اینکه این نوع وب سرویس نوع جدیدی از وب سرویس ها می باشد و سرعت و انعطاف بیشتری در پیاده سازی دارد، گروه ما به سرعت پیاده سازی این وب سرویس را جایگزین وب سرویس های SOAP کرده و تا کنون ده ها نوع وب سرویس سمت کاربر و سمت سرور پیاده سازی شده اند

نمونه ای از یک وب سرویس RESTful API

  1. ساخت وب سرویس

    نمونه وب سرویس RESTful API

    نمونه ای از ورودی ها و خروجی های یک وب سرویس RESTful

با توجه به اینکه امنیت مشتریان ما اولویت اول ما می باشد امکان نام بردن از وب سرویس های دیگر ساخته شده را نداریم