• Post Reply Bookmark Topic Watch Topic
  • New Topic

Imported xsd not know in a wsdl file  RSS feed

 
mark smith
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • 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?
 
g tsuji
Ranch Hand
Posts: 697
3
  • Mark post as helpful
  • send pies
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!