Axis C++ exits after first soap client call with segmentation fault

2006-09-19 Thread Popuri, Monica
Hi All,

The simple_axis_server is able to respond for first web service API call from 
client but immediately after this it exits with segmentation fault. Can it be 
simple_axis_server issue of it can be libaxis_server.so issue? any body help 
with this. Same problem also occurs when I try from apache instead of 
simple_axis_server. Can some body help with this? I can attach the log if 
needed.

Thanks a lot in advance,
Monica Popuri
HP GDIC
Prestige AlKareem, 4th Floor, Seat # 30,
Edward Road, Bangalore - 52
Ph: +91-80-22054046




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



RE: Problem with Axis C++ installatio on Linux PC

2006-09-19 Thread Murali Konnipati
Title: Message



 Hi monica,

 
Could you please mail me your server.wsdd 
and client.wsdd files with the location where i need to keep those 
files.
 

 
Thanks  Regards,

 
Murali Krishna K

  
  -Original Message-From: 
  [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
  Murali KonnipatiSent: Monday, September 18, 2006 4:43 
  PMTo: Apache AXIS C User ListSubject: RE: Problem with 
  Axis C++ installatio on Linux PC
   I installed axis in 
  /usr/local/axis directory. In that etc directory is not there. Do i need to 
  create it manually or what..?
   
  I installed Apache2.09 in my system. There is not problem with installation of 
  Axis. 
   
  Could you please mail me the changes i need to make in server.wsdd 
  file.
  
   
  Regards,
  
   
  Murali K
  
  
  
  

-Original Message-From: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
Popuri, MonicaSent: Monday, September 18, 2006 3:49 
PMTo: Apache AXIS C User ListCc: 
[EMAIL PROTECTED]Subject: RE: Problem with Axis C++ 
installatio on Linux PC
cp 
server.wsdd_linux to server.wsdd in /etc folder of your axis installation. 
You need to make change in this file. hope this solves your problem. BTW 
which version of apache you have installed?

  -Original Message-From: Murali Konnipati 
  [mailto:[EMAIL PROTECTED]Sent: Monday, September 18, 
  2006 1:12 PMTo: Apache AXIS C User ListCc: Popuri, 
  Monica; [EMAIL PROTECTED]Subject: RE: Problem with Axis 
  C++ installatio on Linux PC
   Hi 
  All,
  
   
  Finally i have installed Axis C++ in my System. But when i try to 
  start the simple_axis_server, it is giving the following 
  error..
  
   
  Warning - The WSDDFilePath file (/usr/local/axis/etc/server.wsdd) in the 
  AXISCPP.CONF file does not exist. 
   Aborted
  
  I 
  checked for the sample server.wsdd in my Axis C++ directory. But i didn't 
  find it. Could you please mail me the location of server.wsdd file and do 
  needful favor.
  
   
  Thanks in advance,
  
   
  Murali Krishna K
  
   
  
  

-Original Message-From: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf 
Of Popuri, MonicaSent: Thursday, September 14, 2006 3:00 
PMTo: Apache AXIS C User ListSubject: RE: Problem 
with Axis C++ installatio on Linux PC
No need, 
just comment that part of build.xml around line no 181 i 
guess

  -Original Message-From: Murali Konnipati 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, 
  September 14, 2006 3:00 PMTo: Apache AXIS C User 
  ListSubject: RE: Problem with Axis C++ installatio on Linux 
  PC
   Do i need to install 
  OpenSSL to complete the Axis c++ installation are 
  what..?
  
   Regards,
  
   
  Murali k
   
   
  

-Original Message-From: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
Behalf Of Popuri, MonicaSent: Thursday, September 14, 
2006 2:41 PMTo: Apache AXIS C User 
ListSubject: RE: Problem with Axis C++ installatio on 
Linux PC

It seems you are using apache 2.2.3 use 2.0.x 
instead

  -Original Message-From: 
  Murali Konnipati 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, 
  September 13, 2006 8:30 PMTo: 
  axis-c-user@ws.apache.orgSubject: Problem with Axis C++ 
  installatio on Linux PC
  Hi 
  All,
  
   I got the 
  following error when i try to build the file using ant from the 
  SVN code...
  
   
  buildVersionResource: [cc] 
  Starting dependency analysis for 2 
  files. [cc] 1 files are up 
  to date. [cc] 1 files to 
  be recompiled from dependency 
  analysis. [cc] 2 total 
  files to be compiled. [cc] 
  /home/globus/Axis/ws-axis/src/server/apache2/Apache2Transport.cpp: 
  In member 
  [cc] function `virtual 
  int [cc] 
  Apache2Transport::setTransportProperty(axiscpp::AXIS_TRANSPORT_INFORMATION_TYPE, 
  [cc] const 
  char*)': [cc] 
  /home/globus/Axis/ws-axis/src/server/apache2/Apache2Transport.cpp:107: 
  ` [cc] 
  ap_table_set' undeclared (first use this 
  function) [cc] 
  /home/globus/Axis/ws-axis/src/server/apache2/Apache2Transport.cpp:107: 
  (Each 
  [cc] undeclared identifier is reported only 

RE: Problem with Axis C++ installatio on Linux PC

2006-09-19 Thread Popuri, Monica
Title: Message



This url can help 
you. All though I can attach these files as you asked, but if correct 
directory structure is not there then u will face more problems. Rea this doc 
and try; http://programming.linux.com/article.pl?sid=05/02/16/1947220
Regards,
Monica

  -Original Message-From: Murali Konnipati 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, September 19, 
  2006 1:10 PMTo: Apache AXIS C User ListSubject: RE: 
  Problem with Axis C++ installatio on Linux PC
   Hi 
  monica,
  
   
  Could you please mail me your 
  server.wsdd and client.wsdd files with the location where i need to keep those 
  files.
   
  
   
  Thanks  Regards,
  
   
  Murali Krishna K
  

-Original Message-From: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
Murali KonnipatiSent: Monday, September 18, 2006 4:43 
PMTo: Apache AXIS C User ListSubject: RE: Problem with 
Axis C++ installatio on Linux PC
 I installed axis in 
/usr/local/axis directory. In that etc directory is not there. Do i need to 
create it manually or what..?
 I 
installed Apache2.09 in my system. There is not problem with installation of 
Axis. 
 Could 
you please mail me the changes i need to make in server.wsdd 
file.

 Regards,

 Murali K




  
  -Original Message-From: 
  [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
  Popuri, MonicaSent: Monday, September 18, 2006 3:49 
  PMTo: Apache AXIS C User ListCc: 
  [EMAIL PROTECTED]Subject: RE: Problem with Axis C++ 
  installatio on Linux PC
  cp 
  server.wsdd_linux to server.wsdd in /etc folder of your axis installation. 
  You need to make change in this file. hope this solves your problem. BTW 
  which version of apache you have installed?
  
-Original Message-From: Murali Konnipati 
[mailto:[EMAIL PROTECTED]Sent: Monday, September 
18, 2006 1:12 PMTo: Apache AXIS C User ListCc: 
Popuri, Monica; [EMAIL PROTECTED]Subject: RE: Problem 
with Axis C++ installatio on Linux PC
 Hi 
All,

 
Finally i have installed Axis C++ in my System. But when i try to 
start the simple_axis_server, it is giving the following 
error..

 
Warning - The WSDDFilePath file (/usr/local/axis/etc/server.wsdd) in the 
AXISCPP.CONF file does not exist. 
 Aborted

I 
checked for the sample server.wsdd in my Axis C++ directory. But i 
didn't find it. Could you please mail me the location of server.wsdd 
file and do needful favor.

 
Thanks in advance,

 
Murali Krishna K

 


  
  -Original Message-From: 
  [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
  Behalf Of Popuri, MonicaSent: Thursday, September 14, 
  2006 3:00 PMTo: Apache AXIS C User ListSubject: 
  RE: Problem with Axis C++ installatio on Linux PC
  No 
  need, just comment that part of build.xml around line no 181 i 
  guess
  
-Original Message-From: Murali Konnipati 
[mailto:[EMAIL PROTECTED]Sent: Thursday, 
September 14, 2006 3:00 PMTo: Apache AXIS C User 
ListSubject: RE: Problem with Axis C++ installatio on 
Linux PC
 Do i need to 
install OpenSSL to complete the Axis c++ installation are 
what..?

 Regards,

 
Murali k
 
 

  
  -Original 
  Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Popuri, 
  MonicaSent: Thursday, September 14, 2006 2:41 
  PMTo: Apache AXIS C User ListSubject: RE: 
  Problem with Axis C++ installatio on Linux PC
  
  It seems you are using apache 2.2.3 use 2.0.x 
  instead
  
-Original Message-From: 
Murali Konnipati 
[mailto:[EMAIL PROTECTED]Sent: Wednesday, 
September 13, 2006 8:30 PMTo: 
axis-c-user@ws.apache.orgSubject: Problem with Axis 
C++ installatio on Linux PC
Hi 
All,

 I got the 
following error when i try to build the file using ant from the 
SVN code...

 
buildVersionResource: 
[cc] Starting dependency analysis for 2 
files. [cc] 1 files are 
up to date. [cc] 1 files 
to be recompiled from dependency 

Re: Axis C++ exits after first soap client call with segmentation fault

2006-09-19 Thread John Hawkins

If this is Axis (1) and not Axis2 pls
attach the server trace log and I'll try to find anything obvious :-)






Popuri, Monica
[EMAIL PROTECTED] 
19/09/2006 08:18



Please respond to
Apache AXIS C User List axis-c-user@ws.apache.org





To
axis-c-user@ws.apache.org


cc



Subject
Axis C++ exits after first soap client
call with segmentation fault








Hi All,

The simple_axis_server is able to respond for first web service API call
from client but immediately after this it exits with segmentation fault.
Can it be simple_axis_server issue of it can be libaxis_server.so issue?
any body help with this. Same problem also occurs when I try from apache
instead of simple_axis_server. Can some body help with this? I can attach
the log if needed.

Thanks a lot in advance,
Monica Popuri
HP GDIC
Prestige AlKareem, 4th Floor, Seat # 30,
Edward Road, Bangalore - 52
Ph: +91-80-22054046




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




Re: xsd deserialization for integer types broken

2006-09-19 Thread John Hawkins

I won't comment on the broken code but
I will comment on the reason why max and min values on reply msgs
aren't validated.

The view was taken that the server was
already going to do validation and therefore that the client could have
a reasonable trust in the values coming across the wire. You can argue
either way - it would be ideal if someone would write it so that validation
could be toggled - but there were more important things to do at the time.

regards,
John.







Kamlesh kumar [EMAIL PROTECTED]

18/09/2006 21:30



Please respond to
Apache AXIS C User List axis-c-user@ws.apache.org





To
axis-c-user@ws.apache.org


cc



Subject
xsd deserialization for integer types
broken








The xsd deserialization for integer types is awfully
broken.

For instance, calling the getElementAsInt() API for
the XML fragment

foo30a/foo 

I would have expected it to either return 30 or
ideally throw an exception. Instead, I get a value of
300 :( 

Similarly, calling 

foo30 /foo returns a value of 300 !

I think the following change might have introduced
this bug. 
http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/soap/xsd/Integer.cpp?r1=261408r2=261497diff_format=h

Further, why aren't we validating against the maximum
and minimum value for each type ?

For instance, getElementAsShort() for the XML fragment

foo132768/foo1 returns -1. I would have expected
AxisC++ to throw an exception saying it exceeds the
max value of short instead of silently returning wrong
values. 

I am surprised why this bug hasn't been seen till now.

Regardless, I think it should be top priority to fix
this issue. 

 



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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




RE: Problem with Axis C++ installatio on Linux PC

2006-09-19 Thread Murali Konnipati
Title: Message



 But this document is using 
different components from what i used previously. i.e axis binary distribution. 
Shall i try this from the scratch..
 
 
Regards,

 
Murali Krisha K



  
  -Original Message-From: 
  [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
  Popuri, MonicaSent: Tuesday, September 19, 2006 1:58 
  PMTo: Apache AXIS C User ListSubject: RE: Problem with 
  Axis C++ installatio on Linux PC
  This url can 
  help you. All though I can attach these files as you asked, but if 
  correct directory structure is not there then u will face more problems. Rea 
  this doc and try; http://programming.linux.com/article.pl?sid=05/02/16/1947220
  Regards,
  Monica
  
-Original Message-From: Murali Konnipati 
[mailto:[EMAIL PROTECTED]Sent: Tuesday, September 19, 
2006 1:10 PMTo: Apache AXIS C User ListSubject: RE: 
Problem with Axis C++ installatio on Linux PC
 Hi 
monica,

 
Could you please mail me your 
server.wsdd and client.wsdd files with the location where i need to keep 
those files.
 

 Thanks 
 Regards,

 Murali Krishna K

  
  -Original Message-From: 
  [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
  Murali KonnipatiSent: Monday, September 18, 2006 4:43 
  PMTo: Apache AXIS C User ListSubject: RE: Problem 
  with Axis C++ installatio on Linux PC
   I installed axis in 
  /usr/local/axis directory. In that etc directory is not there. Do i need 
  to create it manually or what..?
   I 
  installed Apache2.09 in my system. There is not problem with installation 
  of Axis. 
   Could 
  you please mail me the changes i need to make in server.wsdd 
  file.
  
   Regards,
  
   Murali K
  
  
  
  

-Original Message-From: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf 
Of Popuri, MonicaSent: Monday, September 18, 2006 3:49 
PMTo: Apache AXIS C User ListCc: 
[EMAIL PROTECTED]Subject: RE: Problem with Axis C++ 
installatio on Linux PC
cp 
server.wsdd_linux to server.wsdd in /etc folder of your axis 
installation. You need to make change in this file. hope this solves 
your problem. BTW which version of apache you have 
installed?

  -Original Message-From: Murali Konnipati 
  [mailto:[EMAIL PROTECTED]Sent: Monday, September 
  18, 2006 1:12 PMTo: Apache AXIS C User ListCc: 
  Popuri, Monica; [EMAIL PROTECTED]Subject: RE: 
  Problem with Axis C++ installatio on Linux PC
   Hi 
  All,
  
   
  Finally i have installed Axis C++ in my System. But when i try 
  to start the simple_axis_server, it is giving the following 
  error..
  
   
  Warning - The WSDDFilePath file (/usr/local/axis/etc/server.wsdd) in 
  the AXISCPP.CONF file does not exist. 
   Aborted
  
  I 
  checked for the sample server.wsdd in my Axis C++ directory. But i 
  didn't find it. Could you please mail me the location of server.wsdd 
  file and do needful favor.
  
   
  Thanks in advance,
  
   
  Murali Krishna K
  
   
  
  

-Original Message-From: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
Behalf Of Popuri, MonicaSent: Thursday, September 14, 
2006 3:00 PMTo: Apache AXIS C User 
ListSubject: RE: Problem with Axis C++ installatio on 
Linux PC
No 
need, just comment that part of build.xml around line no 181 i 
guess

  -Original Message-From: 
  Murali Konnipati 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, 
  September 14, 2006 3:00 PMTo: Apache AXIS C User 
  ListSubject: RE: Problem with Axis C++ installatio on 
  Linux PC
   Do i need to 
  install OpenSSL to complete the Axis c++ installation are 
  what..?
  
   
Regards,
  
   
  Murali k
   
  
   
  
  

-Original 
Message-From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Popuri, 
MonicaSent: Thursday, September 14, 2006 2:41 
PMTo: Apache AXIS C User ListSubject: RE: 
Problem with Axis C++ installatio on Linux 
PC

It seems you are using apache 2.2.3 use 2.0.x 
instead


Re: Axis C++ SOAP 1.2 faults

2006-09-19 Thread Adrian Dick
Hi,

There is a Jira issue to provide support for SOAP 1.2 faults (
http://issues.apache.org/jira/browse/AXISCPP-642 ), and I made this
proposal on how this could be implemented (
http://marc.theaimsgroup.com/?l=axis-c-devm=111640463326474w=2 )
Regretably, I personally haven't had any time to implement this function,
and it doesn't look like I'm going to anytime soon.

Of course, this is an open source project so anybody can take this issue
and proposal and donate a suitable implementation back to the community.

Regards,
Adrian
___
Adrian Dick ([EMAIL PROTECTED])

Nadir Amra [EMAIL PROTECTED] wrote on 18/09/2006 14:48:02:

 I believe it is a known issue

 Nadir K. Amra


 Kamlesh kumar [EMAIL PROTECTED] wrote on 09/15/2006 06:56:59 PM:

  I am interested in creating SOAP faults based on SOAP
  1.2 spec using Axis C++. Looking at SOAPFault API it
  seems we can only create SOAP fault that is compliant
  with SOAP 1.1 spec.
 
  Also, I see the following comment in the SOAPFault
  serialize() function?
 
  int SoapFault::serialize(SoapSerializer pSZ,
  SOAP_VERSION eSoapVersion)
  {
  // written according to SOAP Version 1.1
 
 
  Is there a way I can create SOAP 1.2 faults or is this
  a known issue ? Also, are there any plans to address
  it?
 
  Thanks,
  Kamlesh
 
 
 
 
 
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam protection around
  http://mail.yahoo.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


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



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



RE: Problem with Axis C++ installatio on Linux PC

2006-09-19 Thread Popuri, Monica
Title: Message



No need, continue 
with configuration part as it says. and if this doc says to install in 
/usr/local/axiscpp_deploy etc then do not worry of change your path, you refer 
this with you installed path.


  -Original Message-From: Murali Konnipati 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, September 19, 
  2006 3:05 PMTo: Apache AXIS C User ListSubject: RE: 
  Problem with Axis C++ installatio on Linux PC
   But this document is using 
  different components from what i used previously. i.e axis binary 
  distribution. Shall i try this from the scratch..
   
   
  Regards,
  
   
  Murali Krisha K
  
  
  

-Original Message-From: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
Popuri, MonicaSent: Tuesday, September 19, 2006 1:58 
PMTo: Apache AXIS C User ListSubject: RE: Problem with 
Axis C++ installatio on Linux PC
This url can 
help you. All though I can attach these files as you asked, but if 
correct directory structure is not there then u will face more problems. Rea 
this doc and try; http://programming.linux.com/article.pl?sid=05/02/16/1947220
Regards,
Monica

  -Original Message-From: Murali Konnipati 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, September 
  19, 2006 1:10 PMTo: Apache AXIS C User ListSubject: 
  RE: Problem with Axis C++ installatio on Linux PC
   Hi 
  monica,
  
   
  Could you please mail me your 
  server.wsdd and client.wsdd files with the location where i need to keep 
  those files.
   
  
   Thanks 
   Regards,
  
   Murali Krishna K
  

-Original Message-From: 
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf 
Of Murali KonnipatiSent: Monday, September 18, 2006 4:43 
PMTo: Apache AXIS C User ListSubject: RE: Problem 
with Axis C++ installatio on Linux PC
 I installed axis in 
/usr/local/axis directory. In that etc directory is not there. Do i need 
to create it manually or what..?
 I 
installed Apache2.09 in my system. There is not problem with 
installation of Axis. 
 
Could you please mail me the changes i need to make in server.wsdd 
file.

 
Regards,

 
Murali K




  
  -Original Message-From: 
  [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
  Behalf Of Popuri, MonicaSent: Monday, September 18, 
  2006 3:49 PMTo: Apache AXIS C User ListCc: 
  [EMAIL PROTECTED]Subject: RE: Problem with Axis C++ 
  installatio on Linux PC
  cp 
  server.wsdd_linux to server.wsdd in /etc folder of your axis 
  installation. You need to make change in this file. hope this solves 
  your problem. BTW which version of apache you have 
  installed?
  
-Original Message-From: Murali Konnipati 
[mailto:[EMAIL PROTECTED]Sent: Monday, 
September 18, 2006 1:12 PMTo: Apache AXIS C User 
ListCc: Popuri, Monica; 
[EMAIL PROTECTED]Subject: RE: Problem with Axis 
C++ installatio on Linux PC
 
Hi All,

 
Finally i have installed Axis C++ in my System. But when i try 
to start the simple_axis_server, it is giving the following 
error..

 
Warning - The WSDDFilePath file (/usr/local/axis/etc/server.wsdd) in 
the AXISCPP.CONF file does not exist. 
 
Aborted

I 
checked for the sample server.wsdd in my Axis C++ directory. But i 
didn't find it. Could you please mail me the location of server.wsdd 
file and do needful favor.

 
Thanks in advance,

 
Murali Krishna K

 


  
  -Original 
  Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Popuri, 
  MonicaSent: Thursday, September 14, 2006 3:00 
  PMTo: Apache AXIS C User ListSubject: RE: 
  Problem with Axis C++ installatio on Linux PC
  No 
  need, just comment that part of build.xml around line no 181 i 
  guess
  
-Original Message-From: 
Murali Konnipati 
[mailto:[EMAIL PROTECTED]Sent: Thursday, 
September 14, 2006 3:00 PMTo: Apache AXIS C User 
ListSubject: RE: Problem with Axis C++ installatio on 
Linux PC
 
Do i need to install OpenSSL to complete the 

Namespace problem between header and body

2006-09-19 Thread Dan Ciarniello
I am trying to use the wsdl2ws tool to write a C++ client for a web 
service that I have implemented using Java Axis.  I am using Axis-C++ 
v1.6 and Java Axis v1.2.


When making a call using the wsdl2ws generated code, the SOAP envelope 
sent is, for example,


|?xml version=1.0 encoding=UTF-8?
SOAP-ENV:Envelope 
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;

 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 SOAP-ENV:Body
   ns1:getUser xmlns:ns1=http://cityxpress.com/external;
 ns1:siteinfo
   ns1:partnercityxpress/ns1:partner
   ns1:deploymentmaster/ns1:deployment
   ns1:sitenew_demo/ns1:site
 /ns1:siteinfo
 ns1:id123456/ns1:id
   /ns1:getUser
 /SOAP-ENV:Body
/SOAP-ENV:Envelope
|
This is fine but I need to add a header to the envelope so I subclassed 
the stub and added the following to the constructor:
|  IHeaderBlock *phb = this-createSOAPHeaderBlock(authinfo, 
http://cityxpress.com/external;, ai);


 BasicNode *el_node = phb-createChild(ELEMENT_NODE, user, NULL, 
http://cityxpress.com/external;, NULL);

 BasicNode *t_node = phb-createChild(CHARACTER_NODE);
 t_node-setValue(user);
 el_node-addChild(t_node);
 phb-addChild(el_node);

 el_node = phb-createChild(ELEMENT_NODE, password, NULL, 
http://cityxpress.com/external;, NULL);

 t_node = phb-createChild(CHARACTER_NODE);
 t_node-setValue(pass);
 el_node-addChild(t_node);
 phb-addChild(el_node);
|
Now, when I make the call to the service, the SOAP envelope is

|?xml version=1.0 encoding=UTF-8?
SOAP-ENV:Envelope 
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;

 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 SOAP-ENV:Header
   ai:authinfo xmlns:ai=http://cityxpress.com/external;
 ai:userusername/ai:user
 ai:passwordpassword/ai:password
   /ai:authinfo/SOAP-ENV:Header
 SOAP-ENV:Body
   ns1:getUser xmlns:ns1=http://cityxpress.com/external;
 ns1:siteinfo
   partnercityxpress/partner
   deploymentmaster/deployment
   sitenew_demo/site
 /ns1:siteinfo
 ns1:id123456/ns1:id
   /ns1:getUser
 /SOAP-ENV:Body
/SOAP-ENV:Envelope
|
Note that the partner, deployment and site subelements of siteinfo have 
lost their namespace prefix.  This means that the web service ignores 
the values given because the elements are not in the expected namespace.


For the sake of comparison, here is the envelope created by a Java 
version of the client created with WSDL2Java which is understood by the 
web service:


|?xml version=1.0 encoding=UTF-8?
soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 soapenv:Header
   ns1:authinfo 
soapenv:actor=http://schemas.xmlsoap.org/soap/actor/next;

 soapenv:mustUnderstand=0 xmlns:ns1=http://cityxpress.com/external;
 ns1:userusername/ns1:user
 ns1:passwordpassword/ns1:password
   /ns1:authinfo
 /soapenv:Header
 soapenv:Body
   getUser xmlns=http://cityxpress.com/external;
 siteinfo
   partnercityxpress/partner
   deploymentmaster/deployment
   sitenew_demo/site
 /siteinfo
 id123456/id
   /getUser
 /soapenv:Body
/soapenv:Envelope

|The obvious question is how do I get the C++ client to generate a SOAP 
Envelope that is comparable to the one created by the Java client?


As an aside, I wanted to try a C client to see if the same problem 
existed but, though wsdl2ws will generate C-code, there don't seem to be 
any C libraries that I can link to.  Are C libraries missing or is there 
a way that I can link C code to the C++ libraries?


Thanks,
Dan.


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



RE: Namespace problem between header and body

2006-09-19 Thread Alastair FETTES
Just a note:

I have encountered this problem as well, quite often I'm afraid.  This
occurred when I was subclassing and specifically seemed to occur when I
ref'd elements from a foreign namespace.  To work around this I simply
included all items in one namespace.  Not an ideal approach but it was a
work around none the less.

I've also noticed an interesting generation quirk on the server side
(Axis Java Server) when ref'ing elements from another namespace:

fooParent xmlns=foo
ns1:barChild xmlns:ns1=bar/
ns2:barChild xmlns:ns2=bar/
ns3:barChild xmlns:ns3=bar/
ns4:barChild xmlns:ns4=bar/
ns5:barChild xmlns:ns5=bar/
/fooParent

Was this intentional?

Cheers,
Alastair

-Original Message-
From: Dan Ciarniello [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 19, 2006 9:45 AM
To: axis-c-user@ws.apache.org
Subject: Namespace problem between header and body

I am trying to use the wsdl2ws tool to write a C++ client for a web 
service that I have implemented using Java Axis.  I am using Axis-C++ 
v1.6 and Java Axis v1.2.

When making a call using the wsdl2ws generated code, the SOAP envelope 
sent is, for example,

|?xml version=1.0 encoding=UTF-8?
SOAP-ENV:Envelope 
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  SOAP-ENV:Body
ns1:getUser xmlns:ns1=http://cityxpress.com/external;
  ns1:siteinfo
ns1:partnercityxpress/ns1:partner
ns1:deploymentmaster/ns1:deployment
ns1:sitenew_demo/ns1:site
  /ns1:siteinfo
  ns1:id123456/ns1:id
/ns1:getUser
  /SOAP-ENV:Body
/SOAP-ENV:Envelope
|
This is fine but I need to add a header to the envelope so I subclassed 
the stub and added the following to the constructor:
|  IHeaderBlock *phb = this-createSOAPHeaderBlock(authinfo, 
http://cityxpress.com/external;, ai);

  BasicNode *el_node = phb-createChild(ELEMENT_NODE, user, NULL, 
http://cityxpress.com/external;, NULL);
  BasicNode *t_node = phb-createChild(CHARACTER_NODE);
  t_node-setValue(user);
  el_node-addChild(t_node);
  phb-addChild(el_node);

  el_node = phb-createChild(ELEMENT_NODE, password, NULL, 
http://cityxpress.com/external;, NULL);
  t_node = phb-createChild(CHARACTER_NODE);
  t_node-setValue(pass);
  el_node-addChild(t_node);
  phb-addChild(el_node);
|
Now, when I make the call to the service, the SOAP envelope is

|?xml version=1.0 encoding=UTF-8?
SOAP-ENV:Envelope 
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  SOAP-ENV:Header
ai:authinfo xmlns:ai=http://cityxpress.com/external;
  ai:userusername/ai:user
  ai:passwordpassword/ai:password
/ai:authinfo/SOAP-ENV:Header
  SOAP-ENV:Body
ns1:getUser xmlns:ns1=http://cityxpress.com/external;
  ns1:siteinfo
partnercityxpress/partner
deploymentmaster/deployment
sitenew_demo/site
  /ns1:siteinfo
  ns1:id123456/ns1:id
/ns1:getUser
  /SOAP-ENV:Body
/SOAP-ENV:Envelope
|
Note that the partner, deployment and site subelements of siteinfo have 
lost their namespace prefix.  This means that the web service ignores 
the values given because the elements are not in the expected namespace.

For the sake of comparison, here is the envelope created by a Java 
version of the client created with WSDL2Java which is understood by the 
web service:

|?xml version=1.0 encoding=UTF-8?
soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  soapenv:Header
ns1:authinfo 
soapenv:actor=http://schemas.xmlsoap.org/soap/actor/next;
  soapenv:mustUnderstand=0
xmlns:ns1=http://cityxpress.com/external;
  ns1:userusername/ns1:user
  ns1:passwordpassword/ns1:password
/ns1:authinfo
  /soapenv:Header
  soapenv:Body
getUser xmlns=http://cityxpress.com/external;
  siteinfo
partnercityxpress/partner
deploymentmaster/deployment
sitenew_demo/site
  /siteinfo
  id123456/id
/getUser
  /soapenv:Body
/soapenv:Envelope

|The obvious question is how do I get the C++ client to generate a SOAP 
Envelope that is comparable to the one created by the Java client?

As an aside, I wanted to try a C client to see if the same problem 
existed but, though wsdl2ws will generate C-code, there don't seem to be

any C libraries that I can link to.  Are C libraries missing or is there

a way that I can link C code to the C++ libraries?

Thanks,
Dan.


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




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



[AxisCPP] Bug in code generation for array types

2006-09-19 Thread Alastair FETTES
Title: [AxisCPP] Bug in code generation for array types






Using the following sample XSD you can cause the code generation bug:


xs:element name=fooParent

 xs:complexType

 xs:element ref=tns:fooElement minOccurs=0 maxOccurs=1/

 xs:element ref=tns:barElement minOccurs=0 maxOccurs=1/

 xs:complexType

/xs:element


xs:element name=fooElement type=tns:fooListType/

xs:element name=barElement type=tns:fooListType/


xs:complexType name=fooListType

 xs:sequence

 !-- some content here --

 /xs:sequence

/xs:complexType


fooListType_Array.hpp/.cpp is correctly created (and used correctly). However, in the portType generated class file it attempts to #include fooElement_Array.hpp. This is incorrect and is a bug.

Cheers,


Alastair Fettes


This e-mail and any attachments are intended solely for the use of the intended recipient(s) and may contain legally privileged, proprietary and/or confidential information. Any use, disclosure, dissemination, distribution or copying of this e-mail and any attachments for any purposes that have not been specifically authorized by the sender is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail and permanently delete all copies and attachments.

The entire content of this e-mail is for information purposes only and should not be relied upon by the recipient in any way unless otherwise confirmed in writing by way of letter or facsimile.




RE: Namespace problem between header and body

2006-09-19 Thread Alastair FETTES
Hrm, that wasn't what was causing my problems.  I wasn't even using the
header section when I got this.  I simply found a work around that
worked for me and stuck with it.  Good luck and hopefully this gets
looked in to.

Alastair 

-Original Message-
From: Dan Ciarniello [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 19, 2006 2:37 PM
To: Apache AXIS C User List
Subject: Re: Namespace problem between header and body

Alastair FETTES wrote:

Just a note:

I have encountered this problem as well, quite often I'm afraid.  This
occurred when I was subclassing and specifically seemed to occur when I
ref'd elements from a foreign namespace.  To work around this I simply
included all items in one namespace.  Not an ideal approach but it was
a
work around none the less.
  

But all elements are in the same namespace.  If I modify the header so 
that it's in a different namespace then I get:

|?xml version=1.0 encoding=UTF-8?
SOAP-ENV:Envelope 
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
  xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  SOAP-ENV:Header
ai:authinfo xmlns:ai=http://cityxpress.com;
  ai:userdciarniello/ai:user
  ai:passwordadmin/ai:password
/ai:authinfo
  /SOAP-ENV:Header
  SOAP-ENV:Body
ns1:getUser xmlns:ns1=http://cityxpress.com/external;
  ns1:siteinfo
ns1:partnercityxpress/ns1:partner
ns1:deploymentmaster/ns1:deployment
ns1:sitenew_demo/ns1:site
  /ns1:siteinfo
  ns1:id123456/ns1:id
/ns1:getUser
  /SOAP-ENV:Body
/SOAP-ENV:Envelope
|
The namespace prefix is now back on the siteinfo subelements.  For some 
reason, the value of the namespace in the authinfo element in the header

affects the way that the siteinfo element is serialized in the body.

Dan.


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




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