Hi there Ranchers...
I hope you all are doing good in web services....But I got a serious problem. I have researched many good pages and solutions for many many hours..nothing worked. So I am posting my problem here. Please, anybody can highlight any points or anything which might be helpful to me, Please do not hesitate to ask and post...Thanks in advance.
here is my WSDL file which is generated from MyEclipse 7.5 on windows 7 and related XSD also.
----------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3-hudson-390-. -->
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://services.drv.com/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="MainService" targetNamespace="http://services.drv.com/">
<types>
<xsd:schema>
<xsd:import namespace="http://services.drv.com/" schemaLocation="MainService_schema1.xsd"/>
</xsd:schema>
</types>
<message name="multiplicator">
<part element="tns:multiplicator" name="parameters"/>
</message>
<message name="multiplicatorResponse">
<part element="tns:multiplicatorResponse" name="parameters"/>
</message>
<portType name="MainDelegate">
<operation name="multiplicator">
<input message="tns:multiplicator"/>
<output message="tns:multiplicatorResponse"/>
</operation>
</portType>
<binding name="MainPortBinding" type="tns:MainDelegate">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="multiplicator">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="MainService">
<port binding="tns:MainPortBinding" name="MainPort">
<soap:address location="http://localhost:8080/DvServices/MainPort"/>
</port>
</service>
</definitions>
XSD as below:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://services.drv.com/" targetNamespace="http://services.drv.com/" version="1.0">
<xs:element name="multiplicator" type="tns:multiplicator"/>
<xs:element name="multiplicatorResponse" type="tns:multiplicatorResponse"/>
<xs:complexType name="multiplicator">
<xs:sequence>
<xs:element name="arg0" type="xs:int"/>
<xs:element name="arg1" type="xs:int"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="multiplicatorResponse">
<xs:sequence>
<xs:element name="return" type="xs:int"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
I am getting big fat errors(2) as below:
The part'parameters' has an invalid value 'multiplicator' defined for its element. Element Declarations must refer to valid values defined in a schema.' line 8 column 57
The part'parameters' has an invalid value 'multiplicatorResponse' defined for its element. Element Declarations must refer to valid values defined in a schema.' line 11 column 65
I tried deleting all files and regenerating them again with modification of code, deleting rest of the code etc etc. Restarting the server at least 50 times to check what is going wrong. Nothing worked. I will really appreciate if somebody can help me.
Thanks again
Regards
I hope you all are doing good in web services....But I got a serious problem. I have researched many good pages and solutions for many many hours..nothing worked. So I am posting my problem here. Please, anybody can highlight any points or anything which might be helpful to me, Please do not hesitate to ask and post...Thanks in advance.
here is my WSDL file which is generated from MyEclipse 7.5 on windows 7 and related XSD also.
----------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.3-hudson-390-. -->
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://services.drv.com/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="MainService" targetNamespace="http://services.drv.com/">
<types>
<xsd:schema>
<xsd:import namespace="http://services.drv.com/" schemaLocation="MainService_schema1.xsd"/>
</xsd:schema>
</types>
<message name="multiplicator">
<part element="tns:multiplicator" name="parameters"/>
</message>
<message name="multiplicatorResponse">
<part element="tns:multiplicatorResponse" name="parameters"/>
</message>
<portType name="MainDelegate">
<operation name="multiplicator">
<input message="tns:multiplicator"/>
<output message="tns:multiplicatorResponse"/>
</operation>
</portType>
<binding name="MainPortBinding" type="tns:MainDelegate">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="multiplicator">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="MainService">
<port binding="tns:MainPortBinding" name="MainPort">
<soap:address location="http://localhost:8080/DvServices/MainPort"/>
</port>
</service>
</definitions>
XSD as below:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://services.drv.com/" targetNamespace="http://services.drv.com/" version="1.0">
<xs:element name="multiplicator" type="tns:multiplicator"/>
<xs:element name="multiplicatorResponse" type="tns:multiplicatorResponse"/>
<xs:complexType name="multiplicator">
<xs:sequence>
<xs:element name="arg0" type="xs:int"/>
<xs:element name="arg1" type="xs:int"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="multiplicatorResponse">
<xs:sequence>
<xs:element name="return" type="xs:int"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
I am getting big fat errors(2) as below:
The part'parameters' has an invalid value 'multiplicator' defined for its element. Element Declarations must refer to valid values defined in a schema.' line 8 column 57
The part'parameters' has an invalid value 'multiplicatorResponse' defined for its element. Element Declarations must refer to valid values defined in a schema.' line 11 column 65
I tried deleting all files and regenerating them again with modification of code, deleting rest of the code etc etc. Restarting the server at least 50 times to check what is going wrong. Nothing worked. I will really appreciate if somebody can help me.
Thanks again
Regards