Java Web Service Client from Microsoft Live Search

Posted by trendyy on Stack Overflow See other posts from Stack Overflow or by trendyy
Published on 2010-04-02T16:38:44Z Indexed on 2010/04/02 16:43 UTC
Read the original article Hit count: 325

Filed under:
|

I generated java web service from here --> http://api.search.live.net/search.wsdl.. I want to make search and listing the return values. In my opinion i generated client and client is makes research but i can't display result, how i can do that.. Can anyone check my wrote code and help me about displaying result? Thanks...

import java.rmi.RemoteException;
import com.microsoft.schemas.LiveSearch._2008._03.Search.*;

public class searchtry {

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


LiveSearchPortTypeProxy client=new LiveSearchPortTypeProxy();
SearchRequest request=new SearchRequest();
SearchRequestType1 type1=new SearchRequestType1();
sorgu.setAppId("*********************************"); //Windows Live gave this id for using that service 
sorgu.setSources(new SourceType[]{SourceType.Web});
sorgu.setQuery("Java");
aratip.setParameters(request);
SearchResponseType0 answer= client.search(type1);

System.out.println(answer.toString());





}

© Stack Overflow or respective owner

Related posts about java

Related posts about webservice-client