简体   繁体   English

在Android中将SOAP与WSDL结合使用

[英]Using SOAP with WSDL in Android

I used to work with hard coded data, now I got a Web Service WSDL that returns SOAP objects . 我曾经使用过硬编码的数据,现在有了返回SOAP objectsWeb Service WSDL

Following WSDL instruction, I created a Class with the right fields and extracting it by those fields. 按照WSDL指令,我创建了一个具有正确字段的Class ,并通过这些字段将其提取。

But In the instruction of using this Web Service it says to use a simple SOAP codegen to generate client classes based on the WSDL. 但是在使用该Web Service的说明中,它说使用简单的SOAP代码生成器来基于WSDL生成客户端类。

What is that mean? 那什么意识?

It means that you can use a tool in order to generate your Web Service client classes. 这意味着您可以使用工具来生成Web Service客户端类。 That tool generates the Java classes based on the WSDL service definition. 该工具基于WSDL服务定义生成Java类。

For instance, you can check http://www.wsdl2code.com/ There you simply submit the WSDL and then download the generated source files. 例如,您可以检查http://www.wsdl2code.com/,在那里您只需提交WSDL,然后下载生成的源文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM