Topic: axis问题,恳请热心人帮助!!!!!!!!!!! |
Print this page |
1.axis问题,恳请热心人帮助!!!!!!!!!!! | Copy to clipboard |
Posted by: yanz03 Posted on: 2004-09-18 15:10 我执行完java org.apache.axis.client.AdminClient deploy.wsdd这条命令后,显示: Processing file deploy.wsdd <Admin>Done processing</Admin> 这说明我服务器端的程序没错误了吗? 但是浏览http://localhost:8080/axis/services/DBTest?wsdl后却发现什么都没有?????我的程序名是DBTest.java 是我的程序有错误吗????但是该怎样追踪调试?????????????????????????????? |
2.Re:axis问题,恳请热心人帮助!!!!!!!!!!! [Re: yanz03] | Copy to clipboard |
Posted by: sssmaan Posted on: 2004-09-19 10:22 先试: http://localhost:8080/axis/services/DBTest 在试: http://localhost:8080/axis/services/DBTest?wsdl 有问题没? |
3.Re:axis问题,恳请热心人帮助!!!!!!!!!!! [Re: yanz03] | Copy to clipboard |
Posted by: yanz03 Posted on: 2004-09-19 17:38 sssmaan:这2个地址都试了,都是空白页,没反应。怎么办? 我服务器端的程序是要从数据库中调出数据然后发送到客户端,在axis 中涉及到数据库的是不是需要特别处理???? |
4.Re:axis问题,恳请热心人帮助!!!!!!!!!!! [Re: yanz03] | Copy to clipboard |
Posted by: yanz03 Posted on: 2004-09-19 18:57 各位老大,我服务器端的代码是这样的,帮我看看吧,我真的很着急! import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class DBTest { private DBTest() { } public static Connection getConnection() { try { Class.forName("oracle.jdbc.driver.OracleDriver").newInstance(); return DriverManager.getConnection("jdbc:oracle:thinlocalhost:1521:yan", "hsapp","1"); } catch(Exception e) { e.printStackTrace(); return null; } } public static void close(Connection conn) { try { if(conn != null && !conn.isClosed()) { conn.close(); } }catch(SQLException e) { e.printStackTrace(); } } public ResultSet hello(String user_id) { ResultSet rs=null; try { Connection conn = DBTest.getConnection(); Statement st = conn.createStatement(); rs = st.executeQuery("select * from AWAKE_TEST where USERID='"+user_id+"'"); st.close(); conn.close(); }//end try catch(SQLException e) { e.printStackTrace(); }//end catch return rs; }//end DBTest } |
5.Re:axis问题,恳请热心人帮助!!!!!!!!!!! [Re: yanz03] | Copy to clipboard |
Posted by: nosleep Posted on: 2004-09-20 20:07 搂主执行完java org.apache.axis.client.AdminClient deploy.wsdd成功后,其实只是在%axis%\WEB-INF\service-config.wsdd文件中加入了deploy.wsdd中的内容。关于访问http://localhost:8080/axis/services/DBTest?wsdl没有显示wsdl内容的问题的可能情况有很多。 因为不知道你的deploy.wsdd文件的内容 现暂时只能估计你在deploy.wsdd中没有加入类型映射的定义 |
6.Re:axis问题,恳请热心人帮助!!!!!!!!!!! [Re: yanz03] | Copy to clipboard |
Posted by: BlurEyes Posted on: 2004-10-18 13:20 根本就没法串行化ResultSet这类的类,怎么可能发布成功? |
7.Re:axis问题,恳请热心人帮助!!!!!!!!!!! [Re: sssmaan] | Copy to clipboard |
Posted by: drewqi Posted on: 2004-12-16 00:59 Ding |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |