Hi Joana,
What is the plugin version ( i.e. axis2 server version ) that you tried.
This seems to be a issue, please file a JIRA on this for axis2.
http://issues.apache.org/jira/browse/AXIS2
Thanks
Lahiru Sandakith.
On Wed, Feb 13, 2008 at 7:50 PM, DA TRINDADE, Joana <
[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Looking at the code of a stub generated by the WSDL-to-Java wizard, I
> noticed that the QName parameter of a generated getOMElement(QName
> parentQName, OMFactory factory) is not being used. Here is the output
> generated by the wizard:
>
> /**
> *
> * @param parentQName
> * @param factory
> * @return org.apache.axiom.om.OMElement
> */
> public org.apache.axiom.om.OMElement getOMElement (
> final javax.xml.namespace.QName parentQName,
> final org.apache.axiom.om.OMFactory factory)
> throws org.apache.axis2.databinding.ADBException{
>
> org.apache.axiom.om.OMDataSource dataSource =
> new org.apache.axis2.databinding.ADBDataSource(this,MY_QNAME){
>
> public void
> serialize(org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWr
> iter xmlWriter)
> throws
> javax.xml.stream.XMLStreamException {
>
> AuthenticateClientResponse.this.serialize(MY_QNAME,factory,xmlWriter);
> }
> };
> return new
> org.apache.axiom.om.impl.llom.OMSourcedElementImpl(MY_QNAME,factory,data
> Source);
> }
>
> As it can be seen the generated code uses MY_QNAME, ignoring
> parentQName. In this way, it is not possible to specify which OMElement
> to retrieve the response message if based on this generated method. I
> modified the generated code for my version here, but I would like to
> raise this issue.
>
> Thanks and regards,
>
> Joana M. F. da Trindade
> Student Intern
> SAP Research - Security & Trust
> SAP Labs France
> 805 Avenue du Dr. Maurice Donat
> 06250 Mougins
> T +33/492286319
> F +33/492286201
> mailto:[EMAIL PROTECTED]
> http://www.inf.ufrgs.br/~jmftrindade<http://www.inf.ufrgs.br/%7Ejmftrindade>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Thanks
Lahiru Sandakith
http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC 1AB1 FE5E 7464 1F01 9A0F