You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Abid Hussain <ab...@abid76.de> on 2006/11/03 17:21:47 UTC
problem with https
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] <?xml version="1.0"
encoding="utf-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.
org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&qu
ot;><soapenv:Body><soapenv:Fault><faultcode
xmlns:ns1="http://xml.apache.org/axis/">ns1:Server.Unauthorized&l
t;/faultcode><faultstring>Remote administrator access is not
allowed!</faultstring><detail><ns2:hostname xmlns:ns2=&
quot;http://xml.apache.org/axis/">lee.mi.fu-berlin.de</ns2:hostname></detail></soapenv:Fault></soapenv:Body>
</soapenv:Envelope>
[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