RE: When Basic authentication is on, client calls server twice

2009-05-14 Thread David Taylor (Lowell)
We also got bit by this bug and have used the recommended fix of adding a 
missing else keyword.  This has worked for us for several months without 
issue.  To make it easier for others, I just attached a patch file to JIRA 
AXIS2C-1244.  I hope this can make it into the next release of AXIS2/C.  I hope 
this helps.
Thanks,
-David


From: Gordon Brown [mailto:gordonw.br...@yahoo.com]
Sent: Wednesday, May 13, 2009 12:14 PM
To: Apache AXIS C User List
Cc: axis-c-...@ws.apache.org
Subject: When Basic authentication is on, client calls server twice

Hi There,

I am currently encountering a serious bug that seems exist in axis2/c. I am 
using version 1.5 and I also tried version 1.6. The bug has to do with the 
usage of Basic Authentication in web service client calls. I noticed that the 
server side receives two calls for each one client call. This caused problem in 
server side, because for each call, the server side is supposed to post data in 
a database table and then send out emails. Now, for each client call, the 
server side post the same data twice and send out emails twice.

This is absolutely unacceptable. This means that Basic authentication is not 
supported in axis2/c.

I was browsing the bug database and noticed that there is a bug reported 
(https://issues.apache.org/jira/browse/AXIS2C-1244) for this problem. Is there 
any plan to resolve this issue?

Thanks!
Gordon



RE: Guththila and UTF-8?

2009-05-01 Thread David Taylor (Lowell)
That sounds easy enough.
Thanks,
-David

From: Rajika Kumarasiri [rajika.kumaras...@gmail.com]
Sent: Friday, May 01, 2009 10:02 PM
To: Apache AXIS C User List
Subject: Re: Guththila and UTF-8?

You can grant apache license permission by clicking the check box when 
submitting the patch to JIRA.

-Rajika

On Fri, May 1, 2009 at 8:01 PM, David Taylor (Lowell) 
dktay...@f5.commailto:dktay...@f5.com wrote:

That sounds reasonable.  Do you have an example of what I need to say to give 
apache license permission to the patch?

Thanks,

-David





From: uthaiyashan...@gmail.commailto:uthaiyashan...@gmail.com 
[mailto:uthaiyashan...@gmail.commailto:uthaiyashan...@gmail.com] On Behalf Of 
Uthaiyashankar
Sent: Thursday, April 30, 2009 10:54 PM

To: Apache AXIS C User List
Subject: Re: Guththila and UTF-8?



Hi David,

On Thu, Apr 30, 2009 at 11:28 PM, David Taylor (Lowell) 
dktay...@f5.commailto:dktay...@f5.com wrote:

Supun,



Thanks for the offer to help.  I have a fix working, now.  It handles UTF-8 
code for element and attribute values, but depends on the system locale for 
element and attribute names (it still uses isspace and isalpha).  It would 
probably be better to use iswspace and iswalpha, though I am not sure whether 
they are as portable to all systems AXIS2/C supports.  What do you think about 
that?



In any case, what should be the next step for my changes?  Would you like me to 
email a patch or attach it to the JIRA bug?  Do you prefer just regular diff -u 
patches?

You have to attach the patch to JIRA bug. Regular diff -u patch is enough. When 
attaching the patch, you have to give apache licence permission to the patch.

Regards,
Shankar





My changes also include new unit tests for the UTF-8 transcoder.  I integrated 
them with the other Guththila unit tests that were a bit crufty, so I got them 
working, too.  I’ll include that in the patch as well.

Thanks,

-David





From: Supun Kamburugamuva [mailto:supu...@gmail.commailto:supu...@gmail.com]
Sent: Monday, April 27, 2009 11:51 PM

To: Apache AXIS C User List
Subject: Re: Guththila and UTF-8?



Great! I'll be more than happy to help you with this.



Supun..

On Mon, Apr 27, 2009 at 8:59 PM, David Taylor (Lowell) 
dktay...@f5.commailto:dktay...@f5.com wrote:

Thank you very much for the quick update.  Maybe I’ll offer to take that task…. 
 Let me think about it.

Thanks,

-David





From: Samisa Abeysinghe [mailto:sam...@wso2.commailto:sam...@wso2.com]
Sent: Monday, April 27, 2009 11:57 AM
To: Apache AXIS C User List
Subject: Re: Guththila and UTF-8?



We have not looked into this for some time, because both folks who were 
involved with this part of the code went on to pursue their studies.

It is time that we look for new volunteers to cover this.



Samisa...

On Mon, Apr 27, 2009 at 9:21 PM, David Taylor (Lowell) 
dktay...@f5.commailto:dktay...@f5.com wrote:

It doesn’t appear that Guththila supports UTF-8 even though 
guththila_get_encoding is hardcoded to return “UTF-8”.  After googling for a 
bit, I am not clear on what the plans are for UTF-8 support.  Is it planned any 
time soon?  JIRA AXIS2C-1265 hasn’t been updated in a while.  I’d appreciate 
any info on this.

Thanks,

-David



https://issues.apache.org/jira/browse/AXIS2C-1265





--
Software Engineer, WSO2 Inc
http://wso2.org
supunk.blogspot.comhttp://supunk.blogspot.com



--
S.Uthaiyashankar
Software Architect
WSO2 Inc.
http://wso2.com/ - The Open Source SOA Company




--
http://wso2.org
http://llvm.org
http://www.minix3.org


RE: Guththila and UTF-8?

2009-04-30 Thread David Taylor (Lowell)
Supun,

Thanks for the offer to help.  I have a fix working, now.  It handles UTF-8 
code for element and attribute values, but depends on the system locale for 
element and attribute names (it still uses isspace and isalpha).  It would 
probably be better to use iswspace and iswalpha, though I am not sure whether 
they are as portable to all systems AXIS2/C supports.  What do you think about 
that?

In any case, what should be the next step for my changes?  Would you like me to 
email a patch or attach it to the JIRA bug?  Do you prefer just regular diff -u 
patches?

My changes also include new unit tests for the UTF-8 transcoder.  I integrated 
them with the other Guththila unit tests that were a bit crufty, so I got them 
working, too.  I'll include that in the patch as well.
Thanks,
-David


From: Supun Kamburugamuva [mailto:supu...@gmail.com]
Sent: Monday, April 27, 2009 11:51 PM
To: Apache AXIS C User List
Subject: Re: Guththila and UTF-8?

Great! I'll be more than happy to help you with this.

Supun..
On Mon, Apr 27, 2009 at 8:59 PM, David Taylor (Lowell) 
dktay...@f5.commailto:dktay...@f5.com wrote:

Thank you very much for the quick update.  Maybe I'll offer to take that 
task  Let me think about it.

Thanks,

-David





From: Samisa Abeysinghe [mailto:sam...@wso2.commailto:sam...@wso2.com]
Sent: Monday, April 27, 2009 11:57 AM
To: Apache AXIS C User List
Subject: Re: Guththila and UTF-8?



We have not looked into this for some time, because both folks who were 
involved with this part of the code went on to pursue their studies.

It is time that we look for new volunteers to cover this.



Samisa...

On Mon, Apr 27, 2009 at 9:21 PM, David Taylor (Lowell) 
dktay...@f5.commailto:dktay...@f5.com wrote:

It doesn't appear that Guththila supports UTF-8 even though 
guththila_get_encoding is hardcoded to return UTF-8.  After googling for a 
bit, I am not clear on what the plans are for UTF-8 support.  Is it planned any 
time soon?  JIRA AXIS2C-1265 hasn't been updated in a while.  I'd appreciate 
any info on this.

Thanks,

-David



https://issues.apache.org/jira/browse/AXIS2C-1265





--
Software Engineer, WSO2 Inc
http://wso2.org
supunk.blogspot.comhttp://supunk.blogspot.com



Guththila and UTF-8?

2009-04-27 Thread David Taylor (Lowell)
It doesn't appear that Guththila supports UTF-8 even though 
guththila_get_encoding is hardcoded to return UTF-8.  After googling for a 
bit, I am not clear on what the plans are for UTF-8 support.  Is it planned any 
time soon?  JIRA AXIS2C-1265 hasn't been updated in a while.  I'd appreciate 
any info on this.
Thanks,
-David

https://issues.apache.org/jira/browse/AXIS2C-1265


RE: Guththila and UTF-8?

2009-04-27 Thread David Taylor (Lowell)
Thank you very much for the quick update.  Maybe I'll offer to take that 
task  Let me think about it.
Thanks,
-David


From: Samisa Abeysinghe [mailto:sam...@wso2.com]
Sent: Monday, April 27, 2009 11:57 AM
To: Apache AXIS C User List
Subject: Re: Guththila and UTF-8?

We have not looked into this for some time, because both folks who were 
involved with this part of the code went on to pursue their studies.
It is time that we look for new volunteers to cover this.

Samisa...
On Mon, Apr 27, 2009 at 9:21 PM, David Taylor (Lowell) 
dktay...@f5.commailto:dktay...@f5.com wrote:

It doesn't appear that Guththila supports UTF-8 even though 
guththila_get_encoding is hardcoded to return UTF-8.  After googling for a 
bit, I am not clear on what the plans are for UTF-8 support.  Is it planned any 
time soon?  JIRA AXIS2C-1265 hasn't been updated in a while.  I'd appreciate 
any info on this.

Thanks,

-David



https://issues.apache.org/jira/browse/AXIS2C-1265



RE: Messages being sent twice in axis2c/1.5.0

2009-01-30 Thread David Taylor (Lowell)
I had this problem myself a little while back, and I found this workaround that 
seems to fix it for me.  I haven't tested it extensively, though so YMMV.
-David

--- ./src/core/transport/http/sender/http_sender.c  2008-07-10 
08:52:25.0 -0400
+++ ./src/core/transport/http/sender/http_sender.c  2008-11-11 
13:53:36.0 -0500
@@ -1002,7 +1002,7 @@
 env);
 }

