这个服务的wsdl为:
<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions targetNamespace="http://127.0.0.1:8080/axis/HelloService.jws" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://127.0.0.1:8080/axis/HelloService.jws" xmlns:intf="http://127.0.0.1:8080/axis/HelloService.jws" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <!--
WSDL created by Apache Axis version: 1.3
Built on Oct 05, 2005 (05:23:37 EDT) -->
- <wsdl:message name="sayHelloResponse">
<wsdl:part name="sayHelloReturn" type="xsd:string" />
</wsdl:message>
- <wsdl:message name="sayHelloRequest">
<wsdl:part name="username" type="xsd:string" />
</wsdl:message>
- <wsdl:portType name="HelloService">
- <wsdl:operation name="sayHello" parameterOrder="username">
<wsdl:input message="impl:sayHelloRequest" name="sayHelloRequest" />
<wsdl:output message="impl:sayHelloResponse" name="sayHelloResponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="HelloServiceSoapBinding" type="impl:HelloService">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="sayHello">
<wsdlsoap:operation soapAction="" />
- <wsdl:input name="sayHelloRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace" use="encoded" />
</wsdl:input>
- <wsdl:output name="sayHelloResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://127.0.0.1:8080/axis/HelloService.jws" use="encoded" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="HelloServiceService">
- <wsdl:port binding="impl:HelloServiceSoapBinding" name="HelloService">
<wsdlsoap:address location="http://127.0.0.1:8080/axis/HelloService.jws" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions targetNamespace="http://127.0.0.1:8080/axis/HelloService.jws" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://127.0.0.1:8080/axis/HelloService.jws" xmlns:intf="http://127.0.0.1:8080/axis/HelloService.jws" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <!--
WSDL created by Apache Axis version: 1.3
Built on Oct 05, 2005 (05:23:37 EDT) -->
- <wsdl:message name="sayHelloResponse">
<wsdl:part name="sayHelloReturn" type="xsd:string" />
</wsdl:message>
- <wsdl:message name="sayHelloRequest">
<wsdl:part name="username" type="xsd:string" />
</wsdl:message>
- <wsdl:portType name="HelloService">
- <wsdl:operation name="sayHello" parameterOrder="username">
<wsdl:input message="impl:sayHelloRequest" name="sayHelloRequest" />
<wsdl:output message="impl:sayHelloResponse" name="sayHelloResponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="HelloServiceSoapBinding" type="impl:HelloService">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="sayHello">
<wsdlsoap:operation soapAction="" />
- <wsdl:input name="sayHelloRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://DefaultNamespace" use="encoded" />
</wsdl:input>
- <wsdl:output name="sayHelloResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://127.0.0.1:8080/axis/HelloService.jws" use="encoded" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="HelloServiceService">
- <wsdl:port binding="impl:HelloServiceSoapBinding" name="HelloService">
<wsdlsoap:address location="http://127.0.0.1:8080/axis/HelloService.jws" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
解决方案 »
- SSH在很长时间不操作,再操作的时候报错
- 上传到tomcat应用目录中的文件怎么会自己删除..
- 100分问struts2用户转换时校验问题,在线等
- 谁知道 hibernate annotation 3.2 or 3.3在哪里下载
- 在b/s结构中,如果让服务器端报错的信息,不显示到jsp中,怎么办?
- ◆◆◆◆烦!烦!烦!烦!烦!烦!我想在应用程序的/temp文件夹中建立aaa文件夹该如何做?,请高手帮忙◆◆◆◆
- 为什么偶尔出现取得的HTTP请求中参数为空?急!
- 怎么往邮件里加附件呀,很急,有知道者请速回复,谢谢了!!!
- 哪位高手对于在B/S模式的程序中作事务处理有经验,请谈一下
- 向高手请教问题,大家看过来,急!!!
- 在精通struts的例子里加了个文本框password,但显示的还是username内容,而不是password提交的内容,怎么回师?????
- 如何在JSP中把sql查询的数值插入到用HTML写成的表格里
HttpConnection http = null;
try{
http = (HttpConnection)Connector.open(url, Connector.READ);
}catch(IOException ioe){
System.out.println("ioe:"+ioe.toString());
}
return http;InputStream is = null;
is = httpconn.openInputStream();
这里是获取流 需要先把流转为Document 对象,然后再对Document对象进行解析,需要用到xml解析包 public static Document getDocument(String url){
//声明一个Document
Document doc = new Document();
//声明一个XmlParaser
XmlParser xParser = null;
//声明一个NewXmlParase
NewXmlParase nXml = new NewXmlParase();
//获取输入流
InputStream is = nXml.getClass().getResourceAsStream(url);
//利用输入流为参数,转化为读流
InputStreamReader isr = NewXmlParase.getStreamByString(NewXmlParase.getUTFString(is));
try{
//实例化xParser
xParser = new XmlParser(isr);
//
doc.parse(xParser);
//将xParser置为空
xParser = null;
//捕获异常
}catch(Exception e){
xParser = null;
doc = null;
return null;
}
//返回doc
return doc;
}
另一种方法:
public static Document getDocument(InputStream is){
Document doc = new Document();
//声明一个XmlParaser
XmlParser xParser = null;
//利用输入流为参数,转化为读流
InputStreamReader isr = NewXmlParase.getStreamByString(NewXmlParase.getUTFString(is));
try{
xParser = new XmlParser(isr);
doc.parse(xParser);
xParser = null;
}catch(Exception ioe){
doc = null;
xParser = null;
return null;
}
return doc;
}用wsdl4j可以直接处理的 ,它是一个包
http://wsdl4j.sourceforge.net/downloads/