On 16.12.2008, at 21:57, David Taylor (Lowell) wrote:

I would guess you might need to define a prefix for the target namespace and use that prefix in the reference. Something like this:

- add xmlns:tns="http://www.ptt.com/BizConnect"; to the root element.
- change reference to element="tns:ContractorCheckListBySpecialtyRequest"

I didn't try this out, but it may be the ticket.

Tried.

Got java.io.IOException: Type CreditType is referenced but not defined.

CreditType is not referenced as "element" in wsdl.
Suggestions ?



Good luck,
-David

-----Original Message-----
From: virtan [mailto:vir...@virtan.com]
Sent: Tuesday, December 16, 2008 1:46 PM
To: axis-c-user@ws.apache.org
Subject: can't create c++ client

Hi, all.

Nobody answered me. Trying to ask once again...

I tried to create C++ client from valid wsdl file (attached).
Got "referenced but not defined" error.
Sure, it is wrong. All referenced elements properly defined. No
problem reported using other wsdl parsers.

Can you help me ?

Details:
Using precompiled linux binaries from 
http://www.apache.org/dist/ws/axis-c/axis-c-linux-current-bin.tar.gz
[vir...@jail ~/tmp/ptt] java -version
java version "1.6.0_0"
IcedTea6 1.4 (fedora-7.b12.fc10-i386) Runtime Environment (build
1.6.0_0-b12)
OpenJDK Client VM (build 10.0-b19, mixed mode)
[vir...@jail ~/tmp/ptt] bash -x ./axis.sh
+ AXISINSTALLDIR=/home/virtan/tmp
+ CLASSPATH=/home/virtan/tmp/lib/axis/wsdl2ws.jar:/home/virtan/tmp/ lib/ axisjava/axis.jar:/home/virtan/tmp/lib/axisjava/commons- discovery.jar:/
home/virtan/tmp/lib/axisjava/commons-logging.jar:/home/virtan/tmp/lib/
axisjava/jaxrpc.jar:/home/virtan/tmp/lib/axisjava/saaj.jar:/home/
virtan/tmp/lib/axisjava/wsdl4j.jar
+ java -cp /home/virtan/tmp/lib/axis/wsdl2ws.jar:/home/virtan/tmp/lib/
axisjava/axis.jar:/home/virtan/tmp/lib/axisjava/commons- discovery.jar:/
home/virtan/tmp/lib/axisjava/commons-logging.jar:/home/virtan/tmp/lib/
axisjava/jaxrpc.jar:/home/virtan/tmp/lib/axisjava/saaj.jar:/home/
virtan/tmp/lib/axisjava/wsdl4j.jar
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws ptt.wsdl -lc -v -sclient
java.io.IOException: Element ContractorCheckListBySpecialtyRequest is
referenced but not defined.
      at
org
.apache
.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:
657)
      at
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:532)
      at
org .apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:
506)
      at
org .apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:
483)
      at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:
356)
      at java.lang.Thread.run(Thread.java:636)
org.apache.axis.wsdl.wsdl2ws.WrapperFault: java.io.IOException:
Element ContractorCheckListBySpecialtyRequest is referenced but not
defined.
      at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.<init>(Unknown Source)
      at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(Unknown Source)
Caused by: java.io.IOException: Element
ContractorCheckListBySpecialtyRequest is referenced but not defined.
      at
org
.apache
.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:
657)
      at
org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:532)
      at
org .apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:
506)
      at
org .apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:
483)
      at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:
356)
      at java.lang.Thread.run(Thread.java:636)

Code generation failed. Please see errors above.

--
virtan / vir...@virtan.com / http://www.virtan.com

Reply via email to