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]



[ANN] Axiom 1.1.1 Released

2006-09-19 Thread Eran Chinthaka
http://ws.apache.org/commons/axiom

we are proud to announce the release of Version 1.1.1 of Apache AXIOM!
(Download : http://ws.apache.org/commons/axiom/download.cgi )

NOTE: This is a bug-fix release: AXIOM 1.1 release was compiled in JDK1.5, when 
we have a minimum requirement of jdk 1.4 compatible
distributables. There are no new features or fixes in this release other than 
being compiled on JDK 1.4. The original release note follows.

Apache AXIOM is a StAX-based, XML Infoset compliant object model which
supports on-demand building  of the object tree. It supports a novel
pull-through model which allows one to turn off the tree  building and
directly access the underlying pull event stream. It also has built-in
support for XML  Optimized Packaging (XOP) and MTOM, the combination of
which allows XML to carry binary data  efficiently and in a transparent
manner. The combination of these results in a easy to use API with a
very  high performant architecture!

Developed as part of Apache Axis2, Apache AXIOM (AXIs Object Model)is
the core of Apache Axis2. However, it is a pure  standalone XML Infoset
model with novel features and can be used independently of Apache Axis2.

Key Features


* Full XML Infoset compliant XML object model
* StAX based builders with on-demand building and pull-through
* XOP/MTOM support offering direct binary support
* Convenient SOAP Infoset API on top of AXIOM
* Two implementations included:
  o Linked list based implementation
  o W3C DOM supporting implementation
* High performant

What's New in This Release
==

* Improved XML serialization
* DOM Hash implementation
* Improved MTOM handling
* Improved tree handling with multiple partial built elements
* Numerous bug fixes

Thanks for your interest in Apache AXIOM!


-The Apache AXIOM Development Team




signature.asc
Description: OpenPGP digital signature


problem when running wsdl2java with axis2

2006-09-19 Thread Felix Sprick








Hi all,



I am using the wsdl2java tool of the nightly-build from the 14th
of September. I experience strange errors when trying to compile the wsdl file:
element seemed to be not found, which are definitely defined in the xsd
here is the error message:



Z:\SGIS\WSDLc:\Program\Apache\axis2-nightly-20060914\bin\WSDL2Java
-uri baggis.

wsdl -pn PortalSoap -ss -sd -d xmlbeans -o .. -g

Using AXIS2_HOME: C:\Program\Apache\axis2

Using JAVA_HOME: C:\Program\Java\jdk1.5.0_06

Retrieving schema at 'Schemas/PortalInterface.xsd', relative to
'file:/Z:/SGIS/W

SDL/'.

Retrieving schema at 'Brunnar.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/Port

alInterface.xsd'.

Retrieving schema at 'MessageTag.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/B

runnar.xsd'.

Retrieving schema at 'Byggnader.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/Po

rtalInterface.xsd'.

Retrieving schema at 'MessageTag.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/B

yggnader.xsd'.

Retrieving schema at 'OpenGis/gml/3.1.1/base/geometryBasic0d1d.xsd',
relative to

'file:/Z:/SGIS/WSDL/Schemas/Byggnader.xsd'.

Retrieving schema at 'measures.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/Ope

nGis/gml/3.1.1/base/geometryBasic0d1d.xsd'.

Retrieving schema at 'units.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/OpenGi

s/gml/3.1.1/base/measures.xsd'.

Retrieving schema at 'dictionary.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/O

penGis/gml/3.1.1/base/units.xsd'.

Retrieving schema at 'gmlBase.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/Open

Gis/gml/3.1.1/base/dictionary.xsd'.

Retrieving schema at '../../../xlink/1.0.0/xlinks.xsd', relative to
'file:/Z:/SG

IS/WSDL/Schemas/OpenGis/gml/3.1.1/base/gmlBase.xsd'.

Retrieving schema at 'basicTypes.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/O

penGis/gml/3.1.1/base/gmlBase.xsd'.

Exception in thread main
org.apache.axis2.wsdl.codegen.CodeGenerationException

: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

 at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener

ationEngine.java:185)

 at
org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)

 at
org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)

Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetExcepti

on

 at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLB

eansExtension.java:93)

 at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener

ationEngine.java:140)

 ... 2 more

Caused by: java.lang.reflect.InvocationTargetException

 at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

 at
java.lang.reflect.Method.invoke(Method.java:585)

 at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLB

eansExtension.java:83)

 ... 3 more

Caused by: java.lang.RuntimeException:
org.apache.xmlbeans.XmlException: project

://local/Schemas/Byggnader.xsd:2:1069: error: src-resolve: element
'pointPropert

[EMAIL PROTECTED]://www.opengis.net/gml' not found.

 at
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGe

nerationUtility.java:192)

 ... 8 more

Caused by: org.apache.xmlbeans.XmlException:
project://local/Schemas/Byggnader.x

sd:2:1069: error: src-resolve: element '[EMAIL PROTECTED]://www.opengis.net/gml

' not found.

 at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(Sche

maTypeSystemCompiler.java:225)

 at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

 at
java.lang.reflect.Method.invoke(Method.java:585)

 at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)

 at
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGe

nerationUtility.java:161)

 ... 8 more



Any ideas on that? This is bugging me for days now, I just cant
find a way to get the xsds running. You can find the xsds at http://www.oktylus.com/WSDL.rar.



Every hint or help is highly appreciated!

Felix








[ANN] Apache XmlSchema 1.1 Released !!

2006-09-19 Thread Eran Chinthaka
http://ws.apache.org/commons/XmlSchema/

we are proud to announce the release of Version 1.1 of Apache XmlSchema!
(Download : http://ws.apache.org/commons/XmlSchema/download.cgi )

XMLSchema is a lightweight schema object model that can be used to
manipulate and generate XML schema representations. It has no external
dependencies and can be easily integrated into an existing project.

You are welcome to kick the tires and get XMLSchema on the move. If you
like to help us shape XMLSchema any contribution in the form of coding,
testing, submitting improvements to the documentation, and reporting
bugs are always welcome.

Thanks for your interest in XMLSchema!

- The XMLSchema Development Team




signature.asc
Description: OpenPGP digital signature


Axis 1.4 and header

2006-09-19 Thread Sergey GMAIL
Hello, axis-user.
How generate using WSDL2Java correct headers? In the Axis2 this is correct.
WSDL:

binding name=CalculatorBinding type=tns:CalculatorSoapPort
soap:binding style=document 
transport=http://schemas.xmlsoap.org/soap/http/
operation name=add
input
soap:header message=tns:requestHeader part=requestHeader 
use=literal/
soap:body use=literal 
namespace=http://com/nuance/pws/middleware/beans/calculator;/soap:body
/input


After generation using Axis2 I had a insert Header Class in the stub
client -side
and reader Header Class in the ..INOUT.. class in the
server-side,
But after generation using Axis 1.4 I don't have it .. :(

Help me please .
-- 
WBR,
 Sergey  mailto:[EMAIL PROTECTED]


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



RE: [Axis2] Help me better understand axis2

2006-09-19 Thread nancy
   
Hello,

I understood the following code,

   OMFactory fac = OMAbstractFactory.getOMFactory();
   OMNamespace omNs = fac.createOMNamespace(
http://example2.org/example2;, ex);
   OMElement method = fac.createOMElement(echo, omNs);
   OMElement value = fac.createOMElement(element, omNs);
   value.addChild(fac.createOMText(value, Axis2 hello));
   method.addChild(value);


also one more:

SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
SOAPEnvelope envelope = fac.getDefaultEnvelope();
OMNamespace namespace =
fac.createOMNamespace(webserviceNameSpace,
operationName);

OMElement params1 = fac.createOMElement(operationName,
namespace); 



OMElement paramOM =
fac.createOMElement(paramName, namespace);

paramOM.setText(paramValue.toString());

params1.addChild(paramOM);

}
envelope.getBody().setFirstChild(params1);
return envelope;
}


But both take string as parameter. How can I send any other object other
than string?

With Warm Regards,  
Nancy Aggarwal 
Software Developer 
 

  
-Original Message-
From: Nirmit Desai [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 18, 2006 6:29 PM
To: axis-user@ws.apache.org
Subject: RE: [Axis2] Help me better understand axis2

Look at the AXIOM javadoc

http://ws.apache.org/commons/axiom/apidocs/index.html

I am not sure how you can have a HashMap  type parameter in an Axis2
service operation. For best results, start from a WSDL and generate code
with databinding.

-Nirmit



   
 nancy   
 [EMAIL PROTECTED] 
 affodildb.com To 
   axis-user@ws.apache.org   
 09/18/2006 06:32   cc 
 AM
   Subject 
   RE: [Axis2] Help me better  
 Please respond to understand axis2
 [EMAIL PROTECTED] 
  he.org   
   
   
   
   




Hi Sameera,

Thanks Sameera for the link. I have gone through the document.

Is there any link in which how to send the request having parameters other
than String is explained. As far as I know the setText method of OMelement
takes String parameter, also createOMElement method of OMfactory takes
string parameter?



With Warm Regards,
Nancy Aggarwal
Software Developer

(Embedded image moved to file: pic12149.gif)


From: Sameera Madushan [mailto:[EMAIL PROTECTED]
Sent: Monday, September 18, 2006 12:46 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Help me better understand axis2



Hi nancy,

 Since you have the implementation class. The next thing you have do is to
create the services.xml file. I will try to reply with the services.xml
file. Before hand you better refer the following tutorial.


...


...


For further details you can refer tutorial Writing an Axis2 Service from
Scratch by Deepal Jayasinghe under the following link


http://www.developer.com/services/article.php/3613896








http://www.developer.com/services/article.php/3613896

On 9/18/06, nancy [EMAIL PROTECTED] wrote:


Hello all,





I am very confused how to create my web service. I am having these two
operations which I want to expose. How can I create its service.xml and
then after exposing I need to create a client? But how, I am unable to
start with. Please help me to better understand the axis2.








public class Test{





public int tingTong(int var1){


return var1+100;


}





public HashMap  tingTong(HashMap var1){


return var1;


}





 }


With Warm Regards,


Nancy Aggarwal


Software Developer





(Embedded image moved to file: pic18618.gif)








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



bug in nightly security sample

2006-09-19 Thread Christoph Raupach

Hello,
in the current axis nightly build there seems to be a bug in the
security example:
the port the client calls is not taken from the arguments passed but
instead hardcoded to 9080. If you look at the code , change this and
recompile the example works fine.

regards
Christoph Raupach

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



Axis client, getting started guide

2006-09-19 Thread Erik Norgaard

Hi:

I have a project creating a SOAP client with Axis using the different 
levels of abstraction I found in the user's guide: RPC, Document, 
Wrapped and Message.


Unfortunately I find the documentation difficult to decipher, and 
further the code example for message services gives a python error.


- Are there any examples with working code that exploits Axis for the 
client side?


- How do I set the SOAP action? I can use setUseSOAPAction aparently to 
decide whether or not to use it, but how do I set the value?


- What is the difference between getCurrentMessage and getMessage? if 
multiple messages exists, how do I select which is current? which one 
will getMessage return? If I use setMessage, how do I at a later point 
make it current?


- What is the soapActionURI? Action? URI?

I would appreciate links to other sources of documentation with more 
elaborate examples.


Thanks, Erik

--
Ph: +34.666334818  web: http://www.locolomo.org
X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt
Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9

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



Tomcat + Axis2 + MySQL

2006-09-19 Thread Prótár Gábor








Hello!



I have a problem and I cant find the answer. (list
archive, google J, ) 



I am using Tomcat v5.5.17, Axis 2 v1.0, MySQL v5.0.24, MySQL
Connector/J v5.0.3



I tried to configure Tomcats Datasources but it still
not works.



1.: put a context.xml file into this directory: tomcat
install folder/webapps/axis2/meta-inf



?xml version=1.0
encoding=UTF-8?

Context

Resource

name=jdbc/TestDB

type=javax.sql.DataSource

username=wsuser

password=abc

driverClassName=com.mysql.jdbc.Driver

maxIdle=2

maxWait=5000

url="">

maxActive=4/

WatchedResourceWEB-INF/web.xml/WatchedResource

/Context



2.: write new lines to the web.xml file at tomcat
install folder/webapps/axis2/web-inf



  resource-ref

  descriptionDB Connection/description

  res-ref-namejdbc/TestDB/res-ref-name

  res-typejavax.sql.DataSource/res-type

  res-authContainer/res-auth

  /resource-ref



3.: use it



Context envContext =
(Context)initContext.lookup(java:/comp/env);

DataSource ds =
(DataSource)envContext.lookup(jdbc/TestDB);

Connection conn = ds.getConnection();

    

Statement ins = conn.createStatement();

ins.execute(insert into w(name) values(' +
transactions[i].getName() + '));

    

conn.close();



4.: No error, but there is nothing changed in the database.
Please help me solve this problem.



---



Also I have another problem, I cant see error
messages from MySQL connector and when I use System.out.println(); int he webservice
code I cant see it in any log files? (stdout_timestamp.log and
stderr__timestamp.log files are created by the Tomcat server, but they
are only holding information about loading modules) How can I configure proper
logging?



For example:



- Deploying module : addressing-1.0

- Deploying module : soapmonitor-1.0

Retrieving document at ''.



Thanks,

Prótár Gábor



Ps.: sorry for my bad english J








RE: Tomcat + Axis2 + MySQL

2006-09-19 Thread Pader, Erwin



you 
probably need to add commit() for your change to take 
effect.

  -Original Message-From: Prótár Gábor 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, September 19, 2006 
  8:09 AMTo: axis-user@ws.apache.orgSubject: Tomcat + 
  Axis2 + MySQL
  
  Hello!
  
  I have a problem and I cant find 
  the answer. (list archive, google J, ) 
  
  
  I am using Tomcat v5.5.17, Axis 2 
  v1.0, MySQL v5.0.24, MySQL Connector/J v5.0.3
  
  I tried to configure Tomcats 
  Datasources but it still not works.
  
  1.: put a context.xml file into 
  this directory: tomcat install 
  folder/webapps/axis2/meta-inf
  
  ?xml version="1.0" 
  encoding="UTF-8"?
  Context
  Resource
  name="jdbc/TestDB"
  type="javax.sql.DataSource"
  username="wsuser"
  password="abc"
  driverClassName="com.mysql.jdbc.Driver"
  maxIdle="2"
  maxWait="5000"
  url=""
  maxActive="4"/
  WatchedResourceWEB-INF/web.xml/WatchedResource
  /Context
  
  2.: write new lines to the web.xml 
  file at tomcat install 
  folder/webapps/axis2/web-inf
  
   
  resource-ref
   
  descriptionDB 
  Connection/description
   
  res-ref-namejdbc/TestDB/res-ref-name
   
  res-typejavax.sql.DataSource/res-type
   
  res-authContainer/res-auth
   
  /resource-ref
  
  3.: use 
  it
  
  Context envContext = 
  (Context)initContext.lookup("java:/comp/env");
  DataSource ds = 
  (DataSource)envContext.lookup("jdbc/TestDB");
  Connection conn = 
  ds.getConnection();
   
  
  Statement ins = 
  conn.createStatement();
  ins.execute("insert into w(name) 
  values('" + transactions[i].getName() + "')");
   
  
  conn.close();
  
  4.: No error, but there is nothing 
  changed in the database. Please help me solve this 
  problem.
  
  ---
  
  Also I have another problem, I 
  cant see error messages from MySQL connector and when I use 
  System.out.println(); int he webservice code I cant see it in any log files? 
  (stdout_timestamp.log and stderr__timestamp.log files are 
  created by the Tomcat server, but they are only holding information about 
  loading modules) How can I configure proper 
  logging?
  
  For 
  example:
  
  - Deploying module : 
  addressing-1.0
  - Deploying module : 
  soapmonitor-1.0
  Retrieving document at 
  ''.
  
  Thanks,
  Prótár 
  Gábor
  
  Ps.: sorry for my bad english 
  J


RE: Tomcat + Axis2 + MySQL

2006-09-19 Thread Prótár Gábor








The Connection uses autocommit. I tried to
commit it manually but nothing happened.



Am I using the proper context in the java source?
I am just thinking about it



Thanks,

Gábor











From: Pader, Erwin
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 19, 2006
2:11 PM
To: 'axis-user@ws.apache.org'
Subject: RE: Tomcat + Axis2 +
MySQL







you probably need to add commit() for your
change to take effect.





-Original Message-
From: Prótár Gábor
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 19, 2006
8:09 AM
To: axis-user@ws.apache.org
Subject: Tomcat + Axis2 + MySQL

Hello!



I have a problem and I cant find the answer. (list
archive, google J, ) 



I am using Tomcat v5.5.17, Axis 2 v1.0, MySQL v5.0.24, MySQL
Connector/J v5.0.3



I tried to configure Tomcats Datasources but it still
not works.



1.: put a context.xml file into this directory: tomcat
install folder/webapps/axis2/meta-inf



?xml version=1.0
encoding=UTF-8?

Context

Resource

name=jdbc/TestDB

type=javax.sql.DataSource

username=wsuser

password=abc

driverClassName=com.mysql.jdbc.Driver

maxIdle=2

maxWait=5000

url="">

maxActive=4/

WatchedResourceWEB-INF/web.xml/WatchedResource

/Context



2.: write new lines to the web.xml file at tomcat
install folder/webapps/axis2/web-inf



 resource-ref

 descriptionDB
Connection/description


res-ref-namejdbc/TestDB/res-ref-name


res-typejavax.sql.DataSource/res-type


res-authContainer/res-auth

 /resource-ref



3.: use it



Context envContext = (Context)initContext.lookup(java:/comp/env);

DataSource ds =
(DataSource)envContext.lookup(jdbc/TestDB);

Connection conn = ds.getConnection();




Statement ins = conn.createStatement();

ins.execute(insert into w(name) values(' +
transactions[i].getName() + '));




conn.close();



4.: No error, but there is nothing changed in the database.
Please help me solve this problem.



---



Also I have another problem, I cant see error
messages from MySQL connector and when I use System.out.println(); int he
webservice code I cant see it in any log files?
(stdout_timestamp.log and stderr__timestamp.log files are
created by the Tomcat server, but they are only holding information about
loading modules) How can I configure proper logging?



For example:



- Deploying module : addressing-1.0

- Deploying module : soapmonitor-1.0

Retrieving document at ''.



Thanks,

Prótár
 Gábor



Ps.: sorry for my bad english J










SV: problem when running wsdl2java with axis2

2006-09-19 Thread Felix Sprick









Hi again,



I have now successfully generated the
XMLbeans for my xds file outside of the AXIS2 wsdl2java command by using scomp.


Does anybody know a convenient way to
include those manually built xmlbeans when invoking the wsdl2java
(since I get the error-message below when running wsdl2java with xmlbeans
binding!)?



Thanks,

Felix











Frn:
Felix Sprick [mailto:[EMAIL PROTECTED] 
Skickat: den 19 september 2006
09:57
Till: axis-user@ws.apache.org
mne: problem when running
wsdl2java with axis2





Hi all,



I am using the wsdl2java tool of the nightly-build from the
14th of September. I experience strange errors when trying to
compile the wsdl file: element seemed to be not found, which are definitely
defined in the xsd here is the error message:



Z:\SGIS\WSDLc:\Program\Apache\axis2-nightly-20060914\bin\WSDL2Java
-uri baggis.

wsdl -pn PortalSoap -ss -sd -d xmlbeans -o .. -g

Using AXIS2_HOME: C:\Program\Apache\axis2

Using JAVA_HOME: C:\Program\Java\jdk1.5.0_06

Retrieving schema at 'Schemas/PortalInterface.xsd', relative to
'file:/Z:/SGIS/W

SDL/'.

Retrieving schema at 'Brunnar.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/Port

alInterface.xsd'.

Retrieving schema at 'MessageTag.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/B

runnar.xsd'.

Retrieving schema at 'Byggnader.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/Po

rtalInterface.xsd'.

Retrieving schema at 'MessageTag.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/B

yggnader.xsd'.

Retrieving schema at 'OpenGis/gml/3.1.1/base/geometryBasic0d1d.xsd',
relative to

'file:/Z:/SGIS/WSDL/Schemas/Byggnader.xsd'.

Retrieving schema at 'measures.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/Ope

nGis/gml/3.1.1/base/geometryBasic0d1d.xsd'.

Retrieving schema at 'units.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/OpenGi

s/gml/3.1.1/base/measures.xsd'.

Retrieving schema at 'dictionary.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/O

penGis/gml/3.1.1/base/units.xsd'.

Retrieving schema at 'gmlBase.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/Open

Gis/gml/3.1.1/base/dictionary.xsd'.

Retrieving schema at '../../../xlink/1.0.0/xlinks.xsd', relative to
'file:/Z:/SG

IS/WSDL/Schemas/OpenGis/gml/3.1.1/base/gmlBase.xsd'.

Retrieving schema at 'basicTypes.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/O

penGis/gml/3.1.1/base/gmlBase.xsd'.

Exception in thread main
org.apache.axis2.wsdl.codegen.CodeGenerationException

: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException

 at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener

ationEngine.java:185)

 at
org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)

 at
org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)

Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetExcepti

on

 at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLB

eansExtension.java:93)

 at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener

ationEngine.java:140)

 ... 2 more

Caused by: java.lang.reflect.InvocationTargetException

 at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

 at
java.lang.reflect.Method.invoke(Method.java:585)

 at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLB

eansExtension.java:83)

 ... 3 more

Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException:
project

://local/Schemas/Byggnader.xsd:2:1069: error: src-resolve: element
'pointPropert

[EMAIL PROTECTED]://www.opengis.net/gml' not found.

 at
org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGe

nerationUtility.java:192)

 ... 8 more

Caused by: org.apache.xmlbeans.XmlException:
project://local/Schemas/Byggnader.x

sd:2:1069: error: src-resolve: element
'[EMAIL PROTECTED]://www.opengis.net/gml

' not found.

 at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(Sche

maTypeSystemCompiler.java:225)

 at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

 at
java.lang.reflect.Method.invoke(Method.java:585)

 at
org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)

 at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGe

