• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

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

 
Ranch Hand
Posts: 558
2
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 558
2
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic