Hi All,
I was provided a wsdl file (attached to this email) and I generated stub
with Axis2 version 1.4.1.
I have no error during stub generation but the generated classes don’t
compile:
In fact, it seems to miss a return statement in the methode SarimSoap I need
to call
[*javac*] *
D:\tools\Eclipse\supvision\src\com\equant\supvision\adapter\orchestre\OrchestreSarimServicesServiceStub.java
*:238: missing return statement
[*javac*] }
[*javac*] ^
[*javac*] 1 error
I can see also many blocks with the comment
//Unknown style detected !! No code is generated
Do you think it comes from the wsdl?
Thank you very much for your help in advance J
Best Regards
Thomas
<<image001.jpg>>
<?xml version="1.0" encoding="UTF-8"?> <!-- ============================================== --> <!-- orchestre-sarim.wsdl --> <!-- --> <!-- Pulbicated services: --> <!-- SarimSOAP --> <!-- --> <!-- --> <!-- ============================================== --> <wsdl:definitions targetNamespace="http://OrchestreSarimServicesService/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:svc="http://OrchestreSarimServicesService/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <!-- ============================================== --> <!-- SECTION types --> <!-- ============================================== --> <!-- Definition of structures' types --> <!-- ============================================== --> <types> <xsd:schema elementFormDefault="qualified" targetNamespace="http://OrchestreSarimServicesService/"> <xsd:element name="ResultSarimSoap"> <xsd:complexType> <xsd:sequence> <xsd:element minOccurs="1" maxOccurs="1" name="ReturnCode" type="xsd:string"/> <xsd:element minOccurs="1" maxOccurs="1" name="ErrorMessage" type="xsd:string"/> <xsd:element minOccurs="1" maxOccurs="1" name="RequestResult" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="RequestSarimSoap"> <xsd:complexType> <xsd:sequence> <xsd:element minOccurs="1" maxOccurs="1" name="RequestName" type="xsd:string"/> <xsd:element minOccurs="1" maxOccurs="1" name="RequestVersion" type="xsd:string"/> <xsd:element minOccurs="0" maxOccurs="1" name="ITTTicket" type="xsd:string"/> <xsd:element minOccurs="0" maxOccurs="1" name="CodLng" type="xsd:string"/> <xsd:element minOccurs="1" maxOccurs="1" name="RequestParameters" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> </types> <!-- ============================================== --> <!-- SECTION message --> <!-- ============================================== --> <!-- Definition of messages sent/received --> <!-- by the server/client --> <!-- ============================================== --> <!-- Service SarimSOAP --> <!-- ================== --> <wsdl:message name="SarimSOAPIn"> <wsdl:part name="parametersIn" element="svc:RequestSarimSoap"/> </wsdl:message> <wsdl:message name="SarimSOAPOut"> <wsdl:part name="parameters" element="svc:ResultSarimSoap"/> </wsdl:message> <!-- ============================================== --> <!-- SECTION portType --> <!-- ============================================== --> <!-- Description of the WEB services --> <!-- ============================================== --> <wsdl:portType name="OrchestreSarimServicesSoap"> <!-- SarimSOAP --> <wsdl:operation name="SarimSOAP"> <wsdl:input message="svc:SarimSOAPIn" name="SarimSOAPIn" /> <wsdl:output message="svc:SarimSOAPOut" name="SarimSOAPOut" /> </wsdl:operation> </wsdl:portType> <!-- ============================================== --> <!-- SECTION Bindings --> <!-- ============================================== --> <!-- Description of the links with WEB Services --> <!-- The binding section specifies the protocol, --> <!-- the serialization and the encoding. --> <!-- ============================================== --> <wsdl:binding name="OrchestreSarimServicesSoap" type="svc:OrchestreSarimServicesSoap"> <wsdlsoap:binding style="Document" transport="http://schemas.xmlsoap.org/soap/http" /> <!-- SarimSOAP --> <wsdl:operation name="SarimSOAP"> <wsdlsoap:operation soapAction="" /> <wsdl:input name="SarimSOAPIn"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://172.20.64.41/OrchestreSarimServicesService" use="encoded" /> </wsdl:input> <wsdl:output name="SarimSOAPOut"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://172.20.64.41/OrchestreSarimServicesService" use="encoded" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <!-- ============================================== --> <!-- SECTION service --> <!-- ============================================== --> <!-- Association port <-> bindings --> <!-- ============================================== --> <wsdl:service name="OrchestreSarimServicesService"> <wsdl:port binding="svc:OrchestreSarimServicesSoap" name="OrchestreSarimServicesSoap"> <wsdlsoap:address location="http://172.20.64.41/72xorc/current/webservices/soap/perl/OrchestreSarimServices.pl" /> </wsdl:port> </wsdl:service> </wsdl:definitions>