nerationUtility.java:161)

 ... 8 more



Any ideas on that? This is bugging me for days now, I just cant
find a way to get the xsds running. You can find the xsds at http://www.oktylus.com/WSDL.rar.



Every hint or help is highly appreciated!

Felix








not seeing log4j logs if there's an error

2006-09-19 Thread Jesse Vitrone
With Axis 1.4, I want to log the XML that goes back and forth, so I added 
log4j.logger.org.apache.axis.transport.http.HTTPSender to my log4j properties 
file and I see the logs perfectly.  The problem is that I only see the logs if 
the service returns a successful result.  If the service I'm calling runs into 
problems and throws an exception or fault, I'm not seeing anything get logged 
at all.

For example, I was calling a service, and passing in a bad value, which was 
causing them to send a fault.  When this was happening, I talked to the people 
who run the service and they confirm they got the request, and told me what was 
going wrong.  Even though I was sending the request, nothing was going to the 
logs showing me the request I was sending them.  Once I changed the value I was 
passing, and started to get back a successful result, the logs showed up again.

I'm once again having a problem where I'm not seeing the logs, and it comes at 
the worst times, since I only can't see the logs when things are going wrong.  
Any idea what I'm doing wrong?

Thanks.



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



[AXIS2] Issue with Axis2 probably not handling SOAP requests correctly

2006-09-19 Thread Charak, Vikas








Hi ,

I am using XMLSpy as welll as Axis2 Client
to test the service. The service works fine with Axis2 client. But when a call
is made from XmlSpy , the input parameters are NULL.

Interestingly the same issue is happening when
a call is made from Siebel also.





See below XMLSpy SOAP request. I am trying
to send Hello as an input parameter. But on the service side the
value of input parameter is NULL. 

I think we probably have some
interoperability issues with Axis2. 

Both
Siebel and XMLSpys SOAP request looks like the one below shown; 





POST /axis2/services/SimpleService
HTTP/1.1

Content-Type: text/xml; Charset=UTF-8

User-Agent: XML Spy

SOAPAction: getCode

Host: 127.0.0.1:9090

Content-Length: 409

Connection: Keep-Alive

Cache-Control: no-cache

Cookie: JSESSIONID=561757E11D99F7DF6C66A27C346963AB







SOAP-ENV:Envelope
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/
xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
xmlns:xsd=http://www.w3.org/2001/XMLSchema



 SOAP-ENV:Body



 m:inputPara1
xmlns:m=http://SimpleService.simpleservice.webservice.wammis.com/typesHello/m:inputPara1



 /SOAP-ENV:Body



/SOAP-ENV:Envelope





AXIS2
SOAP Request:



POST /axis2/services/SimpleService
HTTP/1.1

SOAPAction: getCode

User-Agent: Axis2

Host: 127.0.0.1:9090

Transfer-Encoding: chunked

Content-Type: text/xml; charset=UTF-8





?xml version='1.0'
encoding='UTF-8'?soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/soapenv:Header
/

soapenv:BodySimpleService:getCode
xmlns:SimpleService=http://SimpleService.simpleservice.webservice.wammis.com/types


SimpleService:TextHello/SimpleService:Text

/SimpleService:getCode/soapenv:Body

/soapenv:Envelope





Any idea?














Re: [AXIS2] Issue with Axis2 probably not handling SOAP requests correctly

2006-09-19 Thread Davanum Srinivas

Are u using a nightly? If so, Please open a bug report with your WSDL
(and the command line you used to generate the server side code)

thanks,
dims

On 9/19/06, Charak, Vikas [EMAIL PROTECTED] wrote:





Hi ,

I am using XMLSpy as welll as Axis2 Client to test the service. The service
works fine with Axis2 client. But when a call is made from XmlSpy , the
input parameters are NULL.

Interestingly the same issue is happening when a call is made from Siebel
also.





See below XMLSpy SOAP request. I am trying to send Hello as an input
parameter. But on the service side the value of input parameter is NULL.

I think we probably have some interoperability issues with Axis2.

Both Siebel and XMLSpy's SOAP request looks like the one below shown;





POST /axis2/services/SimpleService HTTP/1.1

Content-Type: text/xml; Charset=UTF-8

User-Agent: XML Spy

SOAPAction: getCode

Host: 127.0.0.1:9090

Content-Length: 409

Connection: Keep-Alive

Cache-Control: no-cache

Cookie: JSESSIONID=561757E11D99F7DF6C66A27C346963AB







SOAP-ENV:Envelope
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;



SOAP-ENV:Body



m:inputPara1
xmlns:m=http://SimpleService.simpleservice.webservice.wammis.com/types;Hello/m:inputPara1



/SOAP-ENV:Body



/SOAP-ENV:Envelope





AXIS2 SOAP Request:



POST /axis2/services/SimpleService HTTP/1.1

SOAPAction: getCode

User-Agent: Axis2

Host: 127.0.0.1:9090

Transfer-Encoding: chunked

Content-Type: text/xml; charset=UTF-8





?xml version='1.0' encoding='UTF-8'?soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;soapenv:Header
/

soapenv:BodySimpleService:getCode
xmlns:SimpleService=http://SimpleService.simpleservice.webservice.wammis.com/types;

SimpleService:TextHello/SimpleService:Text

/SimpleService:getCode/soapenv:Body

/soapenv:Envelope





Any idea?









--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



RE: [AXIS2] Issue with Axis2 probably not handling SOAP requests correctly

2006-09-19 Thread Charak, Vikas
Yes. I am using nightly. The server side code was written by me. It's a
simple service which takes in a String and sends out a string. 


-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 19, 2006 10:15 AM
To: axis-user@ws.apache.org
Subject: Re: [AXIS2] Issue with Axis2 probably not handling SOAP
requests correctly

Are u using a nightly? If so, Please open a bug report with your WSDL
(and the command line you used to generate the server side code)

thanks,
dims

On 9/19/06, Charak, Vikas [EMAIL PROTECTED] wrote:




 Hi ,

 I am using XMLSpy as welll as Axis2 Client to test the service. The
service
 works fine with Axis2 client. But when a call is made from XmlSpy ,
the
 input parameters are NULL.

 Interestingly the same issue is happening when a call is made from
Siebel
 also.





 See below XMLSpy SOAP request. I am trying to send Hello as an input
 parameter. But on the service side the value of input parameter is
NULL.

 I think we probably have some interoperability issues with Axis2.

 Both Siebel and XMLSpy's SOAP request looks like the one below shown;





 POST /axis2/services/SimpleService HTTP/1.1

 Content-Type: text/xml; Charset=UTF-8

 User-Agent: XML Spy

 SOAPAction: getCode

 Host: 127.0.0.1:9090

 Content-Length: 409

 Connection: Keep-Alive

 Cache-Control: no-cache

 Cookie: JSESSIONID=561757E11D99F7DF6C66A27C346963AB







 SOAP-ENV:Envelope
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;



 SOAP-ENV:Body



 m:inputPara1

xmlns:m=http://SimpleService.simpleservice.webservice.wammis.com/types;
Hello/m:inputPara1



 /SOAP-ENV:Body



 /SOAP-ENV:Envelope





 AXIS2 SOAP Request:



 POST /axis2/services/SimpleService HTTP/1.1

 SOAPAction: getCode

 User-Agent: Axis2

 Host: 127.0.0.1:9090

 Transfer-Encoding: chunked

 Content-Type: text/xml; charset=UTF-8





 ?xml version='1.0' encoding='UTF-8'?soapenv:Envelope

xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;soapenv:Heade
r
 /

 soapenv:BodySimpleService:getCode

xmlns:SimpleService=http://SimpleService.simpleservice.webservice.wammi
s.com/types

 SimpleService:TextHello/SimpleService:Text

 /SimpleService:getCode/soapenv:Body

 /soapenv:Envelope





 Any idea?








-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
Developers)

-
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 when running wsdl2java with axis2

2006-09-19 Thread Martin Gainty



Felix-
the specific error seems to be located 
at
local/Schemas/Byggnader.xsd:2:1069:
(If you 
could show us the relevant element contents of the file we could assist 
you)
Sverige 
Altid-
M-
*This 
email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this email 
message isaddressed. If you have received this email message in error, 
please notifythe sender immediately by telephone or email and destroy the 
originalmessage without making a copy. Thank you.



  - Original Message - 
  From: 
  Felix 
  Sprick 
  To: axis-user@ws.apache.org 
  Sent: Tuesday, September 19, 2006 9:33 
  AM
  Subject: SV: problem when running 
  wsdl2java with axis2
  
  
  Hi 
  again,
  
  I have now 
  successfully generated the XMLbeans for my xds file outside of the AXIS2 
  wsdl2java command by using scomp. 
  Does anybody know a 
  convenient way to include those “manually” built xmlbeans when invoking the 
  wsdl2java (since I get the error-message below when running wsdl2java with 
  xmlbeans binding!)?
  
  Thanks,
  Felix
  
  
  
  
  
  Från: 
  Felix Sprick [mailto:[EMAIL PROTECTED] Skickat: den 19 september 2006 
  09:57Till: axis-user@ws.apache.orgÄmne: problem when running wsdl2java with 
  axis2
  
  Hi 
  all,
  
  I am using the wsdl2java tool of 
  the nightly-build from the 14th of September. I experience strange 
  errors when trying to compile the wsdl file: element seemed to be not found, 
  which are definitely defined in the xsd… here is the error 
  message:
  
  Z:\SGIS\WSDLc:\Program\Apache\axis2-nightly-20060914\bin\WSDL2Java 
  -uri baggis.
  wsdl -pn PortalSoap -ss -sd -d xmlbeans -o 
  .. -g
  Using AXIS2_HOME: 
  C:\Program\Apache\axis2
  Using JAVA_HOME: 
  C:\Program\Java\jdk1.5.0_06
  Retrieving schema at 'Schemas/PortalInterface.xsd', 
  relative to 'file:/Z:/SGIS/W
  SDL/'.
  Retrieving schema at 'Brunnar.xsd', relative to 
  'file:/Z:/SGIS/WSDL/Schemas/Port
  alInterface.xsd'.
  Retrieving schema at 'MessageTag.xsd', relative to 
  'file:/Z:/SGIS/WSDL/Schemas/B
  runnar.xsd'.
  Retrieving schema at 'Byggnader.xsd', relative to 
  'file:/Z:/SGIS/WSDL/Schemas/Po
  rtalInterface.xsd'.
  Retrieving schema at 'MessageTag.xsd', relative to 
  'file:/Z:/SGIS/WSDL/Schemas/B
  yggnader.xsd'.
  Retrieving schema at 
  'OpenGis/gml/3.1.1/base/geometryBasic0d1d.xsd', relative 
  to
  'file:/Z:/SGIS/WSDL/Schemas/Byggnader.xsd'.
  Retrieving schema at 'measures.xsd', relative to 
  'file:/Z:/SGIS/WSDL/Schemas/Ope
  nGis/gml/3.1.1/base/geometryBasic0d1d.xsd'.
  Retrieving schema at 'units.xsd', relative to 
  'file:/Z:/SGIS/WSDL/Schemas/OpenGi
  s/gml/3.1.1/base/measures.xsd'.
  Retrieving schema at 'dictionary.xsd', relative to 
  'file:/Z:/SGIS/WSDL/Schemas/O
  penGis/gml/3.1.1/base/units.xsd'.
  Retrieving schema at 'gmlBase.xsd', relative to 
  'file:/Z:/SGIS/WSDL/Schemas/Open
  Gis/gml/3.1.1/base/dictionary.xsd'.
  Retrieving schema at 
  '../../../xlink/1.0.0/xlinks.xsd', relative to 
  'file:/Z:/SG
  IS/WSDL/Schemas/OpenGis/gml/3.1.1/base/gmlBase.xsd'.
  Retrieving schema at 'basicTypes.xsd', relative to 
  'file:/Z:/SGIS/WSDL/Schemas/O
  penGis/gml/3.1.1/base/gmlBase.xsd'.
  Exception in thread "main" 
  org.apache.axis2.wsdl.codegen.CodeGenerationException
  : java.lang.RuntimeException: 
  java.lang.reflect.InvocationTargetException
   at 
  org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
  ationEngine.java:185)
   at 
  org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
   at 
  org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
  Caused by: java.lang.RuntimeException: 
  java.lang.reflect.InvocationTargetExcepti
  on
   at 
  org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLB
  eansExtension.java:93)
   at 
  org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
  ationEngine.java:140)
   ... 2 
  more
  Caused by: 
  java.lang.reflect.InvocationTargetException
   at 
  sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
  Method)
   at 
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
   at 
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
   at 
  java.lang.reflect.Method.invoke(Method.java:585)
   at 
  org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLB
  eansExtension.java:83)
   ... 3 
  more
  Caused by: java.lang.RuntimeException: 
  org.apache.xmlbeans.XmlException: project
  ://local/Schemas/Byggnader.xsd:2:1069: error: 
  src-resolve: element 'pointPropert
  [EMAIL PROTECTED]://www.opengis.net/gml' not 
  found.
   at 
  org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGe
  nerationUtility.java:192)
   ... 8 
  more
  Caused by: org.apache.xmlbeans.XmlException: 
  project://local/Schemas/Byggnader.x
  sd:2:1069: error: src-resolve: element 
  '[EMAIL 

Re: [AXIS2] Issue with Axis2 probably not handling SOAP requests correctly

2006-09-19 Thread Davanum Srinivas

Ah. So you did not start from wsdl? then please upload your server
code and services.xml etc.

thanks,
dims

On 9/19/06, Charak, Vikas [EMAIL PROTECTED] wrote:

Yes. I am using nightly. The server side code was written by me. It's a
simple service which takes in a String and sends out a string.


-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 19, 2006 10:15 AM
To: axis-user@ws.apache.org
Subject: Re: [AXIS2] Issue with Axis2 probably not handling SOAP
requests correctly

Are u using a nightly? If so, Please open a bug report with your WSDL
(and the command line you used to generate the server side code)

thanks,
dims

On 9/19/06, Charak, Vikas [EMAIL PROTECTED] wrote:




 Hi ,

 I am using XMLSpy as welll as Axis2 Client to test the service. The
service
 works fine with Axis2 client. But when a call is made from XmlSpy ,
the
 input parameters are NULL.

 Interestingly the same issue is happening when a call is made from
Siebel
 also.





 See below XMLSpy SOAP request. I am trying to send Hello as an input
 parameter. But on the service side the value of input parameter is
NULL.

 I think we probably have some interoperability issues with Axis2.

 Both Siebel and XMLSpy's SOAP request looks like the one below shown;





 POST /axis2/services/SimpleService HTTP/1.1

 Content-Type: text/xml; Charset=UTF-8

 User-Agent: XML Spy

 SOAPAction: getCode

 Host: 127.0.0.1:9090

 Content-Length: 409

 Connection: Keep-Alive

 Cache-Control: no-cache

 Cookie: JSESSIONID=561757E11D99F7DF6C66A27C346963AB







 SOAP-ENV:Envelope
 xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
 xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xmlns:xsd=http://www.w3.org/2001/XMLSchema;



 SOAP-ENV:Body



 m:inputPara1

xmlns:m=http://SimpleService.simpleservice.webservice.wammis.com/types;
Hello/m:inputPara1



 /SOAP-ENV:Body



 /SOAP-ENV:Envelope





 AXIS2 SOAP Request:



 POST /axis2/services/SimpleService HTTP/1.1

 SOAPAction: getCode

 User-Agent: Axis2

 Host: 127.0.0.1:9090

 Transfer-Encoding: chunked

 Content-Type: text/xml; charset=UTF-8





 ?xml version='1.0' encoding='UTF-8'?soapenv:Envelope

xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;soapenv:Heade
r
 /

 soapenv:BodySimpleService:getCode

xmlns:SimpleService=http://SimpleService.simpleservice.webservice.wammi
s.com/types

 SimpleService:TextHello/SimpleService:Text

 /SimpleService:getCode/soapenv:Body

 /soapenv:Envelope





 Any idea?








--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
Developers)

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





--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



Installing Axis2 in Tomcat

2006-09-19 Thread Silvio dos Passos Neto




Hi everyone, 


I downloaded the 
last version of axis2 war... I followed de instructions of installation guide, 
droping this in the webapps folder (renaming the .zip to .war). But it doen't 
work:I get an NullPointerException in the home page (http://localhost/axis2, yes, I do use 80 
port):

java.lang.NullPointerException
	at org.apache.jsp.httpbase$jsp.jspInit(httpbase$jsp.java:24)
	at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:90)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspServlet.java:142)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:178)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:819)
	at org.apache.jsp.index$jsp._jspService(index$jsp.java:91)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
	at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
	at java.lang.Thread.run(Thread.java:534)
After that, I tried to unzip the file to the wepapps folder, and then I get another error page:
java.lang.IllegalStateException
	at org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:109)
	at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1146)
	at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
	at 

SV: problem when running wsdl2java with axis2

2006-09-19 Thread Felix Sprick








Hi Martin,



Thanks a lot for your answer. I am not
sure where to locate local/Schemas/Byggnader.xsd, is that kind of
a temp directory? I can, however, attach the original Byggnader.xsd file, if
that is of any help for you. Since I am not sure whether this mailing list
allows attachments, I have put all my xsds in a zip file at http://www.oktylus.com/WSDL.rar.




Thanks again,

Felix









