Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is the example given in the thread a valid one as per the WSDL specificiation?

 
Kumar Raja
Ranch Hand
Posts: 547
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I was going through the examples listed in wsdls, specifically the examples given under "Example 2. Alternative authoring style for the service in Example 1." section.

http://example.com/stockquote/stockquote.xsd


http://example.com/stockquote/stockquote.wsdl


Can the import element used above, import an xsd? I thought wsdl:import can only import another wsdl and XMLSchema import can only import another xsd and that to defined under wsdl:types?

But is the example given above (taken from www.w3.org) wrong? or did I misunderstand the specification ? Please advice.


 
Christian Nicoll
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I wouldn't say that this isn't possible - for that you 've to look in the spec - but I'm quite sure, that you will get in trouble with the WS Baic Profile 1.1:
http://www.ws-i.org/profiles/basicprofile-1.1-2004-08-24.html#WSDL_and_Schema_Import

The profile says " R2003 A DESCRIPTION MUST use the XML Schema "import" statement only within the xsd:schema element of the types section. "

Further there is an INCORRECT example, which shows the wrong use:


Greetings,
Christian
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Something is fundamentally wrong here. We have the complex XML schema, then the evolving, not simple WSDL which needs to conform to the WS Basic Profile, which is a lengthy document. Where is the required simplicity?

Regards,
Dan
 
Kumar Raja
Ranch Hand
Posts: 547
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One thing which I did not understand is, the example WSDL is clearly not in line with the WSDL xsd. Also, the import which was used in WSDL is clearly taken from WSDL schema, as XMLSchema import has schemaLocation as the attribute but in the WSDL it has location.

Apart from that, please help me understand. A WSDL not necessarily be in line with BP, but still a valid WSDL.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic