This article shares with you a PHP interface code for calling the wsdl file type. It is very simple and practical. You can use it directly if you have any requirements.
This article shares with you a PHP interface code for calling the wsdl file type.
Let's take a look at the WSDL file to see its structure and how it works. Note that this is a very simple WSDL document instance. Our intention is only to illustrate its most significant characteristics. The following content includes more detailed
PHP calls the interface code share of the WSDL file type,
Copy CodeThe code is as follows:This class is automatically generated by the system and is intended for testing purposes onlyClass Indexaction extends Action {Public Function index ()
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
When this article is written, there is no SOAP in it, and it can be used as an industry-name download. This is important for Java-enabled clients, because the interface used by the Java server will take advantage of Java's multiple downloads. But
After the WebService project is published, the Address bar address http://localhost:8888/lxitedu.webservice.cxf-ch2/services/userService?wsdlUse this XML document to generate Java code that is applied to our program:You need to use the command
attached with page JSP, JS, and Dwr action,service and Util, my environment is spring, DWR, ext, jquery. Because the entire tool involved more, so did not complete the operation of the Code to organize, only the core of the code posted out, if you
1. Download online: Apache-cxf-2.5.11.zip
2, decompression put to the corresponding directory
3, execute the following code to generate the corresponding client
4 、--Build Client
Wsdl2java-autonameresolution-frontendjaxws21-impl-exsh True-p
Nusoap WSDL File Description:
My server is created as follows:
App::import (' Vendor ', ' nusoap/lib/nusoap ');
$server = new Soap_server;
$server->configurewsdl (' Sum ');
$server->register (' Sum ', Array (' x ' = ' xsd:string ', ' y ' = '
. Add the wdsl requirement after the URL of the web service, as shown below:
Http: // localhost/webexamples/simpleservice. asmx? WSDL
2.use disco.exe. Write the following command in the command line:
Disco http: //
The Eclipse API is relatively small in Chinese, but the Eclipse API provides a very large and powerful feature.For example, Eclipse's Eclipse API provides a ORG.ECLIPSE.WST.WSDL package that provides many classes to parse a WSDL file.In general, the
The WSDL (Web services Description language,web Service Description Language) is an XML application that defines a Web service description as a set of service access points, These service access points allow clients to access services that contain
Nusoap WSDL File Description:
My server is created as follows:
App::import (' Vendor ', ' nusoap/lib/nusoap ');
$server = new Soap_server;
$server->configurewsdl (' Sum ');
$server->register (' Sum ', Array (' x ' = ' xsd:string ', ' y ' = '
? PHP/** * Copyright (c)2005, Braulio Jos? Solano Rojas*All rights reserved.* * Redistribution andUseinchSource andBinary forms, with orwithout modification, is*permitted provided that the following conditions is met:* * redistributions ofSource
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.
Let's take a look at the WSDL file to see its structure and how it works. Note that this is a very simple WSDL document instance. Our intention is only to illustrate its most significant characteristics. The following content includes more detailed
There are three methods to generate WSDL in. Net:
1. Add the wdsl requirement after the URL of the Web Service, as follows:
Http: // localhost/webexamples/simpleservice. asmx? WSDL
2.use disco.exe. Write the following command in the command
Specific steps to operate:
1. Run the cmd command input C:\jdk-1_6_0_31\bin (depending on where your JDK is installed)2. New Gen.bat file3. The contents of the Gen.bat file are: wsimport-keep-verbose-s E:\workspace\ACE_FFP_WS\src
web| Microsoft uses UDDI Web Services Description and Discovery (Part I)
Karsten Januszewski
Microsoft Corporation
October 3, 2001
View and download the source code (in English) for this article.
Brief Introduction
So far,
At Your ServiceThe column
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.