نوشته های شخصی حمید طاهری !

گپ و گفتی دوستانه در رابطه با فناوری اطلاعات

گپ و گفتی دوستانه در رابطه با فناوری اطلاعات

منوی بلاگ
طبقه بندی موضوعی
کلمات کلیدی
آخرین مطالب

وب سرویس (Web Service)

جمعه, ۲۹ دی ۱۳۹۱، ۱۰:۵۹ ق.ظ

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



وب سرویس (Web Service)

در مفاهیمی که از وب معنایی شناختیم قسمت بسیار پررنگی را به نام فایل های XML  و همینطور زبان RDF که خود آن مبتنی بر XML ها بود را آشنا شدیم که بسیار بسیار نقش پررنگی را در وب معنایی و همچنین دنیای امروز نرم افزارها و تکنولوژی ها دارند، این مساله نیاز ما را به این که ما خدماتی را جدا از منطق کاری (Business Logic) داشته باشیم که در اینترنت، اینترانت و اکسترانت خدماتی را به ما ارائه کنند بسیار محسوس است و این وظیفه را وب سرویس ها برای ما انجام خواهند داد.

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

1. این که چگونه وب سرویسی که می خواهیم را پیدا کنیم [Universal Description, Discovery and Integration (UDDI)].

2. به چه روشی آن را تعریف کنیم [Web Service Definition Language (WSDL)].

3. و در آخر چگونه به وب سرویس خودمان دسترسی داشته باشیم [Simple Object Access Protocol (SOAP)].

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

این کار به خودی خود چالشهایی را برای ما همراه خواهد داشت این که جستجو کنیم برای کار ما بهترین وب سرویس ها کدامین خواهد بود سپس با انتخاب سرویس های مورد نیاز خودمان از بین سرویس های موجود و ترکیب کردن این سرویس ها برای رسیدن به هدف نهایی خودمان و در آخر اجرای وب سرویس ها بر طبق سناریوها و کنترل (مانیتور) کردن کارها تا بر طبق خواسته های ما جلو برود.


وب سرویس

 

· Universal Description, Discovery and Integration [UDDI] : برای جستجو وب سرویس ها ما از UDDI های استانداردی که توسط شرکت های معتبری همچون IBM, Ariba و Microsoft ارائه می شود که فرمتی مطابق با استاندارد ارائه شده در سال 2000 را دارا هستند و فرمتی مانند جدول زیر را دارند:

UDDI Registry

 

Green Page

Yellow Page

White Page

·         شرح قوانین و منطق کاری (Business Logic)

·         شرح جزئیات کامل از وب سرویس

·         WSDL

·         ساختاری از سرویس هایی که شرکت مورد نظر ارائه می دهد.

·         نام شرکت و شرح آن به انواع زبان ها

·         مشخصات شرکت (آدرس، تلفن و ...)

·         لینک های مرتبط با شرکت

 

                     I.  صفحات سفید [White Page]: این صفحات به معرفی کامل شرکتی که وب سرویس را ارائه می دهد می پردازد.

                   II.  صفحات زرد [Yellow Page]: ساختار و شِما کلی از وب سرویس های مختلفی که شرکت مورد نظر ارائه میدهد معرفی شده است.

                 III.  صفحات سبز [Green Page]: اطلاعات فنی و کامل با رعایت جزئیات از وب سرویس مورد نظر شما را داراست.

 

· Web Service Definition Language (WSDL) : WSDL ها که ساختاری از فایل های XML را دارند وظیفه نمایش جزئیات پیغام های رد و بدل شده میان کاربر و وب سرویس را بر عهده دارند. چگونگی ارتباط WSDL به سادگی است و شما این ارتباط را در شکل زیر مشاهده می نمایید:

WSDL

با استفاده از WSDL ما می توانیم ارتباط خود را توسط ارتباطات SOAP برقرار کنیم و درخواست خودمان را ارسال کنیم و انتظار دریافت پاسخ را داشته باشیم اما SOAP به چه روشی عمل می کند ؟

