Hi !

I use only the client facilities of the Axis Project.
I create java stubs with WSDL2java from my WSDLs.

Everythings work fine except when I have more than one out-parameter,
and one of this out-parameter is an org.w3c.dom.Element.
The generated stub declares the out-parameter as an
org.w3c.dom.ElementHolders.

Because you handle the complex type org.w3c.dom.Element, I think you should
have a holder
for it.
I suggest to:
- Add a class javax.xml.rpc.holders.ElementHolders.
- Use this new class for org.w3c.dom.Element that are out-parameters (that
is to modify WSDL2Java).

So :
public void myService(java.lang.String strInParam,
                                   org.w3c.dom.ElementHolder elemOutParam,
                                   javax.xml.rpc.holders.DateHolder
dateOutParam)
should become :

public void myService(java.lang.String strInParam,
                                   javax.xml.rpc.holders.ElementHolder
elemOutParam,
                                   javax.xml.rpc.holders.DateHolder
dateOutParam)

Another solution would be to generate an ObjectHolder as the out-parameter
class, and
we would just have to modify WSDL2Java.

So :
public void myService(java.lang.String strInParam,
                                   org.w3c.dom.ElementHolder elemOutParam,
                                   javax.xml.rpc.holders.DateHolder
dateOutParam)
should become :

public void myService(java.lang.String strInParam,
                                   javax.xml.rpc.holders.ObjectHolder
elemOutParam,
                                   javax.xml.rpc.holders.DateHolder
dateOutParam)


I would be glad you give me your opinion on that problem,
Claire


Reply via email to