Hi!

Call the service using httpunit or htmlunit.

**
Martin

2010/10/29 Martin Fernau <[email protected]>:
> Am Donnerstag 28 Oktober 2010 schrieb Martin Makundi:
>> > thanks for your reply. But I think there must be a way to get what we
>> > want. As I pointed out in my first message there is a way to
>> > programmatically control axis if you use the HTTPSimpleServer from axis2
>> > itself. Thus the axis2 engine allows us to control it via code.
>>
>> Well, you can call the deploy method programmatically.. [...]
>
> And how can I do this? I'm not able to find a deploy-method for axis if it's
> embeddid in jetty-server.
>
> For Example. This way I have control over axis programmatically if I use the
> SimpleHTTPServer:
> --- cut
> public class EmbeddedAxis2Server {
>        public static void main(String[] args) throws Exception {
>                ConfigurationContext context = ConfigurationContextFactory
>                        .createConfigurationContextFromFileSystem(null, null);
>                Map<String, MessageReceiver> map =
>                        new HashMap<String, MessageReceiver>();
>                map.put("http://www.w3.org/ns/wsdl/in-only";,
>                                RPCInOnlyMessageReceiver.class.newInstance());
>                map.put("http://www.w3.org/ns/wsdl/in-out";,
>                                RPCMessageReceiver.class.newInstance());
>                AxisService service =
>                        AxisService.createService(HelloServer.class.getName(),
>                                        context.getAxisConfiguration(),
>                                        map,
>                                        "http://server.helloworld.axis2";,
>                                        "http://server.helloworld.axis2";,
>                                        ClassLoader.getSystemClassLoader());
>                context.getAxisConfiguration().addService(service);
>                context.setContextRoot("");
>                context.setServicePath("/services/");
>                SimpleHTTPServer server = new SimpleHTTPServer(context, 8080);
>                server.start();
>        }
> }
> --- cut
> With the ConfigurationContext I can add further services programmatically.
> This works and I don't need one xml file to get axis2 to work. I'm able to
> invoke this webservice within an axis2 client without problems.
>
> And in my first post you see an example how to embed axis2 in jetty. But this
> way I don't have a ConfigurationContext to control axis2 and programmatically
> add services to axis. So - how can I get the same control over axis if I use
> jetty...
>
> ---------------------------------------------------------------------
> 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]

Reply via email to