Från:
Martin Gainty [mailto:[EMAIL PROTECTED] 
Skickat: den 19 september 2006
16:21
Till: axis-user@ws.apache.org
Ämne: Re: problem when running
wsdl2java with axis2







Felix-





the specific error seems to be located at





local/Schemas/Byggnader.xsd:2:1069:





(If you could show us the relevant element contents of the file we
could assist you)





Sverige Altid-





M-





*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please
notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.




















- Original Message - 





From: Felix
Sprick 





To: axis-user@ws.apache.org






Sent: Tuesday, September
19, 2006 9:33 AM





Subject: SV: problem when
running wsdl2java with axis2









Hi again,



I have now successfully generated the
XMLbeans for my xds file outside of the AXIS2 wsdl2java command by using scomp.


Does anybody know a convenient way to
include those manually built xmlbeans when invoking the wsdl2java
(since I get the error-message below when running wsdl2java with xmlbeans
binding!)?



Thanks,

Felix











Från:
Felix Sprick [mailto:[EMAIL PROTECTED] 
Skickat: den 19 september 2006
09:57
Till: axis-user@ws.apache.org
Ämne: problem when running
wsdl2java with axis2





Hi all,



I am using the wsdl2java tool of the nightly-build from the
14th of September. I experience strange errors when trying to
compile the wsdl file: element seemed to be not found, which are definitely
defined in the xsd here is the error message:



Z:\SGIS\WSDLc:\Program\Apache\axis2-nightly-20060914\bin\WSDL2Java
-uri baggis.

wsdl -pn PortalSoap -ss -sd -d xmlbeans -o .. -g

Using AXIS2_HOME: C:\Program\Apache\axis2

Using JAVA_HOME: C:\Program\Java\jdk1.5.0_06

Retrieving schema at 'Schemas/PortalInterface.xsd', relative to
'file:/Z:/SGIS/W

SDL/'.

Retrieving schema at 'Brunnar.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/Port

alInterface.xsd'.

Retrieving schema at 'MessageTag.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/B

runnar.xsd'.

Retrieving schema at 'Byggnader.xsd', relative to 'file:/Z:/SGIS/WSDL/Schemas/Po

rtalInterface.xsd'.

Retrieving schema at 'MessageTag.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/B

yggnader.xsd'.

Retrieving schema at 'OpenGis/gml/3.1.1/base/geometryBasic0d1d.xsd',
relative to

'file:/Z:/SGIS/WSDL/Schemas/Byggnader.xsd'.

Retrieving schema at 'measures.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/Ope

nGis/gml/3.1.1/base/geometryBasic0d1d.xsd'.

Retrieving schema at 'units.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/OpenGi

s/gml/3.1.1/base/measures.xsd'.

Retrieving schema at 'dictionary.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/O

penGis/gml/3.1.1/base/units.xsd'.

Retrieving schema at 'gmlBase.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/Open

Gis/gml/3.1.1/base/dictionary.xsd'.

Retrieving schema at '../../../xlink/1.0.0/xlinks.xsd', relative to
'file:/Z:/SG

IS/WSDL/Schemas/OpenGis/gml/3.1.1/base/gmlBase.xsd'.

Retrieving schema at 'basicTypes.xsd', relative to
'file:/Z:/SGIS/WSDL/Schemas/O

penGis/gml/3.1.1/base/gmlBase.xsd'.

Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException

: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetException

 at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener

ationEngine.java:185)

 at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)

 at
org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)

Caused by: java.lang.RuntimeException:
java.lang.reflect.InvocationTargetExcepti

on

 at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLB

eansExtension.java:93)

 at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener

ationEngine.java:140)

 ... 2 more

Caused by: java.lang.reflect.InvocationTargetException

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)

 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

 at java.lang.reflect.Method.invoke(Method.java:585)

 at
org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLB

eansExtension.java:83)

 ... 3 more

Caused by: java.lang.RuntimeException:
org.apache.xmlbeans.XmlException: project


Error in API documentation? call.setOperationName(QName opName)

2006-09-19 Thread Erik Norgaard

In:

http://ws.apache.org/axis/java/apiDocs/org/apache/axis/client/Call.html

setOperationName(QName opName):

Sets the operation name associated with this Call object. This will not
 check the WSDL (if there is WSDL) to make sure that it's a valid^^^
 operation name.

given that the method that accepts string input, if for the user that 
doesn't care... the above should be that the opName is checked right?


Is there a bugzilla or other list of known bugs - be it implementation 
or documentation?


Cheers, Erik

--
Ph: +34.666334818  web: http://www.locolomo.org
X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt
Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9

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



problem using soap1.2 binding in axis2 with Eclipse and code generator

2006-09-19 Thread Morgante Thomas








Im using Eclipse 3.2 and the code generator
plugin.

When I generate the client side, if I choose as a
PortName one which is binded to Soap1.2 I get, when I run the client, 

org.apache.axis2.AxisFault:
Operation Not found EPR is
http://localhost:8182/axis2/services/EchoServerSoap12 and WSA Action =""
null





Instead,
if I choose a soap1.1 binding it works all right.

Has
someone got a clue?

Thank
you

Thomas



CONFIDENTIALITY 
NOTICEThis message and its attachments are addressed solely to the 
personsabove and may contain confidential information. If you have 
receivedthe message in error, be informed that any use of the content 
hereofis prohibited. Please return it immediately to the sender and 
deletethe message. Should you have any questions, please contact us 
byreplying to [EMAIL PROTECTED]. Thank 
you 
www.telecomitalia.it





Re: Axis array serialization problem (Adnene problem)

2006-09-19 Thread Adnene

Hi Anne, Hi all,

   I found in the Axis - Dev forum a similar problem :
http://www.nabble.com/-jira--Created%3A-%28AXIS-2485%29-Output-Messages-using-soapenc%3AArray-deserialize-to-arrays-with-null-elements-tf1699379.html#a4611675
http://www.nabble.com/-jira--Created%3A-%28AXIS-2485%29-Output-Messages-using-soapenc%3AArray-deserialize-to-arrays-with-null-elements-tf1699379.html#a4611675
 
  
   Can you confirm that this is the same problem as mine? If so I suppose
that this is bug. In this case does anyone know if this bug is referenced
and how could we fix it?

Cheers,
Adnene


Adnene wrote:
 
 I already did this change before, Anne. And after regenrating the stubs
 (with xsd:string[]) I have the same behavior. Nothing seems to have
 changed.
 
 For more information, when I perform a diff on the generated files in both
 cases, the only difference I noticed concerns line 94 of
 CDRonDemandSoapBindingStub.java file:
 
 qName = new
 javax.xml.namespace.QName(http://www.w3.org/2001/XMLSchema;, string);
 
 for xsd:string[] instead of 
 
 qName = new
 javax.xml.namespace.QName(http://schemas.xmlsoap.org/soap/encoding/;,
 string);
 
 for soapenc:string[].
 
 
 And both cases show the same problem.
 
 Adnene
 
 
 Anne Thomas Manes wrote:
 
 Ah ... I see.
 
 The problem is with the service. According to the WSDL, it says that
 it will send you elements of type soapenc:string, but it's actually
 sending you elements of type xsd:string. You can edit the WSDL
 document and change the definitions to xsd:string, regen your client
 stubs, and then it should work.
 
 Anne
 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-Axis-array-serialization-problem-%28Adnene-problem%29-tf2157136.html#a6390564
Sent from the Axis - User mailing list archive at Nabble.com.


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



[Axis2] org.apache.axis2.engine.Service interface broken

2006-09-19 Thread Michele Mazzucco
Hi all,

I'm experiencing serious problems with the eager service initialization
features provided by the Service interface (the service is deployed in
application scope everything is correct in services.xml). I'm using the
latest nightly build.

1 - the 'init' method is called *only* if there's a static
initialization elsewhere (i.e. a static block) -- so I guess the init()
method is called *only* when the first request comes, and not at system
startup as described into the documentation (and a service instance is
created)
2 - the startUp() method is *never* called, even if the
parameter name=load-on-startup locked=falsetrue/parameter
parameter is set into services.xml.
Furthermore, if you set this argument, *2* service instances are created
at system startup!. Again, if a static block is not present, nothing
happens.


Please find attached the simple service file (it's the sample service
slightly modified) together with the configuration file.



Thanks,
Michele

/*
 * Copyright 2001-2004 The Apache Software Foundation.
 * 
 * Licensed under the Apache License, Version 2.0 (the License);
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *  http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an AS IS BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package userguide.example1;

import java.net.URL;

import org.apache.axiom.om.OMElement;
import org.apache.axis2.AxisFault;
import org.apache.axis2.context.ConfigurationContext;
import org.apache.axis2.context.MessageContext;
import org.apache.axis2.context.OperationContext;
import org.apache.axis2.context.ServiceContext;
import org.apache.axis2.description.AxisService;
import org.apache.axis2.engine.Service;
import org.apache.axis2.wsdl.WSDLConstants;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;


/**
 * Created by IntelliJ IDEA.
 * User: Jaliya
 * Date: Jun 2, 2005
 * Time: 2:17:58 PM
 */
public class MyService implements Service {

private static Logger log;

@SuppressWarnings(unused)
private MessageContext ctx;

private static int res;

   /* 
static {
log = Logger.getLogger(MyService.class);
ClassLoader cl = MyService.class.getClassLoader();
URL url = cl.getResource(/log4j.properties);
PropertyConfigurator.configure(url);

log.info(Static initialization);
}
*/

public MyService() {
log.warn(== Instance created ==);
}

public OMElement echo(OMElement element) {
//Praparing the OMElement so that it can be attached to another OM Tree.
//First the OMElement should be completely build in case it is not 
fully built and still
//some of the xml is in the stream.
element.build();
//Secondly the OMElement should be detached from the current OMTree so 
that it can be attached
//some other OM Tree. Once detached the OmTree will remove its 
connections to this OMElement.
element.detach();

res++;
element.addAttribute(result, String.valueOf(res), null);

return element;
}

public void ping(OMElement element) {
buildElement(element);
//Do some processing
}
public void pingF(OMElement element) throws AxisFault{
buildElement(element);
throw new AxisFault(Fault being thrown);
}

private static void buildElement(OMElement element) {
element.build();
element.detach();
}


public void destroy(ServiceContext sc) {
log.warn(Service is going to be destroyed!!!);
}

public void init(ServiceContext sc) {/*
log = Logger.getLogger(MyService.class);
ClassLoader cl = MyService.class.getClassLoader();
URL url = cl.getResource(/log4j.properties);
PropertyConfigurator.configure(url);

res = 0;
*/
log.info(init ===);
}

public void setOperationContext(OperationContext operationContext) {
try {
this.ctx = 
operationContext.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
} catch (AxisFault e) {
log.warn(e.getMessage());
}
}

public void startUp(ConfigurationContext configctx, AxisService service) {
   

log.info(Startup );
}
}
service name=MyService scope=application
description
This is a sample Web Service with two operations,echo and ping.
/description
parameter name=ServiceClass locked=falseuserguide.example1.MyService/parameter

parameter name=load-on-startup locked=falsetrue/parameter

operation name=echo

Re: [Axis2] org.apache.axis2.engine.Service interface broken

2006-09-19 Thread Michele Mazzucco
Hi again,

some more information: the destroy() method seems to work properly.


Thanks,
Michele

Michele Mazzucco wrote:
 Hi all,
 
 I'm experiencing serious problems with the eager service initialization
 features provided by the Service interface (the service is deployed in
 application scope everything is correct in services.xml). I'm using the
 latest nightly build.
 
 1 - the 'init' method is called *only* if there's a static
 initialization elsewhere (i.e. a static block) -- so I guess the init()
 method is called *only* when the first request comes, and not at system
 startup as described into the documentation (and a service instance is
 created)
 2 - the startUp() method is *never* called, even if the
 parameter name=load-on-startup locked=falsetrue/parameter
 parameter is set into services.xml.
 Furthermore, if you set this argument, *2* service instances are created
 at system startup!. Again, if a static block is not present, nothing
 happens.
 
 
 Please find attached the simple service file (it's the sample service
 slightly modified) together with the configuration file.
 
 
 
 Thanks,
 Michele
 
 
 
 
 
 /*
  * Copyright 2001-2004 The Apache Software Foundation.
  * 
  * Licensed under the Apache License, Version 2.0 (the License);
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  * 
  *  http://www.apache.org/licenses/LICENSE-2.0
  * 
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an AS IS BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 package userguide.example1;
 
 import java.net.URL;
 
 import org.apache.axiom.om.OMElement;
 import org.apache.axis2.AxisFault;
 import org.apache.axis2.context.ConfigurationContext;
 import org.apache.axis2.context.MessageContext;
 import org.apache.axis2.context.OperationContext;
 import org.apache.axis2.context.ServiceContext;
 import org.apache.axis2.description.AxisService;
 import org.apache.axis2.engine.Service;
 import org.apache.axis2.wsdl.WSDLConstants;
 import org.apache.log4j.Logger;
 import org.apache.log4j.PropertyConfigurator;
 
 
 /**
  * Created by IntelliJ IDEA.
  * User: Jaliya
  * Date: Jun 2, 2005
  * Time: 2:17:58 PM
  */
 public class MyService implements Service {
 
 private static Logger log;
 
 @SuppressWarnings(unused)
 private MessageContext ctx;
 
 private static int res;
 
/* 
 static {
 log = Logger.getLogger(MyService.class);
 ClassLoader cl = MyService.class.getClassLoader();
 URL url = cl.getResource(/log4j.properties);
 PropertyConfigurator.configure(url);
 
 log.info(Static initialization);
 }
 */
 
 public MyService() {
 log.warn(== Instance created ==);
 }
 
 public OMElement echo(OMElement element) {
 //Praparing the OMElement so that it can be attached to another OM 
 Tree.
 //First the OMElement should be completely build in case it is not 
 fully built and still
 //some of the xml is in the stream.
 element.build();
 //Secondly the OMElement should be detached from the current OMTree 
 so that it can be attached
 //some other OM Tree. Once detached the OmTree will remove its 
 connections to this OMElement.
 element.detach();
 
 res++;
 element.addAttribute(result, String.valueOf(res), null);
 
 return element;
 }
 
 public void ping(OMElement element) {
 buildElement(element);
 //Do some processing
 }
 public void pingF(OMElement element) throws AxisFault{
 buildElement(element);
 throw new AxisFault(Fault being thrown);
 }
 
 private static void buildElement(OMElement element) {
 element.build();
 element.detach();
 }
 
 
 public void destroy(ServiceContext sc) {
 log.warn(Service is going to be destroyed!!!);
 }
 
 public void init(ServiceContext sc) {/*
 log = Logger.getLogger(MyService.class);
 ClassLoader cl = MyService.class.getClassLoader();
 URL url = cl.getResource(/log4j.properties);
 PropertyConfigurator.configure(url);
 
 res = 0;
 */
 log.info(init ===);
 }
 
 public void setOperationContext(OperationContext operationContext) {
 try {
 this.ctx = 
 operationContext.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
 } catch (AxisFault e) {
 log.warn(e.getMessage());
 }
 }
 
 public void startUp(ConfigurationContext configctx, AxisService service) {

 
 

Setting the Content-ID header for an MTOM attachment

2006-09-19 Thread Yoram Givon








Hi All,



I am using Axis2 to create a SOAP request to a web service
which performs Transcoding of a file I attached to the SOAP message using MTOM.



My only problem is that I also have to pass the content-id
of the attachment as part of the SOAP request so the server will know where the
file is.



I have searched through the mailing list and the internet
and was not able so far to find a method to set the content-id header for an
MTOM attachment.



Does any one know if there is a way to set the content-id
header of an MTOM attachment?



Cheers,



Yoram








help with axis2

2006-09-19 Thread Fabio Alves de Araujo Ebner - DNA Solution



Can anyone help me with axis 2 please?? i 
use Axis 1.4 and try to move to 2 but i dont understand nothing from axis2, and 
the tutorial in axis site isent so good..

anyone have a tutorial to send 
me??


[Axis2] Socket connection on Client and Server not disconnecting

2006-09-19 Thread Brian Bacsu

Hi,

We have implemented an Axis2 client
to call web services exposed through both .NET and Axis1 running on Microsoft
Server 2003. I have encountered an issue with the Axis2 client with regard
to disconnecting the client and server socket connections. The server-side
connection will finally time-out and drop (It looks like Microsoft Server
will hang onto connections for 60 seconds, even after close requested),
but the client side connections continue to collect until the server begins
to run out of resources/connections. The client connections show CLOSE_WAIT
status when viewed with netstat . 

Any suggestions would be appreciated.

Here is a sample of the client code:

Options
options = new
Options();

options.setExceptionToBeThrownOnSOAPFault(Boolean.TRUE);
   
options.setTo(new
EndpointReference(url.toString()));
ServiceClient
serviceClient = null;
MessageContext
requestContext = CFWsoapClient.getMessageContext(OM_Msg,this,soapRoot,
logger, traceLevel);
requestContext.setSoapAction(action);
try { 


   

 options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

 options.setProperty(HTTPConstants.SO_TIMEOUT,1000);

 options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, Boolean.FALSE);

 options.setProperty(HTTPConstants.CONNECTION_TIMEOUT, (int)timeout);

   

 serviceClient = new
ServiceClient();

 serviceClient.setOptions(options);

 OperationClient opClient = serviceClient.createClient(ServiceClient.ANON_OUT_IN_OP);

 opClient.addMessageContext(requestContext);   
  

 opClient.execute(true);

 

 MessageContext resultContext = opClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);

 

 SOAPEnvelope resEnvelope = resultContext.getEnvelope();

 SOAPBody body = resEnvelope.getBody();

 

 opClient.complete(resultContext);

 return
body;
} 
catch (AxisFault
e1) {

 e1.printStackTrace();

 throw new
AxisFault(e1.getMessage());
}
finally
{

 try {

   serviceClient.finalizeInvoke();

 } catch (AxisFault axisFault) {

 logger.error(axisFault.getMessage()
+ axisFault.toString());   


 } catch (Exception e) {

 logger.error(e.getMessage()
+ e.toString());

 }

 
}

Thanks,

Brian Bacsu


Re: [Axis2] Socket connection on Client and Server not disconnecting

2006-09-19 Thread robert lazarski

This is a known issue:

http://issues.apache.org/jira/browse/AXIS2-935

There is a patch submitted. If you could attach your test case to it
I'll take a look at the patch.

Robert

On 9/19/06, Brian Bacsu [EMAIL PROTECTED] wrote:


Hi,

We have implemented an Axis2 client to call web services exposed through
both .NET and Axis1 running on Microsoft Server 2003. I have encountered an
issue with the Axis2 client with regard to disconnecting the client and
server socket connections. The server-side connection will finally time-out
and drop (It looks like Microsoft Server will hang onto connections for 60
seconds, even after close requested), but the client side connections
continue to collect until the server begins to run out of
resources/connections. The client connections show CLOSE_WAIT status when
viewed with netstat .

Any suggestions would be appreciated.

Here is a sample of the client code:

 Options options = new Options();


options.setExceptionToBeThrownOnSOAPFault(Boolean.TRUE);

options.setTo(new EndpointReference(url.toString()));
ServiceClient serviceClient = null;
MessageContext requestContext =
CFWsoapClient.getMessageContext(OM_Msg,this,soapRoot, logger, traceLevel);
requestContext.setSoapAction(action);
try {

options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
options.setProperty(HTTPConstants.SO_TIMEOUT,1000);
options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT,
Boolean.FALSE);

options.setProperty(HTTPConstants.CONNECTION_TIMEOUT,
(int)timeout);

serviceClient = new ServiceClient();
serviceClient.setOptions(options);
OperationClient opClient =
serviceClient.createClient(ServiceClient.ANON_OUT_IN_OP);
opClient.addMessageContext(requestContext);
opClient.execute(true);

MessageContext resultContext =
opClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);

SOAPEnvelope resEnvelope = resultContext.getEnvelope();
SOAPBody body = resEnvelope.getBody();

opClient.complete(resultContext);
 return body;
}
catch (AxisFault e1) {
e1.printStackTrace();
throw new AxisFault(e1.getMessage());
}
 finally {
try {
serviceClient.finalizeInvoke();
} catch (AxisFault axisFault) {
logger.error(axisFault.getMessage() +
axisFault.toString());
} catch (Exception e) {
logger.error(e.getMessage() + e.toString());
}

}

Thanks,

 Brian Bacsu



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



Re: help with axis2

2006-09-19 Thread robert lazarski

em português ?

http://www.braziloutsource.com/wss2.html

Robert

On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
[EMAIL PROTECTED] wrote:



Can anyone help me with axis 2 please?? i use Axis 1.4 and try to move to 2
but i dont understand nothing from axis2, and the tutorial in axis site
isent so good..

anyone have a tutorial to send me??


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



Re: help with axis2

2006-09-19 Thread Fabio Alves de Araujo Ebner - DNA Solution
robert. i send an email to you gmail.. i hope that u can help me..

