Advertisement

02.21.2008 at 09:16AM PST, ID: 23181817
[x]
Attachment Details

need help for WSDL validation

Asked by evry2004 in Web Services Description Language, Extensible Markup Language (XML), SOAP

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="qualified" 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="checkPolicyPriceResponse">
<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="checkPolicyPriceSoapIn">
<part name="parameters" element="tns:checkPolicyPrice" />
</message>
<message name="checkPolicyPriceSoapOut">
<part name="parameters" element="tns:checkPolicyPriceResponse" />
</message>
 
<!--  Port type definitions -->
 


<portType name="testServiceSoap">
<operation name="checkPolicyPrice">
<input message="tns:checkPolicyPriceSoapIn" />
<output message="tns:checkPolicyPriceSoapOut" />
</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:testServiceSoap">
<soap:address location="###SERVER_ADDRESS###testService" />
</port>
</service>
</definitions>
Start Free Trial
[+][-]02.22.2008 at 12:38PM PST, ID: 20961184

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Web Services Description Language, Extensible Markup Language (XML), SOAP
Sign Up Now!
Solution Provided By: kawas
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628