2016-02-20 3 views
0

Я хочу, чтобы генерировать javacode из этого WSDL: http://www.cbr.ru/CreditInfoWebServ/CreditOrgInfo.asmx?WSDLпоколение javacode из WSDL

Я использую команду:

wsimport -d C:\test http://www.cbr.ru/CreditInfoWebServ/CreditOrgInfo.asmx?WSDL -Xnocompile 

В результате многих таких ошибок

[ERROR] undefined element declaration 's:schema' line 55 of http://www.cbr.ru/CreditInfoWebServ/CreditOrgInfo.asmx?WSDL

UPDATE

Я пробовал undefined element declaration 'xs:schema' использовали команду >>

wsimport -b http://www.w3.org/2001/XMLSchema.xsd -b customization.xjb CreditOrgInfo.wsdl

и получил ошибку:

org.xml.sax.SAXParseException; systemId: w3.org/2001/XMLSchema.xsd; lineNumber: 67; columnNumber: 11; External DTD: Failed to read external DTD 'XMLSchema.dtd', because 'http' access is not allowed due to restriction set by the accessExternalDTD property.

+0

@Seelenvirtuose обновление – Tim

+0

http://stackoverflow.com/questions/13499860/jax-ws-error-on-wsdl-file-error-resolving-component-sschema, попробуйте добавить эти свойства -Djavax.xml .accessExternalDTD = all -Djavax.xml.accessExternalSchema = all – sashwat

ответ

0

Во всяком случае я могу генерировать код с помощью команды. Мой выход предоставляется. Файлы создаются в файловой системе.

> wsimport -b http://www.w3.org/2001/XMLSchema.xsd -b customization.xjb http://www.cbr.ru/CreditInfoWebServ/CreditOrgInfo.asmx?WSDL -Xnocompile 
parsing WSDL... 

[WARNING] src-resolve.4.2: Error resolving component 's:schema'. It was detected that 's:schema' is in namespace 'http://www.w3.org/2001/XMLSchema', but compone 
nts from this namespace are not referenceable from schema document 'http://www.cbr.ru/CreditInfoWebServ/CreditOrgInfo.asmx?WSDL#types?schema1'. If this is the i 
ncorrect namespace, perhaps the prefix of 's:schema' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 
'http://www.cbr.ru/CreditInfoWebServ/CreditOrgInfo.asmx?WSDL#types?schema1'. 
    line 55 of http://www.cbr.ru/CreditInfoWebServ/CreditOrgInfo.asmx?WSDL#types?schema1 

[WARNING] Ignoring SOAP port "CreditOrgInfoSoap12": it uses non-standard SOAP 1.2 binding. 
You must specify the "-extension" option to use this binding. 
    line 2449 of http://www.cbr.ru/CreditInfoWebServ/CreditOrgInfo.asmx?WSDL 

generating code... 
Смежные вопросы