tks
- Original Message -
From: robert lazarski [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Tuesday, September 19, 2006 1:46 PM
Subject: Re: help with axis2


em português ?

http://www.braziloutsource.com/wss2.html

Robert

On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
[EMAIL PROTECTED] wrote:


 Can anyone help me with axis 2 please?? i use Axis 1.4 and try to move to
2
 but i dont understand nothing from axis2, and the tutorial in axis site
 isent so good..

 anyone have a tutorial to send me??

-
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: help with axis2

2006-09-19 Thread robert lazarski

Estou muito ocupado ... mas vou tentar , ok ? A primeira coisa, tem
que baixar a versão mais recente:

http://people.apache.org/dist/axis2/nightly/

Depois, se precisa ajuda, tem que passar seu wsdl e / ou um
stacktrace, e seu código.

Abrs.
Robert

On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
[EMAIL PROTECTED] wrote:

robert. i send an email to you gmail.. i hope that u can help me..

tks
- Original Message -
From: robert lazarski [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Tuesday, September 19, 2006 1:46 PM
Subject: Re: help with axis2


em português ?

http://www.braziloutsource.com/wss2.html

Robert

On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
[EMAIL PROTECTED] wrote:


 Can anyone help me with axis 2 please?? i use Axis 1.4 and try to move to
2
 but i dont understand nothing from axis2, and the tutorial in axis site
 isent so good..

 anyone have a tutorial to send me??

-
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 when running wsdl2java with axis2

2006-09-19 Thread Martin Gainty



All-
I came across 
this inconsistency with creating some Java Classes by using WSDL2Java for Axis 
2.1 here is the example
java -classpath 
C:\commons-policy\policy-1.0-bin\lib\policy-1.0.jar;C:\AXIS\Axis-2_1\classes;C:\AXIS\Axis-2_1\src\modules\codegen\target\classes;C:\AXIS\Axis-2_1\new_src\modules\common\target\classes;C:\AXIS\Axis-2_1\new_src\modules\codegen\target\classes;%CLASSPATH% 
org.apache.axis2.wsdl.WSDL2Java -uri file:///C:/AXIS/Axis-2_1/samples/transfer/transfer2.wsdl

produces 2 files
.\src\com\example\transfer_wsdl\WSTransferServiceStub.java
.\src\com\example\transfer-wsdl\WSTransferServiceCallbackHandler.java

compiling the first errorcomeswith the invocation 
of thetoEnvelope() method which has this 
signature
private org.apache.axiom.soap.SOAPEnvelope 
toEnvelope(org.apache.axiom.soap.SOAPFactory factory)
and is called in this manner
 
env = 
toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()), 
,param6 
,optimizeContent(new 
javax.xml.namespace.QName("","Put")));
as you can plainly see there isNO 3 arg toEnvelope method 
available 
this can be satisified if one constructs the SOAPFactory object before 
calling toEnvelopeand then passesthe factory asa param to 
toEnvelope(factory);the other error is considerably less intuitive as we 
see here during the constrution of OMSourcedElementImpl
new 
org.apache.axiom.om.impl.llom.OMSourcedElementImpl( 
MY_QNAME,factory,dataSource)

what is the signature of the constructor for 
OmSourcedElementImpl?

