You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by ??? <ma...@handysoft.co.kr> on 2001/03/08 02:25:16 UTC

E﹐?A: martin

I did test the calculator sample on my machine, and it works well...
I started tomcat server like this:
 
  C:\jakarta-tomcat-3.2.1\bin>startup
  Including all jars in ..\lib in your CLASSPATH.
 
  Using CLASSPATH:
..\classes;..\lib\xerces_1_2.jar;C:\soap-2_1;..\lib\ant.jar;..\
 
lib\jaxp.jar;..\lib\servlet.jar;..\lib\parser.jar;..\lib\webserver.jar;.
.\lib\ja
 
sper.jar;..\lib\soap.jar;..\lib\xerces_1_2.jar;..\lib\js.jar;..\lib\bsfe
ngines.j
 
ar;..\lib\bsf.jar;..\lib\mail.jar;..\lib\activation.jar;..\lib\xerces_1_
2.jar;c:
   \jdk1.3.0_02\lib\tools.jar
 
   Starting Tomcat in new window
   C:\jakarta-tomcat-3.2.1\bin>
 
And... I ran the /calculator/testit.cmd like this:
 
   C:\soap-2_1\samples\calculator>echo %CLASSPATH%
 
c:\lib\xerces_1_2.jar;c:\lib\soap.jar;c:\lib\mail.jar;c:\lib\activation.
jar;c:\s
   oap-2_1;.
 
   C:\soap-2_1\samples\calculator>testit.cmd
   This test assumes a server URL of
http://localhost:8080/soap/server/rpcrouter
<http://localhost:8080/soap/server/rpcrouter> 
   Deploying the calcuator service...
   .
   Verify that its there
   Deployed Services:
           urn:xml-soap-demo-calculator
   .
   Running the calculator
   Ouch, the call failed:
     Fault Code   = SOAP-ENV:Server
     Fault String = BSF Error: unable to load language: javascript
   .
   Undeploy it now
   .
   Verify that its gone
   Deployed Services:
 
   C:\soap-2_1\samples\calculator>
 
This sample program shows a calculator gui window, but i don't know how
to use it... it's funny... there's no enter button...
However, it works well... Try again and good luck....
 
 
Martin
 
 
 

-----?? ???-----
?? ??: Alex (陳照東) [mailto:alex@erp.ncu.edu.tw]
?? ??: Wednesday, March 07, 2001 9:24 PM
?? ??: soap-user@xml.apache.org
??: martin


Dear martin:
love u guy!!
u can see belows:
 
D:\soap-2_1\samples\calculator>testit
This test assumes a server URL of
http://localhost:8080/soap/server/rpcrouter
<http://localhost:8080/soap/server/rpcrouter> 
Deploying the calcuator service...
請按任意鍵繼續 . . .
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
msg=Unsu
pported response content type "text/html", must be: "text/xml". Response
was:
<h1>Error: 404</h1>
<h2>Location: /soap/servlet/rpcrouter</h2>
]
        at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:173)
        at org.apache.soap.rpc.Call.invoke(Call.java:210)
        at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManag
erClient.java:127)
        at
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClie
nt.java:140)
        at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient
.java, Compiled Code)

 
 
hey martin, y see that ?? 
SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsu
pported response content type "text/html", must be: "text/xml". 
 
why it says must be "text/xml" ???   ^^
 
 

IT DEP. Special Team-XML 
       Alex      
Tel:(03)4227151 ext:6024
 
alex@ERP.NCU.EDU.TW <ma...@ERP.NCU.EDU.TW> 
=We Do Enterprise Services=