Original post address: http://ajava.org/course/tool/11409.html
Core Tip: Generally, the Web Service is developed by selecting the write server and then generating the client based on the generated WSDL file. I have read an SOA book saying that if the implementation prevents incompatibility between some specific data types in different languages, we recommend that you first define the WSDL interface, inc
Usage Environment: MyEclipse9.0This tutorial uses the MyEclipse built-in plug-in to generate Java code, which is said to be a xfire plug-in, anyway, it is very simple to generate and invoke client code.1. Right-click on the project and select New->other->web service->web Service client->next to see the following interf
1, to the official website to download, I use is Apache-cxf-2.5.10.zip2. Decompression3. Enter the bin directory of Apache CXF via the command line, as my directory is D:\BIS\axis2\apache-cxf-2.7.10\bin(This directory is the directory where Wsdl2java.bat is located (if not, the full path where the. bat is written))4. Enter the command:Wsdl2java.bat-p com.oscar999-client-encoding utf-8-noaddressbinding wsdl fileDescriptionWsdl2java usage:Wsdl2java-p co
generate the server and client code
The deployment file is also generated: DEPLOY.WSDD, uninstalling the file: UNDEPLOY.WSDD
5, find the Web.xml in the Web.xml overlay project from the downloaded axis1.4 jar package, which is equivalent to configuring the access servlet
6, deploy the project and start the server. Copy the DEPLOY.WSDD to the web-info of the deployment path and
may not interoperate with other implementations
-help
Display help
-httpproxy:
Specify an HTTP proxy server (port defaults to 8080)
-keep
Keep generated files
-p
Specifying a target package via this command-line option, overrides any wsdl and schema binding customization for package name and the default package name algorithm defined in the specification
-s
Specify where to place ge
First go to the official website to download axis1.4 and then write a bat file
Set Axis_lib=c:\axislib\axislib\lib (This is Axis's Lib package)Set java_cmd=java-djava.ext.dirs=%axis_lib%Set OUTPUT_PATH=C:\SOAP_SRC\SRC (This is the location of the generated Java code output)Set Package=com.huawei.mdn.wsi.engine.client%java_cmd% org.apache.axis.wsdl.wsdl2java-o%output_path%-p%package%--server-side TvodMergeStatus.wsdl (source
option, overrides any wsdl and schema binding customization for package name and the default package name algorithm defined in the specification-S -Verbose Output messages about what the compiler is doing-Version Print version information-Wsdllocation -Target Generate code as per the given JAX-WS specification version. version 2.0 will
1. Download the CXF package firsthttp://cxf.apache.org/download.html, now CXF bag. (Download resources will be available)2. Unpack the package and go to the bin directory via the cmd command (the path of the CD Cxf\bin)CXF Generating Client code3. Using the Wsdl2java command to generate the client codeExecute wsdl2java-p org.logink.ws-d f:\logink\src-all E:\wsdl3.1-credit\LogisticsCreditService\ at the command line logisticscreditservice.wsdlWsdl2java
1, first download CXF package http://cxf.apache.org/download.html, now CXF package. (Download resources will be available)
2. Unpack the package and go to the bin directory via the cmd command (the path of the CD Cxf\bin)
CXF Generating Client code3. Use the Wsdl2java command to generate client code at the command line to execute wsdl2java-p org.logink.ws-d f:\logink\src-all E:\wsdl3.1-credit\ logisticsc
CXF: generate the WSDL (convert) and cxfwerservice according to the werservice code.
Original article: http://hongyegu.iteye.com/blog/619147,thank you!
Import org. apache. cxf. tools. java2ws. JavaToWS; import net. bwda. service. Busi. webservice. FileMarkService; public class Java2WSDL {private Class
, if $strXML = $disc->getwsdl (); echo $strXML; The WSDL file for the XML will not be displayed in the browser. Because the browser defaults to "Html/text" to return the contents of stdout, it needs to be used in the header of the PHP script:header ("content-type:text/html; Charset=utf-8 "); Can let the browser not to the output as HTML but as XML to parse! Run the create_wsdl.php file as a Web access, you will ge
", Result.getstate ()); - Resultlist.add (resultmap); - } - } ARootresult.put ("ResultCode", ResultCode); +Rootresult.put ("Resultmsg", resultmsg); theRootresult.put ("Resultlist", resultlist); - returnRootresult; $}Catch(Exception e) { the e.printstacktrace (); the } the returnRootresult; the}Summarize:The above code are related to the project, I hope to help you, if there is a problem, can QQ c
The PHP Soap Web service uses SoapDiscovery.class.php to generate the WSDL file,
The PHP SOAP Web service uses the WSDL file demo:
==============================================================
Service side:
Before using the WSDL Soap WebService demo, use the cw.php file to genera
PHPsoapWebService uses SoapDiscovery. class. php to generate the wsdl file ,. PHPsoapWebService uses SoapDiscovery. class. php to generate the wsdl file. PHPsoapwebservice uses the wsdl file demo: server PHP soap Web Service uses SoapDiscovery. class. php to
PHPsoapWebService uses SoapDiscovery. class. php to generate the wsdl file-zakun PHP soap web service uses the wsdl file demo:
========================================================== ======================================
Server:
Use the cw. php file to generate the wsdl
I used the simplest method of using the JDK command wsimport-keep-p package path- d code to store the location wsdl URL Blue is the command, Pink is the storage location , Orange is the URL
C:\Program files\ibm\sqllib\java\jdk\bin>wsimport-keep-p com.demo.client -D C:\Users\IBM_ADMIN\Documents\MyWorking\WebService\WSDL2JAVA Http://ws.webxml.com.cn/WebServices/MobileCodeWS.asmx?
Use Jetty+axis2 to implement the WebService service side without using the AXIS2 command to generate the server-side code, as long as Services.xml configures the implementation class.Project for Gradle Engineering profile in Src/main/resources/axis2/web-inf/services.xml:The browser accesses the server-side WSDL address, and the saved
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.