aspose file tools*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Is the example given in the thread a valid one as per the WSDL specificiation? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Is the example given in the thread a valid one as per the WSDL specificiation?" Watch "Is the example given in the thread a valid one as per the WSDL specificiation?" New topic
Author

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

Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 530
    
    2

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.



Regards
KumarRaja

Christian Nicoll
Ranch Hand

Joined: Mar 09, 2008
Posts: 106
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


SCJP 5, SCJD 5, SCWCD 5, SCBCD 5, SCJDWS 5
My SCBCD-Notes - My Hello World Webservice
Dan Drillich
Ranch Hand

Joined: Jul 09, 2001
Posts: 1180
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

William Butler Yeats: All life is a preparation for something that probably will never happen. Unless you make it happen.
Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 530
    
    2

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is the example given in the thread a valid one as per the WSDL specificiation?