How to make wsdl and xsd as a single file

Posted on 2014-08-20
Last Modified: 2014-10-18

I created a sample web service using Javax-ws and jaxb in java, the wsdl generated as 2 files, one schema and wsdl, but i want that xsd content also in my wsdl file itself.

How to do that..kindly help me.
Question by:prabhualla
    1 Comment
    LVL 35

    Accepted Solution

    XSD schema can be included within the WSDL by placing it in a <wsdl:types> element as a child under your <wsdl:definitions> element.

    A basic example follows (but if you post your 2 files I could provide a more complete example)...
    <definitions name="HelloService"
            <xsd:schema targetNamespace="">
                <xsd:element .... />
       <!-- The rest of your WSDL would be here! -->

    Open in new window

    Refer to for the official reference.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Suggested Solutions

    Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
    The task of choosing a web design company to build a website for your business should never be taken in a light manner. Provided the fact that your website will act as a representative to your business and will be responsible for imposing an online …
    Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
    The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now