Hello,

    I am trying to have my custom WSDL display but am getting the follwoing 
error:

 <error>
  <description>Unable to generate WSDL for this service</description> 
  <reason>If you wish Axis2 to automatically generate the WSDL, then please use 
one of the RPC message receivers for the service(s)/operation(s) in 
services.xml. If you have added a custom WSDL in the META-INF directory, then 
please make sure that the name of the service in services.xml 
(/serviceGroup/service/@name) is the same as in the custom wsdl's service name 
(/wsdl:definitions/wsdl:service/@name).</reason> 
  </error>

I have checked the wsdl name and the service name in services.xml and they are 
the same.  Here is the services.xml I am using:


<service name="PuriFileService" scope="application" 
targetNamespace="http://com.dolphtech.purifile.webservice.service/";>
<description>
PuriFile Service
</description>
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only";
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out";
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</messageReceivers>
<parameter name="useOriginalwsdl">true</parameter>
<schema schemaNamespace="http://com.dolphtech.purifile.webservice.service/xsd"/>
<parameter 
name="ServiceClass">com.dolphtech.purifile.webservice.service.PuriFileService</parameter>
</service>


And my WSDL:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; 
xmlns:tns="http://com.dolphtech.purifile.webservice.service"; 
targetNamespace="http://com.dolphtech.purifile.webservice.service";>
<wsdl:types>
<xs:schema targetNamespace="http://com.dolphtech.purifile.webservice.service"; 
elementFormDefault="qualified"/>
<xs:complexType name="PuriFileServiceException">
<xs:all>
<xs:element name="errorId" type="xs:int"/>
<xs:element name="errorMessage" type="xs:string"/>
</xs:all>
</xs:complexType>
</wsdl:types>

<wsdl:message name="loginRequest">
<wsdl:part name="username" type="xs:string"/>
<wsdl:part name="password" type="xs:string"/>
</wsdl:message>
<wsdl:message name="loginResponse">
<wsdl:part name="result" type="xs:boolean"/>
</wsdl:message>
<wsdl:message name="loginFault">
<wsdl:part name="result" type="tns:PuriFileServiceException"/>
</wsdl:message>

<wsdl:portType name="PuriFileServicePortType">
<wsdl:operation name="login">
<wsdl:input message="tns:loginRequest"/>
<wsdl:output message="tns:loginResponse"/>
<wsdl:fault name="login_fault" message="loginFault"/>
</wsdl:operation>
</wsdl:portType>

<wsdl:binding name="PuriFileServiceBinding" type="tns:PuriFileServicePortType">
<soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="login">
<soap:operation soapAction="urn:login"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="login_fault"/>
</wsdl:operation>
</wsdl:binding>

<wsdl:service name="PuriFileService">
<wsdl:port name="PuriFileServicePort" binding="tns:PuriFileServiceBinding">
<soap:address location="http://localhost:80/purifile/services/PurifileService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>


Any help is appreciated.

Thanks in advance,

Nate

Reply via email to