Dear User support:
I write to you in the hope that you might have information (such as sample code) about the following type of situation, in order that my problem might be solved. (I would need both Service and Client Java sample code). I have just read "Apache CXF Web Service Development, by Naveen Balani and Rajeev Hathi", and I find it is generally very good, but in my view it rests very much on spring configuration, which I am not so fond of since it makes testing and trouble-shooting much less transparent (at least for me with my knowledge), and also it appears to me that the book lacks Java code for the type of problem I have at hand. Further, I do not find what I look for at the Apache CXF web site, under documentation. Well, I have created a Web Service - "CommitmentService" (using CXF 2.4.0, created from a WSDL by use of CXF tools), and it contains (both Addressing and) complex parameter objects (i. e. not simple objects of type String, and the like, but instead for instance a "RequestContext" object, which in turn consists of several String parameters). This service I want to make available on Tomcat (7.0.12 on a Windows XP platform, using Java 6.0.x). However, after having built a war (using Ant 1.7.x, IDE is Eclipse 3.5.2 Galileo) and deployed it on Tomcat, the web service does not appear to be available, at least it can not receive any messages. As far as I can understand, the cause of the error is that the web service lacks some Java code that will assist in receiving and managing messages. Only, I do not know what objects I will need for this My problem is that I do not know what objects I need to use in the WebService - in "CommitmentServicePortTypeImpl" - , in order to receive a message from a client. On apache CXF web site, I did find out what object I need on the client side, namely "JaxWsDynamicClientFactory", and "Client". But here too, for some reason, the message can not be sent. I have worked previously with Axis2 (1.4.1), but find that CXF is so different, and most samples display either only simple cases with String parameters or use Spring (and or Camel - also with Spring). Please find enclosed, for general information about the service, the wsdl file in question, as well as the WSDL2Java build script (having been renamed from .cmd to .txt). If you could give me some hint as to which objects I will need to use in my web service, I would be most thankful. Best Regards, Runo Med vänlig hälsning / Best regards, Runo Barrdahl, civ. ing, tekn. lic. Tieto Sweden AB, Financial Services mail: [email protected] mobil: +46 (0)709 790 407 fax: +46 (0)12 345 6789 web: www.tieto.com Meet the new Tieto: www.tieto.com/newtieto
@ECHO 2011-07-29, RunoB: Apache CXF getCommitment @REM för att inte CLASSPATH skall bli för lång och resultera i "Input line is too long", måste denna kortas så mycket som möjligt, och är baserad på addAJarClassPath.cmd. @ECHO ON @SET CLASSPATH=".;C:\a\cxf\aopalliance-1.0.jar;C:\a\cxf\asm-3.3.jar;C:\a\cxf\commons-logging-1.1.1.jar;C:\a\cxf\cxf-api-2.4.0.jar;C:\a\cxf\cxf-common-utilities-2.4.0.jar;C:\a\cxf\cxf-rt-bindings-coloc-2.4.0.jar;C:\a\cxf\cxf-rt-bindings-corba-2.4.0.jar;C:\a\cxf\cxf-rt-bindings-http-2.4.0.jar;C:\a\cxf\cxf-rt-bindings-jbi-2.4.0.jar;C:\a\cxf\cxf-rt-bindings-soap-2.4.0.jar;C:\a\cxf\cxf-rt-bindings-xml-2.4.0.jar;C:\a\cxf\cxf-rt-core-2.4.0.jar;C:\a\cxf\cxf-rt-databinding-aegis-2.4.0.jar;C:\a\cxf\cxf-rt-databinding-jaxb-2.4.0.jar;C:\a\cxf\cxf-rt-databinding-jibx-2.4.0.jar;C:\a\cxf\cxf-rt-databinding-sdo-2.4.0.jar;C:\a\cxf\cxf-rt-databinding-xmlbeans-2.4.0.jar;C:\a\cxf\cxf-rt-frontend-jaxrs-2.4.0.jar;C:\a\cxf\cxf-rt-frontend-jaxws-2.4.0.jar;C:\a\cxf\cxf-rt-frontend-js-2.4.0.jar;C:\a\cxf\cxf-rt-frontend-simple-2.4.0.jar;C:\a\cxf\cxf-rt-javascript-2.4.0.jar;C:\a\cxf\cxf-rt-management-2.4.0.jar;C:\a\cxf\cxf-rt-management-web-2.4.0.jar;C:\a\cxf\cxf-rt-transports-common-2.4.0.jar;C:\a\cxf\cxf-rt-transports-http-2.4.0.jar;C:\a\cxf\cxf-rt-transports-http-jetty-2.4.0.jar;C:\a\cxf\cxf-rt-transports-jbi-2.4.0.jar;C:\a\cxf\cxf-rt-transports-jms-2.4.0.jar;C:\a\cxf\cxf-rt-transports-local-2.4.0.jar;C:\a\cxf\cxf-rt-ws-addr-2.4.0.jar;C:\a\cxf\cxf-rt-ws-policy-2.4.0.jar;C:\a\cxf\cxf-rt-ws-rm-2.4.0.jar;C:\a\cxf\cxf-rt-ws-security-2.4.0.jar;C:\a\cxf\cxf-tools-common-2.4.0.jar;C:\a\cxf\cxf-tools-validator-2.4.0.jar;C:\a\cxf\cxf-tools-wsdlto-core-2.4.0.jar;C:\a\cxf\cxf-tools-wsdlto-databinding-jaxb-2.4.0.jar;C:\a\cxf\cxf-tools-wsdlto-frontend-jaxws-2.4.0.jar;C:\a\cxf\geronimo-javamail_1.4_spec-1.7.1.jar;C:\a\cxf\jaxb-impl-2.1.13.jar;C:\a\cxf\neethi-3.0.0.jar;C:\a\cxf\spring-aop-3.0.5.RELEASE.jar;C:\a\cxf\spring-asm-3.0.5.RELEASE.jar;C:\a\cxf\spring-beans-3.0.5.RELEASE.jar;C:\a\cxf\spring-context-3.0.5.RELEASE.jar;C:\a\cxf\spring-core-3.0.5.RELEASE.jar;C:\a\cxf\spring-expression-3.0.5.RELEASE.jar;C:\a\cxf\spring-web-3.0.5.RELEASE.jar;C:\a\cxf\stax-api-1.0-2.jar;C:\a\cxf\stax2-api-3.1.1.jar;C:\a\cxf\velocity-1.7-dep.jar;C:\a\cxf\velocity-1.7.jar;C:\a\cxf\woodstox-core-asl-4.1.1.jar;C:\a\cxf\wsdl4j-1.6.2.jar;C:\a\cxf\xml-resolver-1.2.jar;C:\a\cxf\xmlschema-core-2.0.jar;C:\a\jaxb\activation.jar;C:\a\jaxb\jaxb-api.jar;C:\a\jaxb\jaxb-impl.jar;C:\a\jaxb\jaxb-xjc.jar;C:\a\jaxb\jaxb1-impl.jar;C:\a\jaxb\jsr173_1.0_api.jar;C:\a\jaxws\activation.jar;C:\a\jaxws\FastInfoset.jar;C:\a\jaxws\gmbal-api-only.jar;C:\a\jaxws\http.jar;C:\a\jaxws\jaxb-api.jar;C:\a\jaxws\jaxb-impl.jar;C:\a\jaxws\jaxb-xjc.jar;C:\a\jaxws\jaxws-api.jar;C:\a\jaxws\jaxws-rt.jar;C:\a\jaxws\jaxws-tools.jar;C:\a\jaxws\jsr173_api.jar;C:\a\jaxws\jsr181-api.jar;C:\a\jaxws\jsr250-api.jar;C:\a\jaxws\management-api.jar;C:\a\jaxws\mimepull.jar;C:\a\jaxws\policy.jar;C:\a\jaxws\resolver.jar;C:\a\jaxws\saaj-api.jar;C:\a\jaxws\saaj-impl.jar;C:\a\jaxws\stax-ex.jar;C:\a\jaxws\streambuffer.jar;C:\a\jaxws\woodstox.jar;C:\a\otherJars\commons-collections-3.2.1.jar;C:\a\otherJars\commons-lang-2.6.jar" @SET TOOLS_JAR=%JAVA_HOME%\lib\tools.jar; %JAVA_HOME%\bin\java.exe -Xmx128M -cp %TOOLS_JAR%;%CLASSPATH% -Djava.util.logging.config.file="etc\logging.properties" org.apache.cxf.tools.wsdlto.WSDLToJava % -verbose -all -d src -ant -impl .\wsdl\CommitmentService.wsdl
