Hi all,
 
This is my first attempt to use CXF and I have a problem. I created web service
with jetty on server side and when I do  
http://127.0.0.1:8080/webservices/calcService?wsdl
I see wsdl of the service.
 
However, when via client I try to call my service my arguments for method are 
ignored.
 
This is the list of modules I have on server side:
 
cxf-rt-transports-http-3.3.6.jar
cxf-rt-frontend-jaxws-3.3.6.jar
cxf-core-3.3.6.jar
cxf-rt-frontend-simple-3.3.6.jar
cxf-rt-bindings-soap-3.3.6.jar
cxf-rt-wsdl-3.3.6.jar
cxf-rt-databinding-jaxb-3.3.6.jar
jakarta.xml.ws-api-2.3.2.jar
jakarta.xml.soap-api-1.4.1.jar
jakarta.jws-api-1.1.1.jar
xmlschema-core-2.2.5.jar
istack-commons-runtime-3.0.8.jar
woodstox-core-5.0.3.jar
stax2-api-3.1.4.jar
wsdl4j-1.6.3.jar
 
And this is what I see using ngrep:
 
T 127.0.0.1:38468 -> 127.0.0.1:8080 [AP]
  POST /webservices/calcService HTTP/1.1..Content-Type: text/xml; 
charset=UTF-8..Accept: */*..SOAPAction: ""..User-Agent: Apache-CXF/3.3.6.
  .Cache-Control: no-cache..Pragma: no-cache..Host: localhost:8080..Connection: 
keep-alive..Content-Length: 218....                        
#
T 127.0.0.1:38468 -> 127.0.0.1:8080 [AP]
  <soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Body><ns2:addNumbers
 
xmlns:ns2="http://cfx.temp.com/";><arg0>1.2</arg0><arg1>1.2</arg1></ns2:addNumbers></soap:Body></soap:Envelope>
                                                        
##
T 127.0.0.1:8080 -> 127.0.0.1:38468 [AP]
  HTTP/1.1 500 Server Error..Date: Wed, 29 Apr 2020 21:56:45 GMT..Content-Type: 
text/xml;charset=utf-8..Content-Length: 326..Server: Jetty(
  9.4.z-SNAPSHOT)....<soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Body><soap:Fault><faultcode>soap:Server</f
  aultcode><faultstring>null while invoking public double 
com.temp.cfx.CalculatorServiceImpl.addNumbers(double,double) with para
  ms [null, null].</faultstring></soap:Fault></soap:Body></soap:Envelope>       
                                                           
####
 
As you see both arguments for addNumbers are passed but they are ignored. Could 
anyone help to solve this problem?
 
Best regards, Alex
 

Reply via email to