You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by chengy <ch...@yahoo.com.cn> on 2010/01/09 11:21:50 UTC

XMLBindingFactory or HttpBindingFactory?

I am using cxf2.1.5,I want to invoke operation getChineseFonts on port
RandomFontsWebServiceHttpGet.I find cxf use XMLBindingFactory of bindingid
"http://cxf.apache.org/bindings/xformat",The request url is wrong,the call
fail failure then.

Web Service
Description:http://www.webxml.com.cn/WebServices/RandomFontsWebService.asmx?wsdl

My code like this:

URL url = new
URL("http://www.webxml.com.cn/WebServices/RandomFontsWebService.asmx?wsdl");
QName s = new QName("http://WebXml.com.cn/", "RandomFontsWebService");
QName get = new QName("http://WebXml.com.cn/",
"RandomFontsWebServiceHttpGet");
Client c = DynamicClientFactory.newInstance().createClient(url, s, get);
Object[] o = c.invoke("getChineseFonts", new Object[] { "5" });
System.out.println(o[0]);
-- 
View this message in context: http://old.nabble.com/XMLBindingFactory-or-HttpBindingFactory--tp27087059p27087059.html
Sent from the cxf-user mailing list archive at Nabble.com.