Java based service providers typically use annotations to specify JAX-WS metadata. Since JavaScript does not support annotations, you must use ordinary JavaScript variables to specify metadata for JavaScript implementations. Fuse Services Framework treats any JavaScript variable with a name that equals or begins with WebServiceProvider as a JAX-WS metadata variable.
Properties of the variable are expected to specify the same metadata that the JAX-WS WebServiceProvider annotation specifies, including:
The JavaScript WebServiceProvider— can also specify the following optional properties:
ServiceMode—Indicates whether the specified service handles SOAP payload documents or full SOAP message documents. This property mimics the JAX-WS ServiceMode annotation. The default value is PAYLOAD.
BindingMode—Indicates the service binding ID URL. The default is the SOAP 1.1/HTTP binding.
EndpointAddress—Indicates the URL consumer applications use to communicate with this service. The property is optional and has no default.
Example 1.1 shows a metadata description for a JavaScript service implementation.
Example 1.1. JavaScript Web Service Metadata
var WebServiceProvider1 = {
'wsdlLocation': 'file:./wsdl/hello_world.wsdl',
'serviceName': 'SOAPService1',
'portName': 'SoapPort1',
'targetNamespace': 'http://objectweb.org/hello_world_soap_http',
};