Hi,
I need to obtain the end point URL in the
server side request handler. Im unable to obtain the same. Can any one of help
me regarding obtaining the end point url from the server side request
handler.
My Server/service code is as follows:
package test.sm.hello;
public class HelloWorld { public
HelloWorld() { }
public String sayHello(String
s) { return "Hello......." + s + " Welcome
!!!"; } }
The deploy.wsdd for the above code is as
follows:
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> <handler
name="SMServerSideRequestHandler"
type="java:test.sm.hello.ServerSideRequestHandler" />
<service name="MySMHelloWorld" provider="java:RPC">
<requestFlow> <handler
type="SMServerSideRequestHandler"/>
</requestFlow> <parameter name="className"
value="test.sm.hello.HelloWorld"/> <parameter
name="allowedMethods"
value="*"/> </service> </deployment>
I deployed
the above as follows:
java org.apache.axis.client.AdminClient
deploy.wsdd
In my server side handler code,
i tried to obtain the endpoint url as follows:
SOAPService service =
msgContext.getService(); ServiceDesc serviceDesc =
service.getServiceDescription(); String endPointUrl =
serviceDesc.getEndpointURL();
But, it says "null".
Can anyone of you please figure out, what
is wrong in the above code?
Regards,
Nachiappan.N
|