Re: Troubles setting up axis_cpp

2004-12-14 Thread Vincent Jong
I'm new to axis (axiscpp) myself, but have you edited the
$AXISCPP_HOME/etc/axiscpp.conf and copied that to /etc (it maybe that
there's the file axiscpp.conf_linux that needs to be edited and
renamed to axiscpp.conf and then copied to /etc) ?  also have you
edited client.wsdd_linux and server.wsdd_linux correctly and rename
them to client.wsdd and server.wsdd?  these files need to have the
correct paths in them.  have you also copied the libaxiscpp_mod2.so
file into apache's module directory? do you have an xml parser
installed? I'm running axiscpp 1.3 on apache 2.0.52 with expat 1.95
for the xml parser.


On Fri, 10 Dec 2004 12:03:34 +0100, Fernando Álvarez-Uría
[EMAIL PROTECTED] wrote:
 Hi all!
 
 Im having some troubles setting up axis cpp on a Debian Sarge environment.
 
 Ive compiled axis_cpp 1.2, and the simple_axis_server that comes bundled
 works well.
 
 This is what ive done: I compiled axis-cpp-1.2, and installed it under
 /usr/local/axiscpp_deploy. Ive exported AXISCPP_HOME to that directory.
 
 Then, i load the module within apache2:
 
 LoadModule axis_module /usr/lib/apache2/modules/libaxiscpp_mod2.so
 Location /axis
 SetHandler axis
 /Location
 
 and restart apache. Whenever i try to access the default web page, the
 browser keeps loading till expires. If i unload the module (comment out
 the directive), apache works well. I get no errors in the log file.
 
 How can i have apache working as it usually does, while having axis
 module loaded? And how can i get the axis welcome page working?
 
 Ive read the whole documentaton, following every step, but im stuck in
 this moment.
 
 I would apreciate any help.
 
 Thanks all. Regards,
 
 --
 Fernando Álvarez-Uría Torres
 
 openSistemas de Información Internet
 Tel.: +34 91 445 39 36
 Fax.: +34 91 445 02 38
 email: [EMAIL PROTECTED]
 http://www.opensistemas.com
 
 Este mensaje se dirige exclusivamente a su destinatario y puede contener
 información privilegiada o confidencial. Si no es vd. el destinatario
 indicado, queda notificado de que la utilización, divulgación y/o copia
 sin autorización está prohibida en virtud de la legislación vigente.
 Si ha recibido este mensaje por error, le rogamos que nos lo comunique
 inmediatamente por esta misma vía y proceda a su destrucción.
 
 This message is intended exclusively for its addressee and may contain
 information that is CONFIDENTIAL and protected by professional
 privilege.
 If you are not the intended recipient you are hereby notified that any
 dissemination, copy or disclosure of this communication is strictly
 prohibited by law. If this message has been received in error, please
 immediately notify us via e-mail and delete it.



How to use Axis CPP

2004-12-14 Thread Vincent Jong
My place of employment is implementing a feature and it requires the
use of the axis soap server.  I'm a QA tester who needs impliment a
service in order to test this feature.  Unfortunately, the developer
of the feature doesn't have any experience with axis either (and no
one else in the company does either) and for now where just using his
simple python script for basic testing.  I've installed axiscpp
according to the documentation on the axis website and have read the
user guide, but I'm still not understanding how all of this works. 
I'm able to browse the samples using http://localhost/axis and can run
the sample clients (ex.  ./calculator div 10 2
http://localhost/axis/Calculator), but I don't understand how this is
working.  If on the http://localhost/axis page, I can click on one the
wsdl links and with a little reworking of the url, I can get
something.  For example, using http://localhost/axis/base?wsdl, I get
a page with a bunch of input boxes.  So, I guess, these are the
following questions I have right now.

1. How does the user interact with axis?  Is it supposed to be done
like in the samples (ie. ./calculator div 10 2
http://localhost/axis/Calculator) ?  Or is it supposed to be accessed
through a browser?  If user interaction should be done through a
browser, how would you set up a service up to do so?

2. What are the basic things I need to know in order to write a
webservice using axiscpp?  Do I still need to get/install other Java
components that are used in the Java version of axis?

If there's anything I missed information-wise, I apologize as I'm
very, very new to axis and webservices in general and I don't know
where to really start off at.  Thank you for your consideration in
this matter.

Vincent


Re: SOAPMonitor next question

2004-12-27 Thread Vincent Jong
you need to set up the service's deploy.wsdd file.  It's actually
pretty simple as you just add requestFlow and responseFlow tags. 
Let's take one of the samples from the binary distrobution (axis and
the samples are already compiled).  cd to $AXIS_HOME/samples/Math and
open up deploy.wsdd.  under the service name tag, put in these lines:

   requestFlow 
 handler type=soapmonitor/ 
   /requestFlow 
   responseFlow 
 handler type=soapmonitor/ 
   /responseFlow

save the file.  if this service is already deployed, then undeploy it
and redeploy it (redeploy after changing the deploy.wsdd file).

You shouldn't need to restart your appserver ( I could be wrong on
this), but, anyway, whenever you run the Math service, you'll see it
pop up on the SOAPMonitor.

