简体   繁体   English

新版本的axis2(OMSourcedElementImpl)

[英]New version of axis2 (OMSourcedElementImpl)

Now I have such code: 现在我有这样的代码:

  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,parentQName){

                 public void serialize(javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException {
                       WSExceptionType.this.serialize(parentQName,factory,xmlWriter);
                 }
               };
               return new org.apache.axiom.om.impl.llom.OMSourcedElementImpl(
               parentQName,factory,dataSource);

       }

I need to use new version of Axis2 - 1.7.5 in my project. 我需要在项目中使用新版本的Axis2-1.7.5。

The new version of library axiom-impl-1.2.20.jar doesn't contain constructor of OMSourcedElementImpl class with such parameters, but without parameters only. axiom-impl-1.2.20.jar的新版本不包含带有此类参数的OMSourcedElementImpl类的构造函数,而仅不包含参数。

How can I solve this issue to have the same functionality with new libraries? 如何解决此问题以使新库具有相同的功能?

That code was generated with an old version of Axis2. 该代码是使用Axis2的旧版本生成的。 You need to regenerate it with Axis2 1.7.5. 您需要使用Axis2 1.7.5重新生成它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM