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 Joaquim Joao Rafael <jr...@CPCIS.pt> on 2002/04/08 17:24:25 UTC

newbie help.

I'm trying to run the tutorial, and get a method not allowed faultString.
Can someone help me?
 
If more details necessary, please just ask. But I need HELP!
 
Thanks. 
Joao Rafael
 
Here is the output:
 

500 Internal Server Error

/teste_ws/testJavaClassWebService.jsp:
 
AxisFault
  faultCode: http://xml.apache.org/axis/:HTTP
  faultString: Method not allowed
  faultActor: null
  faultDetails: [<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html dir=ltr>
 
<head>
<style>
a:link                 {font:8pt/11pt verdana; color:FF0000}
a:visited              {font:8pt/11pt verdana; color:#4e4e4e}
</style>
 
<META NAME="ROBOTS" CONTENT="NOINDEX">
 
<title>The page cannot be displayed</title>
 
<META HTTP-EQUIV="Content-Type" Content="text-html; charset=Windows-1252">
</head>
 
<script> 
function Homepage(){
<!--
// in real bits, urls get returned to our script like this:
// res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm 
 
        //For testing use DocURL =
"res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm"
        DocURL=document.URL;
        
        //this is where the http or https will be, as found by searching for
:// but skipping the res://
        protocolIndex=DocURL.indexOf("://",4);
        
        //this finds the ending slash for the domain server 
        serverIndex=DocURL.indexOf("/",protocolIndex + 3);
 
        //for the href, we need a valid URL to the domain. We search for the
# symbol to find the begining 
        //of the true URL, and add 1 to skip it - this is the BeginURL
value. We use serverIndex as the end marker.
        //urlresult=DocURL.substring(protocolIndex - 4,serverIndex);
        BeginURL=DocURL.indexOf("#",1) + 1;
        urlresult=DocURL.substring(BeginURL,serverIndex);
               
        //for display, we need to skip after http://, and go to the next
slash
        displayresult=DocURL.substring(protocolIndex + 3 ,serverIndex);
        document.write( '<A HREF="' + escape(urlresult) + '">' +
displayresult + "</a>");
}
//-->
</script>
 
<body bgcolor="FFFFFF">
 
<table width="410" cellpadding="3" cellspacing="5">
 
  <tr>   
    <td align="left" valign="middle" width="360">
        <h1 style="COLOR:000000; FONT: 13pt/15pt verdana"><!--Problem-->The
page cannot be displayed</h1>
    </td>
  </tr>
  
  <tr>
    <td width="400" colspan="2">
        <font style="COLOR:000000; FONT: 8pt/11pt verdana">The page you are
looking for cannot be displayed because the page address is
incorrect.</font> </td>
  </tr>
  
  <tr>
    <td width="400" colspan="2">
        <font style="COLOR:000000; FONT: 8pt/11pt verdana">
 
        <hr color="#C0C0C0" noshade>
        
    <p>Please try the following:</p>
 
        <ul>
      <li>If you typed the page address in the Address bar, check that it is
entered correctly.<br>
      </li>
          
       <li>Open the 
           
           <script>
           <!--
           if (!((window.navigator.userAgent.indexOf("MSIE") > 0) &&
(window.navigator.appVersion.charAt(0) == "2")))
           {
                 Homepage();
           }
           //-->
           </script>
 
           home page and then look for links to the information you
want.</li>
    </ul>
    
    <h2 style="COLOR:000000; FONT: 8pt/11pt verdana">HTTP 405 - Resource not
    allowed<br>
    Internet Information Services</h2>
        
        <hr color="#C0C0C0" noshade>
        
        <p>Technical Information (for support personnel)</p>
        
<ul>
<li>More information:<br>
<a
href="http://www.microsoft.com/ContentRedirect.asp?prd=iis&sbp=&pver=5.0&pid
=&ID=405&cat=web&os=&over=&hrd=&Opt1=&Opt2=&Opt3=" target="_blank">Microsoft
Support</a>
</li>
</ul> 
 
    </font></td>
  </tr>
  
</table>
</body>
</html>
]
 
        at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:329)
        at
org.apache.axis.SimpleTargetedChain.invoke(SimpleTargetedChain.java:100)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:166)
        at
org.apache.axis.client.ServiceClient.invoke(ServiceClient.java:657)
        at
org.apache.axis.client.ServiceClient.invoke(ServiceClient.java:571)
        at
org.apache.axis.client.ServiceClient.invoke(ServiceClient.java:494)
        at SampleClient.getBiggerInt(SampleClient.java:45)
        at
jrun__testJavaClassWebService2ejsp1c._jspService(jrun__testJavaClassWebServi
ce2ejsp1c.java:58)
        at
allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:39)
        at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:228)
        at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:196)
        at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
        at
allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServic
e.java:1082)
        at
allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
        at
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis
patcher.java:89)
        at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552)
        at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542)
        at
allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364)
        at
allaire.jrun.jrpp.ProxyEndpoint.run(../jrpp/ProxyEndpoint.java:388)
        at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
        at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)