Hi OUYANG, what is the version of Axis2 you are using ?
-- Chinthaka
OUYANG Yang wrote:
> Hello all!
> I am testing a simple example on axis2. I've written a web service named
> hello:
> public class hello2{
> public String hello(String name){
> if(name==null)
> name = "";
> return "hello"+name+",welcome to the world of web services!";
> }
> }
>
> And the services.xml file is as follows:
> <service name="hello2">
> <description>
> This service is to say hello to users.
> </description>
> <parameter name="HelloClass" locked="false">hello2</parameter>
> <operation name="hello">
> <messageReceiver
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
> </operation>
> </service>
>
> I can successfully depoly the hello.aar to axis2 and can see the service on
> list of services in axis2 platform. But when I tried to click the lick of
> hello?wsdl, it will jump error which says:
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
> exception
> java.lang.NullPointerException
>
> org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine.java:191)
>
> org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:191)
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:125)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> Could anyone tell me what's the problem is?
> Thank you very much!
>
> yangyang
>
>
>
>
signature.asc
Description: OpenPGP digital signature
