RE: can't create c++ client

2008-12-16 Thread David Taylor (Lowell)
That's good.  It probably means it fixed the first error and is moving on to 
the next error.  Do the same thing.  Change the reference to CreditType so it 
uses the target namespace prefix, tns:CreditType.  You'll probably need to do 
that to all the items you are defining in your WSDL.  Keep working through the 
errors.

When I started with SOAP, I found getting the namespaces just right was one of 
the hardest parts.  You might Google for a tutorial on SOAP/XSD/XML namespaces, 
or find a good example and follow it.
Good luck,
-David

-Original Message-
From: virtan [mailto:vir...@virtan.com]
Sent: Tuesday, December 16, 2008 2:16 PM
To: Apache AXIS C User List
Subject: Re: can't create c++ client

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.(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



Re: can't create c++ client

2008-12-16 Thread virtan

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.(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



Re: can't create c++ client

2008-12-16 Thread virtan


On 16.12.2008, at 21:51, McCullough, Ryan wrote:

I would checkout the latest source from the subversion repository  
and try again. The distribution that is posted on the Axis C++ site  
is very very old, buggy, and should really be updated to a newer  
version from source control.


Ok, I'll try to checkout and compile sources from subversion repository.
Will write when done.

Btw, sources from Axis C++ site can't be compiled due to absence of  
many Makefile.am files in directories specified in SUBDIRS.





-Ryan

-Original Message-
From: virtan [mailto:vir...@virtan.com]
Sent: Tuesday, December 16, 2008 11:46 AM
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.(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



RE: can't create c++ client

2008-12-16 Thread David Taylor (Lowell)
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.
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.(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.


RE: can't create c++ client

2008-12-16 Thread McCullough, Ryan
I would checkout the latest source from the subversion repository and try 
again. The distribution that is posted on the Axis C++ site is very very old, 
buggy, and should really be updated to a newer version from source control.

-Ryan

-Original Message-
From: virtan [mailto:vir...@virtan.com] 
Sent: Tuesday, December 16, 2008 11:46 AM
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.(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.


can't create c++ client

2008-12-16 Thread virtan

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.(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.


ptt.wsdl
Description: Binary data


Axis2/C stripping SOAP faults in logs?

2008-12-16 Thread Sérgio Gomes
Hi there,

Looks like every time I get a SOAP fault back from a service, using my
Axis2/C client (ADB generated stubs), the log comes out empty, e.g.:

[Tue Dec 16 16:37:47 2008] [info]  Input message: http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
 
  
   
 


Those SOAP faults are obviously not returned empty by the server, but
it seems that Axis doesn't make the contents of the Fault tag
available in the logs, for whatever reason. Is there any flag or
axis2.xml option I should change in order to get this?

Thanks!

Cheers,
Sérgio

---
Sérgio Gomes
Developer Relations

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047


Re: What to free after a SOAP request (Axis2/C ADB)

2008-12-16 Thread Sérgio Gomes
Perfect, thanks Dimuthu!

Cheers,
Sérgio

---
Sérgio Gomes
Developer Relations

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047


---
On Tue, Dec 16, 2008 at 02:41, Dimuthu Gamage  wrote:
> Hi Sérgio Gomes,
>
> If you are writing clients, you need to free the stub, request and response
> adbs and the env.
>
> If you are writing services, you don't need to free any adb. But if you do
> custom malloc or strdups you have to free them.
>
> Thanks
> Dimuthu
>
> On Mon, Dec 15, 2008 at 10:26 PM, Sérgio Gomes  wrote:
>>
>> Hi there!
>>
>> I'm using the ADB generated code to write some small apps (samples for
>> an API). I'd like to make this code as correct as possible, since
>> developers will be using it as a reference, but I can't find anything
>> in the documentation as to what exactly I'm supposed to free or not.
>>
>> In the samples I start by creating the environment, some headers, the
>> service and a request. I assume I have to free all of these, since I
>> created them.
>> However, I'm not so sure about anything created by the framework
>> (namely, the service response). Is it safe to free these myself or
>> will the framework try to, at some point? Anything else I should look
>> out for?
>>
>> Looks like the code samples included with Axis don't do any "free"ing,
>> so it's hard to tell what's the right procedure.
>>
>> Thanks in advance!
>>
>> Cheers,
>> Sérgio
>>
>> ---
>> Sérgio Gomes
>> Developer Relations
>>
>> Google | Gordon House | Barrow Street | Dublin 4 | Ireland
>> Registered in Dublin, Ireland | Registration Number: 368047
>
>
>
> --
> Thanks,
> Dimuthu Gamage
>
> http://www.dimuthu.org
> http://www.wso2.org
>