i have created a WSDL to match a webservice (
http://homepages.feis.herts.ac.uk/~3com0109/cgi-bin/policy.cgi) but when i tried to validate the WSDL i am got the following error message:
-<types> error processing schema ,invalid xml schema: 'value' is not allowed for attribute 'name'
note that i am using Altova XMLSPY
<?xml version="1.0" encoding="utf-8"?>
<definitions xmlns="
http://schemas.xmlsoap.org/wsdl/" xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="
http://www.w3.org/2001/XMLSchema" xmlns:tns="
http://homepages.feis.herts.ac.uk/~3com0109/cgi-bin/policy.cgi" xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="
http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="
http://homepages.feis.herts.ac.uk/~3com0109/cgi-bin/policy.cgi">
<!-- Type definitions -->
<types>
<s:schema elementFormDefault="qualif
ied" targetNamespace="
http://homepages.feis.herts.ac.uk/~3com0109/cgi-bin/policy.cgi">
<s:element name="checkPolicyPrice">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="" type="tns:$policyCode" />
<s:element minOccurs="1" maxOccurs="1" name="" type="tns:$date" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="checkPolicyPriceResp
onse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="checkPolicyPrice" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</types>
<!-- Message definitions -->
<message name="checkPolicyPriceSoap
In">
<part name="parameters" element="tns:checkPolicyPr
ice" />
</message>
<message name="checkPolicyPriceSoap
Out">
<part name="parameters" element="tns:checkPolicyPr
iceRespons
e" />
</message>
<!-- Port type definitions -->
<portType name="testServiceSoap">
<operation name="checkPolicyPrice">
<input message="tns:checkPolicyPr
iceSoapIn"
/>
<output message="tns:checkPolicyPr
iceSoapOut
" />
</operation>
</portType>
<!-- Binding definitions -->
<binding name="testServiceSoap" type="tns:testServiceSoap"
>
<soap:binding transport="
http://schemas.xmlsoap.org/soap/http" style="document" />
<operation name="checkPolicyPrice">
<soap:operation soapAction="
http://homepages.feis.herts.ac.uk/~3com0109/cgi-bin/policy.cgi/checkPolicyPrice" style="document" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
</binding>
<!-- Service and Port (network address) definitions -->
<service name="testService">
<port name="testServiceSoap" binding="tns:testServiceSo
ap">
<soap:address location="###SERVER_ADDRES
S###testSe
rvice" />
</port>
</service>
</definitions>