Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8209745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:50:03+00:00 2026-06-07T09:50:03+00:00

I’m trying to generate Java service classes from a WSDL definition I have already

  • 0

I’m trying to generate Java service classes from a WSDL definition I have already created. My current problem is that it fails with the following message, no more detail than that:

Unable to generate JAX-WS Source.

Reason:
java.lang.NullPointerException

(yay~ for verboseness)

I am using MuleStudio 1.3.0, which is based on Eclipse 3.6.1. I have tried creating these classes both from Mule’s components and from the WSDL directly, but I get the same error.

I mixed up the WSDL on purpose and it correctly started throwing validation errors. This means that it’s reading the file and parsing it properly. Not clue about what happens next.

How may I troubleshoot this?

Below is my wsdl file for reference:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions 
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns="http://tempuri.org/ListenerService/" 
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    name="ListenerService"
    targetNamespace="http://tempuri.org/ListenerService/">
    <!-- types -->
    <wsdl:types>
        <!-- Generic TransactionLog entities -->
        <xsd:schema targetNamespace="http://tempuri.org/ListenerService/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
            <xsd:simpleType name="LevelEnumeration">
                <xsd:restriction base="xsd:normalizedString">
                    <xsd:enumeration value="Debug" />
                    <xsd:enumeration value="Info" />
                    <xsd:enumeration value="Warning" />
                    <xsd:enumeration value="Error" />
                    <xsd:enumeration value="Fatal" />
                </xsd:restriction>
            </xsd:simpleType>

            <xsd:complexType name="LogEntry">
                <sequence>
                    <xsd:element name="CorrelationToken" type="xsd:normalizedString"/>
                    <xsd:element name="SystemId" type="xsd:normalizedString"/>
                    <xsd:element name="Level" type="tns:LevelEnumeration"/>
                    <xsd:element name="Description" type="xs:string" />
                    <xsd:element name="RecordData" type="xs:string" />
                    <xsd:element name="Timestamp" type="xs:dateTime" />
                </sequence>
            </xsd:complexType>

            <!-- Service Specific Types -->
            <xsd:simpleType name="GenericResponseStatusEnumeration">
                <xsd:restriction base="xsd:normalizedString">
                    <xsd:enumeration value="Success" />
                    <xsd:enumeration value="Error" />
                </xsd:restriction>
            </xsd:simpleType>
            <xsd:complexType name="ListenerServiceGenericResponse">
                <sequence>
                    <xsd:element name="Status" type="tns:GenericResponseStatusEnumeration" />
                    <xsd:element name="Detail" type="xsd:string" minOccurs="0" maxOccurs="1" />
                </sequence>
            </xsd:complexType>

            <xsd:element name="LogEntry" type="tns:LogEntry" />
            <xsd:element name="ServiceResponse" type="tns:ListenerServiceGenericResponse" />
        </xsd:schema>
    </wsdl:types>

    <!-- service message types -->
    <wsdl:message name="SubmitLogRequest">
        <wsdl:part name="LogEntry" type="tns:LogEntry" />
    </wsdl:message>
    <wsdl:message name="SubmitLogResponse">
        <wsdl:part name="Response" type="tns:ListenerServiceGenericResponse" />
    </wsdl:message>

    <!-- service messages -->
    <wsdl:portType name="ListenerService">
        <wsdl:operation name="SubmitLog">
            <wsdl:input message="tns:SubmitLogRequest" />

            <!-- TODO: Remove this to make it a one-way operation -->
            <wsdl:output message="tns:SubmitLogResponse" />
        </wsdl:operation>
    </wsdl:portType>

    <!-- service bindings -->
    <wsdl:binding name="ListenerServiceSOAP">
        <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
        <wsdl:operation name="SubmitLog">
            <soap:operation soapAction="http://tempuri.org/ListenerService/SubmitLog" />
            <wsdl:input>
                <soap:body use="literal" />
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal" />
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>

    <wsdl:service name="ListenerService">
        <wsdl:port binding="tns:ListenerServiceSOAP" name="ListenerServiceSOAP">
            <soap:address location="http://tempuri.org" />
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T09:50:05+00:00Added an answer on June 7, 2026 at 9:50 am

    I would try calling the jaxws wsimport command directly on your Wsdl from a command line.
    I believe it comes with the JDK now so you shouldn’t even have to download it.
    You may have run into a bug which has been fixed in a later version of wsimport.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am currently running into a problem where an element is coming back from
I'm trying to create an if statement in PHP that prevents a single post
I have thousands of HTML files to process using Groovy/Java and I need to
I am trying to loop through a bunch of documents I have to put
I have a bunch of posts stored in text files formatted in yaml/textile (from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.