Using axis1.4 to generate corresponding Java code from a WSDL file

Source: Internet
Author: User
Tags wsdl

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 WSDL file)


Client development is simple: simple

This is the address of the server
String memserviceaddr = Acsconfig.getinstance (). GetConfig (acsconstant.mem_order_service_address);

This is a WSDL-generated Java class
Tvvasserviceservice memsoapservice = new Tvvasserviceservicelocator ();
URL endpoint = new URL (memserviceaddr);
Return Memsoapservice.gettvvasservice (endpoint);


Server development to configure the next WSDD file, WSDD file is mainly used to generate WSDL file external services

Then the background to write an excuse for the implementation of the class can be

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.