Hi there! there was an error in the wsdl, sorry!
Bye Il giorno mar, 22/04/2008 alle 10.14 +0200, Bartolomeo Nicolotti ha scritto: > Hi there, > > I'm generating server side code from this wsdl that uses OTA xsd: > > http://www.opentravel.org/Specifications/ReleaseNotes.aspx?spec=2007A > > <?xml version="1.0" encoding="UTF-8"?> > <wsdl:definitions > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:ota="http://www.opentravel.org/OTA/2003/05" > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" > xmlns:xs="http://www.w3.org/2001/XMLSchema" > xmlns:tns="http://192.168.0.64:8080/dynamic-packaging" > targetNamespace="http://192.168.0.64:8080/dynamic-packaging"> > > <!-- ABSTRACT SERVICE DESCRIPTION --> > > <wsdl:types> > <xs:schema > targetNamespace="http://www.opentravel.org/OTA/2003/05"> > <xs:include schemaLocation="OTA_SimpleTypes.xsd"/> > <xs:include schemaLocation="OTA_CommonTypes.xsd"/> > <xs:include schemaLocation="OTA_CommonPrefs.xsd"/> > <xs:include > schemaLocation="OTA_VehicleCommonTypes.xsd"/> > <xs:include schemaLocation="OTA_AirPreferences.xsd"/> > <xs:include schemaLocation="OTA_AirCommonTypes.xsd"/> > <xs:include > schemaLocation="OTA_HotelCommonTypes.xsd"/> > <xs:include > schemaLocation="OTA_HotelReservation.xsd"/> > <xs:include schemaLocation="OTA_Profile.xsd"/> > <xs:include > schemaLocation="OTA_HotelPreferences.xsd"/> > <xs:include > schemaLocation="OTA_HotelContentDescription.xsd"/> > <xs:include > schemaLocation="OTA_CruiseCommonTypes.xsd"/> > <xs:include schemaLocation="OTA_PkgCommonTypes.xsd"/> > <xs:include schemaLocation="OTA_VehRetResRQ.xsd"/> > </xs:schema> > <xs:schema> > <xs:import > namespace="http://www.opentravel.org/OTA/2003/05" > schemaLocation="OTA_HotelAvailRQ.xsd"/> > <xs:import > namespace="http://www.opentravel.org/OTA/2003/05" > schemaLocation="OTA_HotelAvailRS.xsd"/> > <xs:import > namespace="http://www.opentravel.org/OTA/2003/05" > schemaLocation="OTA_HotelSearchRQ.xsd"/> > <xs:import > namespace="http://www.opentravel.org/OTA/2003/05" > schemaLocation="OTA_HotelSearchRS.xsd"/> > <xs:import > namespace="http://www.opentravel.org/OTA/2003/05" > schemaLocation="OTA_HotelResRQ.xsd"/> > <xs:import > namespace="http://www.opentravel.org/OTA/2003/05" > schemaLocation="OTA_HotelResRS.xsd"/> > <!-- > <xs:import > namespace="http://www.opentravel.org/OTA/2003/05" > schemaLocation="OTA_HotelDescriptiveInfoRQ.xsd"/> > <xs:import > namespace="http://www.opentravel.org/OTA/2003/05" > schemaLocation="OTA_HotelDescriptiveInfoRS.xsd"/> > --> > <!-- > <xs:import > namespace="http://www.opentravel.org/OTA/2003/05" > schemaLocation="OTA_ReadRQ.xsd"/> > <xs:import > namespace="http://www.opentravel.org/OTA/2003/05" > schemaLocation="OTA_ResRetrieveRS.xsd"/> > --> > <xs:import > namespace="http://www.opentravel.org/OTA/2003/05" > schemaLocation="OTA_CancelRQ.xsd"/> > <xs:import > namespace="http://www.opentravel.org/OTA/2003/05" > schemaLocation="OTA_CancelRS.xsd"/> > </xs:schema> > > </wsdl:types> > > <!-- HotelSearch --> > <wsdl:message name="HotelSearchRQ"> > <wsdl:part element="ota:OTA_HotelSearchRQ" > name="HotelSearchRQ_msg"/> > </wsdl:message> > > <wsdl:message name="HotelSearchRS"> > <wsdl:part element="ota:OTA_HotelSearchRS" > name="HotelSearchRS_msg"/> > </wsdl:message> > > <wsdl:portType name="DynPkgOTA"> > <wsdl:operation name="OTA_HotelSearch"> > <wsdl:input message="tns:HotelSearchRQ"/> > <wsdl:output message="tns:HotelSearchRS"/> > </wsdl:operation> > </wsdl:portType> > > > <!-- HotelAvail --> > <wsdl:message name="HotelAvailRQ"> > <wsdl:part element="ota:OTA_HotelAvailRQ" > name="HotelAvailRQ_msg"/> > </wsdl:message> > > <wsdl:message name="HotelAvailRS"> > <wsdl:part element="ota:OTA_HotelAvailRS" > name="HotelAvailRS_msg"/> > </wsdl:message> > > <wsdl:portType name="DynPkgOTA"> > <wsdl:operation name="OTA_HotelAvail"> > <wsdl:input message="tns:HotelAvailRQ"/> > <wsdl:output message="tns:HotelAvailRS"/> > </wsdl:operation> > </wsdl:portType> > > <!-- HotelRes --> > <wsdl:message name="HotelResRQ"> > <wsdl:part element="ota:OTA_HotelResRQ" name="HotelResRQ_msg"/> > </wsdl:message> > > <wsdl:message name="HotelResRS"> > <wsdl:part element="ota:OTA_HotelResRS" name="HotelResRS_msg"/> > </wsdl:message> > > <wsdl:portType name="DynPkgOTA"> > <wsdl:operation name="OTA_HotelRes"> > <wsdl:input message="tns:HotelResRQ"/> > <wsdl:output message="tns:HotelResRS"/> > </wsdl:operation> > </wsdl:portType> > > <!-- HotelDescriptiveInfo > <wsdl:message name="HotelDescriptiveInfoRQ"> > <wsdl:part element="ota:OTA_HotelDescriptiveInfoRQ" > name="HotelDescriptiveInfoRQ_msg"/> > </wsdl:message> > > <wsdl:message name="HotelDescriptiveInfoRS"> > <wsdl:part element="ota:OTA_HotelDescriptiveInfoRS" > name="HotelDescriptiveInfoRS_msg"/> > </wsdl:message> > > <wsdl:portType name="DynPkgOTA"> > <wsdl:operation name="OTA_HotelDescriptiveInfo"> > <wsdl:input message="tns:HotelDescriptiveInfoRQ"/> > <wsdl:output message="tns:HotelDescriptiveInfoRS"/> > </wsdl:operation> > </wsdl:portType> > --> > > <!-- Read > <wsdl:message name="ReadRQ"> > <wsdl:part element="ota:OTA_ReadRQ" name="ReadRQ_msg"/> > </wsdl:message> > > <wsdl:message name="CancelRS"> > <wsdl:part element="ota:OTA_ResRetreiveRS" > name="ResRetreiveRS_msg"/> > </wsdl:message> > > <wsdl:portType name="DynPkgOTA"> > <wsdl:operation name="OTA_Read"> > <wsdl:input message="tns:ReadRQ"/> > <wsdl:output message="tns:ResRetreiveRS"/> > </wsdl:operation> > </wsdl:portType> > --> > > <!-- Cancel --> > <wsdl:message name="CancelRQ"> > <wsdl:part element="ota:OTA_CancelRQ" name="CancelRQ_msg"/> > </wsdl:message> > > <wsdl:message name="CancelRS"> > <wsdl:part element="ota:OTA_CancelRS" name="CancelRS_msg"/> > </wsdl:message> > > <wsdl:portType name="DynPkgOTA"> > <wsdl:operation name="OTA_Cancel"> > <wsdl:input message="tns:CancelRQ"/> > <wsdl:output message="tns:CancelRS"/> > </wsdl:operation> > </wsdl:portType> > > <!-- utility portTypes > > <wsdl:message name="debugStepSet"> > <wsdl:part name="int_1" type="xs:int"/> > <wsdl:part name="usr" type="xs:string"/> > <wsdl:part name="psw" type="xs:string"/> > </wsdl:message> > > <wsdl:message name="debugStepGet"> > <wsdl:part name="int_1" type="xs:int"/> > </wsdl:message> > > <wsdl:portType name="DynPkgOTA"> > <wsdl:operation name="setDebugStep"> > <wsdl:input message="tns:debugStepSet"/> > <wsdl:output message="tns:debugStepGet"/> > </wsdl:operation> > </wsdl:portType> > end utility portTypes --> > > <!-- Implementation binding --> > > <!-- HotelSearch --> > <wsdl:binding name="DynPkgOTABinding" type="tns:DynPkgOTA"> > <soap:binding style="document" > transport="http://schemas.xmlsoap.org/soap/http"/> > <wsdl:operation name="OTA_HotelSearch"> > <soap:operation > soapAction="http://192.168.0.64:8080/DynPkgOTA/OTA_HotelSearch"/> > <wsdl:input> > <soap:body use="literal"/> > </wsdl:input> > <wsdl:output> > <soap:body use="literal"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > > <!-- HotelAvail --> > <wsdl:binding name="DynPkgOTABinding" type="tns:DynPkgOTA"> > <soap:binding style="document" > transport="http://schemas.xmlsoap.org/soap/http"/> > <wsdl:operation name="OTA_HotelAvail"> > <soap:operation > soapAction="http://192.168.0.64:8080/DynPkgOTA/OTA_HotelAvail"/> > <wsdl:input> > <soap:body use="literal"/> > </wsdl:input> > <wsdl:output> > <soap:body use="literal"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > > <!-- HotelRes --> > <wsdl:binding name="DynPkgOTABinding" type="tns:DynPkgOTA"> > <soap:binding style="document" > transport="http://schemas.xmlsoap.org/soap/http"/> > <wsdl:operation name="OTA_HotelRes"> > <soap:operation > soapAction="http://192.168.0.64:8080/DynPkgOTA/OTA_HotelRes"/> > <wsdl:input> > <soap:body use="literal"/> > </wsdl:input> > <wsdl:output> > <soap:body use="literal"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > > <!-- HotelDescriptiveInfo > <wsdl:binding name="DynPkgOTABinding" type="tns:DynPkgOTA"> > <soap:binding style="document" > transport="http://schemas.xmlsoap.org/soap/http"/> > <wsdl:operation name="OTA_HotelDescriptiveInfo"> > <soap:operation > soapAction="http://192.168.0.64:8080/DynPkgOTA/OTA_HotelDescriptiveInfo"/> > <wsdl:input> > <soap:body use="literal"/> > </wsdl:input> > <wsdl:output> > <soap:body use="literal"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > --> > > <!-- Read > <wsdl:binding name="DynPkgOTABinding" type="tns:DynPkgOTA"> > <soap:binding style="document" > transport="http://schemas.xmlsoap.org/soap/http"/> > <wsdl:operation name="OTA_Read"> > <soap:operation > soapAction="http://192.168.0.64:8080/DynPkgOTA/OTA_Read"/> > <wsdl:input> > <soap:body use="literal"/> > </wsdl:input> > <wsdl:output> > <soap:body use="literal"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > --> > > <!-- Cancel --> > <wsdl:binding name="DynPkgOTABinding" type="tns:DynPkgOTA"> > <soap:binding style="document" > transport="http://schemas.xmlsoap.org/soap/http"/> > <wsdl:operation name="OTA_Cancel"> > <soap:operation > soapAction="http://192.168.0.64:8080/DynPkgOTA/OTA_Cancel"/> > <wsdl:input> > <soap:body use="literal"/> > </wsdl:input> > <wsdl:output> > <soap:body use="literal"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > > <!-- utility portTypes > <wsdl:binding name="DynPkgOTABinding" type="tns:DynPkgOTA"> > <soap:binding style="rpc" > transport="http://schemas.xmlsoap.org/soap/http"/> > <wsdl:operation name="setDebugStep"> > <soap:operation > soapAction="http://192.168.0.64:8080/DynPkgOTA/setDebugStep"/> > <wsdl:input> > <soap:body > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="literal" > > namespace="http://192.168.0.64:8080/dynamic-packaging"/> > </wsdl:input> > <wsdl:output> > <soap:body > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="literal" > > namespace="http://192.168.0.64:8080/dynamic-packaging"/> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > > END utility portType --> > > <wsdl:service name="DynPkgOTAService"> > <wsdl:port binding="tns:DynPkgOTABinding" name="DynPkgOTAPort"> > <soap:address > location="http://192.168.0.64:8080/DynPkgOTA/services/DynPkgOTAPort"/> > </wsdl:port> > </wsdl:service> > </wsdl:definitions> > > > And it works. But when I try to add HotelDescriptiveInfo messages, port > and binding, that are commented above, I get: > > [ERROR] Cannot Determine the MEP > org.apache.axis2.AxisFault: Cannot Determine the MEP > at > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.getMEP(WSDL11ToAxisServiceBuilder.java:2550) > at > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateOperations(WSDL11ToAxisServiceBuilder.java:1232) > at > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePortType(WSDL11ToAxisServiceBuilder.java:447) > at > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:360) > at > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:281) > at > org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:109) > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:141) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) > Exception in thread "main" > org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing > WSDL > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:147) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) > Caused by: org.apache.axis2.AxisFault: Cannot Determine the MEP > at > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.getMEP(WSDL11ToAxisServiceBuilder.java:2550) > at > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateOperations(WSDL11ToAxisServiceBuilder.java:1232) > at > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populatePortType(WSDL11ToAxisServiceBuilder.java:447) > at > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpoints(WSDL11ToAxisServiceBuilder.java:360) > at > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:281) > at > org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:109) > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:141) > ... 2 more > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
