The Web Service Client wizard assists you in generating a Java™ bean
proxy and a sample application. The sample Web application demonstrates
how to code a proxy file.
Notes®:
- When defining custom mappings ensure the bean, serializer, and deserializer
classes are on the build path of the Web project, otherwise the wizard will
not accept their class names.
- Indexed properties that result from WSDL XSD complex Types involving more
than one occurrence of DOM Elements are not supported by the sample. SOAP
encoded methods using indexed properties are not available for invocation.
Literal XML encoded methods using indexed properties are available for invocation;
however, the inputs and outputs must be specified as Literal XML.
- Only the following types are supported by the sample application:
- Members that use getters and setters.
- All primitive types and corresponding Java types.
- Java type
String.
- org.w3c.dom.Element
- Java beans.
- BigDecimal, GregorianCalendar, and Date.
Important: It is recommended that you select the service WSDL
document rather than the binding WSDL document in order to generate a client
proxy that contains the complete endpoint information. The service element
is the basis for the Business Service that you will publish. You cannot publish
a Business Service using a WSDL document that does not have service elements.
If you generate a proxy from a WSDL binding document, you must call the setEndPoint() method
to set an endpoint URL before you call any other method in the proxy.
The proxy generated from a WSDL binding document is not automatically equipped
with an endpoint URL.
The generated Java bean proxy provides a remote procedure
call interface to the Web service. The sample Web application demonstrates
how to code the proxy file.
Once you have generated your Java client
proxy, you may test the methods of the Web service through the proxy using
Web Services sample JSPs or the Universal test client.
- If you have selected to test the generated proxy using Web service JSPs,
the proxy is launched in a Web browser at the following URL: http://localhost: port/WebProjectClient/sample/ WebService/TestClient.jsp You can use this sample application to test the
Web service by selecting a method, entering a value for the method, and clicking
Invoke. The result of the method will display in the
results pane.
- If you have selected to test the generated proxy using the Universal Test
Client, it will be launched in a browser window at the following URL: http://localhost:9080/UTC/preload?object=proxy.soap. ProxyNameProxy In the Reference pane,
under Object References, expand the proxy to display the methods of the Web
service. Click the method you want to test, enter a value in the Parameters
pane, and click Invoke. The result will be generated
below.
For more information on creating a Web project, refer to the Web application
development documentation.