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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]