fabrizio picca wrote:
It seems JBoss understand .wsr files and use web-service.xml like a wsdd file.Hi Adrian, thanks a lot for everything you told me.
I'm still having problems.
i'm new to this things , and so it's more difficult for me.
Well , in my bean implementation there is no wsdd file. But the content of that file is in a web-service.xml.
Ant is also configured in this way:
<target name="wsr">
<jar jarfile="jar/sppm.wsr" basedir="${build.dir}">
<metainf dir="" includes="web-service.xml"/>
<exclude name="**"/>
</jar>
</target>
and so i think that it works the same as a wsdd file isn't it?
i've addedd the elements you told me:Hum.. The namespace should not include class name ("Trigger"), I believe you should use instead:
<typeMapping
xmlns:ns="http://Trigger.trigger.proxy.triggers.wp4.firb.dico.unimi.it"
qname="ns:Trigger"
type="java:it.unimi.dico.firb.wp4.triggers.proxy.trigger.Trigger"
serializer="org.apache.axis.encoding.ser.BeanSerializerFactory"
deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory"
encodingStyle=""
/>
xmlns:ns="http://trigger.proxy.triggers.wp4.firb.dico.unimi.it"
The same for thr rest of typemappings.
you can see that i've mapped also the subclasses needed for the
TriggerSet class.
ok.
( WSDL2java generates also come other classes like triggerLocator.java andHum... you should use those classes in your client, as they provide helper methods to talk to your web service, to avoid low level soap handling.
triggerSOAPBindingStub.java which i've NOT included in my development)
Look at the *BindingStub.java files... you will see all that stuff needed to use the webservice, but I still recommend you to use *BindingStub.java classes in the client. Check out axis user guide and usage of generated classes at client side.
i gave a look at axis java examples of custom type mapping. i remember that there was something like: QName qn = new QName( "urn:BeanService", "Order" );
call.registerTypeMapping(Order.class, qn, new org.apache.axis.encoding.ser.BeanSerializerFactory(Order.class, qn), new org.apache.axis.encoding.ser.BeanDeserializerFactory(Order.class, qn));
in the client implementation.
Do i have to add those lines (obviously changed!) ?
Cheers,
Adrian P.J.
