开发者

Searching a key word with java client programme from wsdl

Heyy I have a problem

I generated a client programme using http://api.search.live.net/search.wsdl this service for searching a key words.. I generated client by help of Eclipse-web project from this service. I have done searched on this service(live.net) but ı can't show on the console. How ı can do that?

public static void main(String[] args) throws RemoteException {

LiveSearchPortTypeProxy bb=new Liv开发者_如何学PythoneSearchPortTypeProxy();

SearchRequest request=new SearchRequest();

SearchRequestType1 bbs=new SearchRequestType1();

aas.setParameters(request);

sorgu.setAppId("*****************************************"); //you can take this ID from live service for using this service

sorgu.setSources(new SourceType[]{SourceType.Web});

sorgu.setQuery("keyword");

SearchResponseType0 cevap= bb.search(bbs);





}


Have a look at the cevap variable and its public get methods in a debugger, and see what you have.

You will most likely end up with an instance of org.w3c.Node which represents the root of the parsed response. This can then be treated like any other DOM tree.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