Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Imported xsd not know in a wsdl file

 
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


In a wsdl file, i try to use some element

My PolicyRequest.xsd file



My wsdl file



In the wsdl file i get

XSD: Type reference 'http://www.example.org/PolicyRequest#PolicyRequest' is unresolved

Why I'm not able to access element from my xsd?
 
Ranch Hand
Posts: 733
7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
[1] You add the targetNamespace attribute (http://www.example.org/PolicyRequest) to the PolicyRequest.xsd. (It is not there in the xsd as shown.)
[2] In the wsdl:types, you reference that "element" in the imported PolicyRequest namespace rather that via type (because you do not define a named type, but rather a named element there).

[3] Similar thing might be happening for PolicyResult as well, but many xsd's are not shown so it is just a deduction by analogy.
[4] By doing the above, effectively, you'r making the http://www.example.org namespace practically empty if that is what you really have in mind.

But as I look through the shown portions of wsdl and xsd and with some logical deductiond on the unshown, I think there are many many places you've to rewrite to make thing really glued together properly.
 
reply
    Bookmark Topic Watch Topic
  • New Topic