geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hai-Dang Pham <hdp...@gmail.com>
Subject Re: Axis2 example
Date Wed, 08 Apr 2009 17:24:30 GMT

Tx you Ivan for the reply,

  I basically use an empty web.xml file like so:

<?xml version="1.0"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
 
 
 <display-name>Axis2Examples</display-name>
   <!-- This app is cluster-ready -->
 <distributable /> 
</web-app>


Hai-Dang


Ivan Xu wrote:
> 
> Could you show us your web.xml file ? I suppose that the ?WSDL request
> should be handled by the org.apache.axis2.transport.http.AxisServlet, not
> by
> Geronimo's WSDLQueryHandler.
> Ivan
> 
> 2009/4/7 Hai-Dang Pham <hdpham@gmail.com>
> 
>>
>> Hi,
>>
>>   I am trying to run a simple Axis2 example, basically from a client pass
>> a
>> string ("name") to a service this in turn return "hello name" but I am
>> trying use a WSDL interface.
>>
>> I was able to deploy my service with a plan file that looks like this
>>
>>    <environment>
>>        <moduleId>
>>            <groupId>org.codehaus.wadi</groupId>
>>            <artifactId>axis2Test</artifactId>
>>            <version>2.2-SNAPSHOT</version>
>>            <type>war</type>
>>        </moduleId>
>>
>>        <dependencies>
>>          <dependency>
>>            <groupId>org.apache.geronimo.modules</groupId>
>>            <artifactId>geronimo-webservices</artifactId>
>>            <version>2.1.3</version>
>>            <type>jar</type>
>>          </dependency>
>>          <dependency>
>>            <groupId>org.apache.geronimo.modules</groupId>
>>            <artifactId>geronimo-axis2</artifactId>
>>            <version>2.1.3</version>
>>            <type>jar</type>
>>          </dependency>
>>        </dependencies>
>>        <hidden-classes>
>>          <filter>org.apache.commons</filter>
>>        </hidden-classes>
>>    </environment>
>>
>>   <context-root>axis2/services/helloAxis2</context-root>
>>
>>
>> and a WSDL file with the following SOAP address:
>>
>>  <wsdl:service name="helloAxis2">
>>    <wsdl:port name="helloAxis2SOAP" binding="tns:helloAxis2SOAP">
>>      <soap:address
>> location="http://localhost:8080/axis2/services/helloAxis2"/>
>>    </wsdl:port>
>>  </wsdl:service>
>>
>> I just want to retrieve the WSDL from a browser like so
>>
>> http://localhost:8080/axis2/services/helloAxis2?wsdl
>>
>> This always return 404 Not Found.
>>
>> Can somebody show me what I am missing to access my WSDL service
>> properly?
>>
>> Tx,
>>
>> Hai-Dang
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Axis2-example-tp22918389s134p22918389.html
>> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Ivan
> 
> 

-- 
View this message in context: http://www.nabble.com/Axis2-example-tp22918389s134p22955607.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message