running samples

2008-01-20 Thread Gavan Hood
I have built the 1.2 version and built the samples a few times now, 
  When I build the samples I get the client code created but cannot see where 
server code is deployed. When I hit the 9090 URL it shows a heading for 
installed services and nothing more. When I run any of the clients they report 
erros such as math stub invoke Failed for math, Error creating service client 
Please check AXIS2c_HOME (which I have tried a few variations on), I get same 
text for yahoo and google samples.
   
  What exactly should happen when a service is created and deployed, what is 
the sequence of actions that I should see. Where should the service end up.
  Is there documentation on this, what I have found so far does not clearly 
indicate what should happen.
   
  thanks

   
-
Never miss a thing.   Make Yahoo your homepage.

Re: running samples

2008-01-20 Thread Mark Nüßler

Hello Gavan,

i don't know if i understand you correctly

I have built the 1.2 version and built the samples a few times now, 

when you built axis2, you get an folder parallel to the 'bin' folder
called 'services', each deployed service has its own subfolder.
e.g. there an folder 'math', inside there are two files the math
service libary on windows its an dll and the services.xml, which
describes the operations of the service


When I build the samples I get the client code created but cannot see where 
server
code is deployed.

what exactly do you mean with 'the samples' ?
in the folder 'samples' also parallel to the 'bin' folder there are the
to subfolders 'client' and 'server'.
when you build the clients you only build the clients,
maybee you have to build the servers ?
if you do so, check you outputfolder, you've declared in you compiler 
options

(on windows you can you use Filemon to see which files and folders are
read and write)


When I hit the 9090 URL it shows a heading for installed services
and nothing more.

do you see the service you want to test ? i think so


When I run any of the clients they report erros such as math stub
invoke Failed for math, Error creating service client Please check AXIS2c_HOME

the enviroment varibale have to be AXIS2C_HOME,
mine is 'AXIS2C_HOME=X:\ws\axis2_c'
on windows check your enviroment variables by typing 'set' to a console


(which I have tried a few variations on), I get same text for yahoo and google 
samples.

from yahoo sample i get the soap resonse and the last line printed is
'Yahoo REST client invoke SUCCESSFUL!'


What exactly should happen when a service is created and deployed,
what is the sequence of actions that I should see. Where should the service end 
up.

1. create a service and compile it successfully
2. for example 'myService' you get an libary file which name is
'myService'.* (on windows .dll, on linux ??? maybe .so i dont know).
3. create a subdirectory in the 'AXIS2C_HOME'\service folder with
the same name, 'myService' (casesensitive)
4. create a 'services.xml' and define the operations you have used
in your service
5. start the simple_server in bin folder and have a look in
your browser if the service with its methods is available


Is there documentation on this, what I have found so far does not clearly 
indicate what should happen.

when creating your own service and not the samples,
i think best way to start is with adb,
at http://ws.apache.org/axis2/c/docs/axis2c_manual.html,
(17.1 Generating Service Skeletons)
for the WSDL2C codegenerator you have to download the
java version of axis2

if you use windows it seems to me, that your AXIS2C_HOME
is not correct, on linux i can't say :-(

mfg derMark



   
thanks


   
-

Never miss a thing.   Make Yahoo your homepage.




No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.19.7/1233 - Release Date: 19.01.2008 18:37


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



using axis half way through?

2008-01-20 Thread אלחנן מעיין
Hi..

 

Is there a way to use axis's generated classes for request and response BUT, 
use it's dynamic proxy client by specifying wsdl and method name alone?

 

We have a home grown web application infrastructure  which up until now used 
glue  behind the scenes, our application developers were unaware of the 
underlying ws Implementation ,so now we are switching to axis2.

 

Up until now we simply sent the wsdl, operation name and generated objects to 
the client which created the xml soap request, the client was always  the same 
api (invoke method)  because it was  a generated proxy  in run-time from the 
wsdl we gave it.

 

Is there a way to do so in axis?

 



Re: Axis 1.2.1 and Weblogic 10

2008-01-20 Thread Scott
Thanks Azeez,

