axis 如何使用
在网上找了好久没一个写的详细的,我下载了一个axis1.4的 放在tomcat/webapps 目录下了 环境也设好了,应该没问题 做了一个HelloWard小测试
能过 http://localhost:8080/axis/Hello.jws?wsdl 地址可以正确访问了,可是我不明白我想调用一个远程的 .net写的 webservice 发送如下代码,我想不明白的是以下的这些代码怎么发?用什么函数?还是写在某个文件里?
POST /searchservice.asmx HTTP/1.1
HOST: orion
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction:http://gse.giaval.com/LogonAsGuest
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body> <LogonAsGuest xmlns="http://gse.giaval.com/" /></soap:Body>
</soap:Envelope>
call.setTargetEndpointAddress(new java.net.URL("http://orion/"));
call.setOperationName(new QName("http://orion/",method)); //这段蓝色的代码是什么意思为什么出现两个地址要怎么写
// 下面这几行也不知道是什么意思 在网上找不到中文的文档 本来就对这方面薄弱 现在更是一头雾水 谁能解救我于苦海 在下感激不尽。
call.setUseSOAPAction(true);
call.setReturnType(org.apache.axis.encoding.XMLType.SOAP_ARRAY);
call.setSOAPActionURI("http://tempuri.org/GetServerList");
Object[] k = (Object[])call.invoke(new Object[]{});
网上找的资料 都是东一块西一块的