Solved

java client for microsoft soap live search

Posted on 2007-12-03
4
419 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

630 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