-if (force_http_auth_with_head)
+else if (force_http_auth_with_head)
 {
 axis2_http_request_line_t *head_request_line = NULL;
 axis2_http_request_line_t *temp = NULL;


From: Raghu Udupa [mailto:rud...@easylink.com]
Sent: Friday, January 30, 2009 11:59 AM
To: Apache AXIS C User List
Subject: Messages being sent twice in axis2c/1.5.0

Hi,

I am using Axis2C/1.5.0 on a Linux server as a client communicating to a Web 
service. When a message is sent either using http or using https protocol, the 
same message is being sent twice with in a fraction of second. I do see that 
this problem was reported to Axis2c user group before. Has this problem been 
resolved?

I am attaching tcpmon log.

I am using ADB to generate the stub code. If this problem has been resolved 
already, can I just upgrade the run time library to a newer release without 
having to regenerate the ADB code? ADB generated stub code is modified 
significantly.

Thanks,
Raghu



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


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



RE: xs:any minOccurs Check is Wrong

2008-11-18 Thread David Taylor (Lowell)
I think I have figured out the problem.  In this case, there is an
anonymous complex type with a sequence.  That sequence has an implied
minOccurs of 1.  But, inside that sequence is only a single item, any,
with a minOccurs of 0.  The ADB deserializer didn't handle the case
where the any had nothing, since the sequence was expecting at least 1
item.  I worked around it by adding minOccurs=0 to the sequence.  I
don't know how the specification says to handle this, but it may be that
if all the subitems have minOccurs=0, then the parent should also be
treated as though minOccurs=0 as well.

Thanks,

-David

 



From: Dimuthu Gamage [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 17, 2008 10:04 PM
To: Apache AXIS C User List
Subject: Re: xs:any minOccurs Check is Wrong

 

Hi David,

From the error message of your generated code, it looks like you are
checking ItemListTypeSequence instead of ItemListType property. Can
you check whether there is anther property named ItemListType?.

If it is no other property, then this should probably bugs for not
setting @any and @minOccurs. If so please report it to the Apache Jira.
https://issues.apache.org/jira/secure/Dashboard.jspa (select Axis2-C
project)

Thanks
Dimuthu

On Wed, Nov 12, 2008 at 4:29 AM, David Taylor (Lowell) [EMAIL PROTECTED]
wrote:

I have a WSDL that I am using to generate ADB stubs.  This WSDL includes
a type with xs:any that is causing the stub to have code generated to
check for at least 1 element in the list, even though the element lists
minOccurs=0.  Here's the fragment of the WSDL:

 

 

complexType name=ItemListType

sequence maxOccurs=unbounded

any namespace=##other
processContents=lax minOccurs=0 maxOccurs=unbounded /

/sequence

/complexType

 

Here is the erroneous check in the generated stub deserialize function:

 

   if (i  1)

   {

 /* found element out of order */

 AXIS2_LOG_ERROR(env-log,
AXIS2_LOG_SI, ItemListTypeSequence (@minOccurs = '1') only have %d
elements, i);

 if(element_qname)

 {

axutil_qname_free(element_qname,
env);

 }

 if(arr_list)

 {

axutil_array_list_free(arr_list,
env);

 }

 return AXIS2_FAILURE;

   }

 

The problem appears to be that the XSLT stylesheet is looking for an
@any attribute to be set, to avoid generating this section of code.  It
seems that the xs:any element should set this attribute.  However, I
can't figure out where that attribute should be set.  Any help would be
greatly appreciated.

Thanks,

-David

 




-- 
Thanks,
Dimuthu Gamage

http://www.dimuthu.org
http://www.wso2.org



RE: Sementation fault on solaris sparc 64-bit

2008-11-12 Thread David Taylor (Lowell)
I'd recommend you run valgrind on your program.  I'd guess this is a
double free of some memory and valgrind would tell you where it is.

-David

 



From: Gelle, Sreenivasulu [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 12, 2008 12:26 PM
To: [EMAIL PROTECTED]; axis-c-user@ws.apache.org
Cc: Yuin, Maria; Zhou, Xiaofan
Subject: Sementation fault on solaris sparc 64-bit
Importance: High

 

Hi All,

I'm using axis2-c 1.3.0 version built on Solaris Sparc
64-bit OS with Sunstudio 11 compiler.

Below is stack trace. Please let me know is there any thing has fixed in
this area.

 

 

I'm in the end of release and this issue is show stopper. So your help
is so much appreciated.

 

 

 called from signal handler with signal 11 (SIGSEGV) --

  [6] MemFreePtr(0x6c6c652f44535f53, 0x78909eb8, 0x10a400,
0x789021d0, 0x, 0x6c6c652f4453), at
0x7f209b58

  [7] axutil_allocator_free_impl(0x1051c00d8, 0x6c6c652f44535f53, 0x3,
0x7890ed10, 0x7f61eda0, 0x6b6fae1c), at
0x7890c6c4

  [8] axutil_stream_free(0x1051b0558, 0x1051c0138, 0x79011ec9,
0x78902380, 0x3, 0x0), at 0x7890ec04

  [9] axutil_stream_free_void_arg(0x1051b0558, 0x1051c0138, 0x3,
0x1051b0558, 0x104ff0118, 0x6b6fafbc), at 0x7890ed10

  [10] axutil_property_free(0x104ff0db8, 0x1051c0138, 0x0,
0x6b6fb040, 0x2, 0x10505), at 0x789194e0

  [11] axis2_ctx_free(0x1050519f8, 0x1051c0138, 0x7900f463,
0x79052a84, 0x104ff0118, 0x6b6fb14c), at
0x7904d0c0

  [12] axis2_msg_ctx_free(0x10533abf8, 0x1051c0138, 0x790106ac,
0x7905b894, 0x0, 0x104ff), at 0x7904d66c

  [13] axis2_op_ctx_free(0x1052510f8, 0x1051c0138, 0x0,
0x7905fa68, 0x0, 0x0), at 0x79052a84

  [14] axis2_op_client_free(0x105251098, 0x1051c0138, 0x1051d1980, 0x0,
0x0, 0x1052c0140), at 0x7905b894

  [15] axis2_svc_client_free(0x105260078, 0x1051c0138, 0x1051d1978, 0x1,
0x105051eb8, 0x0), at 0x7905fa68

  [16] XTran_webservice::getnext(0x104d84968, 0x104b03218, 0x105260078,
0x10254af38, 0x3, 0x1051c0138), at 0x100f2d97c

[17] XTran_webservice::execute(0x104d84968, 0x104b03218, 0x100f2ce40,
0x103cea478, 0x21ff99c, 0x102686d20), at 0x100f2e080

 

 

Thanks

-Srini



xs:any minOccurs Check is Wrong

2008-11-11 Thread David Taylor (Lowell)
I have a WSDL that I am using to generate ADB stubs.  This WSDL includes
a type with xs:any that is causing the stub to have code generated to
check for at least 1 element in the list, even though the element lists
minOccurs=0.  Here's the fragment of the WSDL:

 

 

complexType name=ItemListType

sequence maxOccurs=unbounded

any namespace=##other
processContents=lax minOccurs=0 maxOccurs=unbounded /

/sequence

/complexType

 

Here is the erroneous check in the generated stub deserialize function:

 

   if (i  1)

   {

 /* found element out of order */

 AXIS2_LOG_ERROR(env-log,
AXIS2_LOG_SI, ItemListTypeSequence (@minOccurs = '1') only have %d
elements, i);

 if(element_qname)

 {

axutil_qname_free(element_qname,
env);

 }

 if(arr_list)

 {

axutil_array_list_free(arr_list,
env);

 }

 return AXIS2_FAILURE;

   }

 

The problem appears to be that the XSLT stylesheet is looking for an
@any attribute to be set, to avoid generating this section of code.  It
seems that the xs:any element should set this attribute.  However, I
can't figure out where that attribute should be set.  Any help would be
greatly appreciated.

Thanks,

-David

 



RE: Adding additional authentication mechanism to a axis c client application

2008-11-08 Thread David Taylor (Lowell)
I think Kevin is asking about Negotiate authentication defined in RFC 4559.  
This is an HTTP transport level authentication scheme.

Thanks,
-David


-Original Message-
From: Supun Kamburugamuva [mailto:[EMAIL PROTECTED]
Sent: Fri 11/7/2008 9:40 PM
To: Apache AXIS C User List
Subject: Re: Adding additional authentication mechanism to a axis c client 
application
 
Not familiar with NTLM. Is that a transport level auth mechanism or soap
level auth mechanism? AFAIK kerboros is a SOAP level auth mechanism. To
support kerboros authentication [1] needs to be implemented at the Rampart/C
level.

[1]
http://www.oasis-open.org/committees/download.php/16788/wss-v1.1-spec-os-KerberosTokenProfile.pdf

On Sat, Nov 8, 2008 at 12:32 AM, Kevin Heneghan [EMAIL PROTECTED] wrote:

  Hi,



I am creating a SOAP/WS-management client to talk to an existing web
 service.  The existing web service requires NTLM or Kerberos
 authentication.  How do I plugin my authentication code to the axis client
 to negotiate authentication at the HTTP level?



 In detail.



  I have existing code that can do NTLM authentication in a share library on
 linux.

  I have a SOAP/WS-management client that needs to utilize this library to
 do NTLM authentication at the HTTP level.

  How do I put my code into the axis client to do the authentication?



 Thanks

 Kevin




-- 
Software Engineer, WSO2 Inc
http://wso2.org
Web Services with Axis2/C http://wsaxc.blospot.com



RE: AXIS2/Java ICU BCEL Build Error

2008-10-28 Thread David Taylor (Lowell)
Oops!  Sorry.
-David

-Original Message-
From: Samisa Abeysinghe [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 27, 2008 11:07 PM
To: Apache AXIS C User List
Subject: Re: AXIS2/Java ICU BCEL Build Error

You are on the wrong list, you should be asking the Java list.

Samisa...

David Taylor (Lowell) wrote:
 I am trying to build AXIS2/Java version 1.4.1 but I am getting a build
 failure from the BCEL JarAnalyzer on the ICU 2.6.1 JAR file.  I'd
 appreciate any suggestions on how to work past this.
 Thanks,
 -David K. Taylor

 [INFO] Executed tasks

 [INFO] [install:install]

 [INFO] Installing

/cavins-vm1/Builds/cavins/dev/third_party_source/axis2-1.4.1/acopiaobj/a
 xis2-1.4.1-acopia01-build/modules/documentation/pom.xml to

/home/cavins/.m2/repository/org/apache/axis2/documentation/1.4.1/documen
 tation-1.4.1.pom

 [INFO] [site:site {execution: default}]

 [INFO] Unable to load parent project from a relative path: Could not
 find the model file

'/cavins-vm1/Builds/cavins/dev/third_party_source/axis2-1.4.1/acopiaobj/
 axis2-1.4.1-acopia01-build/modules/parent/../pom.xml'. for project
 unknown

 [INFO] Parent project loaded from repository.

 [INFO] artifact org.apache.maven.skins:maven-default-skin: checking
for
 updates from apache-ws-snapshots2

 [INFO] artifact org.apache.maven.skins:maven-default-skin: checking
for
 updates from tomcat-repository

 [INFO] artifact org.apache.maven.skins:maven-default-skin: checking
for
 updates from eclipse-repo

 [INFO] Skipped About report, file index.html already exists for
the
 English version.

 [INFO] Generating Plugin Management report.

 [INFO] Generating Mailing Lists report.

 [INFO] Generating Continuous Integration report.

 [INFO] Generating Dependency Management report.

 Downloading:

http://ws.zones.apache.org/repository2/org/apache/httpcomponents/httpcor
 e-niossl/4.0-beta1/httpcore-niossl-4.0-beta1.pom

 Downloading:

http://tomcat.apache.org/dev/dist/m2-repository/org/apache/httpcomponent
 s/httpcore-niossl/4.0-beta1/httpcore-niossl-4.0-beta1.pom

 Downloading:

http://repo1.maven.org/eclipse/org/apache/httpcomponents/httpcore-niossl
 /4.0-beta1/httpcore-niossl-4.0-beta1.pom

 Downloading:

https://maven-repository.dev.java.net/nonav/repository//org.apache.httpc
 omponents/poms/httpcore-niossl-4.0-beta1.pom

 Downloading:

http://repo1.maven.org/maven2/org/apache/httpcomponents/httpcore-niossl/
 4.0-beta1/httpcore-niossl-4.0-beta1.pom

 [INFO] Generating Project License report.

 [INFO] Generating Project Team report.

 [INFO] Generating Source Repository report.

 [INFO] Generating Issue Tracking report.

 [INFO] Generating Project Summary report.

 [INFO] Generating Project Plugins report.

 [INFO] Generating Dependency Convergence report.

 [INFO] Generating Dependencies report.

 [WARNING] Unable to process class
 com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class in JarAnalyzer
 File
/home/cavins/.m2/repository/com/ibm/icu/icu4j/2.6.1/icu4j-2.6.1.jar

 org.apache.bcel.classfile.ClassFormatException: Invalid byte tag in
 constant pool: 60

 at
 org.apache.bcel.classfile.Constant.readConstant(Constant.java:146)

 at
 org.apache.bcel.classfile.ConstantPool.init(ConstantPool.java:67)

 at

org.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:
 222)

 at
 org.apache.bcel.classfile.ClassParser.parse(ClassParser.java:136)

 at

org.apache.maven.shared.jar.classes.JarClassesAnalysis.analyze(JarClasse
 sAnalysis.java:92)

 at

org.apache.maven.report.projectinfo.dependencies.Dependencies.getJarDepe
 ndencyDetails(Dependencies.java:285)

 at

org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRe
 nderer.hasSealed(DependenciesRenderer.java:1278)

 at

org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRe

nderer.renderSectionDependencyFileDetails(DependenciesRenderer.java:423)

 at

org.apache.maven.report.projectinfo.dependencies.renderer.DependenciesRe
 nderer.renderBody(DependenciesRenderer.java:268)

 at

org.apache.maven.reporting.AbstractMavenReportRenderer.render(AbstractMa
 venReportRenderer.java:65)

 at

org.apache.maven.report.projectinfo.DependenciesReport.executeReport(Dep
 endenciesReport.java:239)

 at

org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenRep
 ort.java:90)

 at

org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(Repo
 rtDocumentRenderer.java:139)

 at

org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(Def
 aultSiteRenderer.java:269)

 at

org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSi
 teRenderer.java:101)

 at
 org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:129)

 at
 org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:96)

 at

