Consuming JAVA webservice - Problem

Asked

Viewed 154 times

0

I am trying to consume the webservice but is giving a mistake that I do not understand. The webservice is this.

I’m trying to use the solicitarRange, and normally I do so:

new WebServiceScol_Service().getWebServiceScolPort().solicitarRange(
                                                                    "60618043",
                                                                    "8o8otn",
                                                                    8082650,
                                                                    new Long("9912208555"),
                                                                    "LE",
                                                                    "",
                                                                    1);

Only he’s making the following mistake:

error: package.com.correios.scol.webservice does not exist

import br.com.correios.scol.webservice.Retornofaixanumericato;

He doesn’t even get into the action, he misses us import, I am using netbeans and it is not error, because classes exist, anyone has any idea?

Manual link here, page 31.

  • It’s a little messy your question, you mean the code line of the import package is giving error?

  • Try to make the request with the Soapui. You’ll see the error is occurring on the other side.

  • in Soap is working properly, so far I do not understand why the error. He’s saying that the imports I need to make don’t exist... someone has some idea??

  • This error is during execution or compilation?

  • I just had it compiled and it worked, apparently that was the problem, I’m going to stir something here I question again

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.