Help coderanch get a
new server
by contributing to the fundraiser
  • 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Imported xsd not know in a wsdl file

 
Ranch Hand
Posts: 264
  • 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: 734
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.
 
Whoever got anywhere by being normal? Just ask this exceptional tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic