Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
|
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 8th, 2005, 06:46 PM
Registered User
 
Join Date: Oct 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to nigel.sim
Default Setting Global Parameters in the SimpleAxisServer

I am trying to use Apache AXIS as a SOAP server embedded in another application, and without having to use a full blown container such as Tomcat. Thus, I'm first trying the SimpleAxisServer. However I need to set the global parameter sendXsiTypes dues to a bug in array serialisation, but I can't find a way to set this part of the configuration with the methods at my disposal. (WSDDDocument is only for Deployments)

The way I start up the stand alone server follows.


Code:
// Setup the export of the Functions class
InputStream wsddFile = new StringBufferInputStream(
"<deployment xmlns=\"http://xml.apache.org/axis/wsdd/\" xmlns:java=\"http://xml.apache.org/axis/wsdd/providers/java\">"+
"<service name=\"ExecutionAgent\" provider=\"java:RPC\">"+ 
"<parameter name=\"className\" value=\"administration.Functions\"/>"+
"<parameter name=\"allowedMethods\" value=\"*\"/>"+
"</service></deployment>");
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setNamespaceAware(true);
DocumentBuilder db = dbf.newDocumentBuilder();
WSDDDocument wsdddoc = new WSDDDocument(db.parse(wsddFile));

SimpleAxisServer server = new SimpleAxisServer();
server.setServerSocket(new ServerSocket(8686));
server.setMyConfig(wsdddoc.getDeployment());

server.start();





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chart goes blank when setting parameters Joel Overbeck Crystal Reports 0 August 12th, 2008 07:15 AM
How to declare the global variable in global.asax? calyn_gately ASP.NET 3.5 Basics 0 August 6th, 2008 08:06 PM
Setting report parameters for the subscription liliarum BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 July 13th, 2004 12:02 PM
Setting NLS_TIMESTAMP_FORMAT global parameter pankaj_daga Oracle 0 May 24th, 2004 07:27 AM
Setting a DTS Global Variable ioates SQL Server 2000 0 October 23rd, 2003 04:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.