Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The import javax.xml.rpc.encoding cannot be resolved

Tags:

java

soap

I'm trying to run this code http://www.nactem.ac.uk/software/termine/webservice/termine_soap_client.java

and I get the following error: The import javax.xml.rpc.encoding cannot be resolved.

I'm using Oracle Java 7. What do I need to add to get this resolved?

Thanks, Ivelina

like image 743
ivita Avatar asked Jun 09 '13 09:06

ivita


2 Answers

In case someone is using Maven, these are the only dependencies I needed in order to make wsdl2java goal work:

    <dependency>
        <groupId>javax.xml</groupId>
        <artifactId>jaxrpc-api</artifactId>
        <version>1.1</version>
    </dependency>
    <dependency>
        <groupId>org.apache.axis</groupId>
        <artifactId>axis</artifactId>
        <version>1.4</version>
    </dependency>
like image 129
alexdefelipe Avatar answered Oct 25 '22 21:10

alexdefelipe


Add the relevant jars to your build path : axis.jar, jaxrpc.jar and xerces.jar.

like image 39
AllTooSir Avatar answered Oct 25 '22 19:10

AllTooSir