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 8695807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:07:34+00:00 2026-06-13T01:07:34+00:00

We have a working wsdl2java but the xsd is missing xmlns definition and targetNamespace

  • 0

We have a working wsdl2java but the xsd is missing xmlns definition and targetNamespace definition. When added the wsdl2java then breaks with these errors

 <<< ERROR! 
Part <parameter> in Message <{enrollment}enrollmentResultRequestMessage> referenced Type <Enrollment> can not be found in the schemas
Part <parameter> in Message <{enrollment}enrollmentRequestMessage> referenced Type <Enrollment> can not be found in the schemas

All I did was change

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">

to

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://yyy.com/enrollment" targetNamespace="http://yyy.com/enrollment">

I upgraded cxf to 2.5.2 and still doesn’t work. Anyone have any idea why this would not work? We need to start using xsds that are specification and don’t want to have to remove namespaces every time. Any ideas?

is our wsdl wrong in this case or something(though it works with the first version of the xsd)…

<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
                  xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
                  xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" 
                  xmlns:xs="http://www.w3.org/2001/XMLSchema" 
                  xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
                  xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" 
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                  xmlns:tns="enrollment2"
                  xmlns:en="http://yyy.com/enrollment" 
                  targetNamespace="enrollment2">
    <wsdl:import namespace="http://yyy.com/enrollment" location="enrollment.xsd"/>

    <wsdl:types>
        <xs:schema targetNamespace="enrollment2" elementFormDefault="qualified"/>
    </wsdl:types>

thanks,
Dean

  • 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-13T01:07:35+00:00Added an answer on June 13, 2026 at 1:07 am

    You need to use xsd:import as a child of wsdl:types/xs:schema to include the xsd types.

    <wsdl:types>
      <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
         <xsd:import namespace="http://yyy.com/enrollment" location="enrollment.xsd">
      </xsd:schema>
    </wsdl:types>
    

    That being said, wsdl:import is to import another wsdl defintion with different namespace than yours.

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

Sidebar

Related Questions

I have working with a project and i added a share button to product
I have working code: [self performSelector:@selector(doSomething) ]; but when I change this line to:
I have everything working from the tutorial, replacing it with my data, but it
I currently have working code to save children to a parent entity. But I'm
I have working code but it seems a bit strange that I have to
I'm trying to reuse some script that I have working on another page, but
I have working code below for collision of two circles, but now I have
I have working code but don't like it, its very unruby like to me.
Hi i have working code but i would like to print out the coordinates.
I have working VBA code, but I can't convert it to C#. I have

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.