Hi all,
I posted this some time ago to the user mailing list, but didn't get any
reaction.
The problem is I ended up extending a servicemix class in order to configure
the type mapping for WSIF, as seen in a demo on the wsif site (calling
service.mapType()). I saw no way of achieving this with the WSIFBinding class
I wonder if that extension was needed, or there are other ways to set up the
necessary complex types for WSIF.
What I did:
public class MyWsifBinding extends WSIFBinding {
public void setMapTypes(MapTypes types) {
. . .
getServiceHelper().mapType( new QName(types.geNamespace(), type.geName()),
Class.forName( type.getJavaType()));
} . .
TypeMapping initialization takes place in the Spring container:
<component id="login" service="foo:login" class=". . . .MyWsifBinding" >
<property name="definitionResource" value="http://.../soap.php?wsdl"/
<http://.../soap.php?wsdl%22/> >
<property name="mapTypes" ref="mapTypes"/>
. . .
<bean id="mapTypes" class=". . MapTypes">
. . .
<property name="name" value="set_entry_result"/>
<property name="javaType" value=". . ..Set_entry_result"/>
Regards,
Assen
Checked by Trend Micro InterScan Anti-Virus System.