Hello
I have recently added web service functionality to web application I have been developing.
I encountered no problems generating and deploying the new code in my development environment. This was achieved by with the following Axis tools: org.apache.axis.wsdl.Java2WSDL, org.apache.axis.wsdl.toJava.Emitter, org.apache.axis.client.AdminClient.
The generated code was packed into a Jar file for deployment on a target server. These were the steps taken:
1. the jar was deployed alongside all Axis dependencies into the Web-INF/lib directory of the webapp
2. all Axis entries were made in the web.xml of the webapp
3. the previously generated WSDD file was copied onto the target server
4. org.apache.axis.client.AdminClient was launched in a batch file with the the following content (IP number replaced with x's):
set LOG4J_PROPERTIES_HOME=.
java -classpath lib\axis.jar;lib\jaxrpc.jar;lib\log4j-1.2.8.jar;lib\commons-logging-1.0.4.jar;lib\commons-discovery-0.2.jar;lib\saaj.jar;lib\wsdl4j-1.5.1.jar;;%LOG4J_PROPERTIES_HOME% org.apache.axis.client.AdminClient deploy.wsdd -lhttp://xxx.xxx.xxx.xxx/webapp/services/AdminService
set LOG4J_PROPERTIES_HOME=
I always get following response:
Processing file deploy.wsdd
Exception: AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (401)Unauthorized
faultActor:
faultNode:
faultDetail:
{}:return code: 401
<?xml version="1.0" encoding="utf-8"?><soapenv:Enve
lope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:x
sd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.or
g/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><
faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Server.Unauth
orized</faultcode><faultstring>Remote administrator access is not al
lowed!</faultstring><detail><ns2:hostname xmlns:ns2="http://
xml.apache.org/axis/">pe2500-web01</ns2:hostname></detail>&l
t;/soapenv:Fault></soapenv:Body></soapenv:Envelope>
{http://xml.apache.org/axis/}HttpErrorCode:401
Does the cause lie in the setup of the target server, or is the something faulty in my procedure?
Thank you very much for your help
Marco Milli
