My Quotes


When U were born , you cried and the world rejoiced
Live U'r life in such a way that when you go
THE WORLD SHOULD CRY






Showing posts with label eclipse webservices. Show all posts
Showing posts with label eclipse webservices. Show all posts

Friday, September 7, 2012

Force Axis2 as web service runtime in eclipse



  1. Put your WSDL file somewhere in your project. 
  2. I created a wsdl folder and put it there. 
  3. Once that is done, right click on the project and select New > Other > Web Service. 
  4. In the next dialog box, choose "Top down Java bean web service" from the first menu, then browse to your WSDL file. 
  5. I then hit next a few times, and got the following error.  
  6. IWAB0489E Error when deploying Web service to Axis runtime   axis-admin failed with  http://schemas.xmlsoap.org/soap/envelope/}Client The service cannot be found for the endpoint reference (EPR) http://localhost:8080/... and so on

To fix this, I had to change the server runtime to Axis2 (Eclipse should warn you about this when you add the Axis2 facet, but it doesn't). Do this by going to the Window menu, select Preferences > Web Services > Server and Runtime. Choose your server (Tomcat 5.5 in my case), then select Apache Axis2 as the web service runtime


URISyntaxException at index 18 of WSDL

Boy I had to suffer a lot. Figured that Eclispe behaves differently when the path of the WSDL your are loading has SPACES.

So virtually had to move the WSDL file to a location without SPACES.

Then Do File --> New --> Other --> Web Service and then it worked like CHARM

Disable WS-I validation in WSDL and Eclipse

Whenever I imported a WSDL file into eclipse and try to generate the web services out of it, I get the following WARNINGS in eclipse WSDL editor.

wsdl:types element contained a data type definition that is not an XML schema definition

The errors you're seeing are Web Service Interoperability (WS-I) 
compliance errors. Your WSDL document is valid. You can disable WS-I 
validation under Window->Preferences->Web Services->Profile Compliance and 
Validation. Set both WS-I AP and WS-I SSBP to Ignore compliance.