Should be something like:

Service service = Service.create(serviceName);
service.addPort(portName, 
             SOAPBinding.SOAP11HTTP_BINDING,
             "http://localhost:8080/mkyong_webapp/serviceAddress";);
Dispatch<SOAPMessage> dispatch = service.createDispatch(portName,
              SOAPMessage.class, Service.Mode.MESSAGE);;

No wsdl involved.


Dan


On Tuesday, April 24, 2012 04:10:32 AM imiten wrote:
> Hi,
> 
> I am not sure about exact code but if you could help remediate it will
> help. Here is existing code that works.
> 
> QName serviceName = new QName("http://webservice.mkyong.com/";,
> "ProductWebServiceService");
>         QName portName = new QName("http://webservice.mkyong.com/";,
> "ProductWebServicePort");
> 
>         Service service = Service.create(new
> URL("http://localhost:8080/mkyong_webapp/wsdl/ProductWebService.wsdl";),
> serviceName);
> 
>         Dispatch<SOAPMessage> dispatch = service.createDispatch(portName,
> SOAPMessage.class, Service.Mode.MESSAGE);
> 
> 
> Regards,
> 
> Miten.
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/generate-wsdl-and-client-Dispatch-for-jax
> -ws-Provider-tp5655967p5661676.html Sent from the cxf-user mailing list
> archive at Nabble.com.
-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to