The easiest way to get started with Web services is to learn XML-RPC. Check out the XML-RPC specification or read my book, Web Services Essentials. O'Reilly has also recently released a book on Programming Web Services with XML-RPC by Simon St.Laurent, Joe Johnston, and Edd Dumbill.
Once you have learned the basics of XML-RPC, move onto SOAP, WSDL, and UDDI. These topics are also covered in Web Services Essentials. For a comprehensive treatment of SOAP, check out O'Reilly's Programming Web Services with SOAP, by Doug Tidwell, James Snell, and Pavel Kulchenko.
A semantic annotation is additional information in a document that defines the semantics of a part of that document. In this technical note, the semantic annotations are additional information elements in a WSDL document. They define semantics by referring to a part of a semantic model that describes the semantics of the part of the document being annotated.
The WSDL document forms the anchor point for Web services description. Building on the descriptive capability of WSDL, a mechanism is provided to annotate the capabilities and requirements of Web services with semantic concepts referenced from a semantic model. To do this, mechanisms are provided annotate the service and its inputs, outputs and operations. Additionally, we provide mechanisms to specify and annotate preconditions and effects of Web Services.These preconditions and effects together with the semantic annotations of inputs and outputs can enable automation of the process of service discovery.
At the command prompt:
WSDL http://ip address ofthe site/WebService/MathService.asmx /n:NameSp /out:FileName.cs]
-This will create a file called FileNmame.cs .
WSDL -> WebServices Description Language (This is an application available at C:Program
FilesMicrosoft.NETFrameworkSDKBin)
NameSp -> Name of the NameSpace which will be used in client code for deploying the
webservice.
2.Compilation
CSC /t:library /r:system.web.dll /r:system.xml.dll CreatedFile.cs
This will create a dll with the name of the public class of the asmx file.( In our case, it
is AddNumbers.dll )
CSC is an application available at C:WINNTMicrosoft.NETFrameworkv1.0.2914
3.Put the dll file inside WWWRooTBIN [Create a BIN Folder in WWWRoot]
Basically we use binding in WSDL to define format of messages and detailed information about protocol of web services.
I have given you binding consist of two attributes.
these are name attribute and type attribute(name is used to define binding name where as type is used to define binding port.
I case of SOAP binding it has two attribute. These are style and transport attribute.
Example:
<message name="getTermRequest">
<part name="term" type="xs:string"/>
</message>
<message name="getTermResponse">
<part name="value" type="xs:string"/>
</message>
<portType name="glossaryTerms">
<operation name="getTerm">
<input message="getTermRequest"/>
<output message="getTermResponse"/>
</operation>
</portType>
<binding type="glossaryTerms" name="b1">
<soap:binding style="document"
transport="http://xyzsoap.org/soap/http" />
<operation>
<soap:operation
soapAction="http://soapexample.com/getTerm"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
WSDL stands for Web Services Description Language. It is an XML representation of the web service interface.
There are two types of the operations specified in the WSDL file as represented by the <soap:binding> attribute of the file.
1. Document oriented operations -- are the ones which contain XML documents as input and output
2. Result oriented operations -- are the ones which contain input parameters as the input message and result as the output message
Webmaster 23rd of May 2012
Tell us what you feel about WSDL (Web Services Description Language) Interview Questions and Answers
All comments will be published after review. No login or registration is required to post a comment on WSDL (Web Services Description Language) Interview Questions and Answers We offer and invite you to submit your valuable comment now; Please be respectful of others when commenting. Insulting others, self-promotional comments, website promotional comments, marketing stuff, SEO Techniques, SMS-style content and off-topic comments will not be approved at this information portal.
So start sharing your thoughts regarding WSDL (Web Services Description Language) Interview Questions and Answers
Thank you.