(DataRetrievalException) exception when cheking Axis2's Version sample

2008-03-27 Thread program77

org.apache.axis2.dataretrieval.DataRetrievalException:
org.apache.xml.serializer.ToXMLSAXHandler cannot be cast to
org.apache.xml.serializer.SerializationHandler

org.apache.axis2.dataretrieval.AxisDataLocatorImpl.getData(AxisDataLocatorImpl.java:84)
org.apache.axis2.description.AxisService.getData(AxisService.java:2195)
org.apache.axis2.description.AxisService.getWSDL(AxisService.java:1139)

org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1077)

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




why?

(I use Tomcat. 5.0 and war of Axis2 1.3)
-- 
View this message in context: 
http://www.nabble.com/%28DataRetrievalException%29-exception-when-cheking-Axis2%27s-Version-sample-tp16323727p16323727.html
Sent from the Axis - User mailing list archive at Nabble.com.


help. make a service in Axis2 (not in /services/)

2008-04-20 Thread program77

according the Axis2's user guide, to deploy a service, you must taking the
hierarchy of *.aar and copying it to the webapps/axis2/WEB-INF/services
directory.

Well, I like to know if there is any way so a class in /class directory
(that is, a javabean) serves like a javabean and a service at the same time.

Excuse me for my poor english and thank you in advance.
-- 
View this message in context: 
http://www.nabble.com/help.-make-a-service-in-Axis2-%28not-in--services-%29-tp16795650p16795650.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: help. make a service in Axis2 (not in /services/)

2008-04-22 Thread program77



Deepal Jayasinghe-2 wrote:
> 
> program77 wrote:
>> according the Axis2's user guide, to deploy a service, you must taking
>> the
>> hierarchy of *.aar and copying it to the webapps/axis2/WEB-INF/services
>> directory.
>>
>> Well, I like to know if there is any way so a class in /class directory
>> (that is, a javabean) serves like a javabean and a service at the same
>> time.
>>
>> Excuse me for my poor english and thank you in advance.
>>   
> 
> With Axis2 1.3 you can can deploy class files as it is. Create a 
> directory called "pojo" under web-inf and then copy your class file into 
> pojo directory.
> 
> Thank you!
> Deepal
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


Yes, I already known this way. But I'd like a service in /WEB-INF/classes,
not in /WEB-INF/pojo.

Thank you.

-- 
View this message in context: 
http://www.nabble.com/help.-make-a-service-in-Axis2-%28not-in--services-%29-tp16795650p16823757.html
Sent from the Axis - User mailing list archive at Nabble.com.


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



axis Client and axis2 server and not works. help

2008-04-25 Thread program77

client with Axis:

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
import java.net.*;


URL url=new URL("http://127.0.0.1:80/axis2_or/services/Eco";);


Service service = new Service();
Call call = (Call) service.createCall();


// we set up our endpoint URL
call.setTargetEndpointAddress(url);



call.setOperationName(new QName("doEcho"));



call.addParameter("doEcho", 
org.apache.axis.Constants.XSD_STRING,
javax.xml.rpc.ParameterMode.IN);


call.setReturnType(org.apache.axis.Constants.XSD_STRING); 
// we actually invoke the desired service
call.setOperationStyle("document");

ret = (String) call.invoke(new Object[] { "hello" } );

System.out.println(ret);



Service (Axis2 1.3 and Tomcat) pojo/Echo:

public class Echo {
public String doEcho(String f) {
return "ECo..." + f;
}
}



With SOAPmonitor:


http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  
pucco
  



http://schemas.xmlsoap.org/soap/envelope/";>
  

  soapenv:Server
  namespace mismatch require http://ws.apache.org/axis2
found none
  

  



I have tried many ways, but no result. Any suggestion, please.
-- 
View this message in context: 
http://www.nabble.com/axis-Client-and-axis2-server-and-not-works.-help-tp16894835p16894835.html
Sent from the Axis - User mailing list archive at Nabble.com.


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