1 / 19

Web services (WSDL)

Web services (WSDL). SentSMSWorld การให้บริการของ Service - Send unlimited free SMS to following countries URL : -http://www.webservicex.net/sendsmsworld.asmx. Input : -Email Address ถ้ารหัสประเทศเป็น 091 ให้ใส่ 91 ถ้าเบอร์โทรศัพท์เป็น 098XXXXX ให้ใส่ 98XXXX ข้อความ. Output :

khuyen
Download Presentation

Web services (WSDL)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Web services (WSDL)

  2. SentSMSWorld • การให้บริการของ Service - Send unlimited free SMS to following countries • URL : -http://www.webservicex.net/sendsmsworld.asmx

  3. Input : • -Email Address • ถ้ารหัสประเทศเป็น 091 ให้ใส่ 91 • ถ้าเบอร์โทรศัพท์เป็น 098XXXXX ให้ใส่ 98XXXX • ข้อความ .

  4. Output : หากเราส่งข้อความสำเร็จ จะมีข้อความ Message has been sent successfully ขึ้นมา เป็นรูปแบบของ xml

  5. WDSL <?xml version="1.0" encoding="utf-8" ?> - <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://www.webserviceX.NET" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://www.webserviceX.NET" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> - <wsdl:types> - <s:schema elementFormDefault="qualified" targetNamespace="http://www.webserviceX.NET"> - <s:element name="sendSMS"> - <s:complexType> - <s:sequence> <s:elementminOccurs="0" maxOccurs="1" name="FromEmailAddress" type="s:string" /> <s:elementminOccurs="0" maxOccurs="1" name="CountryCode" type="s:string" /> <s:elementminOccurs="0" maxOccurs="1" name="MobileNumber" type="s:string" /> <s:elementminOccurs="0" maxOccurs="1" name="Message" type="s:string" />

  6. </s:sequence> </s:complexType> </s:element> - <s:element name="sendSMSResponse"> - <s:complexType> - <s:sequence> <s:elementminOccurs="0" maxOccurs="1" name="sendSMSResult" type="s:string" /> </s:sequence> </s:complexType> </s:element> <s:elementname="string" nillable="true" type="s:string" /> </s:schema> </wsdl:types> - <wsdl:message name="sendSMSSoapIn"> <wsdl:partname="parameters" element="tns:sendSMS" /> </wsdl:message> - <wsdl:message name="sendSMSSoapOut"> <wsdl:partname="parameters" element="tns:sendSMSResponse" /> </wsdl:message> - <wsdl:message name="sendSMSHttpGetIn"> <wsdl:partname="FromEmailAddress" type="s:string" />

  7. <wsdl:partname="CountryCode" type="s:string" /> <wsdl:partname="MobileNumber" type="s:string" /> <wsdl:partname="Message" type="s:string" /> </wsdl:message> - <wsdl:message name="sendSMSHttpGetOut"> <wsdl:partname="Body" element="tns:string" /> </wsdl:message> - <wsdl:message name="sendSMSHttpPostIn"> <wsdl:partname="FromEmailAddress" type="s:string" /> <wsdl:partname="CountryCode" type="s:string" /> <wsdl:partname="MobileNumber" type="s:string" /> <wsdl:partname="Message" type="s:string" /> </wsdl:message> - <wsdl:message name="sendSMSHttpPostOut"> <wsdl:partname="Body" element="tns:string" /> </wsdl:message> - <wsdl:portType name="SendSMSWorldSoap"> - <wsdl:operation name="sendSMS"> <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">Send unlimited free SMS to following countries.<br><b>Note:</b>If your country code 091,Please enter as 91 and if your mobile number 098XXXXX,Please enter as 98XXXX <br><table cellSpacing=0 cellPadding=5 border=0 border-collapse: collapse bordercolor=#111111><tr> <td width=50% ><font size=2 ><b>This SMS covers following countries and&nbsp; networks.</b></td> </tr> <tr><td > <b>Austria -</b><font face=Arial size=-1> Mobilkom<b><br> Bulgaria - </b>Mobiltel <b><br>Croatia -</b> Cronet <b><br>Germany -</b> E-Plus,Mannesman D2 <b><br>Israel - </b>Pelephone <b><br>Lithuania -</b>

  8. Omnitel <b><br>Maldives - </b>Dhiraagu <b><br>Norway - </b>NetCom,TeleNor <b><br> Switzerland - </b>Bluewin <b><br>USA - </b>Ameritech Cellular services ,Cellular One, Cingular <b><br>Brazil - </b>ATL express,Telemig Cellular <b><br>Canada -</b> Bell Mobility, Clearnet, Rogers AT&amp;T Wireless ,Telus <b><br>France - </b>Itineris <b><br>India - </b>Essar Cell Phone,RPG Cellular <b><br>Japan - </b>NTT Docomo <b> <br>Malaysia - </b>Celcom <b><br>New Zealand - </b>Messagetrack <b><br>Spain -</b> MoviStar <b><br>Ukraine - </b>Golden Telecom, UMC <b><br>USA - </b>Comcast Cellular Communications,Voicestream Wireless Corp. </td></tr> </table></documentation> <wsdl:output message="tns:sendSMSSoapOut" /> </wsdl:operation> </wsdl:portType> -<wsdl:portType name="SendSMSWorldHttpGet"> -<wsdl:operation name="sendSMS"> <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">Send unlimited free SMS to following countries.<br><b>Note:</b>If your country code 091,Please enter as 91 and if your mobile number 098XXXXX,Please enter as 98XXXX <br><table cellSpacing=0 cellPadding=5 border=0 border-collapse: collapse bordercolor=#111111><tr> <td width=50% ><font size=2 ><b>This SMS covers following countries and&nbsp; networks.</b></td> </tr> <tr><td > <b>Austria -</b><font face=Arial size=-1> Mobilkom<b><br> Bulgaria - </b>Mobiltel <b><br>Croatia -</b> Cronet <b><br>Germany -</b> E-Plus,Mannesman D2 <b><br>Israel - </b>Pelephone <b><br>Lithuania -</b> Omnitel <b><br>Maldives - </b>Dhiraagu <b><br>Norway - </b>NetCom,TeleNor <b><br> Switzerland - </b>Bluewin <b><br>USA - </b>Ameritech Cellular services ,Cellular One, Cingular <b><br>Brazil - </b>ATL express,Telemig Cellular <b><br>Canada -</b> Bell Mobility, Clearnet, Rogers AT&amp;T Wireless ,Telus <b><br>France - </b>Itineris <b><br>India - </b>Essar Cell Phone,RPG Cellular <b><br>Japan - </b>NTT Docomo <b> <br>Malaysia - </b>Celcom <b><br>New Zealand -

  9. </b>Messagetrack <b><br>Spain -</b> MoviStar <b><br>Ukraine - </b>Golden Telecom, UMC <b><br>USA - </b>Comcast Cellular Communications,Voicestream Wireless Corp. </td></tr> </table></documentation> <wsdl:inputmessage="tns:sendSMSHttpGetIn" /> <wsdl:outputmessage="tns:sendSMSHttpGetOut" /> </wsdl:operation> </wsdl:portType> - <wsdl:portType name="SendSMSWorldHttpPost"> - <wsdl:operation name="sendSMS"> <documentation xmlns="http://schemas.xmlsoap.org/wsdl/">Send unlimited free SMS to following countries.<br><b>Note:</b>If your country code 091,Please enter as 91 and if your mobile number 098XXXXX,Please enter as 98XXXX <br><table cellSpacing=0 cellPadding=5 border=0 border-collapse: collapse bordercolor=#111111><tr> <td width=50% ><font size=2 ><b>This SMS covers following countries and&nbsp; networks.</b></td> </tr> <tr><td > <b>Austria -</b><font face=Arial size=-1> Mobilkom<b><br> Bulgaria - </b>Mobiltel <b><br>Croatia -</b> Cronet <b><br>Germany -</b> E-Plus,Mannesman D2 <b><br>Israel - </b>Pelephone <b><br>Lithuania -</b> Omnitel <b><br>Maldives - </b>Dhiraagu <b><br>Norway - </b>NetCom,TeleNor <b><br> Switzerland - </b>Bluewin <b><br>USA - </b>Ameritech Cellular services ,Cellular One, Cingular <b><br>Brazil - </b>ATL express,Telemig Cellular <b><br>Canada -</b> Bell Mobility, Clearnet, Rogers AT&amp;T Wireless ,Telus <b><br>France - </b>Itineris <b><br>India - </b>Essar Cell Phone,RPG Cellular <b><br>Japan - </b>NTT Docomo <b> <br>Malaysia - </b>Celcom <b><br>New Zealand - </b>Messagetrack <b><br>Spain -</b> MoviStar <b><br>Ukraine - </b>Golden Telecom, UMC <b><br>USA - </b>Comcast Cellular Communications,Voicestream Wireless Corp. </td></tr> </table></documentation> <wsdl:input message="tns:sendSMSHttpPostIn" /> <wsdl:output message="tns:sendSMSHttpPostOut" /> </wsdl:operation></wsdl:portType> -

  10. <wsdl:binding name="SendSMSWorldSoap" type="tns:SendSMSWorldSoap"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> -<wsdl:operation name="sendSMS"> <soap:operation soapAction="http://www.webserviceX.NET/sendSMS" style="document" /> -<wsdl:input> <soap:body use="literal" /> </wsdl:input> -<wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> -<wsdl:binding name="SendSMSWorldHttpGet" type="tns:SendSMSWorldHttpGet"> <http:binding verb="GET" /> -<wsdl:operation name="sendSMS"> <http:operation location="/sendSMS" /> -<wsdl:input> <http:urlEncoded /> </wsdl:input> -<wsdl:output> <mime:mimeXml part="Body" /> </wsdl:output> </wsdl:operation> </wsdl:binding>

  11. -<wsdl:binding name="SendSMSWorldHttpPost" type="tns:SendSMSWorldHttpPost"> <http:binding verb="POST" /> -<wsdl:operation name="sendSMS"> <http:operation location="/sendSMS" /> -<wsdl:input> <mime:content type="application/x-www-form-urlencoded" /> </wsdl:input> -<wsdl:output> <mime:mimeXml part="Body" /> </wsdl:output> </wsdl:operation> </wsdl:binding> -<wsdl:service name="SendSMSWorld"> -<wsdl:port name="SendSMSWorldSoap" binding="tns:SendSMSWorldSoap"> <soap:address location="http://www.webservicex.net/sendsmsworld.asmx" /> </wsdl:port> -<wsdl:port name="SendSMSWorldHttpGet" binding="tns:SendSMSWorldHttpGet"> <http:address location="http://www.webservicex.net/sendsmsworld.asmx" /> </wsdl:port> -<wsdl:port name="SendSMSWorldHttpPost" binding="tns:SendSMSWorldHttpPost"> <http:address location="http://www.webservicex.net/sendsmsworld.asmx" /> </wsdl:port> </wsdl:service> </wsdl:definitions>

  12. Vaildate Email Address • การให้บริการของ Service - ตรวจสอบว่าอีเมลล์ที่ป้อนเข้าไปมีอยู่จริงหรือไม่ • URL : -http://www.webservicex.net/ValidateEmail.asmx

  13. Input : -Email Address

  14. Output จะส่งค่ากลับเป็นคำว่า True หรือ False

  15. WSDL

  16. .

  17. .

  18. .

More Related