J'ai généré le client de service Web java à partir d'ici ->http://api.search.live.net/search.wsdl .. Je veux faire une recherche et la liste des valeurs de retour. Comment montrer le résultat?Web Service Client Java
mon code est:
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());
}
Que signifie l'impression? –
s'il vous plaît formater votre code, c'est facile ... – miku
duplication possible de http://stackoverflow.com/questions/2567849/java-web-service-client-from-microsoft-live-search – nos