Done Required changes still have some issue.
String endpointUri=
"cxf://http://localhost:8081/buzzor-service/services/ApplicationService?"
+
"wsdlURL=http://localhost:8081/buzzor-service/services/ApplicationService?wsdl&"
+
"serviceName={http://service.application.buzzor.atpl.com}ApplicationService&"
+
"portName={http://service.application.buzzor.atpl.com}ApplicationServiceHttpPort&"
+ "dataFormat=MESSAGE";
Exchange exchange = template.request(endpointUri, new Processor() {
public void process(final Exchange exchange) {
List<String> oList = new ArrayList<String>();
oList.add("Hello");
exchange.getIn().setBody(oList);
exchange.getIn().setHeader(CxfConstants.OPERATION_NAME,
"getApplication");
exchange.getIn().setHeader(CxfConstants.OPERATION_NAMESPACE,
"http://service.application.buzzor.atpl.com");
exchange.getIn().setHeader(Exchange.FILE_NAME,
"testFile");
exchange.getIn().setHeader("requestObject",
new DefaultCxfBinding());
SOAPMessage message = processSOAP(exchange);
System.out.println(message);
}
});
*Now i got an same error
org.apache.camel.InvalidPayloadException: No body available of type:
java.io.InputStream but has value: [Hello] of type: java.util.ArrayList on:
Message: [Hello]. Caused by: No type converter available to convert from
type: java.util.ArrayList to the required type: java.io.InputStream with
value [Hello]. Exchange[Message: [Hello]]. Caused by:
[org.apache.camel.NoTypeConversionAvailableException - No type converter
available to convert from type: java.util.ArrayList to the required type:
java.io.InputStream with value [Hello]]*
--
View this message in context:
http://camel.465427.n5.nabble.com/How-can-I-call-a-web-service-with-no-parameters-via-a-producerTemplate-tp4806257p5745425.html
Sent from the Camel - Users mailing list archive at Nabble.com.