A webservice binding can be further configured by mean of optional
attributes supported by a binding.ws
element.
Currently, two optional attributes are supported:
wsdlElement
, useful to specify which port type
to use in the source WSDL. As in the meteo example:
<sca:binding.ws wsdlElement="http://www.webserviceX.NET#wsdl.port(GlobalWeather/GlobalWeatherSoap)"/>
the value of the wsdlElement must consist of:
wsdli:wsdlLocation
, useful to specify an
alternative URL from which to retrieve the WDSL of the webservice.
As in the meteo example:
<sca:binding.ws wsdli:wsdlLocation="http://www.webservicex.net/globalweather.asmx?WSDL"/>
To use this attribute, a new namespace
declaration must be added in the head of the
.composite
file:
<sca:composite xmlns:sca="http://www.osoa.org/xmlns/sca/1.0" xmlns:wsdli="http://www.w3.org/2004/08/wsdl-instance" />
This attribute is used by FraSCAti to retrieve
the WSDL of the target webservice from an alternative URL. If this
attribute is not given, FraSCAti uses the default URL, saved in
the Java interfaces generated by the frascati
wsdl2java
command. The default URL is the full path of the
input WSDL file.