Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

why XSD apart from WSDL

for consuming web service apart from WSDL why we need to provide XSD of XML again?

WSDL it self has all information about request and responses right?

in <wsdl:types> element of wsdl has the xsd name in it?
xmls:tns means what in wsdl
what is
xmlns:soap means?
targetNamespace="http://xyz.com/courses"> means what?
in <wsdl:types> what is <xs:complexType name="courseDetails"> means?
why we use it?
Please advise with any good links, references, code examples, video tutorials etc
Avatar of girionis
girionis
Flag of Greece image

The WSDL, without the <types> element, does not define the types, only the operations. If you want to define the types you need to use the <types> element with an embedded or external schema (xsd).

The xmlns:soap means that the types are taken from the soap namespace.

For understanding schema namespaces have a look here.
Avatar of gudii9

ASKER

The WSDL, without the <types> element, does not define the types, only the operations. If you want to define the types you need to use the <types> element with an embedded or external schema (xsd).

Type element defined in WSDL right not XSD

Lets say i develop web service application and i need to expose to my client  named xyz

In this case why i have to give xyz XSD as well apart from WSDL

Any end to end examples, links, resources on this

Please advise
SOLUTION
Avatar of Theo Kouwenhoven
Theo Kouwenhoven
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
In this case why i have to give xyz XSD as well apart from WSDL

Because there is no other way to define the type of the xyz service. You either define the schema in the WSDL file itself, or externally.
Avatar of gudii9

ASKER

Because there is no other way to define the type of the xyz service. You either define the schema in the WSDL file itself, or externally.
is it either wsdl or xsd

But i was thinking it must be bot wsdl and xsd
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of gudii9

ASKER

that make sense now thank you