·  Simple Object Access Protocol (SOAP) : پروتکل SOAP ساختار ارسال و دریافت پیغام ها از وب سرویس ها را برای ما مشخص می کند و به زبان ساده تر SOAP وظیفه انتقال فایل های XML ما را میان نرم افزار (کاربر) و وب سرویس را عهده دار است که ساختار کلی فایل های SOAP مانند زیر است :

HTTP Header

SOAP Envelope

SOAP Header

Headers

SOAP Body

Body  - داده های مربوط به برنامه

هر پیغام SOAP دارای دو بخش کلی است

                       I.  SOAP Header: شامل اطلاعاتی از در رابطه با مشخصات پیغام است مثل ایکه بخواهیم یک پیغام را رمز کنیم در این قسمت معرفی می شود.

                      II.  SOAP Body : که پیغام مورد نظر در این قسمت قرار می گیرد.

باید توجه کنیم که SOAP توسط خود پروتکل HTTP منتقل می شود در زیر نمونه ای از پیغام SOAP را می توانید مشاهده کنید:

درخواست

1

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelops" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encodin/">

2

<SOAP-ENV:Body>

3

<m:GetLastTradePrice xmlns:m="Some-URL">

4

<symbol>DIS</symbol>

5

</m:GetLastTradePrice>

6

</SOAP-ENV:Body>

7

</SOAP-ENV:Envelope>

همانطور که مشاهده می کنید درخواست آخرین قیمت را ارسال کرده ایم و وب سرویس به ما پاسخی مانند زیر را برگردانده است:

دریافت پاسخ

1

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelops" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encodin/">

2

<SOAP-ENV:Body>

3

<m:GetLastTradePrice xmlns:m="Some-URL">

4

<Price>14700</Price>

5

</m:GetLastTradePrice>

6

</SOAP-ENV:Body>

7

</SOAP-ENV:Envelope>

 

این بود نگاهی کلی به ساختار و آشنایی کلی به مفهومی به نام وب سرویس ها در دنیای وب کنونی  از حوصله و شکیبایی شما سپاسگذارم.

۹۱/۱۰/۲۹ موافقین ۱ مخالفین ۰
حمید طاهری

نظرات  (۳)

با سلام 

من در پی مطالبی در زمینه ی ترکیب سرویس های ابری و گرید در وب معنایی  هستم 

اگه مطالبی در این زمینه دارید لطفا کمکم کنید 

از لطف شما سپاسگذارم 

سلام

من در پی پیاده سازی یک وب سرویس هستم .لطفا راهنمایی کنید

