axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abid Hussain <abid.huss...@abid76.de>
Subject problem with https
Date Fri, 03 Nov 2006 16:21:47 GMT
Hi everybody,

I am new to axis and have a problem deploying my Webservice. I am using 
Axis 1.3 and get always an error when trying to deploy it on the remote 
server. I think it is because the server is only accessible via HTTPS - 
when I deploy it on my local machine everything goes fine. Axis always 
responds with <401 unauthorized>.

Would be very happy, if someone could help me :-)

My Ant Script looks like this:
<target name="installWebservice">
	<mkdir dir="WebContent/wsdl" />
	<java classname="org.apache.axis.wsdl.Java2WSDL" fork="true" 
classpathref="axis.classpath" failonerror="true">
		<arg line="-o WebContent/wsdl/ModuleWS.wsdl" />
		<arg line="-l https://xxx.yyy:16384/modulverwaltung/services/ModuleWS"/>
		<arg line="-n urn:ModuleWS" />
		<arg line="modulverwaltung.service.ModuleWSImpl" />
	</java>
	<java classname="org.apache.axis.wsdl.WSDL2Java" fork="true" 
classpathref="axis.classpath">
		<arg line="-s WebContent/wsdl/ModuleWS.wsdl" />
		<arg line="-o src" />
		<arg line="-p modulverwaltung.service.ws" />
	</java>
	<!-- other operations... -->
</target>

Until here everything goes fine.
No I install the .war File where my Webapp and all the Axis stuff is 
included on the server. After that, I try deploy the Webservice using 
following script:
<target name="deployWebservice">
	<java classname="org.apache.axis.client.AdminClient" fork="true" 
classpathref="axis.classpath" failonerror="true">
	<arg line="-l https://xxx.yyy:16384/modulverwaltung/servlet/AxisServlet 
WebContent/WEB-INF/ModuleWS/deploy.wsdd" />
	</java>
</target>

But the deployment fails. The Message is:
[java] Processing file WebContent/WEB-INF/ModuleWS/deploy.wsdd
[java] Exception: AxisFault
[java] faultCode: {http://xml.apache.org/axis/}HTTP
[java] faultSubcode:
[java] faultString: (401)Unauthorized
[java] faultActor:
[java] faultNode:
[java] faultDetail:
[java] {}:return code:  401
[java] &lt;?xml version=&quot;1.0&quot; 
encoding=&quot;utf-8&quot;?&gt;&lt;soapenv:Envelope 
xmlns:soapenv=&quot;http://schemas.xmlsoap.
org/soap/envelope/&quot; 
xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; 
xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&qu
ot;&gt;&lt;soapenv:Body&gt;&lt;soapenv:Fault&gt;&lt;faultcode 
xmlns:ns1=&quot;http://xml.apache.org/axis/&quot;&gt;ns1:Server.Unauthorized&l
t;/faultcode&gt;&lt;faultstring&gt;Remote administrator access is not 
allowed!&lt;/faultstring&gt;&lt;detail&gt;&lt;ns2:hostname xmlns:ns2=&
quot;http://xml.apache.org/axis/&quot;&gt;lee.mi.fu-berlin.de&lt;/ns2:hostname&gt;&lt;/detail&gt;&lt;/soapenv:Fault&gt;&lt;/soapenv:Body&gt;
&lt;/soapenv:Envelope&gt;
[java] {http://xml.apache.org/axis/}HttpErrorCode:401

Best regards,

Abid

-- 

Abid Hussain
Mail: abid.hussain@abid76.de
Web: http://www.abid76.de

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message