I should point out that I am referring to version Axis 1.2.1, not Axis2.  And I 
have Axis installed, and can query Axis for a list of services via HTTP in my 
browser.  I believe I am all set.  And like I said, when this same installation 
is used with Tomcat, it works.

But I am getting the 401 error when used in conjunction with Weblogic.  I have 
even traced into the code, but it is pretty low-level when I get the exception, 
during a socket read.  I never get to the actual service call that I have 
implemented.  

So I'm asking this group if there is something I need to do in order to be 
authorized correctly.  It has to be just a small adjustment.

Scott


- Original Message 
From: Afkham Azeez [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Saturday, January 19, 2008 10:50:07 AM
Subject: Re: Axis 1.2.1 and Weblogic 10

You could get some tips on how to install Axis2 on WL from this article 
https://wso2.org/library/880

Azeez


On Jan 19, 2008 2:13 AM, Scott [EMAIL PROTECTED] wrote:



I have a web services application that uses Axis (I) with Tomcat 5.5.25. It 
works perfectly.

I've recently installed the application on WebLogic 10, but I am no longer able 
to connect. 

When I attempt my first call, I get a remote exception that says this: 

javax.xml.rpc.ServiceException: (401)Unauthorized


Also note that Axis appears to be installed correctly and is functioning, as I 
can invoke a service via http that returns me a list of deployed services.  
 
What authorization do I need to connect to the Axis servlet?  I'm sure I'm 
using the correct syntax when connecting to the AxisServlet.  Am I running into 
some kind of windows authentication issue that I see in some of the threads?  I 
am using Windows XP.  
 

Here is some of my wsdd:

globalConfiguration
parameter name=sendMultiRefs value=false/
parameter name=disablePrettyXML value=true/
parameter name=adminPassword value=admin/
parameter name=attachments.Directory 
value=C:\ProServer45\exploded\WEB-INF\attachments/
parameter name=dotNetSoapEncFix value=true/
parameter name=enableNamespacePrefixOptimization value=true/
parameter name=sendXMLDeclaration value=true/
parameter name=sendXsiTypes value=true/
parameter name=attachments.implementation 
value=org.apache.axis.attachments.AttachmentsImpl/
requestFlow
handler type=java:org.apache.axis.handlers.JWSHandler
parameter name=scope value=session/
/handler
handler type=java:org.apache.axis.handlers.JWSHandler
parameter name=scope value=request/
parameter name=extension value=.jwr/
/handler
/requestFlow
/globalConfiguration
handler name=LocalResponder 
type=java:org.apache.axis.transport.local.LocalResponder/
handler name=URLMapper type=java:org.apache.axis.handlers.http.URLMapper/
handler name=Authenticate 
type=java:org.apache.axis.handlers.SimpleAuthenticationHandler/
service name=AdminService provider=java:MSG
parameter name=allowedMethods value=AdminService/
parameter name=enableRemoteAdmin value=false/
parameter name=className value=org.apache.axis.utils.Admin/
namespacehttp://xml.apache.org/axis/wsdd//namespace
/service
service name=Version provider=java:RPC
parameter name=allowedMethods value=getVersion/
parameter name=className value=org.apache.axis.Version/
/service

Here is the last part:

transport name=http
requestFlow
handler type=URLMapper/
handler type=java:org.apache.axis.handlers.http.HTTPAuthHandler/
/requestFlow
parameter name=qs:list value=org.apache.axis.transport.http.QSListHandler/
parameter name=qs:wsdl value=org.apache.axis.transport.http.QSWSDLHandler/
parameter name=qs.list value=org.apache.axis.transport.http.QSListHandler/
parameter name=qs.method 
value=org.apache.axis.transport.http.QSMethodHandler/
parameter name=qs:method 
value=org.apache.axis.transport.http.QSMethodHandler/
parameter name=qs.wsdl value=org.apache.axis.transport.http.QSWSDLHandler/
/transport
transport name=local
responseFlow
handler type=LocalResponder/
/responseFlow
/transport

Any ideas? 





-- 
Thanks
Afkham Azeez

http://www.wso2.org
GPG Fingerprint: 643F C2AF EB78 F886 40C9  B2A2 4AE2 C887 665E 0760

Re: [axis2] custom configuration context

2008-01-20 Thread Andreas Veithen

Michele,

Since there is an exception, there must be a stack trace. If the stack  
trace is not dumped to the log, can you try to add e.printStackTrace()?


As a workaround to the problem, can you try the following ways to  
construct the repository URL?


URL repo =  
WorkerConfiguration.class.getClassLoader().getResource(repository/);


Or if this still doesn't work,

URL repo = new URL(url, repository/);

Regards,

Andreas


On 19 Jan 2008, at 10:18, Michele Mazzucco wrote:


On Sat, 2008-01-19 at 00:39 +0100, Andreas Veithen wrote:

Michele,

How did you construct the URLs passed as arguments to
createConfigurationContextFromURIs?
Can you also provide the stack trace of the
java.net.MalformedURLException, or better the instruction in the
source code that triggers this exception?


There's no stack trace, but this is the chunk of code I was using

// this file is in the same package as the class containing this code
private static final String WORKER_AXIS2_XML = worker_axis2.xml;


URL url = WorkerConfiguration.class.getResource(WORKER_AXIS2_XML);

// repository is a directory contained into the root of my aar file
URL repo =
WorkerConfiguration.class.getClassLoader().getResource(repository);
   if (repo == null) {
   log.error(The repository is null);
   } else {
   log.info(repo.getPath());
   }
   if ((url == null) || (repo == null)) {
   createDefaultConfigurationContext();
   } else {
   try {
   configurationContext =
ConfigurationContextFactory.createConfigurationContextFromURIs(url,
repo);
   log.info(Custom conf. context created);
   } catch (Exception e) {
   log.error(e);
   createDefaultConfigurationContext();
   }
   }




This is how I use
ConfigurationContextFactory.createConfigurationContextFromFileSystem


// contains the full path to the repository
final String repository = System.getProperty(qosp.axis2.repository);
URL url = WorkerConfiguration.class.getResource(WORKER_AXIS2_XML);

// execute the following code only if the two values above are not  
null

try {
configurationContext =
ConfigurationContextFactory 
.createConfigurationContextFromFileSystem(repository, url.getPath());


log.info(Custom conf. context created);
 } catch (Exception e) {
log.error(e);
 createDefaultConfigurationContext();
 }


Michele




Andreas

On 18 Jan 2008, at 17:35, Michele Mazzucco wrote:


Hi all,

I'd like to create a custom configuration context from inside a
service
archive. The parameters (axis2.xml and repository) are contained  
into

the aar file (or at least the custom axis2.xml).
I've tried both the
ConfigurationContextFactory.createConfigurationContextFromFileSystem
and
ConfigurationContextFactory.createConfigurationContextFromURIs, but
they
don't work as expected.

This is the result when I use the first approach and my custom
axis2.xml
(worker_axis2.xml) is contained into the archive

ERROR 16:30:35,124 (WorkerConfiguration.java:128) -
org.apache.axis2.AxisFault: System can not find the given axis2.xml
file:/work/michele/router/work/Catalina/localhost/axis2/
axis227495RoutingService.aar!/ncl/qosp/controller/worker_axis2.xml

The other approach fails in a similar way:
ERROR 16:21:10,971 (WorkerConfiguration.java:127) -
org.apache.axis2.AxisFault: invalid
url: //file:/work/michele/router/work/Catalina/localhost/axis2/
axis226240RoutingService.aar!/repository/
(java.net.MalformedURLException: no protocol: //file:/work/michele/
router/work/Catalina/localhost/axis2/axis226240RoutingService.aar)


Any idea?

Thanks,
Michele



-
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: Webservice Client not working from inside Tomcat5

2008-01-20 Thread Stephen Souness

Is there anything showing up in Tomcat's logs?

Is the Tomcat process running as a service, or as a user that may not be 
able to establish network connections?


Are all of the jars that the web service client requires included in 
your web app?



--
Stephen


Callaway, Pamela wrote:

Hi folks,

 

I am encountering a strange problem with my webservice client that I 
generated using wsdl2java.  It works fine from the command line or as a 
JUnit test, but when I try and use it from a JSP file, it doesn’t return 
a result.  Exactly the same code, no differences that I can find, except 
that I want to call it from the JSP and not a JUnit test case.


 

 I am using Tomcat5 and Java 1.5, doing my development work on a windows 
box.  I wrapped the webservice up into a JAR file, which I’m then 
including in the web project, and I made a simple helper class so that I 
could use exactly the same code to call the webservice from the JUnit 
test cases or from the JSP.


 


Any thoughts on why this could be?  I am really at my wits end.

 


Thanks,

 


Pam

 




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



weblogic JVM crashes with axis 1.4

2008-01-20 Thread Ajit.Kamalakant
Hi Group,

 

I am using axis 1.4.

 

I am having this problem with one instance o f weblogic 8.1 .

When the client makes a call to the web service, the weblogic JVM
crashes with some dll references in the stack trace.

 

Any help is highly appreciated.

 

Thanks,

Ajit

 



DISCLAIMER:
This message contains privileged and confidential information and is intended 
only for an individual named. If you are not the intended recipient, you should 
not disseminate, distribute, store, print, copy or deliver this message. Please 
notify the sender immediately by e-mail if you have received this e-mail by 
mistake and delete this e-mail from your system. E-mail transmission cannot be 
guaranteed to be secure or error-free as information could be intercepted, 
corrupted, lost, destroyed, arrive late or incomplete or contain viruses. The 
sender, therefore,  does not accept liability for any errors or omissions in 
the contents of this message which arise as a result of e-mail transmission. If 
verification is required, please request a hard-copy version.


Re: [Axis2] Axis2 client code with ServiceClient created as dynamic client gives AxisFault: The anonOutInOp operation cannot be found

2008-01-20 Thread Deepal jayasinghe
Hi ,
If you create serviceClient as dynamic client then you need to give the
correct operation name (qualified operation name). I hope following link
will helpful for you to solve your problem

http://people.apache.org/~deepal/colorado/quick-start/src/DynamicClientSample.java

-Deepal


 Using Axis2 1.3, I have written the following sample client code that
 calls a remote webservice for currency conversion – it throws the
 exception:

  

 AxisFault: The anonOutInOp operation cannot be found.

 at
 org.apache.axis2.client.ServiceClient.createClient(ServiceClient.java:642)

 at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:526)

 at
 org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)

  

 /* 1 */ ServiceClient svcClient = new ServiceClient(null, new
 URL(http://www.webserviceX.net/CurrencyConvertor.asmx?wsdl;),

 new QName(http://www.webserviceX.NET/,CurrencyConvertor;),
 CurrencyConvertorSoap;);

  

 OMFactory fac = OMAbstractFactory.getOMFactory();

 OMNamespace ns = fac.createOMNamespace(http://www.webserviceX.NET/;,
 ns1);

 OMElement payload = fac.createOMElement(“ConversionRate”, ns);

  

 OMElement fromValue = fac.createOMElement(FromCurrency, ns);

 fromValue.setText(USD);

 payload.addChild(fromValue);



 OMElement toValue = fac.createOMElement(ToCurrency, ns);

 toValue.setText(INR);

 payload.addChild(toValue);



 OMElement responseElem=svcClient.sendReceive(payload);

  

 The client works when I replace the dynamic service client creation by
 a normal creation (new ServiceClient()) without any args and set
 Options object into it i.e. replacing line marked /* 1 */ above with
 the following works:

  

 svcClient = new ServiceClient();

 Options opts = new Options();

 opts.setTo(new
 EndpointReference(http://www.webserviceX.net/CurrencyConvertor.asmx;));

 opts.setAction(http://www.webserviceX.NET/ConversionRate;);

 svcClient.setOptions(opts);

  

 The first code worked in Axis1. Is something wrong in it or will it
 not work due to changes in Axis2?

  



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