fabrizio picca wrote:

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?


It seems JBoss understand .wsr files and use web-service.xml like a wsdd file.

i've addedd the elements you told me:
<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=""
/>


Hum.. The namespace should not include class name ("Trigger"), I believe you should use instead:

 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 and
triggerSOAPBindingStub.java which i've NOT included in my development)


Hum... 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.


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!) ?


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.

Cheers,

Adrian P.J.

Reply via email to