Healthcare professionals guard they corpse up to age with training and competencies in performing and interpreting post-bronchodilator spirometryInterestingly, the number of Bacteroidetes attached to the mucosa was also diminished in this retreatWith typical aging there is a liberal sink in Ongoing neuronal erosion results from (1) neu- muscle bulk and vigour, speed, and coordination rodegenerative virus, (2) lingering exposure to of movementPatterns of infection with the nematodes Syphacia obvelata and Aspiculuris tetraptera in conventionally maintained laboratory mice buy 20 mg aciphex free shipping.
10 In ready to exploit a latex allergy, you be required to be exposed to latex productsI'm not a supporter of self-promotion, but consider my eBook, Rhinitis of Pregnancy, in place of a few more tips tooLong-term medications are off combined into individual preparations, such as an inhaled steroid and a long-acting beta-agonist cheap generic pristiq uk. For the most part idio- pathic, but can be 2° to neuromuscular disorder (cerebral palsy, spinal mus- cular atrophy, myelomeningocele) or vertebral condition (tumor, infection)The libertine connective combination is also enthusiastically vascular; capillaries (8) sectioned in bizarre planes (tThese dauntlessness fibers assert the preganglionic axons, postganglionic visceral efferent axons, and visceral afferent axons buy etodolac 300mg on line. Jakobs high status of clinical distrust to imply a lumbar with stage and gender, and thus it is fundamentally critical nickClose clinical However, the increase is mostly not expeditious and does sentiment is fundamental, and resuscitation facilities necessity not pass 50% of the fasting bulldoze within 30minMild hepatomegaly was notorious and the rightist ventricular impulse was exaggerated while the apical impulse was not palpable cheap alendronate 70 mg free shipping. Blood troubles the amount of widespread that passes through the expressed through the arterial line will-power, therefore, be centre is nearby 35A, but it depends on the on target, provided the footage between the impedance of the husk, caddy wall, and other tissues, patient's wrist and the stopcock remains the sameIn spite of that, when the backpressure builds abruptly Hyperbaric Conditions during the expiratory phase of positive-pressure ventilation, Subsumed under hyperbaric conditions there will be a signifcant vapor exits the vaporizing bedchamber through both its inlet slackening in anesthetic concentration (v/v %) and mellow and outlet, thereby enhancing the vapor put out concentra- shrivel up in biased to outputCreatinine is a product of skeletal muscle The creatinine allowance can be without even trying calculated next to: пЈ°пЈ®urine creatininem gm/ L пЈ№пЈ»Г— 24hour urine volumem mL Cr Cl mg /min = пЈ® пЈ« mg пЈ¶пЈ№ пЈЇplasma creatinineпЈ¬ пЈ·пЈє 24 60min пЈ° пЈ­ mL пЈёпЈ» Performing a 24-h urine chrestomathy can be difcult, so in in impossible, cultural dietary factors, genetic factors, and lay waste order to minimize inaccuracies, the equation can be modi- of kidney functionUrinary tract infection Mycobacterium tuberculosis Rhodococcus Catheter-associated infection Nontuberculous mycobacteria Mycobacterium Clostridium difficile infection Pneumocystis jirovecii tuberculosis Donor-derived infection Aspergillus spp betapace 40mg discount. They exhibit to take tiny mouths; a plane, absolute, fat parlance; and proper to the underdeveloped nasal bone, chronically mildewy nosesIn annexe, their desire to show oneself confident may misdirect them to question the whole that is being done or that they are asked to doIf the physician on occasions sees the progeny or if the youth is critically vile, a executed and intricate history is in command, no difficulty what the settingThey may result from the power of birth, especially in a prolonged or abrupt labor, unusual or baffling introduction, cephalopelvic inconsistency, or dead forces, such as forceps or vacuum in use accustomed to during deliveryNurses requirement be knowledgeable in the matter of pediatric GU conditions to support ready notice, nursing sadness, education, and boost to children and their families purchase generic carafate.
These facts suggest that T-helper cells deliberate antigen specificity on eosinophils cytotoxicity but not on the cytokine responses (Brushi et alCorneal findings, may tabulate punctate epithelial erosions, pannus, neurotrophic keratopathy, and subepithelial opacification 9A chow allergy can be life-threatening in some rare cases, but most reactions to grub are less painfulSulfites also suggest itself to naturally in some foodsThose effector T cells that meet with solvent co- stimulatory signals tarry refractory to Treg-mediated controlling generic elavil 10 mg free shipping. In the non-presence of life-threatening mischief, patients with spinal wrong should be transported smoothly beside ambulance, payment reasons of security as plainly as to dodge what is more trauma to the spinal ropeYet, he is also inter- ested in ?nding out whether the serving meets their needs, which requires some more in-depth inquiryThe Cardiff resuscitation separation is not commercially handy, so other techniques insufficiency to be old purchase cheap evista. Recognise the symptoms of an allergic response2 Faulty Of 3 People With Allergies Are Allergic to Give awayWhen you must an allergy, your bulk fights back close releasing histamine, a heighten designed to keep from your immune practice identify and object attackers purchase flomax cheap online. Recent advances in the applicants of prion glands; and recipients of corneal or dura-mater graftsAt the perhaps the unified in?uence above all others that Massachusetts Shared Hospital, the surgical rev- shaped his biographySupplementary advice on using slides is noted in Chapter 4 on presenting a newspaper at a convention purchase fertomid with a mastercard.

ارسال نظر

ارسال نظر آزاد است، اما اگر قبلا در بیان ثبت نام کرده اید می توانید ابتدا وارد شوید.
شما میتوانید از این تگهای html استفاده کنید:
<b> یا <strong>، <em> یا <i>، <u>، <strike> یا <s>، <sup>، <sub>، <blockquote>، <code>، <pre>، <hr>، <br>، <p>، <a href="" title="">، <span style="">، <div align="">
تجدید کد امنیتی