Compiled from "OMSourcedElementImpl.java"public class 
org.apache.axiom.om.impl.llom.OMSourcedElementImpl extends 
org.apache.axiom.om.impl.llom.OMElementImpl{/START 
CONSTRUCTOR */  public 
org.apache.axiom.om.impl.llom.OMSourcedElementImpl(java.lang.String, 
org.apache.axiom.om.OMNamespace, org.apache.axiom.om.OMFactory, 
org.apache.axiom.om.OMDataSource);/END 
CONSTRUCTOR/ 
so the method to construct only defines OMNamespace as 2nd param 
(without a hint on how to construct OMNamespace from QName)

public 
org.apache.axiom.om.impl.llom.OMSourcedElementImpl(java.lang.String,org.apache.axiom.om.OMNamespace, 
//BIG problem here
org.apache.axiom.om.OMFactory, 
org.apache.axiom.om.OMDataSource);

we have 2 of the 4 necessary params factory and 
dataSource*String I'll assume islocalName *how do we construct 
OMNamespace given the QName?
and ultimately construct OMSourcedElementImpl 
?

Ive seen discussion on adding QName as constructor 
arg to OMSourcedElementImpl but I havent seen the patch

Thanks,Martin 
--*This 
email message and any files transmitted with it contain 
confidentialinformation intended only for the person(s) to whom this email 
message isaddressed. If you have received this email message in error, 
please notifythe sender immediately by telephone or email and destroy the 
originalmessage without making a copy. Thank you.




Re: [Axis2] org.apache.axis2.engine.Service interface broken

2006-09-19 Thread Davanum Srinivas

JIRA *Please*!!!

-- dims

On 9/19/06, Michele Mazzucco [EMAIL PROTECTED] wrote:

Hi again,

some more information: the destroy() method seems to work properly.


Thanks,
Michele

Michele Mazzucco wrote:
 Hi all,

 I'm experiencing serious problems with the eager service initialization
 features provided by the Service interface (the service is deployed in
 application scope everything is correct in services.xml). I'm using the
 latest nightly build.

 1 - the 'init' method is called *only* if there's a static
 initialization elsewhere (i.e. a static block) -- so I guess the init()
 method is called *only* when the first request comes, and not at system
 startup as described into the documentation (and a service instance is
 created)
 2 - the startUp() method is *never* called, even if the
 parameter name=load-on-startup locked=falsetrue/parameter
 parameter is set into services.xml.
 Furthermore, if you set this argument, *2* service instances are created
 at system startup!. Again, if a static block is not present, nothing
 happens.


 Please find attached the simple service file (it's the sample service
 slightly modified) together with the configuration file.



 Thanks,
 Michele



 

 /*
  * Copyright 2001-2004 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the License);
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *  http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an AS IS BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 package userguide.example1;

 import java.net.URL;

 import org.apache.axiom.om.OMElement;
 import org.apache.axis2.AxisFault;
 import org.apache.axis2.context.ConfigurationContext;
 import org.apache.axis2.context.MessageContext;
 import org.apache.axis2.context.OperationContext;
 import org.apache.axis2.context.ServiceContext;
 import org.apache.axis2.description.AxisService;
 import org.apache.axis2.engine.Service;
 import org.apache.axis2.wsdl.WSDLConstants;
 import org.apache.log4j.Logger;
 import org.apache.log4j.PropertyConfigurator;


 /**
  * Created by IntelliJ IDEA.
  * User: Jaliya
  * Date: Jun 2, 2005
  * Time: 2:17:58 PM
  */
 public class MyService implements Service {

 private static Logger log;

 @SuppressWarnings(unused)
 private MessageContext ctx;

 private static int res;

/*
 static {
 log = Logger.getLogger(MyService.class);
 ClassLoader cl = MyService.class.getClassLoader();
 URL url = cl.getResource(/log4j.properties);
 PropertyConfigurator.configure(url);

 log.info(Static initialization);
 }
 */

 public MyService() {
 log.warn(== Instance created ==);
 }

 public OMElement echo(OMElement element) {
 //Praparing the OMElement so that it can be attached to another OM 
Tree.
 //First the OMElement should be completely build in case it is not 
fully built and still
 //some of the xml is in the stream.
 element.build();
 //Secondly the OMElement should be detached from the current OMTree 
so that it can be attached
 //some other OM Tree. Once detached the OmTree will remove its 
connections to this OMElement.
 element.detach();

 res++;
 element.addAttribute(result, String.valueOf(res), null);

 return element;
 }

 public void ping(OMElement element) {
 buildElement(element);
 //Do some processing
 }
 public void pingF(OMElement element) throws AxisFault{
 buildElement(element);
 throw new AxisFault(Fault being thrown);
 }

 private static void buildElement(OMElement element) {
 element.build();
 element.detach();
 }


 public void destroy(ServiceContext sc) {
 log.warn(Service is going to be destroyed!!!);
 }

 public void init(ServiceContext sc) {/*
 log = Logger.getLogger(MyService.class);
 ClassLoader cl = MyService.class.getClassLoader();
 URL url = cl.getResource(/log4j.properties);
 PropertyConfigurator.configure(url);

 res = 0;
 */
 log.info(init ===);
 }

 public void setOperationContext(OperationContext operationContext) {
 try {
 this.ctx = 
operationContext.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
 } catch (AxisFault e) {
 log.warn(e.getMessage());
 }
 }

 public void startUp(ConfigurationContext configctx, AxisService service) {


 log.info(Startup );
 }
 }


 

Fw: help

2006-09-19 Thread Fabio Alves de Araujo Ebner - DNA Solution



people i need help.. i cant do any ws in 
axis 2
i will list step by step what i 
do..

1º i create the .java

VerificaLogin.java
package agenteservidor;public class VerificaLogin { 
public boolean isLogin(String nome, String 
senha){ senha = senha + 
"aeee"; 
if((nome.equals("binhoca"))){ 
return true; 
} return 
false; }}
save in C:\ws
then i create the subdir Temp, so i have 
the :\ws\temp

2º c:\ws\javac VerificaLogin.java -d 
temp

3º Create in temp the directory 
META-INF\services.xml
serviceparameter 
name="VerificaLogin" 
locked="false"SimpleService/parameteroperation 
name="isLogin"messageReceiver 
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"//operation 
/service

4º in c:\ws\temp i create the .aar - :\ws\temp\jar cvf 
VerificaLogin.aar .

5º join Axis2 adm and upload the .aar file.. 

6º te error:

- error


 descriptionUnable to generate WSDL 
for this service/description 

 reasonEither user has not 
dropped the wsdl into META-INF or operations use message receivers other than 
RPC./reason 
 
/error


please
anyone help me

tks



Re: Fw: help

2006-09-19 Thread robert lazarski

Are you using the nightly ?

http://people.apache.org/dist/axis2/nightly/

Robert

On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
[EMAIL PROTECTED] wrote:



people i need help.. i cant do any ws in axis 2
i will list step by step what i do..

1º i create the .java

VerificaLogin.java
package agenteservidor;
public class VerificaLogin {
public boolean isLogin(String nome, String senha){
senha = senha + aeee;
if((nome.equals(binhoca))){
return true;
}
return false;
}
}
save in C:\ws
then i create the subdir Temp, so i have the :\ws\temp

2º c:\ws\javac VerificaLogin.java -d temp

3º Create in temp the directory META-INF\services.xml
service
 parameter name=VerificaLogin
locked=falseSimpleService/parameter
 operation name=isLogin
  messageReceiver
class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
 /operation
/service

4º in c:\ws\temp i create the .aar - :\ws\temp\jar cvf VerificaLogin.aar .

5º join Axis2 adm and upload the .aar file..

6º te error:

- error


  descriptionUnable to generate WSDL for this service/description

  reasonEither user has not dropped the wsdl into META-INF or operations
use message receivers other than RPC./reason
  /error


please
anyone help me

tks




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



Re: Fw: help

2006-09-19 Thread Fabio Alves de Araujo Ebner - DNA Solution
i use this tutorial -
http://www.wso2.net/tutorials/axis2/java/2006/05/29/hello-world
but when i try write my on ws.. i cant :(


- Original Message -
From: robert lazarski [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Tuesday, September 19, 2006 3:48 PM
Subject: Re: Fw: help


Are you using the nightly ?

http://people.apache.org/dist/axis2/nightly/

Robert

On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
[EMAIL PROTECTED] wrote:


 people i need help.. i cant do any ws in axis 2
 i will list step by step what i do..

 1º i create the .java

 VerificaLogin.java
 package agenteservidor;
 public class VerificaLogin {
 public boolean isLogin(String nome, String senha){
 senha = senha + aeee;
 if((nome.equals(binhoca))){
 return true;
 }
 return false;
 }
 }
 save in C:\ws
 then i create the subdir Temp, so i have the :\ws\temp

 2º c:\ws\javac VerificaLogin.java -d temp

 3º Create in temp the directory META-INF\services.xml
 service
  parameter name=VerificaLogin
 locked=falseSimpleService/parameter
  operation name=isLogin
   messageReceiver
 class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
  /operation
 /service

 4º in c:\ws\temp i create the .aar - :\ws\temp\jar cvf VerificaLogin.aar
.

 5º join Axis2 adm and upload the .aar file..

 6º te error:

 - error


   descriptionUnable to generate WSDL for this service/description

   reasonEither user has not dropped the wsdl into META-INF or operations
 use message receivers other than RPC./reason
   /error


 please
 anyone help me

 tks



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



Null pointer with SAXParserImpl in Java 1.4

2006-09-19 Thread Brian Preston
I searched for this in the archives and found the same problem, but it
was for Java 1.5. I'm using Java 1.4 within Websphere 6 and
getting this NullPointerException. The weird thing is it works
fine on my local WAS 6 server. I'm getting this problem when
trying to deploy to a remotely administered server. I'm in a big
company and have to fill out tickets and go through admins to get the
details on this, so it's slow going to find what the environment is
exactly like on the server where this problem is happening.

java.lang.NullPointerException
	at java.util.Hashtable.put(Hashtable.java(Compiled Code))
	
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(Unknown Source)
	
at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:246)
	
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
	
at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
	
at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
	
at org.apache.axis.client.Call.invoke(Call.java:2553)
	
at org.apache.axis.client.Call.invoke(Call.java:1672)


Anyone know how to fix this?

Thanks


Re: Fw: help

2006-09-19 Thread robert lazarski

There are bugs since the first release, you should use the nightly,
which is a more recent development version. The next release is
happening in a few weeks. Use the nightlies until then is my
recommendation.

Anyways, I do know in the nightlies the wsdl will be generated as this
is a FAQ:

http://www.wso2.net/kb/104

Furthermore, while the wsdl will be generated provided you follow
eexactly the requirements in the FAQ, the lack of a wsdl will _not_
prevent you from executing the service correctly.

Robert

On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
[EMAIL PROTECTED] wrote:

i use this tutorial -
http://www.wso2.net/tutorials/axis2/java/2006/05/29/hello-world
but when i try write my on ws.. i cant :(


- Original Message -
From: robert lazarski [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Tuesday, September 19, 2006 3:48 PM
Subject: Re: Fw: help


Are you using the nightly ?

http://people.apache.org/dist/axis2/nightly/

Robert

On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
[EMAIL PROTECTED] wrote:


 people i need help.. i cant do any ws in axis 2
 i will list step by step what i do..

 1º i create the .java

 VerificaLogin.java
 package agenteservidor;
 public class VerificaLogin {
 public boolean isLogin(String nome, String senha){
 senha = senha + aeee;
 if((nome.equals(binhoca))){
 return true;
 }
 return false;
 }
 }
 save in C:\ws
 then i create the subdir Temp, so i have the :\ws\temp

 2º c:\ws\javac VerificaLogin.java -d temp

 3º Create in temp the directory META-INF\services.xml
 service
  parameter name=VerificaLogin
 locked=falseSimpleService/parameter
  operation name=isLogin
   messageReceiver
 class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
  /operation
 /service

 4º in c:\ws\temp i create the .aar - :\ws\temp\jar cvf VerificaLogin.aar
.

 5º join Axis2 adm and upload the .aar file..

 6º te error:

 - error


   descriptionUnable to generate WSDL for this service/description

   reasonEither user has not dropped the wsdl into META-INF or operations
 use message receivers other than RPC./reason
   /error


 please
 anyone help me

 tks



-
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: Fw: help

2006-09-19 Thread Fabio Alves de Araujo Ebner - DNA Solution
i got the nightly and the error show again..
:(
- Original Message -
From: robert lazarski [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Tuesday, September 19, 2006 3:59 PM
Subject: Re: Fw: help


There are bugs since the first release, you should use the nightly,
which is a more recent development version. The next release is
happening in a few weeks. Use the nightlies until then is my
recommendation.

Anyways, I do know in the nightlies the wsdl will be generated as this
is a FAQ:

http://www.wso2.net/kb/104

Furthermore, while the wsdl will be generated provided you follow
eexactly the requirements in the FAQ, the lack of a wsdl will _not_
prevent you from executing the service correctly.

Robert

On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
[EMAIL PROTECTED] wrote:
 i use this tutorial -
 http://www.wso2.net/tutorials/axis2/java/2006/05/29/hello-world
 but when i try write my on ws.. i cant :(


 - Original Message -
 From: robert lazarski [EMAIL PROTECTED]
 To: axis-user@ws.apache.org
 Sent: Tuesday, September 19, 2006 3:48 PM
 Subject: Re: Fw: help


 Are you using the nightly ?

 http://people.apache.org/dist/axis2/nightly/

 Robert

 On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
 [EMAIL PROTECTED] wrote:
 
 
  people i need help.. i cant do any ws in axis 2
  i will list step by step what i do..
 
  1º i create the .java
 
  VerificaLogin.java
  package agenteservidor;
  public class VerificaLogin {
  public boolean isLogin(String nome, String senha){
  senha = senha + aeee;
  if((nome.equals(binhoca))){
  return true;
  }
  return false;
  }
  }
  save in C:\ws
  then i create the subdir Temp, so i have the :\ws\temp
 
  2º c:\ws\javac VerificaLogin.java -d temp
 
  3º Create in temp the directory META-INF\services.xml
  service
   parameter name=VerificaLogin
  locked=falseSimpleService/parameter
   operation name=isLogin
messageReceiver
  class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
   /operation
  /service
 
  4º in c:\ws\temp i create the .aar - :\ws\temp\jar cvf
VerificaLogin.aar
 .
 
  5º join Axis2 adm and upload the .aar file..
 
  6º te error:
 
  - error
 
 
descriptionUnable to generate WSDL for this service/description
 
reasonEither user has not dropped the wsdl into META-INF or
operations
  use message receivers other than RPC./reason
/error
 
 
  please
  anyone help me
 
  tks
 
 

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


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



[Axis2] Axis Fault

2006-09-19 Thread Punnoose, Roshan

Hi,

When my client is parsing a SOAP fault, he generates this error:

org.apache.axiom.om.OMException: java.lang.IllegalStateException:
Current state not START_ELEMENT

It seems like Axiom doesn't parse the soap fault well. Any ideas?

Roshan Punnoose
Phone: 301-497-6039

BEGIN:VCARD
VERSION:2.1
N:Punnoose;Roshan
FN:Punnoose, Roshan
ADR;WORK:;2115
LABEL;WORK:2115
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050413T183207Z
END:VCARD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Setting the Content-ID header for an MTOM attachment

2006-09-19 Thread Thilina Gunarathne

Hi Yoram,
You can use the OMText.getContentId()  to request the content id,
given that OMText object contains the binary attachment you want to
send.

What is you use case..When using MTOM Axis2 will take care of  putting
the content-id in to the SOAP request appropriately according to the
specification, so that the server knows where the attachment is. I
don't see why somebody needs to access the content-id manually.

~Thilina

On 9/19/06, Yoram Givon [EMAIL PROTECTED] wrote:





Hi All,



I am using Axis2 to create a SOAP request to a web service which performs
Transcoding of a file I attached to the SOAP message using MTOM.



My only problem is that I also have to pass the content-id of the attachment
as part of the SOAP request so the server will know where the file is.



I have searched through the mailing list and the internet and was not able
so far to find a method to set the content-id header for an MTOM attachment.



Does any one know if there is a way to set the content-id header of an MTOM
attachment?



Cheers,



Yoram



--
http://webservices.apache.org/~thilina/
http://thilinag.blogspot.com/

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



Re: Null pointer with SAXParserImpl in Java 1.4

2006-09-19 Thread Davanum Srinivas

Try throwing in latest xerces jar in WEB-INF/lib and set the service
class loader order to Parent last

-- dims

On 9/19/06, Brian Preston [EMAIL PROTECTED] wrote:

I searched for this in the archives and found the same problem, but it was
for Java 1.5.  I'm using Java 1.4 within Websphere 6 and getting this
NullPointerException.  The weird thing is it works fine on my local WAS 6
server.  I'm getting this problem when trying to deploy to a remotely
administered server.  I'm in a big company and have to fill out tickets and
go through admins to get the details on this, so it's slow going to find
what the environment is exactly like on the server where this problem is
happening.

 java.lang.NullPointerException at
java.util.Hashtable.put(Hashtable.java(Compiled Code))
 at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(Unknown
Source)
 at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:246)
 at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
 at
org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
 at
org.apache.axis.client.Call.invokeEngine(Call.java:2583)
 at org.apache.axis.client.Call.invoke(Call.java:2553)
 at org.apache.axis.client.Call.invoke(Call.java:1672)

 Anyone know how to fix this?

 Thanks




--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



Re: [Axis2] Axis Fault

2006-09-19 Thread Davanum Srinivas

My hands are aching typing the same thing :)

Use Nightly, If you still see the problem, log a bug with your
wsdl/xsd, soap request/response, code to recreate the problem.

thanks,
dims

On 9/19/06, Punnoose, Roshan [EMAIL PROTECTED] wrote:


Hi,

When my client is parsing a SOAP fault, he generates this error:

org.apache.axiom.om.OMException: java.lang.IllegalStateException:
Current state not START_ELEMENT

It seems like Axiom doesn't parse the soap fault well. Any ideas?

Roshan Punnoose
Phone: 301-497-6039



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






--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



Re: Fw: help

2006-09-19 Thread robert lazarski

You have a few typos. You have:

service
parameter name=VerificaLogin locked=falseSimpleService/parameter
operation name=isLogin
 messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
/operation
/service

Try this:

service
parameter name=ServiceClass
 locked=falseagenteservidor.SimpleService/parameter
operation name=isLogin
messageReceiver 
class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
/operation
/service

HTH,
Robert





On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
[EMAIL PROTECTED] wrote:

i got the nightly and the error show again..
:(
- Original Message -
From: robert lazarski [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Tuesday, September 19, 2006 3:59 PM
Subject: Re: Fw: help


There are bugs since the first release, you should use the nightly,
which is a more recent development version. The next release is
happening in a few weeks. Use the nightlies until then is my
recommendation.

Anyways, I do know in the nightlies the wsdl will be generated as this
is a FAQ:

http://www.wso2.net/kb/104

Furthermore, while the wsdl will be generated provided you follow
eexactly the requirements in the FAQ, the lack of a wsdl will _not_
prevent you from executing the service correctly.

Robert

On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
[EMAIL PROTECTED] wrote:
 i use this tutorial -
 http://www.wso2.net/tutorials/axis2/java/2006/05/29/hello-world
 but when i try write my on ws.. i cant :(


 - Original Message -
 From: robert lazarski [EMAIL PROTECTED]
 To: axis-user@ws.apache.org
 Sent: Tuesday, September 19, 2006 3:48 PM
 Subject: Re: Fw: help


 Are you using the nightly ?

 http://people.apache.org/dist/axis2/nightly/

 Robert

 On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
 [EMAIL PROTECTED] wrote:
 
 
  people i need help.. i cant do any ws in axis 2
  i will list step by step what i do..
 
  1º i create the .java
 
  VerificaLogin.java
  package agenteservidor;
  public class VerificaLogin {
  public boolean isLogin(String nome, String senha){
  senha = senha + aeee;
  if((nome.equals(binhoca))){
  return true;
  }
  return false;
  }
  }
  save in C:\ws
  then i create the subdir Temp, so i have the :\ws\temp
 
  2º c:\ws\javac VerificaLogin.java -d temp
 
  3º Create in temp the directory META-INF\services.xml
  service
   parameter name=VerificaLogin
  locked=falseSimpleService/parameter
   operation name=isLogin
messageReceiver
  class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
   /operation
  /service
 
  4º in c:\ws\temp i create the .aar - :\ws\temp\jar cvf
VerificaLogin.aar
 .
 
  5º join Axis2 adm and upload the .aar file..
 
  6º te error:
 
  - error
 
 
descriptionUnable to generate WSDL for this service/description
 
reasonEither user has not dropped the wsdl into META-INF or
operations
  use message receivers other than RPC./reason
/error
 
 
  please
  anyone help me
 
  tks
 
 

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


-
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: Fw: help

2006-09-19 Thread Thilina Gunarathne

parameter name=VerificaLogin locked=falseSimpleService/parameter

Problem seems to be with the above line in you services.xml.

Change it to,
parameter name=ServiceClass
 locked=falseagenteservidor.VerificaLogin/parameter

HTH,
Thilina


On 9/20/06, Fabio Alves de Araujo Ebner - DNA Solution
[EMAIL PROTECTED] wrote:

i got the nightly and the error show again..
:(
- Original Message -
From: robert lazarski [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Tuesday, September 19, 2006 3:59 PM
Subject: Re: Fw: help


There are bugs since the first release, you should use the nightly,
which is a more recent development version. The next release is
happening in a few weeks. Use the nightlies until then is my
recommendation.

Anyways, I do know in the nightlies the wsdl will be generated as this
is a FAQ:

http://www.wso2.net/kb/104

Furthermore, while the wsdl will be generated provided you follow
eexactly the requirements in the FAQ, the lack of a wsdl will _not_
prevent you from executing the service correctly.

Robert

On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
[EMAIL PROTECTED] wrote:
 i use this tutorial -
 http://www.wso2.net/tutorials/axis2/java/2006/05/29/hello-world
 but when i try write my on ws.. i cant :(


 - Original Message -
 From: robert lazarski [EMAIL PROTECTED]
 To: axis-user@ws.apache.org
 Sent: Tuesday, September 19, 2006 3:48 PM
 Subject: Re: Fw: help


 Are you using the nightly ?

 http://people.apache.org/dist/axis2/nightly/

 Robert

 On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
 [EMAIL PROTECTED] wrote:
 
 
  people i need help.. i cant do any ws in axis 2
  i will list step by step what i do..
 
  1º i create the .java
 
  VerificaLogin.java
  package agenteservidor;
  public class VerificaLogin {
  public boolean isLogin(String nome, String senha){
  senha = senha + aeee;
  if((nome.equals(binhoca))){
  return true;
  }
  return false;
  }
  }
  save in C:\ws
  then i create the subdir Temp, so i have the :\ws\temp
 
  2º c:\ws\javac VerificaLogin.java -d temp
 
  3º Create in temp the directory META-INF\services.xml
  service
   parameter name=VerificaLogin
  locked=falseSimpleService/parameter
   operation name=isLogin
messageReceiver
  class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
   /operation
  /service
 
  4º in c:\ws\temp i create the .aar - :\ws\temp\jar cvf
VerificaLogin.aar
 .
 
  5º join Axis2 adm and upload the .aar file..
 
  6º te error:
 
  - error
 
 
descriptionUnable to generate WSDL for this service/description
 
reasonEither user has not dropped the wsdl into META-INF or
operations
  use message receivers other than RPC./reason
/error
 
 
  please
  anyone help me
 
  tks
 
 

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


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





--
http://webservices.apache.org/~thilina/
http://thilinag.blogspot.com/

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



Re: [Axis2] Socket connection on Client and Server not disconnecting

2006-09-19 Thread Brian Bacsu

Robert

Is this an issue with ServiceClient's
finalizeInvoke() method not properly cleaning up the connection? Would
I experience the same socket resource starvation with Axis2 if I reverted
to a simpler implementation using the ServiceClient.sendReceive() method,
rather than the OperationClient.execute() method?

Thanks,

Brian Bacsu






robert lazarski
[EMAIL PROTECTED] 
09/19/2006 01:42 PM



Please respond to
axis-user@ws.apache.org





To
axis-user@ws.apache.org


cc



Subject
Re: [Axis2] Socket connection on Client
and Server not disconnecting








This is a known issue:

http://issues.apache.org/jira/browse/AXIS2-935

There is a patch submitted. If you could attach your test case to it
I'll take a look at the patch.

Robert

On 9/19/06, Brian Bacsu [EMAIL PROTECTED] wrote:

 Hi,

 We have implemented an Axis2 client to call web services exposed through
 both .NET and Axis1 running on Microsoft Server 2003. I have encountered
an
 issue with the Axis2 client with regard to disconnecting the client
and
 server socket connections. The server-side connection will finally
time-out
 and drop (It looks like Microsoft Server will hang onto connections
for 60
 seconds, even after close requested), but the client side connections
 continue to collect until the server begins to run out of
 resources/connections. The client connections show CLOSE_WAIT status
when
 viewed with netstat .

 Any suggestions would be appreciated.

 Here is a sample of the client code:

 Options options = new Options();


 options.setExceptionToBeThrownOnSOAPFault(Boolean.TRUE);

 options.setTo(new EndpointReference(url.toString()));
 ServiceClient serviceClient = null;
 MessageContext requestContext =
 CFWsoapClient.getMessageContext(OM_Msg,this,soapRoot, logger, traceLevel);
 requestContext.setSoapAction(action);
 try {

   options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
   options.setProperty(HTTPConstants.SO_TIMEOUT,1000);
   options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT,
 Boolean.FALSE);

 options.setProperty(HTTPConstants.CONNECTION_TIMEOUT,
 (int)timeout);

   serviceClient = new ServiceClient();
   serviceClient.setOptions(options);
   OperationClient opClient
=
 serviceClient.createClient(ServiceClient.ANON_OUT_IN_OP);
   opClient.addMessageContext(requestContext);
   opClient.execute(true);

   MessageContext resultContext
=
 opClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);

   SOAPEnvelope resEnvelope
= resultContext.getEnvelope();
   SOAPBody body = resEnvelope.getBody();

   opClient.complete(resultContext);
   return body;
 }
 catch (AxisFault e1) {
   e1.printStackTrace();
   throw new AxisFault(e1.getMessage());
 }
 finally {
   try {
 serviceClient.finalizeInvoke();
   } catch (AxisFault axisFault)
{
  
logger.error(axisFault.getMessage() +
 axisFault.toString());
   } catch (Exception e) {
  
logger.error(e.getMessage() + e.toString());
   }

 }

 Thanks,

 Brian Bacsu


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




Re: Fw: help

2006-09-19 Thread Fabio Alves de Araujo Ebner - DNA Solution
now i got





type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.axis2.AxisFault: null; nested exception is:
java.lang.NullPointerException
org.apache.axis2.description.AxisService.getWSDL(AxisService.java:654)
org.apache.axis2.description.AxisService.printWSDL(AxisService.java:540)

org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent
.java:167)
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:165)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.17 logs.

robert se liga.. estou precisando de alguem para dar um curso aqui no meu
trampo disso. ta afim de ganhar uma grana???

- Original Message -
From: robert lazarski [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Tuesday, September 19, 2006 4:11 PM
Subject: Re: Fw: help


You have a few typos. You have:

service
 parameter name=VerificaLogin locked=falseSimpleService/parameter
 operation name=isLogin
  messageReceiver
class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
 /operation
/service

Try this:

service
parameter name=ServiceClass
  locked=falseagenteservidor.SimpleService/parameter
operation name=isLogin
messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
/operation
/service

HTH,
Robert





On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
[EMAIL PROTECTED] wrote:
 i got the nightly and the error show again..
 :(
 - Original Message -
 From: robert lazarski [EMAIL PROTECTED]
 To: axis-user@ws.apache.org
 Sent: Tuesday, September 19, 2006 3:59 PM
 Subject: Re: Fw: help


 There are bugs since the first release, you should use the nightly,
 which is a more recent development version. The next release is
 happening in a few weeks. Use the nightlies until then is my
 recommendation.

 Anyways, I do know in the nightlies the wsdl will be generated as this
 is a FAQ:

 http://www.wso2.net/kb/104

 Furthermore, while the wsdl will be generated provided you follow
 eexactly the requirements in the FAQ, the lack of a wsdl will _not_
 prevent you from executing the service correctly.

 Robert

 On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
 [EMAIL PROTECTED] wrote:
  i use this tutorial -
  http://www.wso2.net/tutorials/axis2/java/2006/05/29/hello-world
  but when i try write my on ws.. i cant :(
 
 
  - Original Message -
  From: robert lazarski [EMAIL PROTECTED]
  To: axis-user@ws.apache.org
  Sent: Tuesday, September 19, 2006 3:48 PM
  Subject: Re: Fw: help
 
 
  Are you using the nightly ?
 
  http://people.apache.org/dist/axis2/nightly/
 
  Robert
 
  On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
  [EMAIL PROTECTED] wrote:
  
  
   people i need help.. i cant do any ws in axis 2
   i will list step by step what i do..
  
   1º i create the .java
  
   VerificaLogin.java
   package agenteservidor;
   public class VerificaLogin {
   public boolean isLogin(String nome, String senha){
   senha = senha + aeee;
   if((nome.equals(binhoca))){
   return true;
   }
   return false;
   }
   }
   save in C:\ws
   then i create the subdir Temp, so i have the :\ws\temp
  
   2º c:\ws\javac VerificaLogin.java -d temp
  
   3º Create in temp the directory META-INF\services.xml
   service
parameter name=VerificaLogin
   locked=falseSimpleService/parameter
operation name=isLogin
 messageReceiver
   class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
/operation
   /service
  
   4º in c:\ws\temp i create the .aar - :\ws\temp\jar cvf
 VerificaLogin.aar
  .
  
   5º join Axis2 adm and upload the .aar file..
  
   6º te error:
  
   - error
  
  
 descriptionUnable to generate WSDL for this service/description
  
 reasonEither user has not dropped the wsdl into META-INF or
 operations
   use message receivers other than RPC./reason
 /error
  
  
   please
   anyone help me
  
   tks
  
  
 
  -
  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]


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




RE: [Axis2] Socket connection on Client and Server not disconnect ing

2006-09-19 Thread Pader, Erwin



one of 
the workaround i did to clean up conn and invalidate sessions is to add a custom 
handler in axis2.xml (phase operation in phase).the custom handler 
gets a reference to the messagecontext thru the invoke method. you can get 
the session context from msg context and invalidate your 
session.

code 
snippet:

 public void invoke(MessageContext msgContext) throws 
AxisFault { SessionContext 
sessionContext = 
msgContext.getSessionContext(); 
Object obj = 
msgContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST); 
if (obj != null) { 
HttpServletRequest request = (HttpServletRequest) 
obj; 
request.getSession().invalidate(); 
} }

  -Original Message-From: Brian Bacsu 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, September 19, 2006 3:16 
  PMTo: axis-user@ws.apache.orgSubject: Re: [Axis2] Socket 
  connection on Client and Server not 
  disconnectingRobert Is this an issue 
  with ServiceClient's finalizeInvoke() method not properly cleaning up the 
  connection? Would I experience the same socket resource starvation with 
  Axis2 if I reverted to a simpler implementation using the 
  ServiceClient.sendReceive() method, rather than the OperationClient.execute() 
  method? Thanks,Brian 
  Bacsu
  


  "robert lazarski" 
[EMAIL PROTECTED] 
09/19/2006 01:42 PM 

  
  

  Please respond 
  toaxis-user@ws.apache.org
  

  
  

  To
axis-user@ws.apache.org 
  

  cc

  

  Subject
Re: [Axis2] Socket connection on 
  Client and Server not disconnecting

  
  

This is a known 
  issue:http://issues.apache.org/jira/browse/AXIS2-935There is a 
  patch submitted. If you could attach your test case to itI'll take a look 
  at the patch.RobertOn 9/19/06, Brian Bacsu 
  [EMAIL PROTECTED] wrote: Hi, We have 
  implemented an Axis2 client to call web services exposed through both 
  .NET and Axis1 running on Microsoft Server 2003. I have encountered an 
  issue with the Axis2 client with regard to disconnecting the client 
  and server socket connections. The server-side connection will finally 
  time-out and drop (It looks like Microsoft Server will hang onto 
  connections for 60 seconds, even after close requested), but the 
  client side connections continue to collect until the server begins to 
  run out of resources/connections. The client connections show 
  CLOSE_WAIT status when viewed with netstat . Any 
  suggestions would be appreciated. Here is a sample of the 
  client code: Options options 
  = new Options(); 
  options.setExceptionToBeThrownOnSOAPFault(Boolean.TRUE); 
  options.setTo(new 
  EndpointReference(url.toString())); 
  ServiceClient serviceClient = null; 
  MessageContext requestContext = 
  CFWsoapClient.getMessageContext(OM_Msg,this,soapRoot, logger, 
  traceLevel); 
  requestContext.setSoapAction(action); try 
  {   
  options.setTransportInProtocol(Constants.TRANSPORT_HTTP);  
   
  options.setProperty(HTTPConstants.SO_TIMEOUT,1000);   
  
  options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, 
  Boolean.FALSE); 
  options.setProperty(HTTPConstants.CONNECTION_TIMEOUT, 
  (int)timeout);   
  serviceClient = new ServiceClient(); 
serviceClient.setOptions(options);
 OperationClient opClient = 
  serviceClient.createClient(ServiceClient.ANON_OUT_IN_OP);  
   
  opClient.addMessageContext(requestContext);
 opClient.execute(true);   
  MessageContext resultContext = 
  opClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE); 
SOAPEnvelope resEnvelope = 
  resultContext.getEnvelope();   
  SOAPBody body = resEnvelope.getBody();
 opClient.complete(resultContext);   
  return body;
   } catch (AxisFault e1) { 
e1.printStackTrace();  
   throw new 
  AxisFault(e1.getMessage()); } 
  finally {
 try {   
serviceClient.finalizeInvoke();
 } catch (AxisFault axisFault) {   
  
  logger.error(axisFault.getMessage() + axisFault.toString()); 
} catch (Exception e) { 

  logger.error(e.getMessage() + e.toString());
 } 
  } Thanks, Brian 
  Bacsu-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For additional 
  commands, e-mail: 
[EMAIL PROTECTED]


Re: Fw: help

2006-09-19 Thread robert lazarski

Cara, tenho 5 projetos no mesmo tempo ;-) . Se tiver problemas ainda
podemos conversar.

Post your entire tomcat/logs/catalina.out , your entire services.xml ,
and your entire class agenteservidor.SimpleService . We'll probably
figure out the problem from there.

Robert

On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
[EMAIL PROTECTED] wrote:

now i got





type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.axis2.AxisFault: null; nested exception is:
java.lang.NullPointerException
org.apache.axis2.description.AxisService.getWSDL(AxisService.java:654)
org.apache.axis2.description.AxisService.printWSDL(AxisService.java:540)

org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent
.java:167)
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:165)
javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.17 logs.

robert se liga.. estou precisando de alguem para dar um curso aqui no meu
trampo disso. ta afim de ganhar uma grana???

- Original Message -
From: robert lazarski [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Tuesday, September 19, 2006 4:11 PM
Subject: Re: Fw: help


You have a few typos. You have:

service
 parameter name=VerificaLogin locked=falseSimpleService/parameter
 operation name=isLogin
  messageReceiver
class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
 /operation
/service

Try this:

service
parameter name=ServiceClass
  locked=falseagenteservidor.SimpleService/parameter
operation name=isLogin
messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
/operation
/service

HTH,
Robert





On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
[EMAIL PROTECTED] wrote:
 i got the nightly and the error show again..
 :(
 - Original Message -
 From: robert lazarski [EMAIL PROTECTED]
 To: axis-user@ws.apache.org
 Sent: Tuesday, September 19, 2006 3:59 PM
 Subject: Re: Fw: help


 There are bugs since the first release, you should use the nightly,
 which is a more recent development version. The next release is
 happening in a few weeks. Use the nightlies until then is my
 recommendation.

 Anyways, I do know in the nightlies the wsdl will be generated as this
 is a FAQ:

 http://www.wso2.net/kb/104

 Furthermore, while the wsdl will be generated provided you follow
 eexactly the requirements in the FAQ, the lack of a wsdl will _not_
 prevent you from executing the service correctly.

 Robert

 On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
 [EMAIL PROTECTED] wrote:
  i use this tutorial -
  http://www.wso2.net/tutorials/axis2/java/2006/05/29/hello-world
  but when i try write my on ws.. i cant :(
 
 
  - Original Message -
  From: robert lazarski [EMAIL PROTECTED]
  To: axis-user@ws.apache.org
  Sent: Tuesday, September 19, 2006 3:48 PM
  Subject: Re: Fw: help
 
 
  Are you using the nightly ?
 
  http://people.apache.org/dist/axis2/nightly/
 
  Robert
 
  On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
  [EMAIL PROTECTED] wrote:
  
  
   people i need help.. i cant do any ws in axis 2
   i will list step by step what i do..
  
   1º i create the .java
  
   VerificaLogin.java
   package agenteservidor;
   public class VerificaLogin {
   public boolean isLogin(String nome, String senha){
   senha = senha + aeee;
   if((nome.equals(binhoca))){
   return true;
   }
   return false;
   }
   }
   save in C:\ws
   then i create the subdir Temp, so i have the :\ws\temp
  
   2º c:\ws\javac VerificaLogin.java -d temp
  
   3º Create in temp the directory META-INF\services.xml
   service
parameter name=VerificaLogin
   locked=falseSimpleService/parameter
operation name=isLogin
 messageReceiver
   class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
/operation
   /service
  
   4º in c:\ws\temp i create the .aar - :\ws\temp\jar cvf
 VerificaLogin.aar
  .
  
   5º join Axis2 adm and upload the .aar file..
  
   6º te error:
  
   - error
  
  
 descriptionUnable to generate WSDL for this service/description
  
 reasonEither user has not dropped the wsdl into META-INF or
 operations
   use message receivers other than RPC./reason
 /error
  
  
   please
   anyone help me
  
   tks
  
  
 
  -
  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: Setting the Content-ID header for an MTOM attachment

2006-09-19 Thread Yoram Givon

The reason I need to set the content-ID is that the Transcoding
web-service uses the content-id header to identify the attached content.
When the MTOM engine generates the content-id for me, there is no way
for me to tell the web service where the content is.

When I used axis 1.4 for the same goal I just added an AttachmentPart
and then set the setConentID for it.

I was just not able to find the equivalent way to do it with Axis2.

Cheers,
Yoram

-Original Message-
From: Thilina Gunarathne [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 19, 2006 12:05 PM
To: axis-user@ws.apache.org
Subject: Re: Setting the Content-ID header for an MTOM attachment

Hi Yoram,
You can use the OMText.getContentId()  to request the content id,
given that OMText object contains the binary attachment you want to
send.

What is you use case..When using MTOM Axis2 will take care of  putting
the content-id in to the SOAP request appropriately according to the
specification, so that the server knows where the attachment is. I
don't see why somebody needs to access the content-id manually.

~Thilina

On 9/19/06, Yoram Givon [EMAIL PROTECTED] wrote:




 Hi All,



 I am using Axis2 to create a SOAP request to a web service which
performs
 Transcoding of a file I attached to the SOAP message using MTOM.



 My only problem is that I also have to pass the content-id of the
attachment
 as part of the SOAP request so the server will know where the file is.



 I have searched through the mailing list and the internet and was not
able
 so far to find a method to set the content-id header for an MTOM
attachment.



 Does any one know if there is a way to set the content-id header of an
MTOM
 attachment?



 Cheers,



 Yoram


-- 
http://webservices.apache.org/~thilina/
http://thilinag.blogspot.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]



Re: Fw: help

2006-09-19 Thread Fabio Alves de Araujo Ebner - DNA Solution
e vc conhece alguem q manje legal de axis2 e possa ministrar um curso?? de
um fds ou dois no maximo.. se vc tiver interesse e so avisar podemos
conversar a respeito

--- java
package agenteservidor;

/**
 *
 * @author Administrador
 */
public class VerificaLogin {
public boolean isLogin(String nome){
if((nome.equals(binhoca))){
return true;
}
return false;
}
}

---xml
service
parameter name=VerificaLogin
  locked=falseagenteservidor.VerificaLogin/parameter
operation name=isLogin
messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
/operation
/service

- log
19/09/2006 16:42:14 org.apache.catalina.core.StandardWrapperValve invoke
WARNING: Servlet.service() for servlet AxisServlet threw exception
org.apache.axis2.AxisFault: null; nested exception is:
 java.lang.NullPointerException
 at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:654)
 at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:540)
 at
org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent
.java:167)
 at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:165)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
 at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
 at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(Http11BaseProtocol.java:664)
 at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)
 at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:80)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)
 at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
 at
