I am trying to create and use a set of Java classes from WSDL using Apache Axis 2. I’ve successfully generated the class files using the approach described here:
http://www.gerd-riesselmann.net/scala/creating-java-classes-wsdl-file-using-apache-axis-2
I have copied the generated class files into my eclipse development environment. I have obtained all the necessary jar files and I have added them to my environment.
A single (source) problem remains that I don’t understand. The code section looks like this:
...
public org.tempuri.PreprocessingIncidentImportServiceStub.ImportResponse
import (org.tempuri.PreprocessingIncidentImportServiceStub.Import import0)
throws java.rmi.RemoteException
{
org.apache.axis2.context.MessageContext _messageContext = null;
...
Eclipse is reporting: Syntax error on token "import", expected identifier.
I don't understand the function definition that includes the "import" statement, and I am wondering if there's some eclipse setting that I must use to resolve this problem.
Thanks in advance for any help.