2 counts of InaccessibleWSDLException

0

I'm developing an application that consumes a web service from a third party company.

When I run the application via Eclipse it works perfectly.

But when I go through the command line, the error "2 counts of InaccessibleWSDLException" is displayed whenever I call any of your services.

Command line: java -Xms256m -Xmx1024m -jar C: \ omni \ clients \ fac \ java \ IcaptorECob.jar

What should I do? What's the difference between running through Eclipse and out of it?

    
asked by anonymous 25.07.2017 / 02:00

1 answer

0

Create the classes folder within the WEB-INF folder, then create the META-INF folder inside the classes folder.

>

The structure looks like this: WEB-INF/classes/META-INF .

Place the file jax-ws-catalog.xml in the META-INF folder you just created.

Place the file nomedoarquivo.wsdl in the META-INF folder you just created.

The jax-ws-catalog.xml file should contain the following information:

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
<system systemId="http://localhost/wsdl/nomedoarquivo.wsdl" uri="nomedoarquivo.wsdl"/></catalog>

Now just reference wsdl for link in your Service class.

When the system looks up wsdl at link , it will be redirected to the local file.

    
21.02.2018 / 14:50