org.apache.axis2.description.AxisService2OM.generateOM(AxisService2OM.java:1
15)
 at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:649)
 ... 19 more
19/09/2006 16:42:14 org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been called
for this response
 at org.apache.catalina.connector.Response.getWriter(Response.java:599)
 at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:1
95)
 at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124)
 at
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117)
 at
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191)
 at
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFacto
ryImpl.java:115)
 at
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.j
ava:75)
 at
org.apache.jsp.axis2_002dweb.Error.error500_jsp._jspService(error500_jsp.jav
a:97)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
32)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
 at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:672)
 at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDis
patcher.java:465)
 at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:398)
 at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:301)
 at
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363
)
 at
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284
)
 at
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:
228)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134
)
 at

Re: Fw: help

2006-09-19 Thread robert lazarski

This is wrong:

parameter name=VerificaLogin

It _must_ be ServiceClass _always_ .

Change the entire services.xml to:

service
parameter name=ServiceClass
locked=falseagenteservidor.VerificaLogin/parameter
operation name=isLogin
messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
/operation
/service

Você mora em qual estado ? Moro em Fortaleza.

Robert

On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
[EMAIL PROTECTED] wrote:

e vc conhece alguem q manje legal de axis2 e possa ministrar um curso?? de
um fds ou dois no maximo.. se vc tiver interesse e so avisar podemos
conversar a respeito

--- java
package agenteservidor;

/**
 *
 * @author Administrador
 */
public class VerificaLogin {
public boolean isLogin(String nome){
if((nome.equals(binhoca))){
return true;
}
return false;
}
}

---xml
service
parameter name=VerificaLogin
  locked=falseagenteservidor.VerificaLogin/parameter
operation name=isLogin
messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
/operation
/service

- log
19/09/2006 16:42:14 org.apache.catalina.core.StandardWrapperValve invoke
WARNING: Servlet.service() for servlet AxisServlet threw exception
org.apache.axis2.AxisFault: null; nested exception is:
 java.lang.NullPointerException
 at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:654)
 at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:540)
 at
org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent
.java:167)
 at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:165)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)
 at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
 at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(Http11BaseProtocol.java:664)
 at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)
 at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:80)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)
 at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
 at
org.apache.axis2.description.AxisService2OM.generateOM(AxisService2OM.java:1
15)
 at org.apache.axis2.description.AxisService.getWSDL(AxisService.java:649)
 ... 19 more
19/09/2006 16:42:14 org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been called
for this response
 at org.apache.catalina.connector.Response.getWriter(Response.java:599)
 at
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:1
95)
 at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124)
 at
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117)
 at
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191)
 at
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFacto
ryImpl.java:115)
 at
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.j
ava:75)
 at
org.apache.jsp.axis2_002dweb.Error.error500_jsp._jspService(error500_jsp.jav
a:97)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
32)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
 at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:672)
 at
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDis
patcher.java:465)
 at

Re: Setting the Content-ID header for an MTOM attachment

2006-09-19 Thread Davanum Srinivas

Thilina,

Can Yoram write a custom handler, get access to the message context
and use the following method in MessageContext to set a custom
attachment?

public void addAttachment(String contentID, DataHandler dataHandler)

-- dims

On 9/19/06, Yoram Givon [EMAIL PROTECTED] wrote:


The reason I need to set the content-ID is that the Transcoding
web-service uses the content-id header to identify the attached content.
When the MTOM engine generates the content-id for me, there is no way
for me to tell the web service where the content is.

When I used axis 1.4 for the same goal I just added an AttachmentPart
and then set the setConentID for it.

I was just not able to find the equivalent way to do it with Axis2.

Cheers,
Yoram

-Original Message-
From: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 19, 2006 12:05 PM
To: axis-user@ws.apache.org
Subject: Re: Setting the Content-ID header for an MTOM attachment

Hi Yoram,
You can use the OMText.getContentId()  to request the content id,
given that OMText object contains the binary attachment you want to
send.

What is you use case..When using MTOM Axis2 will take care of  putting
the content-id in to the SOAP request appropriately according to the
specification, so that the server knows where the attachment is. I
don't see why somebody needs to access the content-id manually.

~Thilina

On 9/19/06, Yoram Givon [EMAIL PROTECTED] wrote:




 Hi All,



 I am using Axis2 to create a SOAP request to a web service which
performs
 Transcoding of a file I attached to the SOAP message using MTOM.



 My only problem is that I also have to pass the content-id of the
attachment
 as part of the SOAP request so the server will know where the file is.



 I have searched through the mailing list and the internet and was not
able
 so far to find a method to set the content-id header for an MTOM
attachment.



 Does any one know if there is a way to set the content-id header of an
MTOM
 attachment?



 Cheers,



 Yoram


--
http://webservices.apache.org/~thilina/
http://thilinag.blogspot.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]





--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



Re: [Axis2] Socket connection on Client and Server not disconnecting

2006-09-19 Thread robert lazarski
I think its an internal axis2 issue in that the httpclient call needs
to invoke closeIdleConnections() . I've battled CLOSE_WAIT issues a few
times and I think I know what's happening. If you attach your source
here, and attach your netstat output along with how long the CLOSE_WAIT
condition lasts, I'll try and reproduce the error and then try to fix
it. 

Robert On 9/19/06, Brian Bacsu [EMAIL PROTECTED] wrote:

Robert

Is this an issue with ServiceClient's
finalizeInvoke() method not properly cleaning up the connection? Would
I experience the same socket resource starvation with Axis2 if I reverted
to a simpler implementation using the ServiceClient.sendReceive() method,
rather than the OperationClient.execute() method?

Thanks,

Brian Bacsu






robert lazarski
[EMAIL PROTECTED] 
09/19/2006 01:42 PM



Please respond to
axis-user@ws.apache.org





To
axis-user@ws.apache.org


cc

  


Subject
Re: [Axis2] Socket connection on Client
and Server not disconnecting




  





This is a known issue:

http://issues.apache.org/jira/browse/AXIS2-935

There is a patch submitted. If you could attach your test case to it
I'll take a look at the patch.

Robert

On 9/19/06, Brian Bacsu [EMAIL PROTECTED] wrote:

 Hi,

 We have implemented an Axis2 client to call web services exposed through
 both .NET and Axis1 running on Microsoft Server 2003. I have encountered
an
 issue with the Axis2 client with regard to disconnecting the client
and
 server socket connections. The server-side connection will finally
time-out
 and drop (It looks like Microsoft Server will hang onto connections
for 60
 seconds, even after close requested), but the client side connections
 continue to collect until the server begins to run out of
 resources/connections. The client connections show CLOSE_WAIT status
when
 viewed with netstat .

 Any suggestions would be appreciated.

 Here is a sample of the client code:

 Options options = new Options();


 options.setExceptionToBeThrownOnSOAPFault(Boolean.TRUE);

 options.setTo(new EndpointReference(url.toString()));
 ServiceClient serviceClient = null;
 MessageContext requestContext =
 CFWsoapClient.getMessageContext(OM_Msg,this,soapRoot, logger, traceLevel);
 requestContext.setSoapAction(action);
 try {

   options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
   options.setProperty(HTTPConstants.SO_TIMEOUT,1000);
   options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT,
 Boolean.FALSE);

 options.setProperty(HTTPConstants.CONNECTION_TIMEOUT,
 (int)timeout);

   serviceClient = new ServiceClient();
   serviceClient.setOptions(options);
   OperationClient opClient
=
 serviceClient.createClient(ServiceClient.ANON_OUT_IN_OP);
   opClient.addMessageContext(requestContext);
   opClient.execute(true);

   MessageContext resultContext
=
 opClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);

   SOAPEnvelope resEnvelope
= resultContext.getEnvelope();
   SOAPBody body = resEnvelope.getBody();

   opClient.complete(resultContext);
   return body;
 }
 catch (AxisFault e1) {
   e1.printStackTrace();
   throw new AxisFault(e1.getMessage());
 }
 finally {
   try {
 serviceClient.finalizeInvoke();
   } catch (AxisFault axisFault)
{
  
logger.error(axisFault.getMessage() +
 axisFault.toString());
   } catch (Exception e) {
  
logger.error(e.getMessage() + e.toString());
   }

 }

 Thanks,

 Brian Bacsu


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






Re: [Axis2] Socket connection on Client and Server not disconnecting

2006-09-19 Thread robert lazarski
Actually, I meant attach all that to the jira: 

http://issues.apache.org/jira/browse/AXIS2-935
Robert 
On 9/19/06, robert lazarski [EMAIL PROTECTED] wrote:
I think its an internal axis2 issue in that the httpclient call needs
to invoke closeIdleConnections() . I've battled CLOSE_WAIT issues a few
times and I think I know what's happening. If you attach your source
here, and attach your netstat output along with how long the CLOSE_WAIT
condition lasts, I'll try and reproduce the error and then try to fix
it. 

Robert On 9/19/06, Brian Bacsu [EMAIL PROTECTED]
 wrote:

Robert

Is this an issue with ServiceClient's
finalizeInvoke() method not properly cleaning up the connection? Would
I experience the same socket resource starvation with Axis2 if I reverted
to a simpler implementation using the ServiceClient.sendReceive() method,
rather than the OperationClient.execute() method?

Thanks,

Brian Bacsu






robert lazarski
[EMAIL PROTECTED] 
09/19/2006 01:42 PM



Please respond to
axis-user@ws.apache.org





To
axis-user@ws.apache.org


cc

  


Subject
Re: [Axis2] Socket connection on Client
and Server not disconnecting




  





This is a known issue:

http://issues.apache.org/jira/browse/AXIS2-935

There is a patch submitted. If you could attach your test case to it
I'll take a look at the patch.

Robert

On 9/19/06, Brian Bacsu [EMAIL PROTECTED] wrote:

 Hi,

 We have implemented an Axis2 client to call web services exposed through
 both .NET and Axis1 running on Microsoft Server 2003. I have encountered
an
 issue with the Axis2 client with regard to disconnecting the client
and
 server socket connections. The server-side connection will finally
time-out
 and drop (It looks like Microsoft Server will hang onto connections
for 60
 seconds, even after close requested), but the client side connections
 continue to collect until the server begins to run out of
 resources/connections. The client connections show CLOSE_WAIT status
when
 viewed with netstat .

 Any suggestions would be appreciated.

 Here is a sample of the client code:

 Options options = new Options();


 options.setExceptionToBeThrownOnSOAPFault(Boolean.TRUE);

 options.setTo(new EndpointReference(url.toString()));
 ServiceClient serviceClient = null;
 MessageContext requestContext =
 CFWsoapClient.getMessageContext(OM_Msg,this,soapRoot, logger, traceLevel);
 requestContext.setSoapAction(action);
 try {

   options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
   options.setProperty(HTTPConstants.SO_TIMEOUT,1000);
   options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT,
 Boolean.FALSE);

 options.setProperty(HTTPConstants.CONNECTION_TIMEOUT,
 (int)timeout);

   serviceClient = new ServiceClient();
   serviceClient.setOptions(options);
   OperationClient opClient
=
 serviceClient.createClient(ServiceClient.ANON_OUT_IN_OP);
   opClient.addMessageContext(requestContext);
   opClient.execute(true);

   MessageContext resultContext
=
 opClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);

   SOAPEnvelope resEnvelope
= resultContext.getEnvelope();
   SOAPBody body = resEnvelope.getBody();

   opClient.complete(resultContext);
   return body;
 }
 catch (AxisFault e1) {
   e1.printStackTrace();
   throw new AxisFault(e1.getMessage());
 }
 finally {
   try {
 serviceClient.finalizeInvoke();
   } catch (AxisFault axisFault)
{
  
logger.error(axisFault.getMessage() +
 axisFault.toString());
   } catch (Exception e) {
  
logger.error(e.getMessage() + e.toString());
   }

 }

 Thanks,

 Brian Bacsu


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








Re: Null pointer with SAXParserImpl in Java 1.4

2006-09-19 Thread Martin Gainty
Brian-
Its the consultant and hw/sw providers that slow us down
which is the reason why you *should* Develop locally so your development isnt 
slowed by their glacially slow bureaucratic and/or administrative 
procedures..When everything works (and only when everything works) then deploy 
to the tortoises

Also-
Be sure to set the RuntimePermission to getClassLoader in 
$TOMCAT-HOME/conf/catalina.policy
grant
{
  permission java.lang.RuntimePermission getClassLoader;
}
M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Davanum Srinivas [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Tuesday, September 19, 2006 3:07 PM
Subject: Re: Null pointer with SAXParserImpl in Java 1.4


 Try throwing in latest xerces jar in WEB-INF/lib and set the service
 class loader order to Parent last
 
 -- dims
 
 On 9/19/06, Brian Preston [EMAIL PROTECTED] wrote:
 I searched for this in the archives and found the same problem, but it was
 for Java 1.5.  I'm using Java 1.4 within Websphere 6 and getting this
 NullPointerException.  The weird thing is it works fine on my local WAS 6
 server.  I'm getting this problem when trying to deploy to a remotely
 administered server.  I'm in a big company and have to fill out tickets and
 go through admins to get the details on this, so it's slow going to find
 what the environment is exactly like on the server where this problem is
 happening.

  java.lang.NullPointerException at
 java.util.Hashtable.put(Hashtable.java(Compiled Code))
  at
 com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(Unknown
 Source)
  at
 org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:246)
  at
 org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
  at
 org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
  at
 org.apache.axis.client.Call.invokeEngine(Call.java:2583)
  at org.apache.axis.client.Call.invoke(Call.java:2553)
  at org.apache.axis.client.Call.invoke(Call.java:1672)

  Anyone know how to fix this?

  Thanks

 
 
 -- 
 Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: Setting the Content-ID header for an MTOM attachment

2006-09-19 Thread Thilina Gunarathne

Yes.. Possible.. He can do it at the client (using OperationClient)
program as well as at the service impl too :)

 Then he'll be using Soap With Attachments.. Not MTOM...

Thanks,
~Thilina

On 9/20/06, Davanum Srinivas [EMAIL PROTECTED] wrote:

Thilina,

Can Yoram write a custom handler, get access to the message context
and use the following method in MessageContext to set a custom
attachment?

public void addAttachment(String contentID, DataHandler dataHandler)

-- dims

On 9/19/06, Yoram Givon [EMAIL PROTECTED] wrote:

 The reason I need to set the content-ID is that the Transcoding
 web-service uses the content-id header to identify the attached content.
 When the MTOM engine generates the content-id for me, there is no way
 for me to tell the web service where the content is.

 When I used axis 1.4 for the same goal I just added an AttachmentPart
 and then set the setConentID for it.

 I was just not able to find the equivalent way to do it with Axis2.

 Cheers,
 Yoram

 -Original Message-
 From: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 19, 2006 12:05 PM
 To: axis-user@ws.apache.org
 Subject: Re: Setting the Content-ID header for an MTOM attachment

 Hi Yoram,
 You can use the OMText.getContentId()  to request the content id,
 given that OMText object contains the binary attachment you want to
 send.

 What is you use case..When using MTOM Axis2 will take care of  putting
 the content-id in to the SOAP request appropriately according to the
 specification, so that the server knows where the attachment is. I
 don't see why somebody needs to access the content-id manually.

 ~Thilina

 On 9/19/06, Yoram Givon [EMAIL PROTECTED] wrote:
 
 
 
 
  Hi All,
 
 
 
  I am using Axis2 to create a SOAP request to a web service which
 performs
  Transcoding of a file I attached to the SOAP message using MTOM.
 
 
 
  My only problem is that I also have to pass the content-id of the
 attachment
  as part of the SOAP request so the server will know where the file is.
 
 
 
  I have searched through the mailing list and the internet and was not
 able
  so far to find a method to set the content-id header for an MTOM
 attachment.
 
 
 
  Does any one know if there is a way to set the content-id header of an
 MTOM
  attachment?
 
 
 
  Cheers,
 
 
 
  Yoram


 --
 http://webservices.apache.org/~thilina/
 http://thilinag.blogspot.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]




--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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





--
http://webservices.apache.org/~thilina/
http://thilinag.blogspot.com/

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



Re: Installing Axis2 in Tomcat

2006-09-19 Thread Thilina Gunarathne
Try this...http://people.apache.org/dist/axis2/nightly/axis2.war~ThilinaOn 9/19/06, 
Silvio dos Passos Neto [EMAIL PROTECTED] wrote:






Hi everyone, 


