Hi, These days I am working on SOAP. Something I didnt understand so now I am going to share that. I am using PHP5 SOAP. Below sample one I copied from one site If anybody know plz tell me the solution. <?xml version="1.0" encoding="UTF- <wsdl:definitions xmlns:wsdl=" <wsdl:types> <xs:schema xmlns:ns="http: <xs:element name="ExamResult"> <xs:complexType> <xs:sequence> <xs:element name="studentName" type="xs:string" <xs:element name="subject" type="xs:string" <xs:element name="year" type="xs:int" <xs:element name="semester" type="xs:int" </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ExamResultRes <xs:complexType> <xs:sequence> <xs:element name="result" type="xs:string" </xs:sequence> </xs:complexType> </xs:element> </xs:schema> </wsdl:types> <wsdl:message name="ExamResultReq <wsdl:part name="parameters" element="ns0: </wsdl:message> <wsdl:message name="ExamResultRes <wsdl:part name="parameters" element="ns0: </wsdl:message> <wsdl:portType name="ExamResultPor <wsdl:operation name="ExamResult"> <wsdl:input message="ns0: <wsdl:output message="ns0: </wsdl:operation> </wsdl:portType> <wsdl:binding name="ExamResultSOA <soap12:binding transport="http: <wsdl:operation name="ExamResult"> <soap12:operation soapAction=" <wsdl:input> <soap12:body use="literal" </wsdl:input> <wsdl:output> <soap12:body use="literal" </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="ExamResult"> <wsdl:port name="ExamResultSOA <soap12:address location="http: </wsdl:port> </wsdl:service> </wsdl:definitions> In above xmlns:ns0 means what. When I try to browse the URL 'http://HighSchool. In <xs:element name="ExamResult"> tag having studentName, Age etc., with string and int type. My question is how can I give my own data type (customised) for example <xs:complexType name="addr"> <xs:sequence> <xs:element name="street" type="xs:string" <xs:element name="city" type="xs:string" </xs:sequence> </xs:complexType> <xs:element name="ExamResult"> <xs:complexType> <xs:sequence> <xs:element name="studentName" type="xs:string" <xs:element name="subject" type="xs:string" <xs:element name="year" type="xs:int" <xs:element name="semester" type="xs:int" <xs:element name="address" type="xs:addr" </xs:sequence> </xs:complexType> can I refere like this. if not please let me know the correct process. This is one not giving error but unable to retrieve data. Thanks in advance. Hari. |
Add more friends to your messenger and enjoy! Invite them now.
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch format to Traditional
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
.
__,_._,___
No comments:
Post a Comment