To run the math service, try this url:

http://localhost:8080/axis/services/Math?method=adda=10b=20

Note:  I'm not sure off the top of my head, but I think I read
somewhere that SOAPMonitor doesn't work with JWS services.

On Mon, 27 Dec 2004 19:51:56 +0100, Robert Gombotz
[EMAIL PROTECTED] wrote:
  
 Hi! 
   
 I have gotten the applet to display now. I have also deployed a simple Web
 Service and written a client for it. 
 However, the SOAPMonitor does not seem to do anything. 
 The calls to the WS ar working fine, I get the return values, but the
 SOAPMonitor applet remains empty 
 Does the SOAPMonitorService monitor all deployed WS? Or do they have to be
 registered with the SOAPMonitor in any way? 
   
 any help is appreciated 
   
 Robert


Re: SOAPMonitor next question

2004-12-28 Thread Vincent Jong
I've gotten faults to display in the SOAPMonitor using the sample in
$AXIS_HOME/samples/faults by doing nothing different.  Just add in the
requestFlow and responseFlow tags to the service's deploy.wsdd
file and redeploy the service.  The service name Employee.  I don't
know what the behavior is supposed to be for this service, but it
looks like it will always throw a fault no matter if adding an
employee id using the services addEmployee method.  The url I'm using
to add an ID is:

http://localhost:8080/axis/services/Employee?method=addEmployeein=XXX

that shows this response in the SOAPMonitor:

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:Body
  addEmployeeResponse
soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding//
/soapenv:Body
/soapenv:Envelope



and to get employee:

http://localhost:8080/axis/services/Employee?method=getEmployeeid=XXX

the last link gives me this output:

soapenv:Envelope
soapenv:Body
soapenv:Fault
faultcodesoapenv:Server.userException/faultcode
faultstringsamples.faults.NoSuchEmployeeFault/faultstring
detail
ns1:hostnamevjong-lnx-corp.corp.google.com/ns1:hostname
/detail
/soapenv:Fault
/soapenv:Body
/soapenv:Envelope

and the SOAPMonitor shows the request, but doesn't show the response.

If this isn't the Axis Faults you're speaking of, my apologies.

On Tue, 28 Dec 2004 09:52:04 -0800, Jayaraman, Venkatesh
[EMAIL PROTECTED] wrote:
 I am not able to get the Axis Faults displayed on SOAP Monitor.
 Is this by design?
 
 Is there any way to display the Axis Faults responses in SOAP Monitor?
 
 -Venky
 
 
 -Original Message-
 From: Vincent Jong [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 27, 2004 11:25 PM
 To: [EMAIL PROTECTED]
 Subject: Re: SOAPMonitor next question
 
 you need to set up the service's deploy.wsdd file.  It's actually pretty
 simple as you just add requestFlow and responseFlow tags.
 Let's take one of the samples from the binary distrobution (axis and the
 samples are already compiled).  cd to $AXIS_HOME/samples/Math and open
 up deploy.wsdd.  under the service name tag, put in these lines:
 
requestFlow
  handler type=soapmonitor/
/requestFlow
responseFlow
  handler type=soapmonitor/
/responseFlow
 
 save the file.  if this service is already deployed, then undeploy it
 and redeploy it (redeploy after changing the deploy.wsdd file).
 
 You shouldn't need to restart your appserver ( I could be wrong on
 this), but, anyway, whenever you run the Math service, you'll see it pop
 up on the SOAPMonitor.
 
 To run the math service, try this url:
 
 http://localhost:8080/axis/services/Math?method=adda=10b=20
 
 Note:  I'm not sure off the top of my head, but I think I read somewhere
 that SOAPMonitor doesn't work with JWS services.
 
 On Mon, 27 Dec 2004 19:51:56 +0100, Robert Gombotz
 [EMAIL PROTECTED] wrote:
 
  Hi!
 
  I have gotten the applet to display now. I have also deployed a simple
 
  Web Service and written a client for it.
  However, the SOAPMonitor does not seem to do anything.
  The calls to the WS ar working fine, I get the return values, but the
  SOAPMonitor applet remains empty
  Does the SOAPMonitorService monitor all deployed WS? Or do they have
  to be registered with the SOAPMonitor in any way?
 
  any help is appreciated
 
  Robert



How do I manipulate the array of type Element in the MessageService example in Axis 1.2RC2?

2004-12-28 Thread Vincent Jong
I'm using Axis version 1.2RC2 (binary package) and have web services
working on Tomcat 4.1.  I've successfully deployed the pre-built
MessageService sample and have the SOAPMonitor monitoring that
service.  I'm trying to right now figure out how to modify the elems
parameter which is an array of type Element.  Basically, I'm just
trying to do a simple thing of setting an element's name (like
elems[0] ) to something like foo using the inherited setName method.
 I've tried using the syntax of:

elems[0].setName(foo);

but I keep getting compile errors.  What would be the correct way to
manipulate an element of an array of type Element?

The service I'm trying to modify is in $AXIS_HOME/samples/message. 
Does anyone know if it would be okay to post the source code in case
it is requested?

Thank you for your consideration in this matter.

Vincent Jong