-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 ... the solution is to put wsdl:binding and wsdl:portType in the same fragment.
Is this an AXIS2 specific restriction?? I CANNOT find such a restriction in the WSDL standard. Cheers. Christoph M. Pflügler schrieb: | Hi everybody, | | I am actually trying to build a small WebService from a wsdl. If I use | the WSDL as one file, I don't have problems. But when I split this | WSDL-file into 3 ones, I get a NullPointerException (see error message | below) when calling the WebService. | | So my first question is: is it possible to split a WSDL into more files | with AXIS2? I could not find information on that except that the WSDL | standard allows me to import other WSDL definitons. | | And, if the first one is yes, what could be the problem with my service? | | I generate the Skeleton using WSDL2Java, add some logic and build the | .aar archive with the generated ant script. | | Any help would be appreciated! | | Regards, | Christoph | | | ##### ERROR ##### | | 2008-06-11 19:48:17,206 [http-8080-1] ERROR | org.apache.axis2.transport.http.AxisServlet - | java.lang.NullPointerException | at | org.apache.axis2.engine.AbstractDispatcher.invoke(AbstractDispatcher.java:122) | | at org.apache.axis2.engine.Phase.invoke(Phase.java:317) | at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264) | at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163) | at | org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275) | | at | org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) | at | org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) | | at | org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) | | at | org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) | | at | org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) | | at | org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) | | at | org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) | | at | org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) | | at | org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) | at | org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) | at | org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) | | at | org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) | at java.lang.Thread.run(Thread.java:595) | | | | ##### Main WSDL ##### | | <?xml version="1.0" encoding="UTF-8"?> | <wsdl:definitions targetNamespace="orchestration:test:quotationService" | xmlns:BD_3A1_Quote="urn:oasis:names:specification:ubl:schema:xsd:Quotation-2" | | | | xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" | xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" | xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" | xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" | xmlns:pos="orchestration:test:quotationService" | xmlns:common="orchestration:test:seller_common" | xmlns:docs="orchestration:test:docs" | xmlns:xs="http://www.w3.org/2001/XMLSchema" | xmlns:BD_3A1_RequestQuote="urn:oasis:names:specification:ubl:schema:xsd:RequestForQuotation-2" | | | | xmlns:BD_3A10_NotifyOfQuoteAck="http://www.example.org/MY_NotifyOfQuoteAck" | xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" | xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> | | ~ <wsdl:import location="seller_common.wsdl" | namespace="orchestration:test:seller_common"></wsdl:import> | ~ <!-- | ~ I tried to import this one as well to check if there is a problem | with transitive import, but I got the same error. | ~ <wsdl:import location="seller_common_msgs.wsdl" | namespace="orchestration:test:seller_common_msgs"></wsdl:import> | ~ --> | | ~ <wsdl:binding name="quotationBinding" type="common:quotationPT"> | ~ <soap:binding style="document" | transport="http://schemas.xmlsoap.org/soap/http"/> | ~ <wsdl:operation name="getQuotation"> | ~ <soap:operation soapAction="" style="document"/> | ~ <wsdl:input> | ~ <soap:body use="literal" namespace="orchestration:test"/> | ~ </wsdl:input> | ~ <wsdl:output> | ~ <soap:body use="literal" namespace="orchestration:test"/> | ~ </wsdl:output> | ~ </wsdl:operation> | ~ </wsdl:binding> | ~ <wsdl:service name="quotationService"> | ~ <wsdl:port name="quotationPort" binding="pos:quotationBinding"> | ~ <soap:address | location="http://192.168.1.101:8080/axis2/services/quotationService"/> | ~ </wsdl:port> | ~ </wsdl:service> | ~ </wsdl:definitions> | | | | ##### seller_common.wsdl ##### | | <?xml version="1.0" encoding="UTF-8"?> | <wsdl:definitions targetNamespace="orchestration:test:seller_common" | xmlns:common_msg="orchestration:test:seller_common_msgs" | xmlns:BD_3A1_Quote="urn:oasis:names:specification:ubl:schema:xsd:Quotation-2" | | | | xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" | xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" | xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" | xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" | xmlns:pos="orchestration:test:seller_common" | xmlns:xs="http://www.w3.org/2001/XMLSchema" | xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" | xmlns:BD_3A1_RequestQuote="urn:oasis:names:specification:ubl:schema:xsd:RequestForQuotation-2" | | | | xmlns:BD_3A10_NotifyOfQuoteAck="http://www.example.org/MY_NotifyOfQuoteAck" | xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" | xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> | | <wsdl:import location="seller_common_msgs.wsdl" | namespace="orchestration:test:seller_common_msgs"></wsdl:import> | | | ~ <wsdl:portType name="quotationPT"> | ~ <wsdl:operation name="getQuotation"> | ~ <wsdl:input message="common_msg:requestForQuotation"/> | ~ <wsdl:output message="common_msg:quotation"/> | ~ </wsdl:operation> | ~ </wsdl:portType> | | <plnk:partnerLinkType name="quotationLT"> | <plnk:role name="quoter" portType="pos:quotationPT" /> | </plnk:partnerLinkType> | | </wsdl:definitions> | | | | ##### seller_common_msgs.wsdl ##### | | <?xml version="1.0" encoding="UTF-8"?> | <wsdl:definitions targetNamespace="orchestration:test:seller_common_msgs" | xmlns:BD_3A1_Quote="urn:oasis:names:specification:ubl:schema:xsd:Quotation-2" | | | | xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" | xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" | xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" | xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" | xmlns:pos="orchestration:test:seller_common" | xmlns:xs="http://www.w3.org/2001/XMLSchema" | xmlns:docs="orchestration:test:docs" | xmlns:BD_3A1_RequestQuote="urn:oasis:names:specification:ubl:schema:xsd:RequestForQuotation-2" | | | | xmlns:BD_3A10_NotifyOfQuoteAck="http://www.example.org/MY_NotifyOfQuoteAck" | xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" | xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> | ~ <wsdl:types> | ~ <xs:schema attributeFormDefault="qualified" | elementFormDefault="qualified" targetNamespace="orchestration:test:docs" | xmlns:ns="orchestration:test:seller"> | <xs:import | namespace="urn:oasis:names:specification:ubl:schema:xsd:RequestForQuotation-2" | | | schemaLocation="UBL-RequestForQuotation-2.0.xsd"/> | <xs:import | namespace="urn:oasis:names:specification:ubl:schema:xsd:Quotation-2" | schemaLocation="UBL-Quotation-2.0.xsd"/> | <xs:import namespace="http://www.example.org/MY_NotifyOfQuoteAck" | schemaLocation="MY_NotifyOfQuoteAck.xsd"/> | <xs:element name="RequestForQuotationMSG"> | <xs:complexType> | <xs:sequence> | <xs:element | ref="BD_3A1_RequestQuote:RequestForQuotation"/> | <xs:element fixed="true" name="hasLegalIntent" | type="xs:boolean"/> | </xs:sequence> | </xs:complexType> | </xs:element> | | <xs:element name="QuotationMSG"> | <xs:complexType> | <xs:sequence> | <xs:element ref="BD_3A1_Quote:Quotation"/> | <xs:element fixed="true" name="hasLegalIntent" | type="xs:boolean"/> | </xs:sequence> | </xs:complexType> | </xs:element> | ~ </xs:schema> | ~ </wsdl:types> | | ~ <wsdl:message name="requestForQuotation"> | ~ <wsdl:part name="in" element="docs:RequestForQuotationMSG"> | ~ </wsdl:part> | ~ </wsdl:message> | ~ <wsdl:message name="quotation"> | ~ <wsdl:part name="in" element="docs:QuotationMSG"> | ~ </wsdl:part> | ~ </wsdl:message> | | | | ~ </wsdl:definitions> | - --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIUShj0Do4wUHmzBsRApPXAJwNhgDC2RObseI/CaL5fkO+XlHLSQCdHKSE UdYNTW8Fxmj3CuWphMRbkPo= =APzD -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
