Solved

java client for microsoft soap live search

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

Independent Software Vendors: 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
ejb on wildfly 5 63
How to configure empty element in XML Document parser? 15 58
Java Eclipse Loop 3 49
activeMQ Queue Messages Enqueued and Messages Dequeued 1 119
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
In this post we will learn different types of Android Layout and some basics of an Android App.
The viewer will learn how to dynamically set the form action using jQuery.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

751 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