org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa

Basic Auth POST Sent Twice

2008-10-28 Thread David Taylor (Lowell)
I am using AXIS2/C 1.5.0 with ADB stubs generated by AXIS2/Java 1.4.1.
I have the whttp:defaultMethod in my WSDL file binding set to POST which
I verified is being used from tcpdump captures.  But, I also noticed
that the POST messages, which are not supposed to be interpreted as safe
are always being sent twice.  This is with Basic authentication.  Is
there a way to get POST messages with Basic authentication to only be
sent once?

Thanks,

-David K. Taylor



RE: How to Set Submission Addressing?

2008-10-22 Thread David Taylor (Lowell)
Thanks you very much for the quick response.  I'll try that out.
-David



-Original Message-
From: Manjula Peiris [mailto:[EMAIL PROTECTED]
Sent: Tue 10/21/2008 9:58 PM
To: Apache AXIS C User List
Subject: Re: How to Set Submission Addressing?
 

On Tue, 2008-10-21 at 18:03 -0400, David Taylor (Lowell) wrote:
 I have read that AXIS2/C supports both version 1.0 and the pre-1.0
 submission version of WS-Addressing.  However, I can't find
 instructions or an example of how to configure a client to use
 submission addressing.  I would appreciate any help you can give me.


Add the following code segment to your client code.

axutil_property_t *property  = NULL;
property = axutil_property_create(env);
axutil_property_set_scope(property, env, AXIS2_SCOPE_APPLICATION);
axutil_property_set_value(property, env,
AXIS2_WSA_NAMESPACE_SUBMISSION);
axis2_options_set_property(options, env, AXIS2_WSA_VERSION, property);

-Manjula

 
 Thanks,
 
 -David K. Taylor
 
  
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



winmail.dat-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: How to Set Submission Addressing?

2008-10-22 Thread David Taylor (Lowell)
That worked great!
Thanks again,
-David


-Original Message-
From: David Taylor (Lowell) [mailto:[EMAIL PROTECTED]
Sent: Wed 10/22/2008 7:27 AM
To: Apache AXIS C User List
Subject: RE: How to Set Submission Addressing?
 
Thanks you very much for the quick response.  I'll try that out.
-David



-Original Message-
From: Manjula Peiris [mailto:[EMAIL PROTECTED]
Sent: Tue 10/21/2008 9:58 PM
To: Apache AXIS C User List
Subject: Re: How to Set Submission Addressing?
 

On Tue, 2008-10-21 at 18:03 -0400, David Taylor (Lowell) wrote:
 I have read that AXIS2/C supports both version 1.0 and the pre-1.0
 submission version of WS-Addressing.  However, I can't find
 instructions or an example of how to configure a client to use
 submission addressing.  I would appreciate any help you can give me.


Add the following code segment to your client code.

axutil_property_t *property  = NULL;
property = axutil_property_create(env);
axutil_property_set_scope(property, env, AXIS2_SCOPE_APPLICATION);
axutil_property_set_value(property, env,
AXIS2_WSA_NAMESPACE_SUBMISSION);
axis2_options_set_property(options, env, AXIS2_WSA_VERSION, property);

-Manjula

 
 Thanks,
 
 -David K. Taylor
 
  
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





winmail.dat-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

How to Set Submission Addressing?

2008-10-21 Thread David Taylor (Lowell)
I have read that AXIS2/C supports both version 1.0 and the pre-1.0
submission version of WS-Addressing.  However, I can't find
instructions or an example of how to configure a client to use
submission addressing.  I would appreciate any help you can give me.

Thanks,

-David K. Taylor