Java Web Services

Stylus Studio®'s Web Service Call Composer simplifies Java Web Service development through its' support for finding, invoking and testing of any Java Web Service deployed on any popular Java Web Service framework, such as Apache AXIS. In Web Services tutorial, we'll use Stylus Studio® to invoke a Web service query using the Google API. The Stylus Studio® Web Service Call Composer is illustrated below:

Enlarge Java Webservice Call Composer

Composing a Java Web Service

Creating a Java Web Service in Stylus Studio® is easy — start by selecting: File > New > Web Service Call, as illustrated here:

Composing a Java Web Service

Locating a Java Web Service's WSDL file

Stylus Studio® includes a built in UDDI registry browser to locate a Web Service's WSDL file. Here we are searching a public UDDI registry for the location of Google API's WSDL file:

Finding a Java Web Service's WSDL file by searching a UDDI registry

Invoking a Java Web Service

Now that we have Google's WSDL file, Stylus Studio® pre-populates a Web Service Call. Here we see the available Web service operations (doGoogleSearch, doGetCachedPage, doSpellingSuggestion), a Web service operation's parameters (q, start, maxResults, etc.), and an automatically generated SOAP envelope required to properly invoke the Web service operation. Note that if you set a parameter in the parameter window, the SOAP envelope is automatically updated to reflect that change. In the following illustration we are programmatically searching the Google database for "Frozen tomatoes".

Invoking the Google Web Service API using Stylus Studio®

Inspecting the Web Service Results

Stylus Studio® includes a built-in SOAP response preview window. It allows you to inspect the SOAP response returned from the Web service server. You can browse the results in Stylus Studio's various XML editing views, for example, tree view, text view, browser view and save the results to an XML file.

Google API SOAP Response

Build and Test Java Web Services with Apache AXIS

Stylus Studio® supports Web service development and testing on all of the major Web Services frameworks, including Apache AXIS, Microsoft SOAP Toolkit 3.0, and Microsoft .NET. Stylus Studio® allows you to create and save Web service call scenarios, which are associations of various properties and settings used to invoke a particular Web service. To choose Apache AXIS, check it off as your default Web service server as illustrated here:

Using Apache Axis for Java Web Service testing and development

Stylus Studio®'s Web Service Call Composer is a powerful tool for accelerating Java Web service application development

Return to Java & XML tools overview page.

Database-to-XML Mapping

Stylus Studio features several database-to-XML mapping tools that allow you to easily query a relational database using SQL/XML or SQL and render the results as XML. Stylus Studio also supports the world's first and only visual SQL/XML Editor!

Learn Stylus Studio in 6 Minutes

Learn Stylus Studio in 6 Minutes is the world's fastest introduction to XML development using Stylus Studio. In just six minutes, learn how to leverage Stylus Studio's powerful XML tools and utilities to simplify XML development.

XML Programming

Simplify XML Programming with Stylus Studio's XML Pipeline, a powerful tool for modeling, programming, debugging and deploying complete XML programs.

Writing Custom XML Adapters

There are cases where the input format is too complicated for Convert to XML, or both reading and writing of the file format is needed. This section will take you through the process of writing a medium-sized adapter in Java.

Stylus Most Wanted

PURCHASE STYLUS STUDIO ONLINE TODAY!!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Try Stylus Web Service Tools & Java IDE

Download a free trial of our award-winning XML & Java IDE today!

Learn XQuery in 10 Minutes!

Say goodbye to 10-minute abs, and say Hello to "Learn XQuery in Ten Minutes!", the world's fastest and easiest XQuery primer, now available for free!

Ask Someone You Know

Does your company use Stylus Studio? Do your competitors? Engineers from over 100,000 leading companies use Stylus Studio, and now you can ask someone from your own organization about their experiences using Stylus Studio.

Free Java Code Generation Video Demonstration

A new online video demonstration shows just how easy it is to generate the Java code to make your XSLT and XQuery work in your Java apps.

 
Free Stylus Studio XML Training:
W3C Member