0
두 개의 Axis Datatypes (WSDL2Java에서 생성)를 서로 변환 할 가능성을 찾고 있습니다. 두 DataTypes는 모두 동일한 XSD에 있으므로 동일한 특성으로 구성됩니다.AxisDatatypes를 동일한 .xsd에서 변환하는 좋은 방법
문제는 Axis가이를 분리 데이터 유형으로 생성합니다.
DataType1 :
public static class AbstractAsynchronousResponse extends AbstractResponse implements org.apache.axis2.databinding.ADBBean {
/*
* This type was generated from the piece of schema that had name =
* AbstractAsynchronousResponse Namespace URI =
* http://www.example.org/AllCallbackTypes Namespace Prefix = ns2
*/
.........}
DataType2 :
public static class AbstractAsynchronousResponse extends AbstractResponse implements org.apache.axis2.databinding.ADBBean {
/*
* This type was generated from the piece of schema that had name =
* AbstractAsynchronousResponse Namespace URI =
* http://www.example.org/AllCallbackTypes Namespace Prefix = ns2
*/
.........}
지금은 이런 식으로 뭔가를하고 싶지 :
AbstractAsynchronousResponse1 response1 = new AbstractAsynchronousResponse1();
AbstractAsynchronousResponse2 response2 = (AbstractAsynchronousResponse2) response1;
해결책이 있습니까?