Re: [CXF] Deployment errors
/ /xs:sequence /xs:complexType xs:complexType name=articoloType xs:sequence xs:element name=codice type=so:codiceType/ xs:element name=quantita type=xs:positiveInteger/ /xs:sequence /xs:complexType xs:simpleType name=codiceType xs:restriction base=xs:string xs:pattern value=[A-Z][A-Z][0-9]{4}/ /xs:restriction /xs:simpleType xs:complexType name=esitoType xs:choice minOccurs=1 maxOccurs=1 xs:choice xs:element name=ok type=so:okType/ xs:element name=fail type=xs:string/ /xs:choice /xs:choice /xs:complexType xs:complexType name=okType xs:sequence xs:element name=idOrdine type=xs:positiveInteger / xs:element name=totale type=so:totaleType / /xs:sequence /xs:complexType xs:complexType name=totaleType xs:simpleContent xs:extension base=xs:decimal xs:attribute name=valuta type=xs:string default=EUR use=optional/ /xs:extension /xs:simpleContent /xs:complexType /xs:schema I develope both client and server using wsdl2java. Thx for any help. -- View this message in context: http://www.nabble.com/-CXF--Deployment-errors-tp16352989p16467496.html Sent from the cxf-user mailing list archive at Nabble.com.
Re: [CXF] Deployment errors
Hi, Looks like the url is incorrect. According to your configuration, the correct one should be http://localhost:8080/your-war-name/ordine?wsdl Regards Freeman Cencio wrote: Hi, i'm still unable to retrieve the wsdl from my service... i post all my info: web.xml: web-app context-param param-namecontextConfigLocation/param-name param-valueWEB-INF/beans.xml/param-value /context-param listener listener-class org.springframework.web.context.ContextLoaderListener /listener-class /listener servlet servlet-nameCXFServlet/servlet-name display-nameCXF Servlet/display-name servlet-class org.apache.cxf.transport.servlet.CXFServlet /servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameCXFServlet/servlet-name url-pattern/*/url-pattern /servlet-mapping /web-app beans.xml: beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:jaxws=http://cxf.apache.org/jaxws; xsi:schemaLocation= http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd; import resource=classpath:META-INF/cxf/cxf.xml / import resource=classpath:META-INF/cxf/cxf-extension-soap.xml / import resource=classpath:META-INF/cxf/cxf-servlet.xml / bean id=logInbound class=org.apache.cxf.interceptor.LoggingInInterceptor/ bean id=logOutbound class=org.apache.cxf.interceptor.LoggingOutInterceptor/ bean id=cxf class=org.apache.cxf.bus.CXFBusImpl property name=inInterceptors list ref bean=logInbound/ /list /property property name=outInterceptors list ref bean=logOutbound/ /list /property property name=outFaultInterceptors list ref bean=logOutbound/ /list /property /bean jaxws:endpoint id=ese5 address=ordine implementor=org.rivenditore.ordine.OrdineInterfaceImpl / /beans ordine.wsdl wsdl:definitions xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:ele=http://www.rivenditore.org/ordiniElements; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:ord=http://www.rivenditore.org/Ordine; targetNamespace=http://www.rivenditore.org/Ordine; wsdl:import namespace=http://www.rivenditore.org/submitOrdineTypes; location=submitOrdine.xsd / wsdl:types xsd:schema targetNamespace=http://www.rivenditore.org/ordiniElements; xmlns:soType=http://www.rivenditore.org/submitOrdineTypes; xsd:element name=notifica type=xsd:string/ xsd:element name=esito type=soType:esitoType/ xsd:element name=ordine type=soType:ordineType/ /xsd:schema /wsdl:types wsdl:message name=NotificaMessage wsdl:part name=parameter element=ele:notifica/ /wsdl:message wsdl:message name=SubmitOrdineRequestMessage wsdl:part name=parameter element=ele:ordine/ /wsdl:message wsdl:message name=SubmitOrdineResponseMessage wsdl:part name=parameter element=ele:esito/ /wsdl:message wsdl:portType name=OrdineInterface wsdl:operation name=SubmitOrdine wsdl:input message=ord:SubmitOrdineRequestMessage/ wsdl:output message=ord:SubmitOrdineResponseMessage/ /wsdl:operation wsdl:operation name=Notifica wsdl:output message=ord:NotificaMessage/ /wsdl:operation /wsdl:portType wsdl:binding name=OrdineInterfaceBinding type=ord:OrdineInterface soap:binding style=document transport=http://schemas.xmlsoap.org/soap/http/ wsdl:operation name=SubmitOrdine soap:operation soapAction=http://www.rivenditore.org/service/ordini/#SubmitOrdine/ wsdl:input soap:body use=literal/ /wsdl:input wsdl:output soap:body use=literal/ /wsdl:output /wsdl:operation wsdl:operation name=Notifica soap:operation / wsdl:output soap:body use=literal/ /wsdl:output /wsdl:operation /wsdl:binding wsdl:service name=OrdineService wsdl:port name=OrdineInterfaceEndpoint binding=ord:OrdineInterfaceBinding soap:address location=http://localhost:8080/ese5/ordine/ /wsdl:port /wsdl:service /wsdl:definitions submitOrdine.xsd: ?xml version=1.0? xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; targetNamespace=http://www.rivenditore.org/submitOrdineTypes;
Re: [CXF] Deployment errors
dkulp wrote: On Friday 28 March 2008, Cencio wrote: 2) I can't retrieve the wsdl.. i i look at http://localhost:8080/ese5/prova?wsdl it respond with soap:Envelope soap:Body soap:Fault faultcodesoap:Server/faultcode faultstringNo such operation: a/faultstring /soap:Fault /soap:Body /soap:Envelope What i miss? That's bizzare. Are you sure the URL is correct? Is there a stack trace in the server logs? -- J. Daniel Kulp Principal Engineer, IONA [EMAIL PROTECTED] http://www.dankulp.com/blog INFO: Creating Service {http://www.rivenditore.org/Ordine}OrdineService from WSDL: webapps/ese5/WEB-INF/ordini.wsdl 28-mar-2008 17.06.05 org.apache.cxf.endpoint.ServerImpl initDestination INFO: Setting the server's publish address to be prova 28-mar-2008 17.06.05 org.apache.cxf.interceptor.AttachmentInInterceptor handleMessage INFO: AttachmentInInterceptor skipped in HTTP GET method 28-mar-2008 17.06.05 org.apache.cxf.interceptor.StaxInInterceptor handleMessage INFO: StaxInInterceptor skipped. 28-mar-2008 17.06.05 org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor handleMessage INFO: ReadHeadersInterceptor skipped in HTTP GET method 28-mar-2008 17.06.05 org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO: Interceptor has thrown exception, unwinding now org.apache.cxf.interceptor.Fault: No such operation: a at org.apache.cxf.interceptor.URIMappingInterceptor.handleMessage(URIMappingInterceptor.java:77) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:208) at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:77) at org.apache.cxf.transport.servlet.ServletDestination.doMessage(ServletDestination.java:79) at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:264) at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) at org.apache.cxf.transport.servlet.AbstractCXFServlet.invoke(AbstractCXFServlet.java:170) at org.apache.cxf.transport.servlet.AbstractCXFServlet.doGet(AbstractCXFServlet.java:152) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) This is the stack trace. Yes, the url is correct. Pointing to http://localhost:8080/ese5/ it gives me the list of exposed Endpoints (only one for me) and http://localhost:8080/ese5/prova?wsdl gives me the previous error. Invoking the service's operations (http://localhost:8080/ese5/prova) works nice.. Thx for your help, Lorenzo -- View this message in context: http://www.nabble.com/-CXF--Deployment-errors-tp16352989p16392858.html Sent from the cxf-user mailing list archive at Nabble.com.
[CXF] Deployment errors
Hi all, i'm tryng to build and deploy on tomcat a service starting from wsdl, but i have some little problems: 1) Skeleton generated from wsdl2java set the wsdl location file:service.wsdl . Where is the corrisponding location in the war? i had to change it.. 2) I can't retrieve the wsdl.. i i look at http://localhost:8080/ese5/prova?wsdl it respond with soap:Envelope soap:Body soap:Fault faultcodesoap:Server/faultcode faultstringNo such operation: a/faultstring /soap:Fault /soap:Body /soap:Envelope What i miss? Anyway, calling the service with the stub works perfectly Thx, Lorenzo -- View this message in context: http://www.nabble.com/-CXF--Deployment-errors-tp16352989p16352989.html Sent from the cxf-user mailing list archive at Nabble.com.
Re: [CXF] Deployment errors
On Friday 28 March 2008, Cencio wrote: Hi all, i'm tryng to build and deploy on tomcat a service starting from wsdl, but i have some little problems: 1) Skeleton generated from wsdl2java set the wsdl location file:service.wsdl . Where is the corrisponding location in the war? i had to change it.. wsdl2java has a separate wsdlLocation flag that you can use to specify what the location should be generated into the code. 2) I can't retrieve the wsdl.. i i look at http://localhost:8080/ese5/prova?wsdl it respond with soap:Envelope soap:Body soap:Fault faultcodesoap:Server/faultcode faultstringNo such operation: a/faultstring /soap:Fault /soap:Body /soap:Envelope What i miss? That's bizzare. Are you sure the URL is correct? Is there a stack trace in the server logs? -- J. Daniel Kulp Principal Engineer, IONA [EMAIL PROTECTED] http://www.dankulp.com/blog