Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
build/
.buildpath
.project
tests/work
tests/PHPUnit/work
vendor/
46 changes: 45 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
ChangeLog wsdl2php
------------------

-- 0.3.1 --

2014-07-18 AustP <https://github.com/AustP>

* src/bin/wsdl2php.php
- Improved documentation
+ Added maxOccurence support
+ Class documentation now uses parseDoc
+ No documentation flag doesn't generate member types now

-- 0.3 --

2014-07-16 AustP <https://github.com/AustP>

ChangeLog wsdl2php
* src/bin/wsdl2php.php:
- Added server side generation
- Added ability to turn off documentation
- Added verbosity
- Improved documentation
+ Added documentation for types
+ Added documentation for members
+ Only print out documentation if it exists
- Improved extensions
+ Made sure if a class is extending another class, that it is generated beneath its parent class
+ Made sure we aren't overwriting parent variables unnecessarily
- Determines if some types are unused, and excludes them by default
- <import> lines in WSDLs are now supported
- Type's substitutionGroup attribute are now supported
- Made generated code more uniform
- Cleaned/Optimized the code

* README
- Updated assuming more people will use wsdl2php as: php wsdl2php.php -i <path_to_WDSL>

* TODO
- Removed things that I have done

* tests/
- Moved all of the files/folders here into a subdirectory PHPUnit/
- Added IP2Geo/
+ Added getLocationForIP.php
- Added Weather/
+ Added getWeatherForZIP.php

-- 0.2.1 --

Expand Down
44 changes: 0 additions & 44 deletions README

This file was deleted.

39 changes: 39 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
wsdl2php
--------
wsdl2php is a tool for generating SoapServer/SoapClient classes from a WSDL file.

Installation
------------
1. Copy src\bin\wsdl2php.php to a folder.
2. Open a command prompt in that folder location.
3. Use wsdl2php as described below.

For Linux users, src\bin\wsdl2php is a wrapper for easier usage, copy that as well

Usage
-----
php wsdl2php.php -i C:\path\to\WSDL

For Linux users, you can just do

wsdl2php -i /path/to/WSDL
Note: the WSDL path can also be an accessible URL.

Options
-------
+ -o <output_dir> | directory used for output
+ -n <namespace> | namespace to use
+ -g <sub_namespace> | sub-namespace to use
+ -p | use pear style Namespace - defaults to PSR-0
+ -s | generate code for server side
+ -d | turn off documentation generation
+ -v | generate all code (docs and unused)

Credits
-------
+ Knut Urdalen - author
+ AustP - contributor
+ Joel Barciauskas - contributor
+ John Lindal - contributor

Originally cloned from http://www.urdalen.no/wsdl2php/
22 changes: 0 additions & 22 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -5,41 +5,19 @@
that Amazon has a class List which conflicts with PHP 's T_LIST /
list() (aslo seen break);

* Handle . and - in class names

* Support for various code layouts
1. Minimal: All client code (SoapClient and complexTypes) in one file
2. Standard: One file pr class
3. Enterprise: One file pr class, complexTypes in own directory

* Change service class to extend SoapClient instead

* Flag generation of PHPDoc on/off

* Update PHPDoc generation to be valid!

* Extract documentation from WSDL (Partly implemented)

* Add linebreak on reasonable length of wsdl:documentation (FIXED through parse_doc)

* Remove @param if no parameter for service function

* Handle the "dot net" jargon (namespaces) to find service name, documentation and other usefull information
* Handle "axis" jargon (seems to be some issues around arra usage and namespace conventions)

* Transform return type from ArrayOf* to *[] (documentation visual)

* Detect changes in generated files and notify user before overwrite (as default)

* Add command line options
- verbose
- help
- force
- specify seperation of complexType from service class into seperate files (default should be all in one file)
- ask before overwrite

* Handle dateTime!!!

Quality Assurance:

o MS.NET
Expand Down
14 changes: 7 additions & 7 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
-->
<project name="wsdl2php" basedir="." default="main">

<property name="version" value="0.2.1" />
<property name="version" value="0.3.1" />
<property name="build.base.dir" value="build"/>
<property name="pkgname" value="wsdl2php-${version}"/>
<property name="build.src.dir" value="${build.base.dir}/${pkgname}"/>
<property name="codecoverage" value="false"/>
<property name="reports.dir" value="tests/reports"/>
<property name="reports.dir" value="tests/PHPUnit/reports"/>
<property name="reports.unit.dir" value="${reports.dir}/unit"/>
<property name="reports.codecoverage.dir" value="${reports.dir}/coverage"/>
<property name="reports.style.dir" value="${reports.dir}/style"/>
Expand All @@ -22,8 +22,8 @@
</fileset>

<fileset dir="." id="tests">
<include name="tests/ColdFusion/*Test.php"/>
<include name="tests/DotNet/*Test.php"/>
<include name="tests/PHPUnit/ColdFusion/*Test.php"/>
<include name="tests/PHPUnit/DotNet/*Test.php"/>
</fileset>

<fileset dir="." id="misc">
Expand Down Expand Up @@ -66,11 +66,11 @@
<pearpkg name="wsdl2php" dir="${build.src.dir}" destFile="${build.base.dir}/package.xml">
<fileset refid="scripts"/>

<option name="notes">wsdl2php is a simple tool for PHP 5 to generate client code against a WSDL-file</option>
<option name="notes">wsdl2php is a tool for generating SoapServer/SoapClient classes from a WSDL file.</option>

<!-- Set the simple options -->
<option name="description">PHP 5 Web Service Proxy Generator</option>
<option name="summary">wsdl2php is a tool for generating proxy classes that can be used to access web services</option>
<option name="description">PHP 5 SoapServer/SoapClient Generator</option>
<option name="summary">wsdl2php is a tool for generating SoapServer/SoapClient classes from a WSDL file.</option>
<option name="version" value="${version}"/>
<option name="state" value="alpha"/>
<option name="license" value="LGPL"/>
Expand Down
Loading