Hi all,

I’m trying to consume a WSDL made by axis 1 (soap encoded) from a modern Axis 2 software stack. The goal is to create Beans and access code via wsdl2java. I’ve found a few posts about and have made some progress but am stuck now.

Steps I’ve taken so far:
As mentioned in https://marc.info/?l=axis-user&m=130276695129853&w=2 I used the xmlbean generation of wsdl2java to allow the consumption of the SOAP encoded endpoints. I had to convert a few things (references to SOAPException subclasses needed some fixes) and now I can generate classes for 2 out of 4 WSDLs. Now I’m stuck on the fact that the WSDL defines types using the namespace http://xml.apache.org/xml-soap:

Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: error: src-resolve: type 'Element@http://xml.apache.org/xml-soap' not found.

        at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:326)

        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)

        ... 5 more

Caused by: org.apache.xmlbeans.XmlException: error: src-resolve: type 'Element@http://xml.apache.org/xml-soap' not found.

        at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:226)

        at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)

        at java.base/java.lang.reflect.Method.invoke(Method.java:578)

        at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)

        at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:190)


I’ve attached the WSDL file in question. Is there any way to proceed with this? Thanks in advance!

Attachment: CableConnectionWS.xml
Description: XML document


Kevin Read
Om7Sense GmbH
Next-Gen Energy Management For Data Centers
kevin.r...@om7sense.com
Tel: +49 (0) 871-2066707-1
Mob: +49-173-7404977

Om7Sense GmbH | Haunerweg 6 | 83530 Schnaitsee | Germany
Web: https://www.om7sense.com/
Geschäftsführer: Kevin Read (CEO) | USt-IdNr.: DE308876193 (VAT ID)
Registergericht: Amtsgericht Traunstein | Registernummer: HRB 25488
(German commercial register entry number at local district court of registration)

Reply via email to