Solved

java client for microsoft soap live search

Posted on 2007-12-03
4
408 Views
Last Modified: 2013-12-14
Can anybody help me to access the Microsoft Live (SOAP) Search API from JAVA?
http://soap.search.msn.com/webservices.asmx?wsdl

Using the latest version of netbeans I get the following error when trying to create a web services client from the SOAP wsdl:
"Web Service Client can not be created by JAXWS:wsimport utility.  Reason: A class/interface with the same name 'mycode.SearchResponse' is already in use.  Use a class customization to resolve the conflict."

Please Help!
0
Comment
Question by:u9707118
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
contactkarthi earned 250 total points
ID: 20396772
use apache axis

there is an option to generate java client from wsdl

wsdl2java
0
 
LVL 17

Expert Comment

by:contactkarthi
ID: 20396800
0
 
LVL 9

Assisted Solution

by:ysnky
ysnky earned 250 total points
ID: 20397997
why dont you use axis, it is very simpel with it.
first of all create need classes by wsdl2java tool and then call the service. sample
method for your service is below;


for more info;
http://ws.apache.org/axis/java/user-guide.html
http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=1
	public void msnCall() {
 
		// Make a service
		MSNSearchService service = new MSNSearchServiceLocator();
 
		// Now use the service to get a stub to the service
		try {
			
			MSNSearchPortType call = service.getMSNSearchPort();			
			SearchRequest req = new SearchRequest();
			//set your params
			//req.setAppID(appID);
			//req.setCultureInfo(cultureInfo);
			//.
			//.
			//
			SearchResponse result = call.search(req);
						
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} 		
	}

Open in new window

0
 

Author Closing Comment

by:u9707118
ID: 31412367
Thanks Guys  - I managed to get it working.  Axis seemed to compile the wsdl no problem.  
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to get all the API from website? 11 126
null output 3 42
Where to place postgres JDBC driver jar on tomcat 8 27
activeMQ Queue Messages Enqueued and Messages Dequeued 1 32
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question