Q

Consuming .NET WS from an AS400 application

I have a .NET Web service and want to consume it from an IBM AS400 iSeries standalone Java application (so it's...

not in the Web container from the WebSphere application server). So, I created a Java project in WSAD5.1 and want to generate a Java proxy client for the Web service using the WSDL2Java tool:

com.ibm.ws.webservices.tools.WSDL2Java -verbose -role client PPService.wsdl
I get the following error:

java.lang.NoClassDefFoundError:
org/eclipse/emf/ecore/resource/Resource$Factory
	at
com.ibm.ws.webservices.wsdl.mapping.MappingMetaData.
 
  (MappingMetaData.j
ava:133)
	at
com.ibm.ws.webservices.wsdl.toJava.Emitter.
  
   (Emitter.java:164)
	at
com.ibm.ws.webservices.tools.WSDL2Java.createParser(WSDL2Java.java:239)
	at com.ibm.ws.webservices.wsdl.WSDL2.
   
    (WSDL2.java:129)
	at com.ibm.ws.webservices.tools.WSDL2Java.
    
     (WSDL2Java.java:228)
	at com.ibm.ws.webservices.tools.WSDL2Java.main(WSDL2Java.java:355)
Exception in thread "main" 
    
   
  
 

Can you tell me what is wrong?

BTW: I have found a jar with the class that is missing and put it in the classpath, but then there is another class missing and so on......
I suspect that the Eclipse Modeling Framework (EMF) hasn't been installed and configured properly in WSAD. The Web services tools relies on EMF.

This was last published in October 2004

Dig Deeper on Simple Object Access Protocol (SOAP)

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchSoftwareQuality

SearchCloudApplications

SearchAWS

TheServerSide

SearchWinDevelopment

Close