Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Create WSDL

576 views

Published on

WSDL Example

Published in: Education, Technology, Design
  • Be the first to comment

Create WSDL

  1. 1. <?xml version="1.0" encoding="UTF-8" standalone="no"?> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://w xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="HelloWorldComplex" targetNamespace="http:// helloworldtutorials.blogspot.com/complexHelloWorld/Example/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <wsdl:types> <xsd:schema targetNamespace="http:// helloworldtutorials.blogspot.com/complexHelloWorld/Example/"> <xsd:import namespace="http:// helloworldtutorials.blogspot.com/relatedClasses/" schemaLocation="soap-encoding.xsd" / > <xsd:element name="studentId"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:pattern value="[0-9]{1,10}" /> </ xsd:restriction> </ xsd:simpleType> </xsd:element> <xsd:element name="StudentInfoResponse"> <xsd:complexType> <xsd:sequence> <!-- Student ID --> <xsd:element name="studentId"> <xsd:simpleType> <xsd:restriction base="xsd:string"> <xsd:pattern value="[0-9]{1,10}" /> </ xsd:restriction> </ xsd:simpleType> </xsd:element> <!-- College Id --> <xsd:element name="collegeId"> <xsd:simpleType>
  2. 2. <xsd:restriction base="xsd:string"> <xsd:pattern value="[0-9]{1,10}" /> </ xsd:restriction> </ xsd:simpleType> </xsd:element> <!-- Student First Name --> <xsd:element name="firstName" type="xsd:string" nillable="true" /> <!-- Student Last Name --> <xsd:element name="lastName" type="xsd:string" nillable="true" /> <!-- Date of Birth --> <xsd:element name="dob" type="xsd:dateTime" nillable="true" /> <!-- Student Start Date --> <xsd:element name="startDate" type="xsd:dateTime" nillable="true" /> <xsd:element name="graduateDate" type="xsd:dateTime" nillable="true" /> <!-- College Location --> <xsd:element name="location" type="xsd:string" nillable="true" /> <!-- Student status --> <xsd:element name="returnStatus" type="xsd:string" nillable="true" /> <!-- Response Time
  3. 3. from College --> <xsd:element name="responseTime" type="xsd:dateTime" nillable="true" /> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> </wsdl:types> <wsdl:message name="getStudentInfo"> <wsdl:part element="tns:studentId" name="input" /> </wsdl:message> <wsdl:message name="getStudentInfoResponse"> <wsdl:part element="tns:StudentInfoResponse" name="return" /> </wsdl:message> <wsdl:portType name="StudentResponsePort"> <wsdl:operation name="getstudentinfo"> <wsdl:input message="tns:getStudentInfo" /> <wsdl:output message="tns:getStudentInfoResponse" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="studentInfoService" type="tns:StudentResponsePort"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/ http" /> <wsdl:operation name="getstudentinfo"> <soap:operation soapAction="http:// helloworldtutorials.blogspot.com/complexHelloWorld/getstudentinfo" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="StudentInformationService"> <wsdl:port binding="tns:studentInfoService" name="Information"> <soap:address location="http://localhost/" /> </wsdl:port> </wsdl:service> </wsdl:definitions>

×