I downloaded the 
last version of axis2 war... I followed de instructions of installation guide, 
droping this in the webapps folder (renaming the .zip to .war). But it doen't 
work:I get an NullPointerException in the home page (http://localhost/axis2, yes, I do use 80 
port):

java.lang.NullPointerException	at org.apache.jsp.httpbase$jsp.jspInit(httpbase$jsp.java:24)	at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:90)	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.load
(JspServlet.java:142)	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:178)	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)	at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:381)	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)	at org.apache.catalina.core.ApplicationDispatcher.invoke
(ApplicationDispatcher.java:683)	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:497)
	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:819)	at org.apache.jsp.index$jsp._jspService(index$jsp.java:91)	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
:381)	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java
:247)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)	at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:190)	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)	at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)	at org.apache.catalina.core.StandardContext.invoke
(StandardContext.java:2347)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)	at org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:170)	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)	at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)	at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:472)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)	at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)	at org.apache.catalina.connector.http.HttpProcessor.process
(HttpProcessor.java:1027)	at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)	at java.lang.Thread.run(Thread.java:534)
After that, I tried to unzip the file to the wepapps folder, and then I get another error page:
java.lang.IllegalStateException	at org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:109)
	at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:1146)	at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:519)	at javax.servlet.http.HttpServlet.service(HttpServlet.java
:740)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)	at 

Re: Setting the Content-ID header for an MTOM attachment

2006-09-19 Thread Davanum Srinivas

Not using MTOM... Does he care? i doubt it  :)

-- dims

On 9/19/06, Thilina Gunarathne [EMAIL PROTECTED] wrote:

Yes.. Possible.. He can do it at the client (using OperationClient)
program as well as at the service impl too :)

  Then he'll be using Soap With Attachments.. Not MTOM...

Thanks,
~Thilina

On 9/20/06, Davanum Srinivas [EMAIL PROTECTED] wrote:
 Thilina,

 Can Yoram write a custom handler, get access to the message context
 and use the following method in MessageContext to set a custom
 attachment?

 public void addAttachment(String contentID, DataHandler dataHandler)

 -- dims

 On 9/19/06, Yoram Givon [EMAIL PROTECTED] wrote:
 
  The reason I need to set the content-ID is that the Transcoding
  web-service uses the content-id header to identify the attached content.
  When the MTOM engine generates the content-id for me, there is no way
  for me to tell the web service where the content is.
 
  When I used axis 1.4 for the same goal I just added an AttachmentPart
  and then set the setConentID for it.
 
  I was just not able to find the equivalent way to do it with Axis2.
 
  Cheers,
  Yoram
 
  -Original Message-
  From: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, September 19, 2006 12:05 PM
  To: axis-user@ws.apache.org
  Subject: Re: Setting the Content-ID header for an MTOM attachment
 
  Hi Yoram,
  You can use the OMText.getContentId()  to request the content id,
  given that OMText object contains the binary attachment you want to
  send.
 
  What is you use case..When using MTOM Axis2 will take care of  putting
  the content-id in to the SOAP request appropriately according to the
  specification, so that the server knows where the attachment is. I
  don't see why somebody needs to access the content-id manually.
 
  ~Thilina
 
  On 9/19/06, Yoram Givon [EMAIL PROTECTED] wrote:
  
  
  
  
   Hi All,
  
  
  
   I am using Axis2 to create a SOAP request to a web service which
  performs
   Transcoding of a file I attached to the SOAP message using MTOM.
  
  
  
   My only problem is that I also have to pass the content-id of the
  attachment
   as part of the SOAP request so the server will know where the file is.
  
  
  
   I have searched through the mailing list and the internet and was not
  able
   so far to find a method to set the content-id header for an MTOM
  attachment.
  
  
  
   Does any one know if there is a way to set the content-id header of an
  MTOM
   attachment?
  
  
  
   Cheers,
  
  
  
   Yoram
 
 
  --
  http://webservices.apache.org/~thilina/
  http://thilinag.blogspot.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]
 
 


 --
 Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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




--
http://webservices.apache.org/~thilina/
http://thilinag.blogspot.com/




--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



RES: Installing Axis2 in Tomcat

2006-09-19 Thread Silvio dos Passos Neto

Hi Thilina, 

I tried download from this link but it still not working. I belive its the
same file I get in this morning thru axis2 web site...
 
I really should extract it or just copy to webapps folder (I tried both
anyway)? And I need to make some library visible putting something in the
lib folder?
 
Thanks in advance...
 
iColabora do Brasil
Silvio dos Passos Neto
[11] 3255-7328
[11] 8308-3835
[EMAIL PROTECTED]



De: Thilina Gunarathne [mailto:[EMAIL PROTECTED] 
Enviada em: terça-feira, 19 de setembro de 2006 17:34
Para: axis-user@ws.apache.org
Assunto: Re: Installing Axis2 in Tomcat


Try this...
http://people.apache.org/dist/axis2/nightly/axis2.war

~Thilina


On 9/19/06, Silvio dos Passos Neto [EMAIL PROTECTED] wrote: 

 
Hi everyone, 
 
I downloaded the last version of axis2 war... I followed de
instructions of installation guide, droping this in the webapps folder
(renaming the .zip to .war). But it doen't work: I get an
NullPointerException in the home page (http://localhost/axis2, yes, I do use
80 port):
 
java.lang.NullPointerException
at org.apache.jsp.httpbase$jsp.jspInit(httpbase$jsp.java:24)
at
org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:90)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.load
(JspServlet.java:142)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:178)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:188)
at org.apache.jasper.servlet.JspServlet.serviceJspFile
(JspServlet.java:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationDispatcher.invoke
(ApplicationDispatcher.java:683)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:574)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:497)

at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8
19)
at org.apache.jsp.index$jsp._jspService(index$jsp.java:91)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)

at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:201)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
:381)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java
:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:566)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke
(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke
(ErrorDispatcherValve.java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at org.apache.catalina.core.StandardPipeline.invokeNext
(StandardPipeline.java:564)
at

RE: Setting the Content-ID header for an MTOM attachment

2006-09-19 Thread Yoram Givon

Sounds good to me :-)
As long as I get the attachment across like I do with axis 1.4 I am
fine.

Yoram

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 19, 2006 1:45 PM
To: Thilina Gunarathne
Cc: axis-user@ws.apache.org
Subject: Re: Setting the Content-ID header for an MTOM attachment

Not using MTOM... Does he care? i doubt it  :)

-- dims

On 9/19/06, Thilina Gunarathne [EMAIL PROTECTED] wrote:
 Yes.. Possible.. He can do it at the client (using OperationClient)
 program as well as at the service impl too :)

   Then he'll be using Soap With Attachments.. Not MTOM...

 Thanks,
 ~Thilina

 On 9/20/06, Davanum Srinivas [EMAIL PROTECTED] wrote:
  Thilina,
 
  Can Yoram write a custom handler, get access to the message context
  and use the following method in MessageContext to set a custom
  attachment?
 
  public void addAttachment(String contentID, DataHandler dataHandler)
 
  -- dims
 
  On 9/19/06, Yoram Givon [EMAIL PROTECTED] wrote:
  
   The reason I need to set the content-ID is that the Transcoding
   web-service uses the content-id header to identify the attached
content.
   When the MTOM engine generates the content-id for me, there is no
way
   for me to tell the web service where the content is.
  
   When I used axis 1.4 for the same goal I just added an
AttachmentPart
   and then set the setConentID for it.
  
   I was just not able to find the equivalent way to do it with
Axis2.
  
   Cheers,
   Yoram
  
   -Original Message-
   From: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, September 19, 2006 12:05 PM
   To: axis-user@ws.apache.org
   Subject: Re: Setting the Content-ID header for an MTOM attachment
  
   Hi Yoram,
   You can use the OMText.getContentId()  to request the content id,
   given that OMText object contains the binary attachment you want
to
   send.
  
   What is you use case..When using MTOM Axis2 will take care of
putting
   the content-id in to the SOAP request appropriately according to
the
   specification, so that the server knows where the attachment is. I
   don't see why somebody needs to access the content-id manually.
  
   ~Thilina
  
   On 9/19/06, Yoram Givon [EMAIL PROTECTED] wrote:
   
   
   
   
Hi All,
   
   
   
I am using Axis2 to create a SOAP request to a web service which
   performs
Transcoding of a file I attached to the SOAP message using MTOM.
   
   
   
My only problem is that I also have to pass the content-id of
the
   attachment
as part of the SOAP request so the server will know where the
file is.
   
   
   
I have searched through the mailing list and the internet and
was not
   able
so far to find a method to set the content-id header for an MTOM
   attachment.
   
   
   
Does any one know if there is a way to set the content-id header
of an
   MTOM
attachment?
   
   
   
Cheers,
   
   
   
Yoram
  
  
   --
   http://webservices.apache.org/~thilina/
   http://thilinag.blogspot.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]
  
  
 
 
  --
  Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
Developers)
 
 
-
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 http://webservices.apache.org/~thilina/
 http://thilinag.blogspot.com/



-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
Developers)

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



Proxy

2006-09-19 Thread Doolittle, Todd
Title: Proxy







Im writing a client that must go out through a proxy. Axis 1 used the properties http.proxyHost and http.proxyPort. They could be set on the VM command line like this -Dhttp.proxyHost=uskihsvpcflow -Dhttp.proxyPort=80. 

Axis 2 appears to ignore those properties. I figured out that hack the generated service stub up to set the proxy in the transport options, but this cant be the right way to do it. What is the right way to get Axis 2 to use a proxy?

Thanks!

Todd





This message, including any attachments, is the property of Sears Holdings Corporation and/or one of its subsidiaries. It is confidential and may contain proprietary or legally privileged information. If you are not the intended recipient, please delete it without reading the contents.  Thank you.


Axis Engine Internals

2006-09-19 Thread Ekmekcioglu, Lerna \(IT\)






I have a java app 
that uses apache axis and makes soap calls to a soap server. My app is on the client side. 
First of all I ran into the issue with stubs being not thread safe. I then 
read up on axis mailing lists about this. Are stubs in latest version of 
axis still not thread safe ?

According to 
previous posts regarding stubs and serviceLocator and how heavyweight it is to 
create the locators, I gatheredwe should have one instance of 
serviceLocator and create a new stub for each call and then throw the stub 
away. Following this advicein my app 
I create only one serviceLocator and create a new stub within each method 
that makes a call. Do stubs go away after they are out of scope or does 
axis engine hold references to them ? Does serviceLocator which holds the engine 
also hold a pool of connections ? What happens if a connection 
inaxis engine's connectionpool isstale/deadb/c the back end server has been restarted 
?

My concern is 
when a client makes requests to the SOAP server and gets successfull 
replies and then comes back next day and makes another request to the SOAP 
server.Let's think of the scenario 
where in the mean time the SOAP server was restarted. Now the axis enginewill be holding references to stale connections 
in its pool of connections and the stub which uses this stale connection to try 
and connect to the server will fail even though 
the server is up. 
Therefore when 
I bind to the soap server not onlydo I createa stub but I also need 
to test if I get a successfull reply on a simple request. This will cover the case when the backend SOAP 
server has been restarted and the connections referenced by current axis engine 
are stale. IfI get a failure 
on the simple request thenI will create a new 
serviceLocatorhence get a new axis engine 
with no stale connections in it. I then try again with a new 
stub obtained from this new serviceLocator. Note that it is expensive and 
heavyweight to talk to the device, in my case almost as heavy as creating a 
serviceLocator. So I am back to square one with expensive binds. Pls 
let me know if my assumptions about axis engine internalsdescribed 
hereare correct.


Ler.na



NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.




Re: Installing Axis2 in Tomcat

2006-09-19 Thread Martin Gainty
old version
C:\AXIS\Axis-2_1\samples\transfer2java -classpath C:\commons-policy\policy-1.0-
bin\lib\policy-1.0.jar;C:\AXIS\Axis-2_1\classes;C:\AXIS\Axis-2_1\src\modules\cod
egen\target\classes;C:\AXIS\Axis-2_1\new_src\modules\common\target\classes;C:\AX
IS\Axis-2_1\new_src\modules\codegen\target\classes;%CLASSPATH% org.apache.axis2.
wsdl.WSDL2Java -uri file:///C:/AXIS/Axis-2_1/samples/transfer2/transfer2.wsdl
does indeed produce the 2 classes

newer M2 version
C:\AXIS\Axis-2_1\samples\transfer2%AXIS2_HOME%\bin\wsdl2Java -uri file:///C:/AX
IS/Axis-2_1/samples/transfer2/transfer2.wsdl
Exception in thread main org.apache.axis.wsdl.codegen.CodeGenerationException:
 Invalid WSDL Location
at org.apache.axis.wsdl.codegen.CodeGenerationEngine.init(CodeGenerati
onEngine.java:63)
at org.apache.axis.wsdl.WSDL2Code.main(WSDL2Code.java:28)
at org.apache.axis.wsdl.WSDL2Java.main(WSDL2Java.java:22)
Caused by: java.io.FileNotFoundException: file:\C:\AXIS\Axis-2_1\samples\transfe
r2\transfer2.wsdl (The filename, directory name, or volume label syntax is incor
rect)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.init(FileInputStream.java:106)
at org.apache.axis.wsdl.codegen.CodeGenerationEngine.getWOM(CodeGenerati
onEngine.java:109)
at org.apache.axis.wsdl.codegen.CodeGenerationEngine.init(CodeGenerati
onEngine.java:57)
... 2 more

so the M2 WSDL2Java doesnt produce the java classes
appears to be not ready for release..

M
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: robert lazarski [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Tuesday, September 19, 2006 5:01 PM
Subject: Re: Installing Axis2 in Tomcat


I recommend the following:

1) Remove the axis2.war .
2) Download both the war and the std-bin-SNAPSHOT from the nightly link.
3) Unpack the bin package.
4) Compile your source against the new bin package.
5) Put your war un-expanded into tomcat, let tomcat unpack it.
6) Put your new aar in services.

Let us know if that helps.
Robert


On 9/19/06, Silvio dos Passos Neto [EMAIL PROTECTED] wrote:

 Hi Thilina,

 I tried download from this link but it still not working. I belive its the
 same file I get in this morning thru axis2 web site...

 I really should extract it or just copy to webapps folder (I tried both
 anyway)? And I need to make some library visible putting something in the
 lib folder?

 Thanks in advance...

 iColabora do Brasil
 Silvio dos Passos Neto
 [11] 3255-7328
 [11] 8308-3835
 [EMAIL PROTECTED]

 

 De: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
 Enviada em: terça-feira, 19 de setembro de 2006 17:34
 Para: axis-user@ws.apache.org
 Assunto: Re: Installing Axis2 in Tomcat


 Try this...
 http://people.apache.org/dist/axis2/nightly/axis2.war

 ~Thilina


 On 9/19/06, Silvio dos Passos Neto [EMAIL PROTECTED] wrote:


 Hi everyone,

 I downloaded the last version of axis2 war... I followed de
 instructions of installation guide, droping this in the webapps folder
 (renaming the .zip to .war). But it doen't work: I get an
 NullPointerException in the home page (http://localhost/axis2, yes, I do use
 80 port):

 java.lang.NullPointerException
 at org.apache.jsp.httpbase$jsp.jspInit(httpbase$jsp.java:24)
 at
 org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:90)
 at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.load
 (JspServlet.java:142)
 at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
 rvlet.java:178)
 at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 va:188)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile
 (JspServlet.java:381)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.catalina.core.ApplicationDispatcher.invoke
 (ApplicationDispatcher.java:683)
 at
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
 er.java:574)
 at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
 .java:497)

 at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8
 19)
 at org.apache.jsp.index$jsp._jspService(index$jsp.java:91)
 at
 

Re: Installing Axis2 in Tomcat

2006-09-19 Thread robert lazarski

The axis2 class name is org.apache.axis2.wsdl.WSDL2Java .

HTH,
Robert

On 9/19/06, Martin Gainty [EMAIL PROTECTED] wrote:

old version
C:\AXIS\Axis-2_1\samples\transfer2java -classpath C:\commons-policy\policy-1.0-
bin\lib\policy-1.0.jar;C:\AXIS\Axis-2_1\classes;C:\AXIS\Axis-2_1\src\modules\cod
egen\target\classes;C:\AXIS\Axis-2_1\new_src\modules\common\target\classes;C:\AX
IS\Axis-2_1\new_src\modules\codegen\target\classes;%CLASSPATH% org.apache.axis2.
wsdl.WSDL2Java -uri file:///C:/AXIS/Axis-2_1/samples/transfer2/transfer2.wsdl
does indeed produce the 2 classes

newer M2 version
C:\AXIS\Axis-2_1\samples\transfer2%AXIS2_HOME%\bin\wsdl2Java -uri file:///C:/AX
IS/Axis-2_1/samples/transfer2/transfer2.wsdl
Exception in thread main org.apache.axis.wsdl.codegen.CodeGenerationException:
 Invalid WSDL Location
at org.apache.axis.wsdl.codegen.CodeGenerationEngine.init(CodeGenerati
onEngine.java:63)
at org.apache.axis.wsdl.WSDL2Code.main(WSDL2Code.java:28)
at org.apache.axis.wsdl.WSDL2Java.main(WSDL2Java.java:22)
Caused by: java.io.FileNotFoundException: file:\C:\AXIS\Axis-2_1\samples\transfe
r2\transfer2.wsdl (The filename, directory name, or volume label syntax is incor
rect)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.init(FileInputStream.java:106)
at org.apache.axis.wsdl.codegen.CodeGenerationEngine.getWOM(CodeGenerati
onEngine.java:109)
at org.apache.axis.wsdl.codegen.CodeGenerationEngine.init(CodeGenerati
onEngine.java:57)
... 2 more

so the M2 WSDL2Java doesnt produce the java classes
appears to be not ready for release..

M
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message -
From: robert lazarski [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Tuesday, September 19, 2006 5:01 PM
Subject: Re: Installing Axis2 in Tomcat


I recommend the following:

1) Remove the axis2.war .
2) Download both the war and the std-bin-SNAPSHOT from the nightly link.
3) Unpack the bin package.
4) Compile your source against the new bin package.
5) Put your war un-expanded into tomcat, let tomcat unpack it.
6) Put your new aar in services.

Let us know if that helps.
Robert


On 9/19/06, Silvio dos Passos Neto [EMAIL PROTECTED] wrote:

 Hi Thilina,

 I tried download from this link but it still not working. I belive its the
 same file I get in this morning thru axis2 web site...

 I really should extract it or just copy to webapps folder (I tried both
 anyway)? And I need to make some library visible putting something in the
 lib folder?

 Thanks in advance...

 iColabora do Brasil
 Silvio dos Passos Neto
 [11] 3255-7328
 [11] 8308-3835
 [EMAIL PROTECTED]

 

 De: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
 Enviada em: terça-feira, 19 de setembro de 2006 17:34
 Para: axis-user@ws.apache.org
 Assunto: Re: Installing Axis2 in Tomcat


 Try this...
 http://people.apache.org/dist/axis2/nightly/axis2.war

 ~Thilina


 On 9/19/06, Silvio dos Passos Neto [EMAIL PROTECTED] wrote:


 Hi everyone,

 I downloaded the last version of axis2 war... I followed de
 instructions of installation guide, droping this in the webapps folder
 (renaming the .zip to .war). But it doen't work: I get an
 NullPointerException in the home page (http://localhost/axis2, yes, I do use
 80 port):

 java.lang.NullPointerException
 at org.apache.jsp.httpbase$jsp.jspInit(httpbase$jsp.java:24)
 at
 org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:90)
 at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.load
 (JspServlet.java:142)
 at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
 rvlet.java:178)
 at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 va:188)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile
 (JspServlet.java:381)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.catalina.core.ApplicationDispatcher.invoke
 (ApplicationDispatcher.java:683)
 at
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
 er.java:574)
 at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
 .java:497)

 at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8
 19)

Re: Fw: help

2006-09-19 Thread Fabio Ebner
sou de SP.. mas dependendo cara pagamos a passagem e tal :D

