In fact, there is such a task, there is a resource (it is not a secret - http://ruzditest.eisnot.ru:8280/services/ruzdiUploadNotificationPackageService_v1_0?wsdl ). It is necessary to write a client to him. When trying to execute a command

wsimport -d bin -s srchttp://ruzditest.eisnot.ru:8280/services/ruzdiUploadNotificationPackageService_v1_0?wsdl

I get this abuse:

 parsing WSDL... [ERROR] Server returned HTTP response code: 503 for URL: http://ruzditest.eisnot.ru:8280/services/ruzdiUploadNotificationPackageService_v1_0?wsdl Failed to read the WSDL document: http://ruzditest.eisnot.ru:8280/services/ruzdiUploadNotificationPackageService_v1_0?wsdl, because 1) could not find the document; /2) the document could not be read; 3) the root element of the document is not <wsdl:definitions>. [ERROR] Could not find wsdl:service in the provided WSDL(s): At least one WSDL with at least one service definition needs to be provided. Failed to parse the WSDL. 

ok, using curl I download the wsdl file and then point directly to the wsdl I get a similar effect parsing WSDL ...

 [ERROR] IOException thrown when processing "file:/C:/workspaceIvy/IvyNotariat/ruzdiUploadNotificationPackageService_v1_0?xsd=ruzdiUploadNotificationPackageService_v1_0.xsd". Exception: java.io.FileNotFoundException: C:\workspaceIvy\IvyNotariat\ruzdiUploadNotificationPackageService_v1_0?xsd=ruzdiUploadNotificationPackageService_v1_0.xsd (БинтаксичСская ошибка Π² ΠΈΠΌΠ΅Π½ΠΈ Ρ„Π°ΠΉΠ»Π°, ΠΈΠΌΠ΅Π½ΠΈ ΠΏΠ°ΠΏΠΊΠΈ ΠΈΠ»ΠΈ ΠΌΠ΅Ρ‚ΠΊΠ΅ Ρ‚ΠΎΠΌΠ°). [WARNING] schema_reference.4: Failed to read schema document 'ruzdiUploadNotificationPackageService_v1_0?xsd=ruzdiUploadNotificationPackageService_v1_0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>. line 4 of file:/C:/workspaceIvy/IvyNotariat/test.wsdl#types?schema1 

Actually the question is, what is the gag?

  • a question ? How did you appear in your file name? hence the БинтаксичСская ошибка Π² ΠΈΠΌΠ΅Π½ΠΈ Ρ„Π°ΠΉΠ»Π°, - teran
  • @teran file I just have test.wsdl called - plesser

1 answer 1

Judging by this line:

 schema_reference.4: Failed to read schema document 

your WSDL depends on XSD schemes that are either not on the resource, or you, or they are damaged.

Do not use wsimport, try maven jaxb codegen

  • schemes to request or find valid links;) - amricko0b
  • but this is interesting, I have a resource. I myself began to guess about it but you ordered chaos in my head :) - plesser