Learn XQuery |
Home:Learn XQuery:XQuery Examples:XQueryWebService:XQueryWebService Framework:WSDL Generation Generating WSDL DocumentsXQueryWebService also automatically generates a Web Service Definition Language (WSDL) document based on the XQuery in your Java servlet container's XQuery folder. The WSDL document describes the services that are exposed by a given XQuery, and this can be useful if you plan to provide programmatic access to one or more of those services. To take a look at the WSDL document generated — in real-time — for the Employee Lookup example, click here. If we take a closer look, we see that the WSDL document defines a single service (<wsdl:service> ), exposed through two ports: SOAP and HTTPGET. Each query is exposed as a WSDL operation (<wsdl:operation> ), with each query's external variables exposed as operation parameters. Further, all built-in schema types are preserved in the parameter declaration. Consider the following external variable declared in our example XQuery: declare variable $id as xs:string external; In the <wsdl:types> section of the generated WSDL document, you find the following global element: <xs:element name="emp"> The input message references the global element, "emp": <wsdl:message name="empInputMsg"> Currently, XQueryWebService does not support user-defined types for external variables. Next StepsYou can use a WSDL document to create a set of classes that can be used to manipulate the data service as if it was a local library. Learn more about using WSDL service references in the next section. |
XQJ Tutorial!Learn about the power of DataDirect XQuery® and XQJ now! This informative tutorial covers basics and advanced concepts in quick, easy-to-read chapters, and includes four working code samples to help you learn. Try DataDirect XQuery® Free!Put the power, scalability, and performance of DataDirect XQuery® to work for you today! Our free trial lets you see for yourself how easy it is to build data integration applications that access relational, EDI, and other file formats as XML! |