abracos
- Original Message -
From: robert lazarski [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Tuesday, September 19, 2006 4:49 PM
Subject: Re: Fw: help


 This is wrong:

 parameter name=VerificaLogin

 It _must_ be ServiceClass _always_ .

 Change the entire services.xml to:

 service
 parameter name=ServiceClass
  locked=falseagenteservidor.VerificaLogin/parameter
 operation name=isLogin
 messageReceiver
class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
 /operation
 /service

 Você mora em qual estado ? Moro em Fortaleza.

 Robert

 On 9/19/06, Fabio Alves de Araujo Ebner - DNA Solution
 [EMAIL PROTECTED] wrote:
  e vc conhece alguem q manje legal de axis2 e possa ministrar um curso??
de
  um fds ou dois no maximo.. se vc tiver interesse e so avisar podemos
  conversar a respeito
 
  --- java
  package agenteservidor;
 
  /**
   *
   * @author Administrador
   */
  public class VerificaLogin {
  public boolean isLogin(String nome){
  if((nome.equals(binhoca))){
  return true;
  }
  return false;
  }
  }
 
  ---xml
  service
  parameter name=VerificaLogin
locked=falseagenteservidor.VerificaLogin/parameter
  operation name=isLogin
  messageReceiver
class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/
  /operation
  /service
 
  - log
  19/09/2006 16:42:14 org.apache.catalina.core.StandardWrapperValve invoke
  WARNING: Servlet.service() for servlet AxisServlet threw exception
  org.apache.axis2.AxisFault: null; nested exception is:
   java.lang.NullPointerException
   at
org.apache.axis2.description.AxisService.getWSDL(AxisService.java:654)
   at
org.apache.axis2.description.AxisService.printWSDL(AxisService.java:540)
   at
 
org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent
  .java:167)
   at
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:165)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at
 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
  FilterChain.java:252)
   at
 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
  ain.java:173)
   at
 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
  va:213)
   at
 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
  va:178)
   at
 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
  )
   at
 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
  )
   at
 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
  :107)
   at
 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at
 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   at
 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
  onnection(Http11BaseProtocol.java:664)
   at
 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
  a:527)
   at
 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
  rkerThread.java:80)
   at
 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
  a:684)
   at java.lang.Thread.run(Unknown Source)
  Caused by: java.lang.NullPointerException
   at
 
org.apache.axis2.description.AxisService2OM.generateOM(AxisService2OM.java:1
  15)
   at
org.apache.axis2.description.AxisService.getWSDL(AxisService.java:649)
   ... 19 more
  19/09/2006 16:42:14 org.apache.catalina.core.ApplicationDispatcher
invoke
  SEVERE: Servlet.service() for servlet jsp threw exception
  java.lang.IllegalStateException: getOutputStream() has already been
called
  for this response
   at org.apache.catalina.connector.Response.getWriter(Response.java:599)
   at
 
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:1
  95)
   at
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124)
   at
 
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117)
   at
 
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191)
   at
 
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFacto
  ryImpl.java:115)
   at
 
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.j
  ava:75)
   at
 
org.apache.jsp.axis2_002dweb.Error.error500_jsp._jspService(error500_jsp.jav
  a:97)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
  32)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
   at 

Axis2 Stub class not working in JBoss

2006-09-19 Thread Z Chen
I have an application deployed in JBoss (a ear file),
when the application invoke a remote Web services.
First I put all the Axis2 related jar files inside my
ear file and defined manifest to reference these
libraries from my web application, I got
ClassDefNotFoundException
(javax/xml/namespace/NamespaceContext). But If I move
these jar files to web-inf/lib, I got a
ClassCastException and the stack trace didn't show any
details.

Anybody has an idea ? Please help.

Thanks

John

__
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: Axis2 Stub class not working in JBoss

2006-09-19 Thread robert lazarski

Find your log4j.xml - probably server/default/conf/log4j.xml - and
change your logging to debug as so:

category name=org.apache
 priority value=DEBUG/
  /category

Then show us the all the relevant info up until the exception and then
maybe we can help.

Robert

On 9/19/06, Z Chen [EMAIL PROTECTED] wrote:

I have an application deployed in JBoss (a ear file),
when the application invoke a remote Web services.
First I put all the Axis2 related jar files inside my
ear file and defined manifest to reference these
libraries from my web application, I got
ClassDefNotFoundException
(javax/xml/namespace/NamespaceContext). But If I move
these jar files to web-inf/lib, I got a
ClassCastException and the stack trace didn't show any
details.

Anybody has an idea ? Please help.

Thanks

John

__
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]



FW: Security

2006-09-19 Thread Donnison, Louise
Title: FW: Security








__ 

From:  Donnison, Louise 

Sent: Wednesday, 20 September 2006 1:50 p.m.

To: 'axis-user@ws.apache.org'

Subject: Security


Hi

I am trying to work on an example for two levels of secuirty in the scenario of a purchase order which has credit card details.

I wish to have the credit card details encrypted differently to the main part of the message as i wish to pass the credit card details onto another 

web service that of a creditcard checking.

What is the best approach to accomplish this?



I have tried initially to follow the secuirty example for having 2 actions in an outflowsecurity element

(I am using the sec.proprties that comes with the example)

1. However if I set the following:


parameter name=OutflowSecurity 

 action

 itemsSignature NoSerialization/items

  useralice/user

  passwordCallbackClasscom.eds.jcoe.webservices.security.PasswordCallbackHandler/passwordCallbackClass

  signaturePropFilesec.properties/signaturePropFile

  signatureKeyIdentifierSKIKeyIdentifier/signatureKeyIdentifier

  encryptionKeyIdentifierSKIKeyIdentifier/encryptionKeyIdentifier

  encryptionUserbob/encryptionUser

  signatureParts{Element}{http://service.webservices.jcoe.com/xsd}number/signatureParts

 optimizeParts//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue/optimizeParts

 /action 

 action

 itemsTimestamp SignatureEncrypt/items

 userbob/user

 passwordCallbackClasscom.eds.jcoe.webservices.security.CreditCardPasswordCallbackHandler/passwordCallbackClass

 encryptionUserbob/encryptionUser

 signaturePropFilesec.properties/signaturePropFile

 signatureKeyIdentifierSKIKeyIdentifier/signatureKeyIdentifier

 encryptionKeyIdentifierSKIKeyIdentifier/encryptionKeyIdentifier

 encryptionUserbob/encryptionUser

 signatureParts{Element}{http://service.webservices.jcoe.com/xsd}shippingAddress/signatureParts

 optimizeParts//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue/optimizeParts

 /action 


I get a null pointer exception


2006-09-20 13:28:03,314 INFO [org.apache.axis2.deployment.DeploymentEngine] - no services directory found , new one created

2006-09-20 13:28:03,384 INFO [org.apache.axis2.deployment.DeploymentEngine] - Deploying module : addressing-1.0

2006-09-20 13:28:04,456 INFO [org.apache.axis2.deployment.DeploymentEngine] - Deploying module : rampart-1.0

Error is java.lang.NullPointerException



2. If I set:


parameter name=OutflowSecurity 

 action

 itemsSignature Timestamp/items

  useralice/user

  passwordCallbackClasscom.eds.jcoe.webservices.security.PasswordCallbackHandler/passwordCallbackClass

  signaturePropFilesec.properties/signaturePropFile

  signatureKeyIdentifierSKIKeyIdentifier/signatureKeyIdentifier

  encryptionKeyIdentifierSKIKeyIdentifier/encryptionKeyIdentifier

  encryptionUserbob/encryptionUser

  signatureParts{Element}{http://service.webservices.jcoe.com/xsd}number/signatureParts

 optimizeParts//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue/optimizeParts

 /action 

 action

 itemsTimestamp Signature Encrypt/items

 userbob/user

 passwordCallbackClasscom.eds.jcoe.webservices.security.PasswordCallbackHandler/passwordCallbackClass

 encryptionUserbob/encryptionUser

 signaturePropFilesec.properties/signaturePropFile

 signatureKeyIdentifierSKIKeyIdentifier/signatureKeyIdentifier

 encryptionKeyIdentifierSKIKeyIdentifier/encryptionKeyIdentifier

 encryptionUserbob/encryptionUser

 signatureParts{Element}{http://service.webservices.jcoe.com/xsd}expiry/signatureParts

 optimizeParts//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue/optimizeParts

 /action 




Does the Service.xml have to have 2 action elements too??



parameter name=InflowSecurity

 action

 itemsSignature Timestamp/items

 passwordCallbackClasscom.jcoe.webservices.security.PasswordCallbackHandler/passwordCallbackClass

 signaturePropFilesec.properties/signaturePropFile

 /action

 action

 itemsTimestamp Signature Encrypt/items

 passwordCallbackClasscom.jcoe.webservices.security.PasswordCallbackHandler/passwordCallbackClass

 signaturePropFilesec.properties/signaturePropFile

 /action 

 /parameter

 

 I get this error 

 

 WSDoAllReceiver: security processing failed; nested exception is:

 org.apache.ws.security.WSSecurityException: General security error (WSSecurityEngine: No crypto propery file supplied for decryption)#xd;

 









Re: Axis2 Stub class not working in JBoss

2006-09-19 Thread Z Chen
Actually I didn't get any debug output from axis2 or
axiom what I suspect is creating the problem, but I
got the following stack trace,

java.lang.ClassCastException
at
javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136
)
at
org.apache.axiom.om.util.StAXUtils.getXMLInputFactory(StAXUtils.java:
35)
at
org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.ja
va:59)
at
org.apache.axis2.deployment.DescriptionBuilder.buildOM(DescriptionBui
lder.java:81)
at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConf
igBuilder.java:63)
at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguratio
n(DeploymentEngine.java:769)
at
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfigurati
on(FileSystemConfigurator.java:113)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContext(ConfigurationContextFactory.java:38)
at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContextFromFileSystem(ConfigurationContextFactory.java:90)
at
com.crsoftwareinc.crs.core.webservice.dialer.AgentRequestServiceStub.
init(AgentRequestServiceStub.java:98)
at
com.crsoftwareinc.crs.core.dao.dialer.impl.DialerAgentRequestDAOAxisI
mpl.createAxisStubClass(DialerAgentRequestDAOAxisImpl.java:99)
at
com.crsoftwareinc.crs.core.dao.dialer.impl.DialerAgentRequestDAOAxisI
mpl.agentSimpleAction(DialerAgentRequestDAOAxisImpl.java:78)

Also I used some decompiler tool to decompile those
classes and didnt find any logging statement in those
classes, probably that is why I didn't get any
debugging output.

Thanks

John

 --- robert lazarski [EMAIL PROTECTED] wrote:

 Find your log4j.xml - probably
 server/default/conf/log4j.xml - and
 change your logging to debug as so:
 
  category name=org.apache
   priority value=DEBUG/
/category
 
 Then show us the all the relevant info up until the
 exception and then
 maybe we can help.
 
 Robert
 
 On 9/19/06, Z Chen [EMAIL PROTECTED] wrote:
  I have an application deployed in JBoss (a ear
 file),
  when the application invoke a remote Web services.
  First I put all the Axis2 related jar files inside
 my
  ear file and defined manifest to reference these
  libraries from my web application, I got
  ClassDefNotFoundException
  (javax/xml/namespace/NamespaceContext). But If I
 move
  these jar files to web-inf/lib, I got a
  ClassCastException and the stack trace didn't show
 any
  details.
 
  Anybody has an idea ? Please help.
 
  Thanks
 
  John
 
  __
  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]
 
 


__
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: Axis client, getting started guide

2006-09-19 Thread Saliya Ekanayake
Hi Erik,I think the following link will help you in writing a working client for Axis2. But for the rest of the questions I won't be able to answer because I'm kind of new with Axis2.
http://today.java.net/pub/a/today/2006/06/22/axis-2-generated-client-code.htmlYou have to build and deploy the service from the given currencyConvert.wsdl
 before testing the client.regards,Saliya EkanayakeOn 9/19/06, Erik Norgaard [EMAIL PROTECTED]
 wrote:Hi:I have a project creating a SOAP client with Axis using the different
levels of abstraction I found in the user's guide: RPC, Document,Wrapped and Message.Unfortunately I find the documentation difficult to decipher, andfurther the code example for message services gives a python error.
- Are there any examples with working code that exploits Axis for theclient side?- How do I set the SOAP action? I can use setUseSOAPAction aparently todecide whether or not to use it, but how do I set the value?
- What is the difference between getCurrentMessage and getMessage? ifmultiple messages exists, how do I select which is current? which onewill getMessage return? If I use setMessage, how do I at a later point
make it current?- What is the soapActionURI? Action? URI?I would appreciate links to other sources of documentation with moreelaborate examples.Thanks, Erik--Ph: +34.666334818web: 
http://www.locolomo.orgX.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crtKey ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9
-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: 
[EMAIL PROTECTED]


Re: Fw: help

2006-09-19 Thread Saliya Ekanayake
Hi Fabio,Just follow these steps and you should be able to deploy the web service. I tried your one with few adjustments and it worked.1. make sure your axis2 is working fine by navigating to 
http://localhost:8080/axis2/services/listServices change the port number 8080 if your tomcat is running on a different port2. your .java file was ok so use the same one.3. change the 
services.xml to the following  service parameter name=ServiceClass locked=falseagenteservidor.VerificaLogin/parameter
 operation name=isLoginmessageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver/ /operation /service 
 Note: The value of the parameter element should be the fully qualified name of your service implementation class. Not  SimpleService.4. Now create the folder structure as follows parent_folder
 |agenteservidor |META-INF put your compiled class file inside agenteservidor folder and the services.xml in META-INF folder5. use this jar command inside parent_folder jar -cvf 
VerificaLogin.aar META-INF agenteservidor (to verify your .aar is correct open the VerificaLogin.aar and see if the above folder structure is there. Also check for the  existence of the services.xml inside the META-INF folder of the 
VerificaLogin.aar)6. then copy the VerificaLogin.aar into tomcat_home/webapps/axis2/WEB-INF/services/7. now go to http://localhost:8080/axis2/services/listServices
 and check whether your service is shown. Click on the link and  you will get the generated WSDL. If the service is not shown then restart tomcat and try again.Hope this will do what you want. regards,
Saliya EkanayakeOn 9/20/06, Fabio Alves de Araujo Ebner - DNA Solution [EMAIL PROTECTED]
 wrote:






people i need help.. i cant do any ws in 
axis 2
i will list step by step what i 
do..

1º i create the .java

VerificaLogin.java
package agenteservidor;public class VerificaLogin { 
public boolean isLogin(String nome, String 
senha){ senha = senha + 
aeee; 
if((nome.equals(binhoca))){ 
return true; 
} return 
false; }}
save in C:\ws
then i create the subdir Temp, so i have 
the :\ws\temp

2º c:\ws\javac VerificaLogin.java -d 
temp

3º Create in temp the directory 
META-INF\services.xml
serviceparameter 
name=VerificaLogin 
locked=falseSimpleService/parameteroperation 
name=isLoginmessageReceiver 
class=org.apache.axis2.rpc.receivers.RPCMessageReceiver//operation 
/service

4º in c:\ws\temp i create the .aar - :\ws\temp\jar cvf 
VerificaLogin.aar .

5º join Axis2 adm and upload the .aar file.. 

6º te error:

-
 error


 description
Unable to generate WSDL 
for this service/description 

 reason
Either user has not 
dropped the wsdl into META-INF or operations use message receivers other than 
RPC./reason 
 
/error


please
anyone help me

tks





Re: Installing Axis2 in Tomcat

2006-09-19 Thread Thilina Gunarathne

Martin,
What  do you mean by M2 version..

~Thilina

On 9/20/06, Martin Gainty [EMAIL PROTECTED] wrote:

old version
C:\AXIS\Axis-2_1\samples\transfer2java -classpath C:\commons-policy\policy-1.0-
bin\lib\policy-1.0.jar;C:\AXIS\Axis-2_1\classes;C:\AXIS\Axis-2_1\src\modules\cod
egen\target\classes;C:\AXIS\Axis-2_1\new_src\modules\common\target\classes;C:\AX
IS\Axis-2_1\new_src\modules\codegen\target\classes;%CLASSPATH% org.apache.axis2.
wsdl.WSDL2Java -uri file:///C:/AXIS/Axis-2_1/samples/transfer2/transfer2.wsdl
does indeed produce the 2 classes

newer M2 version
C:\AXIS\Axis-2_1\samples\transfer2%AXIS2_HOME%\bin\wsdl2Java -uri file:///C:/AX
IS/Axis-2_1/samples/transfer2/transfer2.wsdl
Exception in thread main org.apache.axis.wsdl.codegen.CodeGenerationException:
 Invalid WSDL Location
at org.apache.axis.wsdl.codegen.CodeGenerationEngine.init(CodeGenerati
onEngine.java:63)
at org.apache.axis.wsdl.WSDL2Code.main(WSDL2Code.java:28)
at org.apache.axis.wsdl.WSDL2Java.main(WSDL2Java.java:22)
Caused by: java.io.FileNotFoundException: file:\C:\AXIS\Axis-2_1\samples\transfe
r2\transfer2.wsdl (The filename, directory name, or volume label syntax is incor
rect)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.init(FileInputStream.java:106)
at org.apache.axis.wsdl.codegen.CodeGenerationEngine.getWOM(CodeGenerati
onEngine.java:109)
at org.apache.axis.wsdl.codegen.CodeGenerationEngine.init(CodeGenerati
onEngine.java:57)
... 2 more

so the M2 WSDL2Java doesnt produce the java classes
appears to be not ready for release..

M
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message -
From: robert lazarski [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Tuesday, September 19, 2006 5:01 PM
Subject: Re: Installing Axis2 in Tomcat


I recommend the following:

1) Remove the axis2.war .
2) Download both the war and the std-bin-SNAPSHOT from the nightly link.
3) Unpack the bin package.
4) Compile your source against the new bin package.
5) Put your war un-expanded into tomcat, let tomcat unpack it.
6) Put your new aar in services.

Let us know if that helps.
Robert


On 9/19/06, Silvio dos Passos Neto [EMAIL PROTECTED] wrote:

 Hi Thilina,

 I tried download from this link but it still not working. I belive its the
 same file I get in this morning thru axis2 web site...

 I really should extract it or just copy to webapps folder (I tried both
 anyway)? And I need to make some library visible putting something in the
 lib folder?

 Thanks in advance...

 iColabora do Brasil
 Silvio dos Passos Neto
 [11] 3255-7328
 [11] 8308-3835
 [EMAIL PROTECTED]

 

 De: Thilina Gunarathne [mailto:[EMAIL PROTECTED]
 Enviada em: terça-feira, 19 de setembro de 2006 17:34
 Para: axis-user@ws.apache.org
 Assunto: Re: Installing Axis2 in Tomcat


 Try this...
 http://people.apache.org/dist/axis2/nightly/axis2.war

 ~Thilina


 On 9/19/06, Silvio dos Passos Neto [EMAIL PROTECTED] wrote:


 Hi everyone,

 I downloaded the last version of axis2 war... I followed de
 instructions of installation guide, droping this in the webapps folder
 (renaming the .zip to .war). But it doen't work: I get an
 NullPointerException in the home page (http://localhost/axis2, yes, I do use
 80 port):

 java.lang.NullPointerException
 at org.apache.jsp.httpbase$jsp.jspInit(httpbase$jsp.java:24)
 at
 org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:90)
 at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.load
 (JspServlet.java:142)
 at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
 rvlet.java:178)
 at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 va:188)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile
 (JspServlet.java:381)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
 at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.catalina.core.ApplicationDispatcher.invoke
 (ApplicationDispatcher.java:683)
 at
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
 er.java:574)
 at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
 .java:497)

 at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8
 19)
 at 

[axis2] MTOM attachments

2006-09-19 Thread Tony Dean
Hi,

I have a question regarding MTOM attachments.

I'm running with MTOMEnabled=true... Sometimes however, when I do not have an 
attachment (OMText(dataHandler, true) to return to the client, I would like to 
send the soap:Envelope response w/o using MIME attachments.  But even in this 
case, my response is sent as a single attachment containing just the 
soap:Envelope since there are no real attachments.  Is there a way to control 
this behavior such that in this case the response is not embedded in a MIME 
part.

Thanks.

Tony Dean
SAS Institute Inc.
919.531.6704
[EMAIL PROTECTED]

SAS... The Power to Know
http://www.sas.com


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