Greetings,

I added a function to an existing working axis2 web service.

The new function works when I call it directly from my browser:

http://appserver2:8080/axis2/services/DataLoaderService/GetProcessorStatus

I get the correct response:

<ns:GetProcessorStatusResponse>
<ns:return>1</ns:return>
</ns:GetProcessorStatusResponse>


I tried using the following command to generate the service stub:

/usr/share/axis2-1.3/bin/./wsdl2java.sh -uri http://localhost:8080/axis2/services/DataLoaderService?wsdl -o .

But the new function is not in the class file DataLoaderServiceStub.

What am I doing wrong?

Here is the wsdl:

<wsdl:definitions targetNamespace="http://ws.apache.org/axis2";>
<wsdl:documentation>DataLoaderService</wsdl:documentation>
−
<wsdl:types>
−
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://ws.apache.org/axis2";>
−
<xs:element name="GetProcessorStatusResponse">
−
<xs:complexType>
−
<xs:sequence>
<xs:element minOccurs="0" name="return" type="xs:int"/>
</xs:sequence>
</xs:complexType>
</xs:element>
−
<xs:element name="GetRetrieverParameters">
−
<xs:complexType>
−
<xs:sequence>
<xs:element minOccurs="0" name="retrieverId" type="xs:int"/>
</xs:sequence>
</xs:complexType>
</xs:element>
−
<xs:element name="GetRetrieverParametersResponse">
−
<xs:complexType>
−
<xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
−
<wsdl:message name="GetRetrieverParametersRequest">
<wsdl:part name="parameters" element="ns0:GetRetrieverParameters"/>
</wsdl:message>
−
<wsdl:message name="GetRetrieverParametersResponse">
<wsdl:part name="parameters" element="ns0:GetRetrieverParametersResponse"/>
</wsdl:message>
<wsdl:message name="GetProcessorStatusRequest"/>
−
<wsdl:message name="GetProcessorStatusResponse">
<wsdl:part name="parameters" element="ns0:GetProcessorStatusResponse"/>
</wsdl:message>
−
<wsdl:portType name="DataLoaderServicePortType">
−
<wsdl:operation name="GetRetrieverParameters">
<wsdl:input message="ns0:GetRetrieverParametersRequest" wsaw:Action="urn:GetRetrieverParameters"/> <wsdl:output message="ns0:GetRetrieverParametersResponse" wsaw:Action="urn:GetRetrieverParametersResponse"/>
</wsdl:operation>
−
<wsdl:operation name="GetProcessorStatus">
<wsdl:input message="ns0:GetProcessorStatusRequest" wsaw:Action="urn:GetProcessorStatus"/> <wsdl:output message="ns0:GetProcessorStatusResponse" wsaw:Action="urn:GetProcessorStatusResponse"/>
</wsdl:operation>
</wsdl:portType>
−
<wsdl:binding name="DataLoaderServiceSOAP11Binding" type="ns0:DataLoaderServicePortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http"; style="document"/>
−
<wsdl:operation name="GetRetrieverParameters">
<soap:operation soapAction="urn:GetRetrieverParameters" style="document"/>
−
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
−
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
−
<wsdl:operation name="GetProcessorStatus">
<soap:operation soapAction="urn:GetProcessorStatus" style="document"/>
−
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
−
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
−
<wsdl:binding name="DataLoaderServiceSOAP12Binding" type="ns0:DataLoaderServicePortType"> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"; style="document"/>
−
<wsdl:operation name="GetRetrieverParameters">
<soap12:operation soapAction="urn:GetRetrieverParameters" style="document"/>
−
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
−
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
−
<wsdl:operation name="GetProcessorStatus">
<soap12:operation soapAction="urn:GetProcessorStatus" style="document"/>
−
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
−
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
−
<wsdl:binding name="DataLoaderServiceHttpBinding" type="ns0:DataLoaderServicePortType">
<http:binding verb="POST"/>
−
<wsdl:operation name="GetRetrieverParameters">
<http:operation location="DataLoaderService/GetRetrieverParameters"/>
−
<wsdl:input>
<mime:content type="text/xml" part="GetRetrieverParameters"/>
</wsdl:input>
−
<wsdl:output>
<mime:content type="text/xml" part="GetRetrieverParameters"/>
</wsdl:output>
</wsdl:operation>
−
<wsdl:operation name="GetProcessorStatus">
<http:operation location="DataLoaderService/GetProcessorStatus"/>
−
<wsdl:input>
<mime:content type="text/xml" part="GetProcessorStatus"/>
</wsdl:input>
−
<wsdl:output>
<mime:content type="text/xml" part="GetProcessorStatus"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
−
<wsdl:service name="DataLoaderService">
−
<wsdl:port name="DataLoaderServiceSOAP11port_http" binding="ns0:DataLoaderServiceSOAP11Binding"> <soap:address location="http://appserver2:8080/axis2/services/DataLoaderService"/>
</wsdl:port>
−
<wsdl:port name="DataLoaderServiceSOAP12port_http" binding="ns0:DataLoaderServiceSOAP12Binding"> <soap12:address location="http://appserver2:8080/axis2/services/DataLoaderService"/>
</wsdl:port>
−
<wsdl:port name="DataLoaderServiceHttpport" binding="ns0:DataLoaderServiceHttpBinding"> <http:address location="http://appserver2:8080/axis2/services/DataLoaderService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to