Logo

dev-resources.site

for different kinds of informations.

Error - Exception occurred during code generation for the WSDL

Published at
9/15/2022
Categories
java
soap
wsdl
Author
alinelsilva
Categories
3 categories in total
java
open
soap
open
wsdl
open
Author
11 person written this
alinelsilva
open
Error - Exception occurred during code generation for the WSDL

I'm trying to generate the java classes from the .wsdl file, but when trying to generate the following error:

Image description

Image description

Image description

Exception occurred during code generation for the WSDL : java.lang.NoClassDefFoundError: org/apache/ws/commons/schema/utils/NamespacePrefixList
     java.lang.reflect.InvocationTargetException
Enter fullscreen mode Exit fullscreen mode

In the pom I added the lib:

<dependency>
<groupId>org.apache.ws.xmlschema</groupId>
<artifactId>xmlschema-core</artifactId>
<version>2.2.1</version>
</dependency>
Enter fullscreen mode Exit fullscreen mode

But the error remains.

Solution:

As decker's comment, I added the lib below in the pom and it worked, after that I managed to generate the class.

<dependency>
            <groupId>org.apache.ws.xmlschema</groupId>
            <artifactId>xmlschema-core</artifactId>
            <version>2.0.2</version>
        </dependency>
Enter fullscreen mode Exit fullscreen mode
soap Article's
30 articles in total
Favicon
REST VS SOAP
Favicon
OpenTelemetry Traces from IRIS implemented SOAP Web Services
Favicon
Top 6 SOAP API Documentation Tools to Streamline Your Development Process
Favicon
How to Turn Any SOAP Web Service into a REST API
Favicon
Getting hands dirty with SOAP
Favicon
Best Practices for Naming REST API Endpoints
Favicon
Choosing the Right API Protocol: GraphQL vs. REST vs. SOAP
Favicon
Mastering SOAP WSDL: Step-by-Step Tutorials and Examples
Favicon
SOAP Explained: With Javascript
Favicon
SOAP Integration in Salesforce
Favicon
Mastering Jakarta SOAP API: A Detailed Introduction for 2024
Favicon
Create SOAP Services Using ASP.NET Core
Favicon
How to use SOAP/WSDL APIs using SoapUI & Python Zeep
Favicon
Test SOAP Web Service using Postman tool
Favicon
🌟 Supercharge Your APIs with GraphQL! πŸš€
Favicon
Debugging Web
Favicon
SOAP com TypeScript em pleno 2023
Favicon
XML Parsing em NodeJS com XMLBuilder2
Favicon
Comparing REST API and SOAP: Understanding the Key Differences
Favicon
Net::SAML2 0.60 TRIAL Released
Favicon
Error - Exception occurred during code generation for the WSDL
Favicon
How to call SOAP Services using REST
Favicon
Wednesday Links - Edition 2022-05-18
Favicon
Feign com SOAP: uma PoC
Favicon
Make a Soap call in React js by a webservice
Favicon
Implementando um Serviço com SOAP, (HTTP e XML).
Favicon
Client for WebSockets based on Node.js
Favicon
Validando o schema de arquivos XML com .Net e C#
Favicon
Signing and verifying SOAP messages with wss4j and Scala
Favicon
Contract First Web Service Development in .NET

Featured ones: