Compare commits
42 Commits
Author | SHA1 | Date | |
---|---|---|---|
e6beef5a80 | |||
69a7005c35 | |||
073028f160 | |||
a9f11beb83 | |||
7ab8771989 | |||
d68c25daad | |||
6e117940a3 | |||
0c47f5a8d4 | |||
75a0489cce | |||
de5d6a2647 | |||
6970b7bbef | |||
b650254d54 | |||
668f2dd258 | |||
a8bc834077 | |||
f74e4b08ce | |||
dcd5ff5234 | |||
7bd8481a4e | |||
c82288d641 | |||
bb20882ade | |||
2264e329a1 | |||
b9e36b4900 | |||
d495f22413 | |||
8db9b374e4 | |||
f669c18c7f | |||
524d1f3fd7 | |||
ecffdc18fd | |||
b45202f40a | |||
ab83642f06 | |||
564005da93 | |||
311f9e6d08 | |||
e67d5aa84b | |||
d3023b1a5a | |||
21d705bbfa | |||
0e2c33faf8 | |||
cf6e147c26 | |||
f276a30a47 | |||
4edc46e67f | |||
a76526a5b6 | |||
baf32c1350 | |||
5c0bf914e3 | |||
01d10b89fd | |||
e1b50ce914 |
23
.travis.yml
23
.travis.yml
@ -1,25 +1,14 @@
|
|||||||
language: php
|
language: php
|
||||||
|
|
||||||
php:
|
php:
|
||||||
- 5.3
|
- 7.0
|
||||||
- 5.4
|
- 7.1
|
||||||
- 5.5
|
|
||||||
- 5.6
|
|
||||||
|
|
||||||
env:
|
|
||||||
- SYMFONY_VERSION=2.6.*
|
|
||||||
- SYMFONY_VERSION="dev-master symfony/debug:~2.7@dev symfony/http-kernel:~2.7@dev"
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- composer self-update
|
- composer self-update
|
||||||
- composer require symfony/framework-bundle:${SYMFONY_VERSION} --no-update
|
- composer install
|
||||||
- composer update --no-interaction --prefer-source
|
- cp phpunit.xml.dist phpunit.xml
|
||||||
- ./src/BeSimple/SoapClient/Tests/bin/phpwebserver.sh
|
- php -S localhost:8000 > /dev/null 2>&1 &
|
||||||
- ./src/BeSimple/SoapClient/Tests/bin/axis.sh
|
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- phpunit --coverage-text
|
- vendor/phing/phing/bin/phing -f build.xml
|
||||||
|
|
||||||
matrix:
|
|
||||||
allow_failures:
|
|
||||||
- env: SYMFONY_VERSION="dev-master symfony/debug:~2.7@dev symfony/http-kernel:~2.7@dev"
|
|
||||||
|
75
README.md
75
README.md
@ -1,8 +1,8 @@
|
|||||||
# BeSimpleSoap
|
# BeSimpleSoap
|
||||||
|
|
||||||
Build SOAP and WSDL based web services.
|
Build SOAP and WSDL based web services.
|
||||||
This fork from 2017 is a refactored version that fixes a lot of errors and provides
|
This fork is a refactored version that fixes a lot of errors and provides
|
||||||
better APi, more robust, stable and modern codebase.
|
better API, robust, stable and modern codebase.
|
||||||
See [How to use](#how-to-use) that will help you to understand the magic.
|
See [How to use](#how-to-use) that will help you to understand the magic.
|
||||||
|
|
||||||
# Components
|
# Components
|
||||||
@ -23,14 +23,16 @@ BeSimpleSoap consists of five components ...
|
|||||||
|
|
||||||
## BeSimpleSoapWsdl
|
## BeSimpleSoapWsdl
|
||||||
|
|
||||||
Currently **unsupported!** For further information see the [README](https://github.com/BeSimple/BeSimpleSoap/blob/master/src/BeSimple/SoapWsdl/README.md).
|
**Untouched!**
|
||||||
|
The component is not affected by refactoring so it should work properly.
|
||||||
|
For further information see the original [README](https://github.com/BeSimple/BeSimpleSoap/blob/master/src/BeSimple/SoapWsdl/README.md).
|
||||||
|
|
||||||
## BeSimpleSoapBundle
|
## BeSimpleSoapBundle
|
||||||
|
|
||||||
Currently **unsupported!**
|
**Unsupported!**
|
||||||
The BeSimpleSoapBundle is a Symfony2 bundle to build WSDL and SOAP based web services.
|
The BeSimpleSoapBundle is a Symfony2 bundle to build WSDL and SOAP based web services.
|
||||||
For further information see the the original [README](https://github.com/BeSimple/BeSimpleSoap/blob/master/src/BeSimple/SoapBundle/README.md).
|
For further information see the the original [README](https://github.com/BeSimple/BeSimpleSoap/blob/master/src/BeSimple/SoapBundle/README.md).
|
||||||
*May not work properly since the Symfony libraries were removed.*
|
*Will not work since the Symfony libraries were removed and usages of other components were not refactored. Feel free to fork this repository and fix it!*
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
@ -45,7 +47,7 @@ Create a `composer.json` file:
|
|||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"require": {
|
"require": {
|
||||||
"besimple/soap": "0.2.*@dev"
|
"tuscanicz/soap": "^4.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -58,17 +60,12 @@ php /usr/local/bin/composer.phar install
|
|||||||
|
|
||||||
# How to use
|
# How to use
|
||||||
|
|
||||||
You can investigate the unit tests in order to get a clue.
|
You can investigate the unit tests dir ``tests`` in order to get a clue.
|
||||||
Forget about associative arrays, multiple extension and silent errors!
|
Forget about associative arrays, vague configurations, multiple extension and silent errors!
|
||||||
|
This may look a bit more complex at the first sight,
|
||||||
|
but it will guide you to configure and set up your client or server properly.
|
||||||
|
|
||||||
```
|
## Example of soap client call
|
||||||
// unit tests for soap client
|
|
||||||
BeSimple\SoapClient\Tests\SoapClientBuilderTest
|
|
||||||
// unit tests for soap server
|
|
||||||
BeSimple\SoapServer\Tests\SoapServerBuilderTest
|
|
||||||
```
|
|
||||||
|
|
||||||
## Small example of soap client call
|
|
||||||
|
|
||||||
```php
|
```php
|
||||||
$soapClientBuilder = new SoapClientBuilder();
|
$soapClientBuilder = new SoapClientBuilder();
|
||||||
@ -88,18 +85,18 @@ Turn on the tracking and catch `SoapFaultWithTracingData` exception to get some
|
|||||||
|
|
||||||
```php
|
```php
|
||||||
try {
|
try {
|
||||||
$soapResponse = $soapClient->soapCall('GetUKLocationByCounty', [$getUKLocationByCountyRequest]);
|
$soapResponse = $soapClient->soapCall('myMethod', [$myRequest]);
|
||||||
} catch (SoapFaultWithTracingData $fault) {
|
} catch (SoapFaultWithTracingData $fault) {
|
||||||
var_dump($fault->getSoapResponseTracingData()->getLastRequest());
|
var_dump($fault->getSoapResponseTracingData()->getLastRequest());
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
In this example, a ``MyRequest`` object has been used to describe request.
|
||||||
|
Using a ClassMap, you help SoapClient to turn it into XML request.
|
||||||
|
|
||||||
## Small example of soap server handling
|
## Example of soap server handling
|
||||||
|
|
||||||
Starting a SOAP server is a bit more complex.
|
Starting a SOAP server is a bit more complex.
|
||||||
I would suggest you to inspect SoapServer unit tests to get complete image.
|
I recommend you to inspect SoapServer unit tests for inspiration.
|
||||||
But don't be scared too much, you just need to create a DummyService that will
|
|
||||||
handle your client SOAP calls.
|
|
||||||
|
|
||||||
```php
|
```php
|
||||||
$dummyService = new DummyService();
|
$dummyService = new DummyService();
|
||||||
@ -116,9 +113,43 @@ $request = $soapServer->createRequest(
|
|||||||
$dummyService->getEndpoint(),
|
$dummyService->getEndpoint(),
|
||||||
'DummyService.dummyServiceMethod',
|
'DummyService.dummyServiceMethod',
|
||||||
'text/xml;charset=UTF-8',
|
'text/xml;charset=UTF-8',
|
||||||
'<your><soap><request><here /></request></soap></your>'
|
'<received><soap><request><here /></request></soap></received>'
|
||||||
);
|
);
|
||||||
$response = $soapServer->handleRequest($request);
|
$response = $soapServer->handleRequest($request);
|
||||||
|
|
||||||
var_dump($response); // Contains Response, Attachments
|
var_dump($response); // Contains Response, Attachments
|
||||||
```
|
```
|
||||||
|
In this example, a ``DummyService`` service has been used to handle request.
|
||||||
|
Using a service can help you create coherent SoapServer endpoints.
|
||||||
|
Service can hold an endpoint URL, WSDL path and a class map as associative array.
|
||||||
|
You can hold a class map as ``ClassMap`` object directly in the ``DummyService`` instead of array.
|
||||||
|
|
||||||
|
In the service you should describe SOAP methods from given WSDL.
|
||||||
|
In the example, the dummyServiceMethod is called.
|
||||||
|
The method will receive request object and return response object that are matched according to the class map.
|
||||||
|
|
||||||
|
See a simplified implementation of ``dummyServiceMethod`` to get a clue:
|
||||||
|
|
||||||
|
```
|
||||||
|
/**
|
||||||
|
* @param DummyServiceRequest $dummyServiceRequest
|
||||||
|
* @return DummyServiceResponse
|
||||||
|
*/
|
||||||
|
public function dummyServiceMethod(DummyServiceRequest $dummyServiceRequest)
|
||||||
|
{
|
||||||
|
$response = new DummyServiceResponse();
|
||||||
|
$response->status = true;
|
||||||
|
|
||||||
|
return $response;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
For further information and getting inspiration for your implementation, see the unit tests in ``tests`` dir.
|
||||||
|
|
||||||
|
# Contribute
|
||||||
|
|
||||||
|
[](https://travis-ci.org/tuscanicz/BeSimpleSoap)
|
||||||
|
|
||||||
|
Feel free to contribute! Please, run the tests via Phing ``php phing -f build.xml``.
|
||||||
|
|
||||||
|
**Warning:** Unit tests may fail under Windows OS, tested under Linux, MacOS.
|
||||||
|
54
build.xml
Normal file
54
build.xml
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
<project name="be-simple-soap" default="build">
|
||||||
|
|
||||||
|
<property environment="env"/>
|
||||||
|
|
||||||
|
<fileset id="src" dir="${project.basedir}/src">
|
||||||
|
<include name="**/*.php"/>
|
||||||
|
<exclude name="BeSimple/SoapBundle/**/*.php"/>
|
||||||
|
<exclude name="BeSimple/SoapCommon/Type/**/*.php"/>
|
||||||
|
</fileset>
|
||||||
|
|
||||||
|
<fileset id="tests" dir="${project.basedir}/tests">
|
||||||
|
<include name="**/*.php"/>
|
||||||
|
</fileset>
|
||||||
|
|
||||||
|
<target name="cleanup" description="Workspace cleanup">
|
||||||
|
<delete>
|
||||||
|
<fileset dir="${project.basedir}/cache">
|
||||||
|
<include name="**/*"/>
|
||||||
|
<exclude name=".gitkeep"/>
|
||||||
|
</fileset>
|
||||||
|
</delete>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="prepare" depends="cleanup" description="Workspace preparation">
|
||||||
|
<echo>project.basedir: ${project.basedir}</echo>
|
||||||
|
<property name="buildOutputPath" value="${project.basedir}/cache"/>
|
||||||
|
<echo>buildOutputPath: ${buildOutputPath}</echo>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="lint" depends="prepare" description="PHP Lint check">
|
||||||
|
<phplint haltonfailure="true" level="debug" deprecatedAsError="true" tofile="${buildOutputPath}/phplint-outfile.txt">
|
||||||
|
<fileset refid="src"/>
|
||||||
|
</phplint>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="varDump" depends="prepare" description="Check for forgotten var_dumps">
|
||||||
|
<exec command="${project.basedir}/vendor/bin/var-dump-check --exclude app --exclude vendor ." passthru="true" checkreturn="true"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="phpcs" depends="prepare" description="PHP_CodeSniffer checks">
|
||||||
|
<exec command="php vendor/squizlabs/php_codesniffer/bin/phpcs --ignore=BeSimple/SoapBundle/,BeSimple/SoapCommon/Type/ --standard=${project.basedir}/codesniffer-ruleset.xml --report=checkstyle --report-file=${buildOutputPath}/phpcs-checkstyle-outfile.xml src tests" passthru="true" checkreturn="true"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="phpstan" depends="prepare" description="phpstan checks">
|
||||||
|
<exec command="php vendor/bin/phpstan analyse src/BeSimple/SoapClient src/BeSimple/SoapServer > cache/phpstan-output.txt" passthru="true" checkreturn="true"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="phpUnitTests" description="Run unit tests">
|
||||||
|
<exec command="php vendor/phpunit/phpunit/phpunit --configuration=phpunit.xml --testsuite=BeSimpleSoapTestSuite" passthru="true" checkreturn="true"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="build" depends="prepare, varDump, lint, phpcs, phpstan, phpUnitTests" description="Meta target"/>
|
||||||
|
|
||||||
|
</project>
|
52
codesniffer-ruleset.xml
Normal file
52
codesniffer-ruleset.xml
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<ruleset name="WSCBE">
|
||||||
|
<description>Coding standards</description>
|
||||||
|
|
||||||
|
<rule ref="Generic.Classes">
|
||||||
|
<exclude name="Generic.Classes.OpeningBraceSameLine.BraceOnNewLine"/>
|
||||||
|
</rule>
|
||||||
|
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
|
||||||
|
<rule ref="Generic.Files">
|
||||||
|
<properties>
|
||||||
|
<property name="eolChar" value="\n"/>
|
||||||
|
<property name="lineLimit" value="200"/>
|
||||||
|
<property name="absoluteLineLimit" value="220"/>
|
||||||
|
</properties>
|
||||||
|
<exclude name="Generic.Files.LowercasedFilename.NotFound"/>
|
||||||
|
<exclude name="Generic.Files.EndFileNoNewline.Found"/>
|
||||||
|
</rule>
|
||||||
|
<rule ref="Generic.PHP">
|
||||||
|
<exclude name="Generic.PHP.UpperCaseConstant.Found"/>
|
||||||
|
<exclude name="Generic.PHP.ClosingPHPTag.NotFound"/>
|
||||||
|
<exclude name="Generic.PHP.NoSilencedErrors.Discouraged"/> <!-- unfortunately, the only way to make native SoapClient work correctly -->
|
||||||
|
</rule>
|
||||||
|
<rule ref="Generic.NamingConventions"/>
|
||||||
|
<rule ref="Generic.Functions">
|
||||||
|
<exclude name="Generic.Functions.OpeningFunctionBraceKernighanRitchie.BraceOnNewLine"/>
|
||||||
|
<exclude name="Generic.Functions.OpeningFunctionBraceBsdAllman.BraceOnSameLine"/>
|
||||||
|
</rule>
|
||||||
|
|
||||||
|
<rule ref="PSR1.Classes"/>
|
||||||
|
<rule ref="PSR1.Files"/>
|
||||||
|
<rule ref="PSR1.Methods"/>
|
||||||
|
|
||||||
|
<rule ref="PSR2.Classes"/>
|
||||||
|
<rule ref="PSR2.ControlStructures"/>
|
||||||
|
<rule ref="PSR2.Files"/>
|
||||||
|
<rule ref="PSR2.Methods"/>
|
||||||
|
<rule ref="PSR2.Namespaces"/>
|
||||||
|
|
||||||
|
<rule ref="Squiz.Classes">
|
||||||
|
<exclude name="Squiz.Classes.ClassDeclaration.EndFileAfterCloseBrace"/>
|
||||||
|
</rule>
|
||||||
|
<rule ref="Squiz.Functions">
|
||||||
|
<exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceAfterDefault"/>
|
||||||
|
<exclude name="Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeEquals"/>
|
||||||
|
</rule>
|
||||||
|
<!--<rule ref="Squiz.PHP"/>-->
|
||||||
|
<rule ref="Squiz.Objects">
|
||||||
|
<exclude name="Squiz.Objects.ObjectInstantiation.NotAssigned"/>
|
||||||
|
</rule>
|
||||||
|
<rule ref="Squiz.Scope"/>
|
||||||
|
|
||||||
|
</ruleset>
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "tuscanicz/soap",
|
"name": "tuscanicz/soap",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"description": "A fork of the abandoned besimple/soap package with added support for Symfony 3.0",
|
"description": "A largely refactored besimple/soap used to build SOAP and WSDL based web services. This fork fixes a lot of errors and provides better API, robust, stable and modern codebase.",
|
||||||
"keywords": ["soap", "soap server", "soap client"],
|
"keywords": ["soap", "soap server", "soap client"],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"authors": [
|
"authors": [
|
||||||
@ -39,14 +39,29 @@
|
|||||||
"require-dev": {
|
"require-dev": {
|
||||||
"ext-mcrypt": "*",
|
"ext-mcrypt": "*",
|
||||||
"mikey179/vfsStream": "~1.0",
|
"mikey179/vfsStream": "~1.0",
|
||||||
"phpunit/phpunit": "~4.0"
|
"phpunit/phpunit": "~4.0",
|
||||||
|
"phpstan/phpstan": "dev-master",
|
||||||
|
"phing/phing": "^2.16",
|
||||||
|
"jakub-onderka/php-var-dump-check": "^0.2.0",
|
||||||
|
"squizlabs/php_codesniffer": "^3.0"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-0": { "BeSimple\\": "src/" }
|
"psr-0": { "BeSimple\\": "src/" }
|
||||||
},
|
},
|
||||||
|
"autoload-dev": {
|
||||||
|
"psr-4": {
|
||||||
|
"": "tests/"
|
||||||
|
}
|
||||||
|
},
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "0.4-dev"
|
"dev-master": "0.4-dev"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"repositories": [
|
||||||
|
{
|
||||||
|
"type": "vcs",
|
||||||
|
"url": "https://github.com/tuscanicz/phpstan.git"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
1084
composer.lock
generated
1084
composer.lock
generated
@ -4,8 +4,8 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"hash": "7601f1ec280c086361e1deaf021f8ca1",
|
"hash": "635c398afa1d5c217b5b8679b348ddc7",
|
||||||
"content-hash": "59372f34124af17d5c35938dfffc6075",
|
"content-hash": "08f419455dd969e9145b8adfc84a03e9",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "ass/xmlsecurity",
|
"name": "ass/xmlsecurity",
|
||||||
@ -229,6 +229,52 @@
|
|||||||
],
|
],
|
||||||
"time": "2015-06-14 21:17:01"
|
"time": "2015-06-14 21:17:01"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "jakub-onderka/php-var-dump-check",
|
||||||
|
"version": "v0.2",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/JakubOnderka/PHP-Var-Dump-Check.git",
|
||||||
|
"reference": "c00c52f1503c537a3da394520717a7331eb290a1"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/JakubOnderka/PHP-Var-Dump-Check/zipball/c00c52f1503c537a3da394520717a7331eb290a1",
|
||||||
|
"reference": "c00c52f1503c537a3da394520717a7331eb290a1",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": ">=5.3.3"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"jakub-onderka/php-parallel-lint": "~0.8",
|
||||||
|
"phpunit/phpunit": "~4.5"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"jakub-onderka/php-console-highlighter": "For colored console output"
|
||||||
|
},
|
||||||
|
"bin": [
|
||||||
|
"var-dump-check"
|
||||||
|
],
|
||||||
|
"type": "library",
|
||||||
|
"autoload": {
|
||||||
|
"psr-0": {
|
||||||
|
"JakubOnderka\\PhpVarDumpCheck": "src/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"BSD-2-Clause"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Jakub Onderka",
|
||||||
|
"email": "jakub.onderka@gmail.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Find forgotten variables dump in PHP source code.",
|
||||||
|
"time": "2015-03-13 12:02:23"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "mikey179/vfsStream",
|
"name": "mikey179/vfsStream",
|
||||||
"version": "v1.6.4",
|
"version": "v1.6.4",
|
||||||
@ -275,6 +321,643 @@
|
|||||||
"homepage": "http://vfs.bovigo.org/",
|
"homepage": "http://vfs.bovigo.org/",
|
||||||
"time": "2016-07-18 14:02:57"
|
"time": "2016-07-18 14:02:57"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "nette/bootstrap",
|
||||||
|
"version": "v2.4.3",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/nette/bootstrap.git",
|
||||||
|
"reference": "2c27747f5aff2e436ebf542e0ea566bea1db2d53"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/nette/bootstrap/zipball/2c27747f5aff2e436ebf542e0ea566bea1db2d53",
|
||||||
|
"reference": "2c27747f5aff2e436ebf542e0ea566bea1db2d53",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"nette/di": "~2.4.7",
|
||||||
|
"nette/utils": "~2.4",
|
||||||
|
"php": ">=5.6.0"
|
||||||
|
},
|
||||||
|
"conflict": {
|
||||||
|
"nette/nette": "<2.2"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"latte/latte": "~2.2",
|
||||||
|
"nette/application": "~2.3",
|
||||||
|
"nette/caching": "~2.3",
|
||||||
|
"nette/database": "~2.3",
|
||||||
|
"nette/forms": "~2.3",
|
||||||
|
"nette/http": "~2.4.0",
|
||||||
|
"nette/mail": "~2.3",
|
||||||
|
"nette/robot-loader": "^2.4.2 || ^3.0",
|
||||||
|
"nette/safe-stream": "~2.2",
|
||||||
|
"nette/security": "~2.3",
|
||||||
|
"nette/tester": "~2.0",
|
||||||
|
"tracy/tracy": "^2.4.1"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"nette/robot-loader": "to use Configurator::createRobotLoader()",
|
||||||
|
"tracy/tracy": "to use Configurator::enableTracy()"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "2.4-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"classmap": [
|
||||||
|
"src/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"BSD-3-Clause",
|
||||||
|
"GPL-2.0",
|
||||||
|
"GPL-3.0"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "David Grudl",
|
||||||
|
"homepage": "https://davidgrudl.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Nette Community",
|
||||||
|
"homepage": "https://nette.org/contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Nette Bootstrap",
|
||||||
|
"homepage": "https://nette.org",
|
||||||
|
"time": "2017-02-19 22:15:02"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "nette/caching",
|
||||||
|
"version": "v2.5.3",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/nette/caching.git",
|
||||||
|
"reference": "2436e530484a346d0a246733519ceaa40b943bd6"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/nette/caching/zipball/2436e530484a346d0a246733519ceaa40b943bd6",
|
||||||
|
"reference": "2436e530484a346d0a246733519ceaa40b943bd6",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"nette/finder": "^2.2 || ~3.0.0",
|
||||||
|
"nette/utils": "^2.4 || ~3.0.0",
|
||||||
|
"php": ">=5.6.0"
|
||||||
|
},
|
||||||
|
"conflict": {
|
||||||
|
"nette/nette": "<2.2"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"latte/latte": "^2.4",
|
||||||
|
"nette/di": "^2.4 || ~3.0.0",
|
||||||
|
"nette/tester": "^2.0",
|
||||||
|
"tracy/tracy": "^2.4"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"ext-pdo_sqlite": "to use SQLiteStorage or SQLiteJournal"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "2.5-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"classmap": [
|
||||||
|
"src/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"BSD-3-Clause",
|
||||||
|
"GPL-2.0",
|
||||||
|
"GPL-3.0"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "David Grudl",
|
||||||
|
"homepage": "https://davidgrudl.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Nette Community",
|
||||||
|
"homepage": "https://nette.org/contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Nette Caching Component",
|
||||||
|
"homepage": "https://nette.org",
|
||||||
|
"time": "2017-01-29 20:40:55"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "nette/di",
|
||||||
|
"version": "v2.4.8",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/nette/di.git",
|
||||||
|
"reference": "b3fe8551162279216e251e49b406e55cd2d255d5"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/nette/di/zipball/b3fe8551162279216e251e49b406e55cd2d255d5",
|
||||||
|
"reference": "b3fe8551162279216e251e49b406e55cd2d255d5",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"ext-tokenizer": "*",
|
||||||
|
"nette/neon": "^2.3.3 || ~3.0.0",
|
||||||
|
"nette/php-generator": "^2.6.1 || ~3.0.0",
|
||||||
|
"nette/utils": "^2.4.3 || ~3.0.0",
|
||||||
|
"php": ">=5.6.0"
|
||||||
|
},
|
||||||
|
"conflict": {
|
||||||
|
"nette/bootstrap": "<2.4",
|
||||||
|
"nette/nette": "<2.2"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"nette/tester": "^2.0",
|
||||||
|
"tracy/tracy": "^2.3"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "2.4-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"classmap": [
|
||||||
|
"src/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"BSD-3-Clause",
|
||||||
|
"GPL-2.0",
|
||||||
|
"GPL-3.0"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "David Grudl",
|
||||||
|
"homepage": "https://davidgrudl.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Nette Community",
|
||||||
|
"homepage": "https://nette.org/contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Nette Dependency Injection Component",
|
||||||
|
"homepage": "https://nette.org",
|
||||||
|
"time": "2017-03-14 17:16:14"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "nette/finder",
|
||||||
|
"version": "v2.4.0",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/nette/finder.git",
|
||||||
|
"reference": "5cabd5fe89f9903715359a403b820c7f94f9bb5e"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/nette/finder/zipball/5cabd5fe89f9903715359a403b820c7f94f9bb5e",
|
||||||
|
"reference": "5cabd5fe89f9903715359a403b820c7f94f9bb5e",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"nette/utils": "~2.4",
|
||||||
|
"php": ">=5.6.0"
|
||||||
|
},
|
||||||
|
"conflict": {
|
||||||
|
"nette/nette": "<2.2"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"nette/tester": "~2.0",
|
||||||
|
"tracy/tracy": "^2.3"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "2.4-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"classmap": [
|
||||||
|
"src/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"BSD-3-Clause",
|
||||||
|
"GPL-2.0",
|
||||||
|
"GPL-3.0"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "David Grudl",
|
||||||
|
"homepage": "https://davidgrudl.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Nette Community",
|
||||||
|
"homepage": "https://nette.org/contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Nette Finder: Files Searching",
|
||||||
|
"homepage": "https://nette.org",
|
||||||
|
"time": "2016-05-17 15:49:06"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "nette/neon",
|
||||||
|
"version": "v2.4.1",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/nette/neon.git",
|
||||||
|
"reference": "1a78ff64b1e161ebccc03bdf9366450a69365f5b"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/nette/neon/zipball/1a78ff64b1e161ebccc03bdf9366450a69365f5b",
|
||||||
|
"reference": "1a78ff64b1e161ebccc03bdf9366450a69365f5b",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"ext-iconv": "*",
|
||||||
|
"ext-json": "*",
|
||||||
|
"php": ">=5.6.0"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"nette/tester": "~2.0",
|
||||||
|
"tracy/tracy": "^2.3"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "2.4-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"classmap": [
|
||||||
|
"src/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"BSD-3-Clause",
|
||||||
|
"GPL-2.0",
|
||||||
|
"GPL-3.0"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "David Grudl",
|
||||||
|
"homepage": "https://davidgrudl.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Nette Community",
|
||||||
|
"homepage": "https://nette.org/contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Nette NEON: parser & generator for Nette Object Notation",
|
||||||
|
"homepage": "http://ne-on.org",
|
||||||
|
"time": "2017-01-13 08:00:19"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "nette/php-generator",
|
||||||
|
"version": "v3.0.0",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/nette/php-generator.git",
|
||||||
|
"reference": "8605fd18857a4beef4aa0afc19eb9a7f876237e8"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/nette/php-generator/zipball/8605fd18857a4beef4aa0afc19eb9a7f876237e8",
|
||||||
|
"reference": "8605fd18857a4beef4aa0afc19eb9a7f876237e8",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"nette/utils": "^2.4.2 || ~3.0.0",
|
||||||
|
"php": ">=7.0"
|
||||||
|
},
|
||||||
|
"conflict": {
|
||||||
|
"nette/nette": "<2.2"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"nette/tester": "^2.0",
|
||||||
|
"tracy/tracy": "^2.3"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "3.0-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"classmap": [
|
||||||
|
"src/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"BSD-3-Clause",
|
||||||
|
"GPL-2.0",
|
||||||
|
"GPL-3.0"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "David Grudl",
|
||||||
|
"homepage": "https://davidgrudl.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Nette Community",
|
||||||
|
"homepage": "https://nette.org/contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "🐘 Generates neat PHP code for you. Supports new PHP 7.1 features.",
|
||||||
|
"homepage": "https://nette.org",
|
||||||
|
"keywords": [
|
||||||
|
"code",
|
||||||
|
"nette",
|
||||||
|
"php",
|
||||||
|
"scaffolding"
|
||||||
|
],
|
||||||
|
"time": "2017-03-18 15:20:10"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "nette/robot-loader",
|
||||||
|
"version": "v3.0.0",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/nette/robot-loader.git",
|
||||||
|
"reference": "459fc6bf08f0fd7f6889897e3acdff523dbf1159"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/nette/robot-loader/zipball/459fc6bf08f0fd7f6889897e3acdff523dbf1159",
|
||||||
|
"reference": "459fc6bf08f0fd7f6889897e3acdff523dbf1159",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"ext-tokenizer": "*",
|
||||||
|
"nette/finder": "^2.3 || ^3.0",
|
||||||
|
"nette/utils": "^2.4 || ^3.0",
|
||||||
|
"php": ">=5.6.0"
|
||||||
|
},
|
||||||
|
"conflict": {
|
||||||
|
"nette/nette": "<2.2"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"nette/tester": "^2.0",
|
||||||
|
"tracy/tracy": "^2.3"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "3.0-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"classmap": [
|
||||||
|
"src/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"BSD-3-Clause",
|
||||||
|
"GPL-2.0",
|
||||||
|
"GPL-3.0"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "David Grudl",
|
||||||
|
"homepage": "https://davidgrudl.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Nette Community",
|
||||||
|
"homepage": "https://nette.org/contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "🍀 RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.",
|
||||||
|
"homepage": "https://nette.org",
|
||||||
|
"keywords": [
|
||||||
|
"autoload",
|
||||||
|
"class",
|
||||||
|
"interface",
|
||||||
|
"nette",
|
||||||
|
"trait"
|
||||||
|
],
|
||||||
|
"time": "2017-02-10 13:44:22"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "nette/utils",
|
||||||
|
"version": "v2.4.6",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/nette/utils.git",
|
||||||
|
"reference": "266160aec0d99516e0ea510de1dfa24a0dc1e76e"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/nette/utils/zipball/266160aec0d99516e0ea510de1dfa24a0dc1e76e",
|
||||||
|
"reference": "266160aec0d99516e0ea510de1dfa24a0dc1e76e",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": ">=5.6.0"
|
||||||
|
},
|
||||||
|
"conflict": {
|
||||||
|
"nette/nette": "<2.2"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"nette/tester": "~2.0",
|
||||||
|
"tracy/tracy": "^2.3"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"ext-gd": "to use Image",
|
||||||
|
"ext-iconv": "to use Strings::webalize() and toAscii()",
|
||||||
|
"ext-intl": "for script transliteration in Strings::webalize() and toAscii()",
|
||||||
|
"ext-json": "to use Nette\\Utils\\Json",
|
||||||
|
"ext-mbstring": "to use Strings::lower() etc...",
|
||||||
|
"ext-xml": "to use Strings::length() etc. when mbstring is not available"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "2.4-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"classmap": [
|
||||||
|
"src/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"BSD-3-Clause",
|
||||||
|
"GPL-2.0",
|
||||||
|
"GPL-3.0"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "David Grudl",
|
||||||
|
"homepage": "https://davidgrudl.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Nette Community",
|
||||||
|
"homepage": "https://nette.org/contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Nette Utility Classes",
|
||||||
|
"homepage": "https://nette.org",
|
||||||
|
"time": "2017-04-26 10:04:49"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "nikic/php-parser",
|
||||||
|
"version": "v3.0.5",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/nikic/PHP-Parser.git",
|
||||||
|
"reference": "2b9e2f71b722f7c53918ab0c25f7646c2013f17d"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/2b9e2f71b722f7c53918ab0c25f7646c2013f17d",
|
||||||
|
"reference": "2b9e2f71b722f7c53918ab0c25f7646c2013f17d",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"ext-tokenizer": "*",
|
||||||
|
"php": ">=5.5"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "~4.0|~5.0"
|
||||||
|
},
|
||||||
|
"bin": [
|
||||||
|
"bin/php-parse"
|
||||||
|
],
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "3.0-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"PhpParser\\": "lib/PhpParser"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"BSD-3-Clause"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Nikita Popov"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "A PHP parser written in PHP",
|
||||||
|
"keywords": [
|
||||||
|
"parser",
|
||||||
|
"php"
|
||||||
|
],
|
||||||
|
"time": "2017-03-05 18:23:57"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "phing/phing",
|
||||||
|
"version": "2.16.0",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/phingofficial/phing.git",
|
||||||
|
"reference": "151a0f4d8cebf7711eccc62dde3f09bc36a00d7b"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/phingofficial/phing/zipball/151a0f4d8cebf7711eccc62dde3f09bc36a00d7b",
|
||||||
|
"reference": "151a0f4d8cebf7711eccc62dde3f09bc36a00d7b",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": ">=5.2.0",
|
||||||
|
"symfony/yaml": "^3.1"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"ext-pdo_sqlite": "*",
|
||||||
|
"mikey179/vfsstream": "^1.6",
|
||||||
|
"pdepend/pdepend": "2.x",
|
||||||
|
"pear/archive_tar": "1.4.x",
|
||||||
|
"pear/http_request2": "dev-trunk",
|
||||||
|
"pear/net_growl": "dev-trunk",
|
||||||
|
"pear/pear-core-minimal": "1.10.1",
|
||||||
|
"pear/versioncontrol_git": "@dev",
|
||||||
|
"pear/versioncontrol_svn": "~0.5",
|
||||||
|
"phpdocumentor/phpdocumentor": "2.x",
|
||||||
|
"phploc/phploc": "~2.0.6",
|
||||||
|
"phpmd/phpmd": "~2.2",
|
||||||
|
"phpunit/phpunit": ">=3.7",
|
||||||
|
"sebastian/git": "~1.0",
|
||||||
|
"sebastian/phpcpd": "2.x",
|
||||||
|
"siad007/versioncontrol_hg": "^1.0",
|
||||||
|
"simpletest/simpletest": "^1.1",
|
||||||
|
"squizlabs/php_codesniffer": "~2.2"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"pdepend/pdepend": "PHP version of JDepend",
|
||||||
|
"pear/archive_tar": "Tar file management class",
|
||||||
|
"pear/versioncontrol_git": "A library that provides OO interface to handle Git repository",
|
||||||
|
"pear/versioncontrol_svn": "A simple OO-style interface for Subversion, the free/open-source version control system",
|
||||||
|
"phpdocumentor/phpdocumentor": "Documentation Generator for PHP",
|
||||||
|
"phploc/phploc": "A tool for quickly measuring the size of a PHP project",
|
||||||
|
"phpmd/phpmd": "PHP version of PMD tool",
|
||||||
|
"phpunit/php-code-coverage": "Library that provides collection, processing, and rendering functionality for PHP code coverage information",
|
||||||
|
"phpunit/phpunit": "The PHP Unit Testing Framework",
|
||||||
|
"sebastian/phpcpd": "Copy/Paste Detector (CPD) for PHP code",
|
||||||
|
"siad007/versioncontrol_hg": "A library for interfacing with Mercurial repositories.",
|
||||||
|
"tedivm/jshrink": "Javascript Minifier built in PHP"
|
||||||
|
},
|
||||||
|
"bin": [
|
||||||
|
"bin/phing"
|
||||||
|
],
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "2.16.x-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"classmap": [
|
||||||
|
"classes/phing/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"include-path": [
|
||||||
|
"classes"
|
||||||
|
],
|
||||||
|
"license": [
|
||||||
|
"LGPL-3.0"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Michiel Rook",
|
||||||
|
"email": "mrook@php.net"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Phing Community",
|
||||||
|
"homepage": "https://www.phing.info/trac/wiki/Development/Contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.",
|
||||||
|
"homepage": "https://www.phing.info/",
|
||||||
|
"keywords": [
|
||||||
|
"build",
|
||||||
|
"phing",
|
||||||
|
"task",
|
||||||
|
"tool"
|
||||||
|
],
|
||||||
|
"time": "2016-12-22 20:16:33"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "phpdocumentor/reflection-common",
|
"name": "phpdocumentor/reflection-common",
|
||||||
"version": "1.0",
|
"version": "1.0",
|
||||||
@ -484,6 +1167,68 @@
|
|||||||
],
|
],
|
||||||
"time": "2016-11-21 14:58:47"
|
"time": "2016-11-21 14:58:47"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "phpstan/phpstan",
|
||||||
|
"version": "dev-master",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/tuscanicz/phpstan.git",
|
||||||
|
"reference": "11d705360de768c8f0f9431288228ecd85ac14dd"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/tuscanicz/phpstan/zipball/11d705360de768c8f0f9431288228ecd85ac14dd",
|
||||||
|
"reference": "11d705360de768c8f0f9431288228ecd85ac14dd",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"nette/bootstrap": "^2.4 || ^3.0",
|
||||||
|
"nette/caching": "^2.4 || ^3.0",
|
||||||
|
"nette/di": "^2.4 || ^3.0",
|
||||||
|
"nette/robot-loader": "^2.4.2 || ^3.0",
|
||||||
|
"nette/utils": "^2.4 || ^3.0",
|
||||||
|
"nikic/php-parser": "^2.1 || ^3.0.2",
|
||||||
|
"php": "~7.0",
|
||||||
|
"symfony/console": "~2.7 || ~3.0",
|
||||||
|
"symfony/finder": "~2.7 || ~3.0"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"consistence/coding-standard": "~0.13.0",
|
||||||
|
"jakub-onderka/php-parallel-lint": "^0.9.2",
|
||||||
|
"phing/phing": "^2.16.0",
|
||||||
|
"phpunit/phpunit": "^6.0.7",
|
||||||
|
"satooshi/php-coveralls": "^1.0",
|
||||||
|
"slevomat/coding-standard": "^2.0"
|
||||||
|
},
|
||||||
|
"bin": [
|
||||||
|
"bin/phpstan"
|
||||||
|
],
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "0.7-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"PHPStan\\": "src/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload-dev": {
|
||||||
|
"classmap": [
|
||||||
|
"tests/PHPStan",
|
||||||
|
"tests/TestCase.php"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"description": "PHPStan - PHP Static Analysis Tool",
|
||||||
|
"support": {
|
||||||
|
"source": "https://github.com/tuscanicz/phpstan/tree/master"
|
||||||
|
},
|
||||||
|
"time": "2017-06-07 13:05:16"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/php-code-coverage",
|
"name": "phpunit/php-code-coverage",
|
||||||
"version": "2.2.4",
|
"version": "2.2.4",
|
||||||
@ -855,6 +1600,53 @@
|
|||||||
],
|
],
|
||||||
"time": "2015-10-02 06:51:40"
|
"time": "2015-10-02 06:51:40"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "psr/log",
|
||||||
|
"version": "1.0.2",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/php-fig/log.git",
|
||||||
|
"reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/php-fig/log/zipball/4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
|
||||||
|
"reference": "4ebe3a8bf773a19edfe0a84b6585ba3d401b724d",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": ">=5.3.0"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "1.0.x-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Psr\\Log\\": "Psr/Log/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "PHP-FIG",
|
||||||
|
"homepage": "http://www.php-fig.org/"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Common interface for logging libraries",
|
||||||
|
"homepage": "https://github.com/php-fig/log",
|
||||||
|
"keywords": [
|
||||||
|
"log",
|
||||||
|
"psr",
|
||||||
|
"psr-3"
|
||||||
|
],
|
||||||
|
"time": "2016-10-10 12:19:37"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "sebastian/comparator",
|
"name": "sebastian/comparator",
|
||||||
"version": "1.2.4",
|
"version": "1.2.4",
|
||||||
@ -1227,6 +2019,290 @@
|
|||||||
"homepage": "https://github.com/sebastianbergmann/version",
|
"homepage": "https://github.com/sebastianbergmann/version",
|
||||||
"time": "2015-06-21 13:59:46"
|
"time": "2015-06-21 13:59:46"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "squizlabs/php_codesniffer",
|
||||||
|
"version": "3.0.0",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
|
||||||
|
"reference": "b95ff2c3b122a3ee4b57d149a57d2afce65522c3"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/b95ff2c3b122a3ee4b57d149a57d2afce65522c3",
|
||||||
|
"reference": "b95ff2c3b122a3ee4b57d149a57d2afce65522c3",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"ext-simplexml": "*",
|
||||||
|
"ext-tokenizer": "*",
|
||||||
|
"ext-xmlwriter": "*",
|
||||||
|
"php": ">=5.4.0"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "~4.0"
|
||||||
|
},
|
||||||
|
"bin": [
|
||||||
|
"bin/phpcs",
|
||||||
|
"bin/phpcbf"
|
||||||
|
],
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "3.x-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"BSD-3-Clause"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Greg Sherwood",
|
||||||
|
"role": "lead"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
|
||||||
|
"homepage": "http://www.squizlabs.com/php-codesniffer",
|
||||||
|
"keywords": [
|
||||||
|
"phpcs",
|
||||||
|
"standards"
|
||||||
|
],
|
||||||
|
"time": "2017-05-04 00:33:04"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "symfony/console",
|
||||||
|
"version": "v3.3.2",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/symfony/console.git",
|
||||||
|
"reference": "70d2a29b2911cbdc91a7e268046c395278238b2e"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/symfony/console/zipball/70d2a29b2911cbdc91a7e268046c395278238b2e",
|
||||||
|
"reference": "70d2a29b2911cbdc91a7e268046c395278238b2e",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": ">=5.5.9",
|
||||||
|
"symfony/debug": "~2.8|~3.0",
|
||||||
|
"symfony/polyfill-mbstring": "~1.0"
|
||||||
|
},
|
||||||
|
"conflict": {
|
||||||
|
"symfony/dependency-injection": "<3.3"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"psr/log": "~1.0",
|
||||||
|
"symfony/config": "~3.3",
|
||||||
|
"symfony/dependency-injection": "~3.3",
|
||||||
|
"symfony/event-dispatcher": "~2.8|~3.0",
|
||||||
|
"symfony/filesystem": "~2.8|~3.0",
|
||||||
|
"symfony/http-kernel": "~2.8|~3.0",
|
||||||
|
"symfony/process": "~2.8|~3.0"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"psr/log": "For using the console logger",
|
||||||
|
"symfony/event-dispatcher": "",
|
||||||
|
"symfony/filesystem": "",
|
||||||
|
"symfony/process": ""
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "3.3-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Symfony\\Component\\Console\\": ""
|
||||||
|
},
|
||||||
|
"exclude-from-classmap": [
|
||||||
|
"/Tests/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Fabien Potencier",
|
||||||
|
"email": "fabien@symfony.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Symfony Community",
|
||||||
|
"homepage": "https://symfony.com/contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Symfony Console Component",
|
||||||
|
"homepage": "https://symfony.com",
|
||||||
|
"time": "2017-06-02 19:24:58"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "symfony/debug",
|
||||||
|
"version": "v3.3.2",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/symfony/debug.git",
|
||||||
|
"reference": "e9c50482841ef696e8fa1470d950a79c8921f45d"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/symfony/debug/zipball/e9c50482841ef696e8fa1470d950a79c8921f45d",
|
||||||
|
"reference": "e9c50482841ef696e8fa1470d950a79c8921f45d",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": ">=5.5.9",
|
||||||
|
"psr/log": "~1.0"
|
||||||
|
},
|
||||||
|
"conflict": {
|
||||||
|
"symfony/http-kernel": ">=2.3,<2.3.24|~2.4.0|>=2.5,<2.5.9|>=2.6,<2.6.2"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"symfony/http-kernel": "~2.8|~3.0"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "3.3-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Symfony\\Component\\Debug\\": ""
|
||||||
|
},
|
||||||
|
"exclude-from-classmap": [
|
||||||
|
"/Tests/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Fabien Potencier",
|
||||||
|
"email": "fabien@symfony.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Symfony Community",
|
||||||
|
"homepage": "https://symfony.com/contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Symfony Debug Component",
|
||||||
|
"homepage": "https://symfony.com",
|
||||||
|
"time": "2017-06-01 21:01:25"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "symfony/finder",
|
||||||
|
"version": "v3.3.2",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/symfony/finder.git",
|
||||||
|
"reference": "baea7f66d30854ad32988c11a09d7ffd485810c4"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/symfony/finder/zipball/baea7f66d30854ad32988c11a09d7ffd485810c4",
|
||||||
|
"reference": "baea7f66d30854ad32988c11a09d7ffd485810c4",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": ">=5.5.9"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "3.3-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Symfony\\Component\\Finder\\": ""
|
||||||
|
},
|
||||||
|
"exclude-from-classmap": [
|
||||||
|
"/Tests/"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Fabien Potencier",
|
||||||
|
"email": "fabien@symfony.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Symfony Community",
|
||||||
|
"homepage": "https://symfony.com/contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Symfony Finder Component",
|
||||||
|
"homepage": "https://symfony.com",
|
||||||
|
"time": "2017-06-01 21:01:25"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "symfony/polyfill-mbstring",
|
||||||
|
"version": "v1.3.0",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/symfony/polyfill-mbstring.git",
|
||||||
|
"reference": "e79d363049d1c2128f133a2667e4f4190904f7f4"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/e79d363049d1c2128f133a2667e4f4190904f7f4",
|
||||||
|
"reference": "e79d363049d1c2128f133a2667e4f4190904f7f4",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"php": ">=5.3.3"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"ext-mbstring": "For best performance"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "1.3-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Symfony\\Polyfill\\Mbstring\\": ""
|
||||||
|
},
|
||||||
|
"files": [
|
||||||
|
"bootstrap.php"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Nicolas Grekas",
|
||||||
|
"email": "p@tchwork.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Symfony Community",
|
||||||
|
"homepage": "https://symfony.com/contributors"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Symfony polyfill for the Mbstring extension",
|
||||||
|
"homepage": "https://symfony.com",
|
||||||
|
"keywords": [
|
||||||
|
"compatibility",
|
||||||
|
"mbstring",
|
||||||
|
"polyfill",
|
||||||
|
"portable",
|
||||||
|
"shim"
|
||||||
|
],
|
||||||
|
"time": "2016-11-14 01:06:16"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/yaml",
|
"name": "symfony/yaml",
|
||||||
"version": "v3.2.2",
|
"version": "v3.2.2",
|
||||||
@ -1335,7 +2411,9 @@
|
|||||||
],
|
],
|
||||||
"aliases": [],
|
"aliases": [],
|
||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"stability-flags": [],
|
"stability-flags": {
|
||||||
|
"phpstan/phpstan": 20
|
||||||
|
},
|
||||||
"prefer-stable": false,
|
"prefer-stable": false,
|
||||||
"prefer-lowest": false,
|
"prefer-lowest": false,
|
||||||
"platform": {
|
"platform": {
|
||||||
|
6
phing
Executable file
6
phing
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/env php
|
||||||
|
<?php
|
||||||
|
|
||||||
|
putenv("PHING_HOME=" . realpath(dirname(__FILE__)));
|
||||||
|
|
||||||
|
require_once __DIR__ . '/vendor/phing/phing/bin/phing.php';
|
@ -10,17 +10,29 @@
|
|||||||
stopOnFailure="false"
|
stopOnFailure="false"
|
||||||
syntaxCheck="false"
|
syntaxCheck="false"
|
||||||
stderr="true"
|
stderr="true"
|
||||||
bootstrap="vendor/autoload.php"
|
bootstrap="vendor/autoload.php">
|
||||||
>
|
|
||||||
|
|
||||||
<php>
|
<php>
|
||||||
<const name="WEBSERVER_PORT" value="8000" />
|
<const name="WEBSERVER_PORT" value="8000" />
|
||||||
</php>
|
</php>
|
||||||
|
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="BeSimpleSoap Test Suite">
|
<testsuite name="BeSimpleSoapTestSuite">
|
||||||
<file>src/BeSimple/SoapClient/Tests/SoapClientBuilderTest.php</file>
|
<directory>tests</directory>
|
||||||
<file>src/BeSimple/SoapServer/Tests/SoapServerBuilderTest.php</file>
|
|
||||||
</testsuite>
|
</testsuite>
|
||||||
</testsuites>
|
</testsuites>
|
||||||
|
|
||||||
|
<filter>
|
||||||
|
<whitelist>
|
||||||
|
<directory>src</directory>
|
||||||
|
<exclude>
|
||||||
|
<directory>src/BeSimple/SoapBundle</directory>
|
||||||
|
<directory>src/BeSimple/SoapCommon/Type</directory>
|
||||||
|
</exclude>
|
||||||
|
</whitelist>
|
||||||
|
</filter>
|
||||||
|
|
||||||
|
<logging>
|
||||||
|
<log type="coverage-text" target="php://stdout" showUncoveredFiles="true" showOnlySummary="true"/>
|
||||||
|
<log type="coverage-clover" target="cache/clover.xml"/>
|
||||||
|
</logging>
|
||||||
</phpunit>
|
</phpunit>
|
||||||
|
@ -12,7 +12,7 @@ namespace BeSimple\SoapBundle\Converter;
|
|||||||
|
|
||||||
use BeSimple\SoapBundle\Soap\SoapRequest;
|
use BeSimple\SoapBundle\Soap\SoapRequest;
|
||||||
use BeSimple\SoapBundle\Soap\SoapResponse;
|
use BeSimple\SoapBundle\Soap\SoapResponse;
|
||||||
use BeSimple\SoapBundle\Util\String;
|
use BeSimple\SoapBundle\Util\StringUtility;
|
||||||
use BeSimple\SoapCommon\Converter\TypeConverterInterface;
|
use BeSimple\SoapCommon\Converter\TypeConverterInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -40,7 +40,7 @@ class XopIncludeTypeConverter implements TypeConverterInterface
|
|||||||
|
|
||||||
$ref = $include->getAttribute('href');
|
$ref = $include->getAttribute('href');
|
||||||
|
|
||||||
if (String::startsWith($ref, 'cid:')) {
|
if (StringUtility::startsWith($ref, 'cid:')) {
|
||||||
$cid = urldecode(substr($ref, 4));
|
$cid = urldecode(substr($ref, 4));
|
||||||
|
|
||||||
return $request->getSoapAttachments()->get($cid)->getContent();
|
return $request->getSoapAttachments()->get($cid)->getContent();
|
||||||
|
@ -14,6 +14,8 @@ namespace BeSimple\SoapBundle\DependencyInjection;
|
|||||||
|
|
||||||
use BeSimple\SoapCommon\Cache;
|
use BeSimple\SoapCommon\Cache;
|
||||||
|
|
||||||
|
use BeSimple\SoapCommon\SoapOptions\SoapOptions;
|
||||||
|
use Carpages\Core\Entity\ContactPhone;
|
||||||
use Symfony\Component\Config\Definition\Processor;
|
use Symfony\Component\Config\Definition\Processor;
|
||||||
use Symfony\Component\Config\FileLocator;
|
use Symfony\Component\Config\FileLocator;
|
||||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||||
@ -41,6 +43,7 @@ class BeSimpleSoapExtension extends Extension
|
|||||||
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
|
||||||
|
|
||||||
$loader->load('request.xml');
|
$loader->load('request.xml');
|
||||||
|
$loader->load('soap.xml');
|
||||||
|
|
||||||
$loader->load('loaders.xml');
|
$loader->load('loaders.xml');
|
||||||
$loader->load('converters.xml');
|
$loader->load('converters.xml');
|
||||||
@ -53,8 +56,8 @@ class BeSimpleSoapExtension extends Extension
|
|||||||
|
|
||||||
$this->registerCacheConfiguration($config['cache'], $container, $loader);
|
$this->registerCacheConfiguration($config['cache'], $container, $loader);
|
||||||
|
|
||||||
if (!empty($config['clients'])) {
|
if ( ! empty($config['clients'])) {
|
||||||
$this->registerClientConfiguration($config['clients'], $container, $loader);
|
$this->registerClientConfiguration($config, $container, $loader);
|
||||||
}
|
}
|
||||||
|
|
||||||
$container->setParameter('besimple.soap.definition.dumper.options.stylesheet', $config['wsdl_dumper']['stylesheet']);
|
$container->setParameter('besimple.soap.definition.dumper.options.stylesheet', $config['wsdl_dumper']['stylesheet']);
|
||||||
@ -69,11 +72,9 @@ class BeSimpleSoapExtension extends Extension
|
|||||||
|
|
||||||
private function registerCacheConfiguration(array $config, ContainerBuilder $container, XmlFileLoader $loader)
|
private function registerCacheConfiguration(array $config, ContainerBuilder $container, XmlFileLoader $loader)
|
||||||
{
|
{
|
||||||
$loader->load('soap.xml');
|
|
||||||
|
|
||||||
$config['type'] = $this->getCacheType($config['type']);
|
$config['type'] = $this->getCacheType($config['type']);
|
||||||
|
|
||||||
foreach (array('type', 'lifetime', 'limit') as $key) {
|
foreach (array('type', 'file') as $key) {
|
||||||
$container->setParameter('besimple.soap.cache.'.$key, $config[$key]);
|
$container->setParameter('besimple.soap.cache.'.$key, $config[$key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -82,22 +83,33 @@ class BeSimpleSoapExtension extends Extension
|
|||||||
{
|
{
|
||||||
$loader->load('client.xml');
|
$loader->load('client.xml');
|
||||||
|
|
||||||
foreach ($config as $client => $options) {
|
foreach ($config['clients'] as $client => $options) {
|
||||||
$definition = new DefinitionDecorator('besimple.soap.client.builder');
|
$soapClientOpts = new DefinitionDecorator('besimple.soap.client_options');
|
||||||
$container->setDefinition(sprintf('besimple.soap.client.builder.%s', $client), $definition);
|
$soapOpts = new DefinitionDecorator('besimple.soap.options');
|
||||||
|
|
||||||
$definition->replaceArgument(0, $options['wsdl']);
|
$soapClientOptsService = sprintf('besimple.soap.client_options.%s', $client);
|
||||||
|
$soapOptsService = sprintf('besimple.soap.options.%s', $client);
|
||||||
|
|
||||||
$defOptions = $container
|
// configure SoapClient
|
||||||
->getDefinition('besimple.soap.client.builder')
|
$definition = new DefinitionDecorator('besimple.soap.client');
|
||||||
->getArgument(1);
|
|
||||||
|
|
||||||
foreach (array('cache_type', 'user_agent') as $key) {
|
$container->setDefinition(
|
||||||
if (isset($options[$key])) {
|
sprintf('besimple.soap.client.%s', $client),
|
||||||
$defOptions[$key] = $options[$key];
|
$definition
|
||||||
}
|
);
|
||||||
}
|
$container->setDefinition(
|
||||||
|
$soapClientOptsService,
|
||||||
|
$soapClientOpts
|
||||||
|
);
|
||||||
|
$container->setDefinition(
|
||||||
|
$soapOptsService,
|
||||||
|
$soapOpts
|
||||||
|
);
|
||||||
|
|
||||||
|
$definition->replaceArgument(0, new Reference($soapClientOptsService));
|
||||||
|
$definition->replaceArgument(1, new Reference($soapOptsService));
|
||||||
|
|
||||||
|
// configure proxy
|
||||||
$proxy = $options['proxy'];
|
$proxy = $options['proxy'];
|
||||||
if (false !== $proxy['host']) {
|
if (false !== $proxy['host']) {
|
||||||
if (null !== $proxy['auth']) {
|
if (null !== $proxy['auth']) {
|
||||||
@ -108,49 +120,58 @@ class BeSimpleSoapExtension extends Extension
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$definition->addMethodCall('withProxy', array(
|
$proxy = $this->createClientProxy($client, $proxy, $container);
|
||||||
$proxy['host'], $proxy['port'],
|
$soapClientOpts->setFactory([
|
||||||
$proxy['login'], $proxy['password'],
|
'%besimple.soap.client_options_builder.class%',
|
||||||
$proxy['auth']
|
'createWithProxy'
|
||||||
));
|
]);
|
||||||
|
$soapClientOpts->setArgument(0, new Reference($proxy));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($defOptions['cache_type'])) {
|
// configure SoapOptions for client
|
||||||
$defOptions['cache_type'] = $this->getCacheType($defOptions['cache_type']);
|
$classMap = $this->createClientClassMap($client, $options['classmap'], $container);
|
||||||
|
|
||||||
|
$soapOpts->replaceArgument(0, $config['cache']['file']);
|
||||||
|
$soapOpts->replaceArgument(1, new Reference($classMap));
|
||||||
|
$soapOpts->replaceArgument(2, $this->getCacheType($config['cache']['type']));
|
||||||
|
|
||||||
|
if ($config['cache']['version'] == SoapOptions::SOAP_VERSION_1_1) {
|
||||||
|
$soapOpts->setFactory([
|
||||||
|
'%besimple.soap.options_builder.class%',
|
||||||
|
'createWithClassMapV11'
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$definition->replaceArgument(1, $defOptions);
|
|
||||||
|
|
||||||
$classmap = $this->createClientClassmap($client, $options['classmap'], $container);
|
|
||||||
$definition->replaceArgument(2, new Reference($classmap));
|
|
||||||
|
|
||||||
$this->createClient($client, $container);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function createClientClassmap($client, array $classmap, ContainerBuilder $container)
|
private function createClientClassMap($client, array $classmap, ContainerBuilder $container)
|
||||||
{
|
{
|
||||||
$definition = new DefinitionDecorator('besimple.soap.classmap');
|
$definition = new DefinitionDecorator('besimple.soap.classmap');
|
||||||
$container->setDefinition(sprintf('besimple.soap.classmap.%s', $client), $definition);
|
$container->setDefinition(sprintf('besimple.soap.classmap.%s', $client), $definition);
|
||||||
|
|
||||||
if (!empty($classmap)) {
|
if ( ! empty($classmap)) {
|
||||||
$definition->setMethodCalls(array(
|
$definition->setMethodCalls(array(
|
||||||
array('set', array($classmap)),
|
array('__construct', array($classmap)),
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
return sprintf('besimple.soap.classmap.%s', $client);
|
return sprintf('besimple.soap.classmap.%s', $client);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function createClient($client, ContainerBuilder $container)
|
private function createClientProxy($client, array $proxy, ContainerBuilder $container)
|
||||||
{
|
{
|
||||||
$definition = new DefinitionDecorator('besimple.soap.client');
|
$definition = new DefinitionDecorator('besimple.soap.client.proxy');
|
||||||
$container->setDefinition(sprintf('besimple.soap.client.%s', $client), $definition);
|
$container->setDefinition(sprintf('besimple.soap.client.proxy.%s', $client), $definition);
|
||||||
|
|
||||||
$definition->setFactory(array(
|
if ( ! empty($proxy)) {
|
||||||
new Reference(sprintf('besimple.soap.client.builder.%s', $client)),
|
$definition->replaceArgument(0, $proxy['host']);
|
||||||
'build'
|
$definition->replaceArgument(1, $proxy['port']);
|
||||||
));
|
$definition->replaceArgument(2, $proxy['login']);
|
||||||
|
$definition->replaceArgument(3, $proxy['password']);
|
||||||
|
$definition->replaceArgument(4, $proxy['auth']);
|
||||||
|
}
|
||||||
|
|
||||||
|
return sprintf('besimple.soap.client.proxy.%s', $client);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function createWebServiceContext(array $config, ContainerBuilder $container)
|
private function createWebServiceContext(array $config, ContainerBuilder $container)
|
||||||
|
@ -64,6 +64,10 @@ class Configuration
|
|||||||
->thenInvalid(sprintf('The cache type has to be either %s', implode(', ', $this->cacheTypes)))
|
->thenInvalid(sprintf('The cache type has to be either %s', implode(', ', $this->cacheTypes)))
|
||||||
->end()
|
->end()
|
||||||
->end()
|
->end()
|
||||||
|
->scalarNode('version')->defaultNull()->end()
|
||||||
|
->scalarNode('encoding')->defaultNull()->end()
|
||||||
|
->scalarNode('keepalive')->defaultNull()->end()
|
||||||
|
->scalarNode('file')->defaultNull()->end()
|
||||||
->scalarNode('lifetime')->defaultNull()->end()
|
->scalarNode('lifetime')->defaultNull()->end()
|
||||||
->scalarNode('limit')->defaultNull()->end()
|
->scalarNode('limit')->defaultNull()->end()
|
||||||
->end()
|
->end()
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
namespace BeSimple\SoapBundle\Handler;
|
namespace BeSimple\SoapBundle\Handler;
|
||||||
|
|
||||||
use BeSimple\SoapServer\Exception\ReceiverSoapFault;
|
use SoapFault;
|
||||||
use Symfony\Component\Debug\Exception\FlattenException;
|
use Symfony\Component\Debug\Exception\FlattenException;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
|
|
||||||
@ -44,7 +44,8 @@ class ExceptionHandler
|
|||||||
|
|
||||||
$code = $this->exception->getStatusCode();
|
$code = $this->exception->getStatusCode();
|
||||||
|
|
||||||
throw new ReceiverSoapFault(
|
throw new SoapFault(
|
||||||
|
'receiver',
|
||||||
isset(Response::$statusTexts[$code]) ? Response::$statusTexts[$code] : '',
|
isset(Response::$statusTexts[$code]) ? Response::$statusTexts[$code] : '',
|
||||||
null,
|
null,
|
||||||
$this->details
|
$this->details
|
||||||
|
@ -4,26 +4,26 @@
|
|||||||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
|
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
|
||||||
|
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter key="besimple.soap.client.builder.class">BeSimple\SoapBundle\Soap\SoapClientBuilder</parameter>
|
<parameter key="besimple.soap.client.builder.class">BeSimple\SoapClient\SoapClientBuilder</parameter>
|
||||||
<parameter key="besimple.soap.classmap.class">BeSimple\SoapCommon\Classmap</parameter>
|
<parameter key="besimple.soap.client.class">BeSimple\SoapClient\SoapClient</parameter>
|
||||||
|
<parameter key="besimple.soap.client.proxy.class">BeSimple\SoapClient\SoapServerProxy\SoapServerProxy</parameter>
|
||||||
</parameters>
|
</parameters>
|
||||||
|
|
||||||
<services>
|
<services>
|
||||||
<service id="besimple.soap.client.builder" class="%besimple.soap.client.builder.class%" abstract="true">
|
|
||||||
<argument /> <!-- wsdl URI -->
|
<service id="besimple.soap.client" class="%besimple.soap.client.class%" abstract="true">
|
||||||
<argument type="collection">
|
<factory class="%besimple.soap.client.builder.class%" method="build" />
|
||||||
<argument key="debug">%kernel.debug%</argument>
|
<argument type="service" id="besimple.soap.client_options" />
|
||||||
</argument>
|
<argument type="service" id="besimple.soap.options" /> <!-- hack to load besimple cache configuration -->
|
||||||
<argument type="service" id="besimple.soap.classmap" />
|
|
||||||
<argument type="service" id="besimple.soap.converter.collection" />
|
|
||||||
<argument type="service" id="besimple.soap.cache" /> <!-- hack to load besimple cache configuration -->
|
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<service id="besimple.soap.client" class="%besimple.soap.client.builder.class%" abstract="true">
|
<service id="besimple.soap.client.proxy" class="%besimple.soap.client.proxy.class%" abstract="true">
|
||||||
<factory class="besimple.soap.client.builder" method="build" />
|
<argument id="$host" />
|
||||||
|
<argument id="$port" />
|
||||||
|
<argument id="$login" />
|
||||||
|
<argument id="$password" />
|
||||||
|
<argument id="$authenticationType" />
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<service id="besimple.soap.classmap" class="%besimple.soap.classmap.class%" abstract="true" />
|
|
||||||
</services>
|
</services>
|
||||||
|
|
||||||
</container>
|
</container>
|
||||||
|
@ -1,20 +1,31 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<container xmlns="http://symfony.com/schema/dic/services"
|
<container xmlns="http://symfony.com/schema/dic/services"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
|
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
|
||||||
|
|
||||||
<parameters>
|
<parameters>
|
||||||
<parameter key="besimple.soap.cache.class">BeSimple\SoapBundle\Cache</parameter>
|
<parameter key="besimple.soap.classmap.class">BeSimple\SoapCommon\ClassMap</parameter>
|
||||||
<parameter key="besimple.soap.cache.dir">%kernel.cache_dir%/besimple/soap</parameter>
|
<parameter key="besimple.soap.client_options.class">BeSimple\SoapClient\SoapOptions\SoapClientOptions</parameter>
|
||||||
|
<parameter key="besimple.soap.client_options_builder.class">BeSimple\SoapClient\SoapClientOptionsBuilder</parameter>
|
||||||
|
<parameter key="besimple.soap.options.class">BeSimple\SoapCommon\SoapOptions\SoapOptions</parameter>
|
||||||
|
<parameter key="besimple.soap.options_builder.class">BeSimple\SoapCommon\SoapOptionsBuilder</parameter>
|
||||||
|
<parameter key="besimple.soap.cache.dir">%kernel.cache_dir%</parameter>
|
||||||
</parameters>
|
</parameters>
|
||||||
|
|
||||||
<services>
|
<services>
|
||||||
<service id="besimple.soap.cache" class="%besimple.soap.cache.class%">
|
<service id="besimple.soap.client_options" class="%besimple.soap.client_options.class%" abstract="true">
|
||||||
<argument>%kernel.debug%</argument>
|
<!-- call the static method -->
|
||||||
|
<factory class="%besimple.soap.client_options_builder.class%" method="createWithDefaults" />
|
||||||
|
</service>
|
||||||
|
|
||||||
|
<service id="besimple.soap.classmap" class="%besimple.soap.classmap.class%" abstract="true" />
|
||||||
|
|
||||||
|
<service id="besimple.soap.options" class="%besimple.soap.options.class%" abstract="true">
|
||||||
|
<factory class="%besimple.soap.options_builder.class%" method="createWithClassMap" />
|
||||||
|
<argument>%besimple.soap.cache.file%</argument>
|
||||||
|
<argument type="service" id="besimple.soap.classmap" />
|
||||||
<argument>%besimple.soap.cache.type%</argument>
|
<argument>%besimple.soap.cache.type%</argument>
|
||||||
<argument>%besimple.soap.cache.dir%/cache</argument>
|
<argument>%besimple.soap.cache.dir%</argument>
|
||||||
<argument>%besimple.soap.cache.lifetime%</argument>
|
|
||||||
<argument>%besimple.soap.cache.limit%</argument>
|
|
||||||
</service>
|
</service>
|
||||||
</services>
|
</services>
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<parameter key="besimple.soap.binder.request_header.documentwrapped.class">BeSimple\SoapBundle\ServiceBinding\DocumentLiteralWrappedRequestHeaderMessageBinder</parameter>
|
<parameter key="besimple.soap.binder.request_header.documentwrapped.class">BeSimple\SoapBundle\ServiceBinding\DocumentLiteralWrappedRequestHeaderMessageBinder</parameter>
|
||||||
<parameter key="besimple.soap.binder.response.documentwrapped.class">BeSimple\SoapBundle\ServiceBinding\DocumentLiteralWrappedResponseMessageBinder</parameter>
|
<parameter key="besimple.soap.binder.response.documentwrapped.class">BeSimple\SoapBundle\ServiceBinding\DocumentLiteralWrappedResponseMessageBinder</parameter>
|
||||||
<parameter key="besimple.soap.type.repository.class">BeSimple\SoapCommon\Definition\Type\TypeRepository</parameter>
|
<parameter key="besimple.soap.type.repository.class">BeSimple\SoapCommon\Definition\Type\TypeRepository</parameter>
|
||||||
<parameter key="besimple.soap.server.classmap.class">BeSimple\SoapServer\Classmap</parameter>
|
<parameter key="besimple.soap.server.classmap.class">BeSimple\SoapCommon\ClassMap</parameter>
|
||||||
</parameters>
|
</parameters>
|
||||||
|
|
||||||
<services>
|
<services>
|
||||||
|
@ -7,7 +7,7 @@ Pre-existent Type
|
|||||||
+------------------------------------------------+-----------------+
|
+------------------------------------------------+-----------------+
|
||||||
| Php Type | Value Type |
|
| Php Type | Value Type |
|
||||||
+================================================+=================+
|
+================================================+=================+
|
||||||
| BeSimple\\SoapCommon\\Type\\KeyValue\\String | String |
|
| BeSimple\\SoapCommon\\Type\\KeyValue\\StringUtility | StringUtility |
|
||||||
+------------------------------------------------+-----------------+
|
+------------------------------------------------+-----------------+
|
||||||
| BeSimple\\SoapCommon\\Type\\KeyValue\\Boolean | Boolean |
|
| BeSimple\\SoapCommon\\Type\\KeyValue\\Boolean | Boolean |
|
||||||
+------------------------------------------------+-----------------+
|
+------------------------------------------------+-----------------+
|
||||||
@ -34,7 +34,7 @@ Controller
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @Soap\Method("returnAssocArray")
|
* @Soap\Method("returnAssocArray")
|
||||||
* @Soap\Result(phpType = "BeSimple\SoapCommon\Type\KeyValue\String[]")
|
* @Soap\Result(phpType = "BeSimple\SoapCommon\Type\KeyValue\StringUtility[]")
|
||||||
*/
|
*/
|
||||||
public function assocArrayOfStringAction()
|
public function assocArrayOfStringAction()
|
||||||
{
|
{
|
||||||
@ -46,8 +46,8 @@ Controller
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @Soap\Method("sendAssocArray")
|
* @Soap\Method("sendAssocArray")
|
||||||
* @Soap\Param("assocArray", phpType = "BeSimple\SoapCommon\Type\KeyValue\String[]")
|
* @Soap\Param("assocArray", phpType = "BeSimple\SoapCommon\Type\KeyValue\StringUtility[]")
|
||||||
* @Soap\Result(phpType = "BeSimple\SoapCommon\Type\KeyValue\String[]")
|
* @Soap\Result(phpType = "BeSimple\SoapCommon\Type\KeyValue\StringUtility[]")
|
||||||
*/
|
*/
|
||||||
public function sendAssocArrayOfStringAction(array $assocArray)
|
public function sendAssocArrayOfStringAction(array $assocArray)
|
||||||
{
|
{
|
||||||
|
@ -11,11 +11,11 @@
|
|||||||
namespace BeSimple\SoapBundle\Util;
|
namespace BeSimple\SoapBundle\Util;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* String provides utility methods for strings.
|
* StringUtility provides utility methods for strings.
|
||||||
*
|
*
|
||||||
* @author Christian Kerl <christian-kerl@web.de>
|
* @author Christian Kerl <christian-kerl@web.de>
|
||||||
*/
|
*/
|
||||||
class String
|
class StringUtility
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Checks if a string starts with a given string.
|
* Checks if a string starts with a given string.
|
@ -4,7 +4,6 @@ namespace BeSimple\SoapClient\Curl;
|
|||||||
|
|
||||||
use BeSimple\SoapClient\Curl\Http\HttpAuthenticationBasicOptions;
|
use BeSimple\SoapClient\Curl\Http\HttpAuthenticationBasicOptions;
|
||||||
use BeSimple\SoapClient\Curl\Http\HttpAuthenticationDigestOptions;
|
use BeSimple\SoapClient\Curl\Http\HttpAuthenticationDigestOptions;
|
||||||
use BeSimple\SoapClient\Curl\Http\SslCertificateOptions;
|
|
||||||
use Exception;
|
use Exception;
|
||||||
|
|
||||||
class Curl
|
class Curl
|
||||||
@ -62,7 +61,7 @@ class Curl
|
|||||||
curl_setopt_array($curlSession, [
|
curl_setopt_array($curlSession, [
|
||||||
CURLOPT_ENCODING => '',
|
CURLOPT_ENCODING => '',
|
||||||
CURLOPT_SSL_VERIFYPEER => false,
|
CURLOPT_SSL_VERIFYPEER => false,
|
||||||
CURLOPT_FAILONERROR => true,
|
CURLOPT_FAILONERROR => false,
|
||||||
CURLOPT_RETURNTRANSFER => true,
|
CURLOPT_RETURNTRANSFER => true,
|
||||||
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
|
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
|
||||||
CURLOPT_HEADER => true,
|
CURLOPT_HEADER => true,
|
||||||
@ -92,7 +91,7 @@ class Curl
|
|||||||
curl_setopt($curlSession, CURLOPT_URL, $location);
|
curl_setopt($curlSession, CURLOPT_URL, $location);
|
||||||
curl_setopt($curlSession, CURLOPT_HEADER, true);
|
curl_setopt($curlSession, CURLOPT_HEADER, true);
|
||||||
curl_setopt($curlSession, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($curlSession, CURLOPT_RETURNTRANSFER, true);
|
||||||
if (!is_null($request)) {
|
if ($request !== null) {
|
||||||
curl_setopt($curlSession, CURLOPT_POST, true);
|
curl_setopt($curlSession, CURLOPT_POST, true);
|
||||||
curl_setopt($curlSession, CURLOPT_POSTFIELDS, $request);
|
curl_setopt($curlSession, CURLOPT_POSTFIELDS, $request);
|
||||||
} else {
|
} else {
|
||||||
@ -120,7 +119,7 @@ class Curl
|
|||||||
$httpAuthenticationBasic = $options->getHttpAuthentication();
|
$httpAuthenticationBasic = $options->getHttpAuthentication();
|
||||||
curl_setopt($curlSession, CURLOPT_HTTPAUTH, $httpAuthenticationBasic->getAuthenticationType());
|
curl_setopt($curlSession, CURLOPT_HTTPAUTH, $httpAuthenticationBasic->getAuthenticationType());
|
||||||
curl_setopt($curlSession, CURLOPT_USERPWD, $httpAuthenticationBasic->getUsername() . ':' . $httpAuthenticationBasic->getPassword());
|
curl_setopt($curlSession, CURLOPT_USERPWD, $httpAuthenticationBasic->getUsername() . ':' . $httpAuthenticationBasic->getPassword());
|
||||||
} else if ($options->hasHttpAuthenticationDigest()) {
|
} elseif ($options->hasHttpAuthenticationDigest()) {
|
||||||
/** @var HttpAuthenticationDigestOptions $httpAuthenticationDigest */
|
/** @var HttpAuthenticationDigestOptions $httpAuthenticationDigest */
|
||||||
$httpAuthenticationDigest = $options->getHttpAuthentication();
|
$httpAuthenticationDigest = $options->getHttpAuthentication();
|
||||||
curl_setopt($curlSession, CURLOPT_HTTPAUTH, $httpAuthenticationDigest->getAuthenticationType());
|
curl_setopt($curlSession, CURLOPT_HTTPAUTH, $httpAuthenticationDigest->getAuthenticationType());
|
||||||
@ -141,42 +140,51 @@ class Curl
|
|||||||
curl_setopt($curlSession, CURLOPT_CAPATH, $sslCertificateOptions->hasCertificateAuthorityPath());
|
curl_setopt($curlSession, CURLOPT_CAPATH, $sslCertificateOptions->hasCertificateAuthorityPath());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($options->hasSslVersion()) {
|
||||||
|
curl_setopt($curlSession, CURLOPT_SSLVERSION, $options->getSslVersion());
|
||||||
|
}
|
||||||
|
|
||||||
$executeSoapCallResponse = $this->executeHttpCall($curlSession, $options);
|
$executeSoapCallResponse = $this->executeHttpCall($curlSession, $options);
|
||||||
|
|
||||||
$httpRequestHeadersAsString = curl_getinfo($curlSession, CURLINFO_HEADER_OUT);
|
$httpRequestHeadersAsString = curl_getinfo($curlSession, CURLINFO_HEADER_OUT);
|
||||||
$headerSize = curl_getinfo($curlSession, CURLINFO_HEADER_SIZE);
|
$headerSize = curl_getinfo($curlSession, CURLINFO_HEADER_SIZE);
|
||||||
$httpResponseCode = curl_getinfo($curlSession, CURLINFO_HTTP_CODE);
|
$httpResponseCode = curl_getinfo($curlSession, CURLINFO_HTTP_CODE);
|
||||||
$httpResponseContentType = curl_getinfo($curlSession, CURLINFO_CONTENT_TYPE);;
|
$httpResponseContentType = curl_getinfo($curlSession, CURLINFO_CONTENT_TYPE);;
|
||||||
|
$responseBody = substr($executeSoapCallResponse, $headerSize);
|
||||||
|
$responseHeaders = substr($executeSoapCallResponse, 0, $headerSize);
|
||||||
preg_match('/HTTP\/(1\.[0-1]+) ([0-9]{3}) (.*)/', $executeSoapCallResponse, $httpResponseMessages);
|
preg_match('/HTTP\/(1\.[0-1]+) ([0-9]{3}) (.*)/', $executeSoapCallResponse, $httpResponseMessages);
|
||||||
$httpResponseMessage = trim(array_pop($httpResponseMessages));
|
$httpResponseMessage = trim(array_pop($httpResponseMessages));
|
||||||
$curlErrorMessage = sprintf(
|
$curlErrorMessage = sprintf(
|
||||||
'Curl error "%s" with message: %s occurred while connecting to %s',
|
'Curl error "%s" with message: %s occurred while connecting to %s with HTTP response code %s',
|
||||||
curl_errno($curlSession),
|
curl_errno($curlSession),
|
||||||
curl_error($curlSession),
|
curl_error($curlSession),
|
||||||
$location
|
$location,
|
||||||
|
$httpResponseCode
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($executeSoapCallResponse === false) {
|
if (!is_int($httpResponseCode) || $httpResponseCode >= 400 || $httpResponseCode === 0) {
|
||||||
|
|
||||||
return new CurlResponse(
|
return new CurlResponse(
|
||||||
$httpRequestHeadersAsString,
|
$this->normalizeStringOrFalse($httpRequestHeadersAsString),
|
||||||
$httpResponseCode,
|
$httpResponseCode,
|
||||||
$httpResponseMessage,
|
$httpResponseMessage,
|
||||||
$httpResponseContentType,
|
$httpResponseContentType,
|
||||||
self::CURL_FAILED,
|
self::CURL_FAILED,
|
||||||
|
$this->normalizeStringOrFalse($responseHeaders),
|
||||||
|
$this->normalizeStringOrFalse($responseBody),
|
||||||
$curlErrorMessage
|
$curlErrorMessage
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return new CurlResponse(
|
return new CurlResponse(
|
||||||
$httpRequestHeadersAsString,
|
$this->normalizeStringOrFalse($httpRequestHeadersAsString),
|
||||||
$httpResponseCode,
|
$httpResponseCode,
|
||||||
$httpResponseMessage,
|
$httpResponseMessage,
|
||||||
$httpResponseContentType,
|
$httpResponseContentType,
|
||||||
self::CURL_SUCCESS,
|
self::CURL_SUCCESS,
|
||||||
null,
|
$this->normalizeStringOrFalse($responseHeaders),
|
||||||
substr($executeSoapCallResponse, 0, $headerSize),
|
$this->normalizeStringOrFalse($responseBody)
|
||||||
substr($executeSoapCallResponse, $headerSize)
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -231,4 +239,13 @@ class Curl
|
|||||||
|
|
||||||
throw new Exception('Cannot parse WSDL url redirect: ' . $url);
|
throw new Exception('Cannot parse WSDL url redirect: ' . $url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function normalizeStringOrFalse($string)
|
||||||
|
{
|
||||||
|
if ($string === false || $string === '') {
|
||||||
|
$string = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $string;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,15 +2,15 @@
|
|||||||
|
|
||||||
namespace BeSimple\SoapClient\Curl;
|
namespace BeSimple\SoapClient\Curl;
|
||||||
|
|
||||||
|
use BeSimple\SoapClient\Curl\Http\HttpAuthenticationBasicOptions;
|
||||||
use BeSimple\SoapClient\Curl\Http\HttpAuthenticationDigestOptions;
|
use BeSimple\SoapClient\Curl\Http\HttpAuthenticationDigestOptions;
|
||||||
use BeSimple\SoapClient\Curl\Http\HttpAuthenticationInterface;
|
use BeSimple\SoapClient\Curl\Http\HttpAuthenticationInterface;
|
||||||
use BeSimple\SoapClient\Curl\Http\HttpAuthenticationBasicOptions;
|
|
||||||
use BeSimple\SoapClient\Curl\Http\SslCertificateOptions;
|
use BeSimple\SoapClient\Curl\Http\SslCertificateOptions;
|
||||||
use BeSimple\SoapClient\SoapServerProxy\SoapServerProxy;
|
use BeSimple\SoapClient\SoapServerProxy\SoapServerProxy;
|
||||||
|
|
||||||
class CurlOptions
|
class CurlOptions
|
||||||
{
|
{
|
||||||
const DEFAULT_USER_AGENT = 'BeSimpleSoap';
|
const DEFAULT_USER_AGENT = 'PhpBeSimpleSoap';
|
||||||
const SOAP_COMPRESSION_NONE = null;
|
const SOAP_COMPRESSION_NONE = null;
|
||||||
const SOAP_COMPRESSION_GZIP = SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP;
|
const SOAP_COMPRESSION_GZIP = SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP;
|
||||||
const SOAP_COMPRESSION_DEFLATE = SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_DEFLATE;
|
const SOAP_COMPRESSION_DEFLATE = SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_DEFLATE;
|
||||||
@ -22,6 +22,7 @@ class CurlOptions
|
|||||||
private $proxy;
|
private $proxy;
|
||||||
private $httpAuthentication;
|
private $httpAuthentication;
|
||||||
private $sslCertificateOptions;
|
private $sslCertificateOptions;
|
||||||
|
private $sslVersion;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $userAgent
|
* @param string $userAgent
|
||||||
@ -31,6 +32,7 @@ class CurlOptions
|
|||||||
* @param SoapServerProxy|null $proxy
|
* @param SoapServerProxy|null $proxy
|
||||||
* @param HttpAuthenticationInterface|null $httpAuthentication
|
* @param HttpAuthenticationInterface|null $httpAuthentication
|
||||||
* @param SslCertificateOptions|null $sslCertificateOptions
|
* @param SslCertificateOptions|null $sslCertificateOptions
|
||||||
|
* @param int $sslVersion
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
$userAgent,
|
$userAgent,
|
||||||
@ -39,7 +41,8 @@ class CurlOptions
|
|||||||
$connectionTimeout,
|
$connectionTimeout,
|
||||||
SoapServerProxy $proxy = null,
|
SoapServerProxy $proxy = null,
|
||||||
HttpAuthenticationInterface $httpAuthentication = null,
|
HttpAuthenticationInterface $httpAuthentication = null,
|
||||||
SslCertificateOptions $sslCertificateOptions = null
|
SslCertificateOptions $sslCertificateOptions = null,
|
||||||
|
$sslVersion = null
|
||||||
) {
|
) {
|
||||||
$this->userAgent = $userAgent;
|
$this->userAgent = $userAgent;
|
||||||
$this->followLocationMaxRedirects = $followLocationMaxRedirects;
|
$this->followLocationMaxRedirects = $followLocationMaxRedirects;
|
||||||
@ -48,6 +51,7 @@ class CurlOptions
|
|||||||
$this->proxy = $proxy;
|
$this->proxy = $proxy;
|
||||||
$this->httpAuthentication = $httpAuthentication;
|
$this->httpAuthentication = $httpAuthentication;
|
||||||
$this->sslCertificateOptions = $sslCertificateOptions;
|
$this->sslCertificateOptions = $sslCertificateOptions;
|
||||||
|
$this->sslVersion = $sslVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getUserAgent()
|
public function getUserAgent()
|
||||||
@ -123,4 +127,14 @@ class CurlOptions
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function hasSslVersion()
|
||||||
|
{
|
||||||
|
return $this->sslVersion !== null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getSslVersion()
|
||||||
|
{
|
||||||
|
return $this->sslVersion;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ use Exception;
|
|||||||
class CurlOptionsBuilder
|
class CurlOptionsBuilder
|
||||||
{
|
{
|
||||||
const DEFAULT_MAX_REDIRECTS = 10;
|
const DEFAULT_MAX_REDIRECTS = 10;
|
||||||
const DEFAULT_CONNECTION_TIMEOUT = 10;
|
const DEFAULT_CONNECTION_TIMEOUT = 120;
|
||||||
|
|
||||||
public static function buildDefault()
|
public static function buildDefault()
|
||||||
{
|
{
|
||||||
@ -34,7 +34,8 @@ class CurlOptionsBuilder
|
|||||||
self::DEFAULT_CONNECTION_TIMEOUT,
|
self::DEFAULT_CONNECTION_TIMEOUT,
|
||||||
$soapClientOptions->getProxy(),
|
$soapClientOptions->getProxy(),
|
||||||
self::getHttpAuthOptions($soapClientOptions),
|
self::getHttpAuthOptions($soapClientOptions),
|
||||||
self::getSslCertificateOptions($soapClientOptions)
|
self::getSslCertificateOptions($soapClientOptions),
|
||||||
|
$soapClientOptions->getSslVersion()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -50,13 +51,14 @@ class CurlOptionsBuilder
|
|||||||
$basicAuthentication->getPassword()
|
$basicAuthentication->getPassword()
|
||||||
);
|
);
|
||||||
|
|
||||||
} else if ($soapClientOptions->hasAuthenticationDigest()) {
|
}
|
||||||
|
if ($soapClientOptions->hasAuthenticationDigest()) {
|
||||||
|
|
||||||
return new HttpAuthenticationDigestOptions();
|
return new HttpAuthenticationDigestOptions();
|
||||||
|
|
||||||
} else {
|
|
||||||
throw new Exception('Unresolved authentication type: '.get_class($soapClientOptions->getAuthentication()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
throw new Exception('Unresolved authentication type: '.get_class($soapClientOptions->getAuthentication()));
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
@ -19,9 +19,9 @@ class CurlResponse
|
|||||||
$httpResponseStatusMessage,
|
$httpResponseStatusMessage,
|
||||||
$httpResponseContentType,
|
$httpResponseContentType,
|
||||||
$curlStatus,
|
$curlStatus,
|
||||||
$curlErrorMessage = null,
|
$responseHeader,
|
||||||
$responseHeader = null,
|
$responseBody,
|
||||||
$responseBody = null
|
$curlErrorMessage = null
|
||||||
) {
|
) {
|
||||||
$this->httpRequestHeaders = $httpRequestHeaders;
|
$this->httpRequestHeaders = $httpRequestHeaders;
|
||||||
$this->httpResponseStatusCode = $httpResponseStatusCode;
|
$this->httpResponseStatusCode = $httpResponseStatusCode;
|
||||||
@ -78,21 +78,11 @@ class CurlResponse
|
|||||||
return $this->curlErrorMessage;
|
return $this->curlErrorMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hasResponseHeader()
|
|
||||||
{
|
|
||||||
return $this->responseHeader !== null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getResponseHeader()
|
public function getResponseHeader()
|
||||||
{
|
{
|
||||||
return $this->responseHeader;
|
return $this->responseHeader;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hasResponseBody()
|
|
||||||
{
|
|
||||||
return $this->responseBody !== null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getResponseBody()
|
public function getResponseBody()
|
||||||
{
|
{
|
||||||
return $this->responseBody;
|
return $this->responseBody;
|
||||||
|
@ -37,12 +37,12 @@ class MimeFilter implements SoapRequestFilter, SoapResponseFilter
|
|||||||
$soapPart = new MimePart($request->getContent(), 'text/xml', 'utf-8', MimePart::ENCODING_EIGHT_BIT);
|
$soapPart = new MimePart($request->getContent(), 'text/xml', 'utf-8', MimePart::ENCODING_EIGHT_BIT);
|
||||||
$soapVersion = $request->getVersion();
|
$soapVersion = $request->getVersion();
|
||||||
|
|
||||||
if ($soapVersion == SOAP_1_1 && $attachmentType & Helper::ATTACHMENTS_TYPE_MTOM) {
|
if ($soapVersion === SOAP_1_1 && $attachmentType & Helper::ATTACHMENTS_TYPE_MTOM) {
|
||||||
$multipart->setHeader('Content-Type', 'type', 'application/xop+xml');
|
$multipart->setHeader('Content-Type', 'type', 'application/xop+xml');
|
||||||
$multipart->setHeader('Content-Type', 'start-info', 'text/xml');
|
$multipart->setHeader('Content-Type', 'start-info', 'text/xml');
|
||||||
$soapPart->setHeader('Content-Type', 'application/xop+xml');
|
$soapPart->setHeader('Content-Type', 'application/xop+xml');
|
||||||
$soapPart->setHeader('Content-Type', 'type', 'text/xml');
|
$soapPart->setHeader('Content-Type', 'type', 'text/xml');
|
||||||
} elseif ($soapVersion == SOAP_1_2) {
|
} elseif ($soapVersion === SOAP_1_2) {
|
||||||
$multipart->setHeader('Content-Type', 'type', 'application/soap+xml');
|
$multipart->setHeader('Content-Type', 'type', 'application/soap+xml');
|
||||||
$soapPart->setHeader('Content-Type', 'application/soap+xml');
|
$soapPart->setHeader('Content-Type', 'application/soap+xml');
|
||||||
}
|
}
|
||||||
@ -71,7 +71,7 @@ class MimeFilter implements SoapRequestFilter, SoapResponseFilter
|
|||||||
$soapPart = $multiPartMessage->getMainPart();
|
$soapPart = $multiPartMessage->getMainPart();
|
||||||
$attachments = $multiPartMessage->getAttachments();
|
$attachments = $multiPartMessage->getAttachments();
|
||||||
|
|
||||||
$response->setContent($this->sanitizePhpExceptionOnHrefs($soapPart));
|
$response->setContent($soapPart->getContent());
|
||||||
$response->setContentType($soapPart->getHeader('Content-Type'));
|
$response->setContentType($soapPart->getHeader('Content-Type'));
|
||||||
if (count($attachments) > 0) {
|
if (count($attachments) > 0) {
|
||||||
$response->setAttachments($attachments);
|
$response->setAttachments($attachments);
|
||||||
|
@ -19,6 +19,9 @@ use BeSimple\SoapClient\Curl\CurlOptionsBuilder;
|
|||||||
use BeSimple\SoapClient\Curl\CurlResponse;
|
use BeSimple\SoapClient\Curl\CurlResponse;
|
||||||
use BeSimple\SoapClient\SoapOptions\SoapClientOptions;
|
use BeSimple\SoapClient\SoapOptions\SoapClientOptions;
|
||||||
use BeSimple\SoapCommon\Fault\SoapFaultEnum;
|
use BeSimple\SoapCommon\Fault\SoapFaultEnum;
|
||||||
|
use BeSimple\SoapCommon\Fault\SoapFaultParser;
|
||||||
|
use BeSimple\SoapCommon\Fault\SoapFaultPrefixEnum;
|
||||||
|
use BeSimple\SoapCommon\Fault\SoapFaultSourceGetter;
|
||||||
use BeSimple\SoapCommon\Mime\PartFactory;
|
use BeSimple\SoapCommon\Mime\PartFactory;
|
||||||
use BeSimple\SoapCommon\SoapKernel;
|
use BeSimple\SoapCommon\SoapKernel;
|
||||||
use BeSimple\SoapCommon\SoapOptions\SoapOptions;
|
use BeSimple\SoapCommon\SoapOptions\SoapOptions;
|
||||||
@ -38,8 +41,11 @@ use SoapFault;
|
|||||||
*/
|
*/
|
||||||
class SoapClient extends \SoapClient
|
class SoapClient extends \SoapClient
|
||||||
{
|
{
|
||||||
protected $soapClientOptions;
|
use SoapClientNativeMethodsTrait;
|
||||||
|
|
||||||
|
/** @var SoapOptions */
|
||||||
protected $soapOptions;
|
protected $soapOptions;
|
||||||
|
/** @var Curl */
|
||||||
private $curl;
|
private $curl;
|
||||||
|
|
||||||
public function __construct(SoapClientOptions $soapClientOptions, SoapOptions $soapOptions)
|
public function __construct(SoapClientOptions $soapClientOptions, SoapOptions $soapOptions)
|
||||||
@ -54,7 +60,8 @@ class SoapClient extends \SoapClient
|
|||||||
$wsdlPath = $this->loadWsdl(
|
$wsdlPath = $this->loadWsdl(
|
||||||
$this->curl,
|
$this->curl,
|
||||||
$soapOptions->getWsdlFile(),
|
$soapOptions->getWsdlFile(),
|
||||||
$soapOptions->getWsdlCacheType()
|
$soapOptions->getWsdlCacheType(),
|
||||||
|
$soapClientOptions->isResolveRemoteIncludes()
|
||||||
);
|
);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
throw new SoapFault(
|
throw new SoapFault(
|
||||||
@ -67,34 +74,7 @@ class SoapClient extends \SoapClient
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Avoid using __call directly, it's deprecated even in \SoapClient.
|
* @param string $functionName
|
||||||
*
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
public function __call($function_name, $arguments)
|
|
||||||
{
|
|
||||||
throw new Exception(
|
|
||||||
'The __call method is deprecated. Use __soapCall/soapCall instead.'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Using __soapCall returns only response string, use soapCall instead.
|
|
||||||
*
|
|
||||||
* @param string $function_name
|
|
||||||
* @param array $arguments
|
|
||||||
* @param array|null $options
|
|
||||||
* @param null $input_headers
|
|
||||||
* @param array|null $output_headers
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public function __soapCall($function_name, $arguments, $options = null, $input_headers = null, &$output_headers = null)
|
|
||||||
{
|
|
||||||
return $this->soapCall($function_name, $arguments, $options, $input_headers, $output_headers)->getContent();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param string $functionName
|
|
||||||
* @param array $arguments
|
* @param array $arguments
|
||||||
* @param array|null $options
|
* @param array|null $options
|
||||||
* @param SoapAttachment[] $soapAttachments
|
* @param SoapAttachment[] $soapAttachments
|
||||||
@ -104,41 +84,22 @@ class SoapClient extends \SoapClient
|
|||||||
*/
|
*/
|
||||||
public function soapCall($functionName, array $arguments, array $soapAttachments = [], array $options = null, $inputHeaders = null, array &$outputHeaders = null)
|
public function soapCall($functionName, array $arguments, array $soapAttachments = [], array $options = null, $inputHeaders = null, array &$outputHeaders = null)
|
||||||
{
|
{
|
||||||
ob_start();
|
$this->setSoapAttachmentsOnRequestToStorage($soapAttachments);
|
||||||
parent::__soapCall($functionName, $arguments, $options, $inputHeaders, $outputHeaders);
|
try {
|
||||||
$nativeSoapClientRequest = $this->mapNativeDataJsonToDto(ob_get_clean());
|
|
||||||
|
|
||||||
return $this->performSoapRequest(
|
$soapResponseAsObject = parent::__soapCall($functionName, $arguments, $options, $inputHeaders, $outputHeaders);
|
||||||
$nativeSoapClientRequest->request,
|
$soapResponse = $this->getSoapResponseFromStorage();
|
||||||
$nativeSoapClientRequest->location,
|
$soapResponse->setResponseObject($soapResponseAsObject);
|
||||||
$nativeSoapClientRequest->action,
|
|
||||||
$nativeSoapClientRequest->version,
|
|
||||||
$soapAttachments
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
return $soapResponse;
|
||||||
* This is not performing any HTTP requests, but it is getting data from SoapClient that are needed for this Client
|
|
||||||
*
|
|
||||||
* @param string $request Request string
|
|
||||||
* @param string $location Location
|
|
||||||
* @param string $action SOAP action
|
|
||||||
* @param int $version SOAP version
|
|
||||||
* @param int $oneWay 0|1
|
|
||||||
*
|
|
||||||
* @return string
|
|
||||||
*/
|
|
||||||
public function __doRequest($request, $location, $action, $version, $oneWay = 0)
|
|
||||||
{
|
|
||||||
$soapClientNativeDataTransferObject = new SoapClientNativeDataTransferObject(
|
|
||||||
$request,
|
|
||||||
$location,
|
|
||||||
$action,
|
|
||||||
$version
|
|
||||||
);
|
|
||||||
echo json_encode($soapClientNativeDataTransferObject);
|
|
||||||
|
|
||||||
return $request;
|
} catch (SoapFault $soapFault) {
|
||||||
|
if (SoapFaultSourceGetter::isNativeSoapFault($soapFault)) {
|
||||||
|
$soapFault = $this->decorateNativeSoapFaultWithSoapResponseTracingData($soapFault);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw $soapFault;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -153,51 +114,21 @@ class SoapClient extends \SoapClient
|
|||||||
*
|
*
|
||||||
* @return SoapResponse
|
* @return SoapResponse
|
||||||
*/
|
*/
|
||||||
public function performSoapRequest($request, $location, $action, $version, array $soapAttachments = [])
|
protected function performSoapRequest($request, $location, $action, $version, array $soapAttachments = [])
|
||||||
{
|
{
|
||||||
$soapRequest = $this->createSoapRequest($location, $action, $version, $request, $soapAttachments);
|
$soapRequest = $this->createSoapRequest($location, $action, $version, $request, $soapAttachments);
|
||||||
|
|
||||||
return $this->performHttpSoapRequest($soapRequest);
|
return $this->performHttpSoapRequest($soapRequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated */
|
protected function getSoapClientOptions()
|
||||||
public function __getLastRequestHeaders()
|
|
||||||
{
|
{
|
||||||
$this->checkTracing();
|
return $this->soapClientOptions;
|
||||||
|
|
||||||
throw new Exception(
|
|
||||||
'The __getLastRequestHeaders method is now deprecated. Use callSoapRequest instead and get the tracing information from SoapResponseTracingData.'
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @deprecated */
|
protected function getSoapOptions()
|
||||||
public function __getLastRequest()
|
|
||||||
{
|
{
|
||||||
$this->checkTracing();
|
return $this->soapOptions;
|
||||||
|
|
||||||
throw new Exception(
|
|
||||||
'The __getLastRequest method is now deprecated. Use callSoapRequest instead and get the tracing information from SoapResponseTracingData.'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @deprecated */
|
|
||||||
public function __getLastResponseHeaders()
|
|
||||||
{
|
|
||||||
$this->checkTracing();
|
|
||||||
|
|
||||||
throw new Exception(
|
|
||||||
'The __getLastResponseHeaders method is now deprecated. Use callSoapRequest instead and get the tracing information from SoapResponseTracingData.'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @deprecated */
|
|
||||||
public function __getLastResponse()
|
|
||||||
{
|
|
||||||
$this->checkTracing();
|
|
||||||
|
|
||||||
throw new Exception(
|
|
||||||
'The __getLastResponse method is now deprecated. Use callSoapRequest instead and get the tracing information from SoapResponseTracingData.'
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -240,20 +171,10 @@ class SoapClient extends \SoapClient
|
|||||||
*/
|
*/
|
||||||
private function performHttpSoapRequest(SoapRequest $soapRequest)
|
private function performHttpSoapRequest(SoapRequest $soapRequest)
|
||||||
{
|
{
|
||||||
if ($soapRequest->getVersion() === SOAP_1_1) {
|
|
||||||
$headers = [
|
|
||||||
'Content-Type:' . $soapRequest->getContentType(),
|
|
||||||
'SOAPAction: "' . $soapRequest->getAction() . '"',
|
|
||||||
];
|
|
||||||
} else {
|
|
||||||
$headers = [
|
|
||||||
'Content-Type:' . $soapRequest->getContentType() . '; action="' . $soapRequest->getAction() . '"',
|
|
||||||
];
|
|
||||||
}
|
|
||||||
$curlResponse = $this->curl->executeCurlWithCachedSession(
|
$curlResponse = $this->curl->executeCurlWithCachedSession(
|
||||||
$soapRequest->getLocation(),
|
$soapRequest->getLocation(),
|
||||||
$soapRequest->getContent(),
|
$soapRequest->getContent(),
|
||||||
$headers
|
$this->getHttpHeadersBySoapVersion($soapRequest)
|
||||||
);
|
);
|
||||||
$soapResponseTracingData = new SoapResponseTracingData(
|
$soapResponseTracingData = new SoapResponseTracingData(
|
||||||
$curlResponse->getHttpRequestHeaders(),
|
$curlResponse->getHttpRequestHeaders(),
|
||||||
@ -264,7 +185,6 @@ class SoapClient extends \SoapClient
|
|||||||
|
|
||||||
if ($curlResponse->curlStatusSuccess()) {
|
if ($curlResponse->curlStatusSuccess()) {
|
||||||
$soapResponse = $this->returnSoapResponseByTracing(
|
$soapResponse = $this->returnSoapResponseByTracing(
|
||||||
$this->soapClientOptions->getTrace(),
|
|
||||||
$soapRequest,
|
$soapRequest,
|
||||||
$curlResponse,
|
$curlResponse,
|
||||||
$soapResponseTracingData
|
$soapResponseTracingData
|
||||||
@ -276,28 +196,42 @@ class SoapClient extends \SoapClient
|
|||||||
$this->getAttachmentFilters(),
|
$this->getAttachmentFilters(),
|
||||||
$this->soapOptions->getAttachmentType()
|
$this->soapOptions->getAttachmentType()
|
||||||
);
|
);
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
return $soapResponse;
|
|
||||||
}
|
}
|
||||||
} else if ($curlResponse->curlStatusFailed()) {
|
|
||||||
|
return $soapResponse;
|
||||||
|
|
||||||
|
}
|
||||||
|
if ($curlResponse->curlStatusFailed()) {
|
||||||
|
|
||||||
|
if ($curlResponse->getHttpResponseStatusCode() >= 500) {
|
||||||
|
$soapFault = SoapFaultParser::parseSoapFault(
|
||||||
|
$curlResponse->getResponseBody()
|
||||||
|
);
|
||||||
|
|
||||||
|
return $this->throwSoapFaultByTracing(
|
||||||
|
$soapFault->faultcode,
|
||||||
|
sprintf(
|
||||||
|
'SOAP HTTP call failed: %s with Message: %s and Code: %s',
|
||||||
|
$curlResponse->getCurlErrorMessage(),
|
||||||
|
$soapFault->getMessage(),
|
||||||
|
$soapFault->faultcode
|
||||||
|
),
|
||||||
|
$soapResponseTracingData
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return $this->throwSoapFaultByTracing(
|
return $this->throwSoapFaultByTracing(
|
||||||
$this->soapClientOptions->getTrace(),
|
|
||||||
SoapFaultEnum::SOAP_FAULT_HTTP.'-'.$curlResponse->getHttpResponseStatusCode(),
|
SoapFaultEnum::SOAP_FAULT_HTTP.'-'.$curlResponse->getHttpResponseStatusCode(),
|
||||||
$curlResponse->getCurlErrorMessage(),
|
$curlResponse->getCurlErrorMessage(),
|
||||||
$soapResponseTracingData
|
$soapResponseTracingData
|
||||||
);
|
);
|
||||||
} else {
|
|
||||||
|
|
||||||
return $this->throwSoapFaultByTracing(
|
|
||||||
$this->soapClientOptions->getTrace(),
|
|
||||||
SoapFaultEnum::SOAP_FAULT_SOAP_CLIENT_ERROR,
|
|
||||||
'Cannot process curl response with unresolved status: ' . $curlResponse->getCurlStatus(),
|
|
||||||
$soapResponseTracingData
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return $this->throwSoapFaultByTracing(
|
||||||
|
SoapFaultEnum::SOAP_FAULT_SOAP_CLIENT_ERROR,
|
||||||
|
'Cannot process curl response with unresolved status: ' . $curlResponse->getCurlStatus(),
|
||||||
|
$soapResponseTracingData
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -323,6 +257,23 @@ class SoapClient extends \SoapClient
|
|||||||
return $loadedWsdlFilePath;
|
return $loadedWsdlFilePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function getHttpHeadersBySoapVersion(SoapRequest $soapRequest)
|
||||||
|
{
|
||||||
|
if ($soapRequest->getVersion() === SOAP_1_1) {
|
||||||
|
|
||||||
|
return [
|
||||||
|
'Content-Type: ' . $soapRequest->getContentType(),
|
||||||
|
'SOAPAction: "' . $soapRequest->getAction() . '"',
|
||||||
|
'Connection: ' . ($this->soapOptions->isConnectionKeepAlive() ? 'Keep-Alive' : 'close'),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
return [
|
||||||
|
'Content-Type: ' . $soapRequest->getContentType() . '; action="' . $soapRequest->getAction() . '"',
|
||||||
|
'Connection: ' . ($this->soapOptions->isConnectionKeepAlive() ? 'Keep-Alive' : 'close'),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
private function getAttachmentFilters()
|
private function getAttachmentFilters()
|
||||||
{
|
{
|
||||||
$filters = [];
|
$filters = [];
|
||||||
@ -336,73 +287,90 @@ class SoapClient extends \SoapClient
|
|||||||
return $filters;
|
return $filters;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function mapNativeDataJsonToDto($nativeDataJson)
|
|
||||||
{
|
|
||||||
$nativeData = json_decode($nativeDataJson);
|
|
||||||
|
|
||||||
return new SoapClientNativeDataTransferObject(
|
|
||||||
$nativeData->request,
|
|
||||||
$nativeData->location,
|
|
||||||
$nativeData->action,
|
|
||||||
$nativeData->version
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
private function returnSoapResponseByTracing(
|
private function returnSoapResponseByTracing(
|
||||||
$isTracingEnabled,
|
|
||||||
SoapRequest $soapRequest,
|
SoapRequest $soapRequest,
|
||||||
CurlResponse $curlResponse,
|
CurlResponse $curlResponse,
|
||||||
SoapResponseTracingData $soapResponseTracingData,
|
SoapResponseTracingData $soapResponseTracingData,
|
||||||
array $soapAttachments = []
|
array $soapAttachments = []
|
||||||
) {
|
) {
|
||||||
if ($isTracingEnabled === true) {
|
if ($this->soapClientOptions->getTrace() === true) {
|
||||||
|
|
||||||
return SoapResponseFactory::createWithTracingData(
|
return SoapResponseFactory::createWithTracingData(
|
||||||
|
$soapRequest,
|
||||||
$curlResponse->getResponseBody(),
|
$curlResponse->getResponseBody(),
|
||||||
$soapRequest->getLocation(),
|
|
||||||
$soapRequest->getAction(),
|
|
||||||
$soapRequest->getVersion(),
|
|
||||||
$curlResponse->getHttpResponseContentType(),
|
$curlResponse->getHttpResponseContentType(),
|
||||||
$soapResponseTracingData,
|
$soapResponseTracingData,
|
||||||
$soapAttachments
|
$soapAttachments
|
||||||
);
|
);
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
return SoapResponseFactory::create(
|
|
||||||
$curlResponse->getResponseBody(),
|
|
||||||
$soapRequest->getLocation(),
|
|
||||||
$soapRequest->getAction(),
|
|
||||||
$soapRequest->getVersion(),
|
|
||||||
$curlResponse->getHttpResponseContentType(),
|
|
||||||
$soapAttachments
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return SoapResponseFactory::create(
|
||||||
|
$soapRequest,
|
||||||
|
$curlResponse->getResponseBody(),
|
||||||
|
$curlResponse->getHttpResponseContentType(),
|
||||||
|
$soapAttachments
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function throwSoapFaultByTracing($isTracingEnabled, $soapFaultCode, $soapFaultMessage, SoapResponseTracingData $soapResponseTracingData)
|
/**
|
||||||
|
* @param string $soapFaultCode
|
||||||
|
* @param string $soapFaultMessage
|
||||||
|
* @param SoapResponseTracingData $soapResponseTracingData
|
||||||
|
* @throws SoapFault
|
||||||
|
*/
|
||||||
|
private function throwSoapFaultByTracing($soapFaultCode, $soapFaultMessage, SoapResponseTracingData $soapResponseTracingData)
|
||||||
{
|
{
|
||||||
if ($isTracingEnabled === true) {
|
if ($this->soapClientOptions->getTrace() === true) {
|
||||||
|
|
||||||
throw new SoapFaultWithTracingData(
|
throw new SoapFaultWithTracingData(
|
||||||
$soapFaultCode,
|
$soapFaultCode,
|
||||||
$soapFaultMessage,
|
$soapFaultMessage,
|
||||||
$soapResponseTracingData
|
$soapResponseTracingData
|
||||||
);
|
);
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
throw new SoapFault(
|
|
||||||
$soapFaultCode,
|
|
||||||
$soapFaultMessage
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
throw new SoapFault(
|
||||||
|
$soapFaultCode,
|
||||||
|
$soapFaultMessage
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function checkTracing()
|
private function decorateNativeSoapFaultWithSoapResponseTracingData(SoapFault $nativePhpSoapFault)
|
||||||
{
|
{
|
||||||
if ($this->soapClientOptions->getTrace() === false) {
|
return $this->throwSoapFaultByTracing(
|
||||||
throw new Exception('SoapClientOptions tracing disabled, turn on trace attribute');
|
$nativePhpSoapFault->faultcode,
|
||||||
|
$nativePhpSoapFault->getMessage(),
|
||||||
|
$this->getSoapResponseTracingDataFromNativeSoapFaultOrStorage($nativePhpSoapFault)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
private function getSoapResponseTracingDataFromNativeSoapFaultOrStorage(SoapFault $nativePhpSoapFault)
|
||||||
|
{
|
||||||
|
if ($nativePhpSoapFault instanceof SoapFaultWithTracingData) {
|
||||||
|
return $nativePhpSoapFault->getSoapResponseTracingData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return $this->getSoapResponseTracingDataFromRequestStorage();
|
||||||
|
}
|
||||||
|
|
||||||
|
private function getSoapResponseTracingDataFromRequestStorage()
|
||||||
|
{
|
||||||
|
$lastResponseHeaders = $lastResponse = $lastRequestHeaders = $lastRequest = null;
|
||||||
|
$soapResponse = $this->getSoapResponseFromStorage();
|
||||||
|
if ($soapResponse instanceof SoapResponse) {
|
||||||
|
$lastResponseHeaders = 'Content-Type: ' . $soapResponse->getContentType();
|
||||||
|
$lastResponse = $soapResponse->getResponseContent();
|
||||||
|
|
||||||
|
if ($soapResponse->hasRequest() === true) {
|
||||||
|
$lastRequestHeaders = 'Content-Type: ' . $soapResponse->getRequest()->getContentType();
|
||||||
|
$lastRequest = $soapResponse->getRequest()->getContent();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return new SoapResponseTracingData(
|
||||||
|
$lastRequestHeaders,
|
||||||
|
$lastRequest,
|
||||||
|
$lastResponseHeaders,
|
||||||
|
$lastResponse
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient;
|
|
||||||
|
|
||||||
class SoapClientNativeDataTransferObject
|
|
||||||
{
|
|
||||||
public $request;
|
|
||||||
public $location;
|
|
||||||
public $action;
|
|
||||||
public $version;
|
|
||||||
|
|
||||||
public function __construct($request, $location, $action, $version)
|
|
||||||
{
|
|
||||||
$this->request = $request;
|
|
||||||
$this->location = $location;
|
|
||||||
$this->action = $action;
|
|
||||||
$this->version = $version;
|
|
||||||
}
|
|
||||||
}
|
|
176
src/BeSimple/SoapClient/SoapClientNativeMethodsTrait.php
Normal file
176
src/BeSimple/SoapClient/SoapClientNativeMethodsTrait.php
Normal file
@ -0,0 +1,176 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace BeSimple\SoapClient;
|
||||||
|
|
||||||
|
use BeSimple\SoapBundle\Soap\SoapAttachment;
|
||||||
|
use BeSimple\SoapClient\SoapOptions\SoapClientOptions;
|
||||||
|
use BeSimple\SoapCommon\SoapOptions\SoapOptions;
|
||||||
|
use Exception;
|
||||||
|
|
||||||
|
trait SoapClientNativeMethodsTrait
|
||||||
|
{
|
||||||
|
protected $soapClientOptions;
|
||||||
|
/** @var SoapAttachment[] */
|
||||||
|
private $soapAttachmentsOnRequestStorage;
|
||||||
|
/** @var SoapResponse */
|
||||||
|
private $soapResponseStorage;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $functionName
|
||||||
|
* @param array $arguments
|
||||||
|
* @param array|null $options
|
||||||
|
* @param SoapAttachment[] $soapAttachments
|
||||||
|
* @param null $inputHeaders
|
||||||
|
* @param array|null $outputHeaders
|
||||||
|
* @return SoapResponse
|
||||||
|
*/
|
||||||
|
abstract public function soapCall($functionName, array $arguments, array $soapAttachments = [], array $options = null, $inputHeaders = null, array &$outputHeaders = null);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param mixed $request Request object
|
||||||
|
* @param string $location Location
|
||||||
|
* @param string $action SOAP action
|
||||||
|
* @param int $version SOAP version
|
||||||
|
* @param SoapAttachment[] $soapAttachments SOAP attachments array
|
||||||
|
* @return SoapResponse
|
||||||
|
*/
|
||||||
|
abstract protected function performSoapRequest($request, $location, $action, $version, array $soapAttachments = []);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return SoapClientOptions
|
||||||
|
*/
|
||||||
|
abstract protected function getSoapClientOptions();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return SoapOptions
|
||||||
|
*/
|
||||||
|
abstract protected function getSoapOptions();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Avoid using __call directly, it's deprecated even in \SoapClient.
|
||||||
|
*
|
||||||
|
* @deprecated
|
||||||
|
*/
|
||||||
|
public function __call($function_name, $arguments)
|
||||||
|
{
|
||||||
|
throw new Exception(
|
||||||
|
'The __call method is deprecated. Use __soapCall/soapCall instead.'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Using __soapCall returns only response string, use soapCall instead.
|
||||||
|
*
|
||||||
|
* @param string $function_name
|
||||||
|
* @param array $arguments
|
||||||
|
* @param array|null $options
|
||||||
|
* @param null $input_headers
|
||||||
|
* @param array|null $output_headers
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __soapCall($function_name, $arguments, $options = null, $input_headers = null, &$output_headers = null)
|
||||||
|
{
|
||||||
|
return $this->soapCall($function_name, $arguments, $options, $input_headers, $output_headers)->getResponseContent();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is not performing any HTTP requests, but it is getting data from SoapClient that are needed for this Client
|
||||||
|
*
|
||||||
|
* @param string $request Request string
|
||||||
|
* @param string $location Location
|
||||||
|
* @param string $action SOAP action
|
||||||
|
* @param int $version SOAP version
|
||||||
|
* @param int $oneWay 0|1
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function __doRequest($request, $location, $action, $version, $oneWay = 0)
|
||||||
|
{
|
||||||
|
$soapResponse = $this->performSoapRequest(
|
||||||
|
$request,
|
||||||
|
$location,
|
||||||
|
$action,
|
||||||
|
$version,
|
||||||
|
$this->getSoapAttachmentsOnRequestFromStorage()
|
||||||
|
);
|
||||||
|
$this->setSoapResponseToStorage($soapResponse);
|
||||||
|
|
||||||
|
return $soapResponse->getResponseContent();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
|
public function __getLastRequestHeaders()
|
||||||
|
{
|
||||||
|
$this->checkTracing();
|
||||||
|
|
||||||
|
throw new Exception(
|
||||||
|
'The __getLastRequestHeaders method is now deprecated. Use callSoapRequest instead and get the tracing information from SoapResponseTracingData.'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
|
public function __getLastRequest()
|
||||||
|
{
|
||||||
|
$this->checkTracing();
|
||||||
|
|
||||||
|
throw new Exception(
|
||||||
|
'The __getLastRequest method is now deprecated. Use callSoapRequest instead and get the tracing information from SoapResponseTracingData.'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
|
public function __getLastResponseHeaders()
|
||||||
|
{
|
||||||
|
$this->checkTracing();
|
||||||
|
|
||||||
|
throw new Exception(
|
||||||
|
'The __getLastResponseHeaders method is now deprecated. Use callSoapRequest instead and get the tracing information from SoapResponseTracingData.'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @deprecated */
|
||||||
|
public function __getLastResponse()
|
||||||
|
{
|
||||||
|
$this->checkTracing();
|
||||||
|
|
||||||
|
throw new Exception(
|
||||||
|
'The __getLastResponse method is now deprecated. Use callSoapRequest instead and get the tracing information from SoapResponseTracingData.'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
private function checkTracing()
|
||||||
|
{
|
||||||
|
if ($this->getSoapClientOptions()->getTrace() === false) {
|
||||||
|
throw new Exception('SoapClientOptions tracing disabled, turn on trace attribute');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private function setSoapResponseToStorage(SoapResponse $soapResponseStorage)
|
||||||
|
{
|
||||||
|
$this->soapResponseStorage = $soapResponseStorage;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param SoapAttachment[] $soapAttachments
|
||||||
|
*/
|
||||||
|
private function setSoapAttachmentsOnRequestToStorage(array $soapAttachments)
|
||||||
|
{
|
||||||
|
$this->soapAttachmentsOnRequestStorage = $soapAttachments;
|
||||||
|
}
|
||||||
|
|
||||||
|
private function getSoapAttachmentsOnRequestFromStorage()
|
||||||
|
{
|
||||||
|
$soapAttachmentsOnRequest = $this->soapAttachmentsOnRequestStorage;
|
||||||
|
$this->soapAttachmentsOnRequestStorage = null;
|
||||||
|
|
||||||
|
return $soapAttachmentsOnRequest;
|
||||||
|
}
|
||||||
|
|
||||||
|
private function getSoapResponseFromStorage()
|
||||||
|
{
|
||||||
|
$soapResponse = $this->soapResponseStorage;
|
||||||
|
$this->soapResponseStorage = null;
|
||||||
|
|
||||||
|
return $soapResponse;
|
||||||
|
}
|
||||||
|
}
|
@ -28,7 +28,7 @@ class SoapClientOptionsBuilder
|
|||||||
public static function createWithDefaults()
|
public static function createWithDefaults()
|
||||||
{
|
{
|
||||||
return new SoapClientOptions(
|
return new SoapClientOptions(
|
||||||
SoapClientOptions::SOAP_CLIENT_TRACE_OFF,
|
SoapClientOptions::SOAP_CLIENT_TRACE_ON,
|
||||||
SoapClientOptions::SOAP_CLIENT_EXCEPTIONS_ON,
|
SoapClientOptions::SOAP_CLIENT_EXCEPTIONS_ON,
|
||||||
CurlOptions::DEFAULT_USER_AGENT,
|
CurlOptions::DEFAULT_USER_AGENT,
|
||||||
SoapClientOptions::SOAP_CLIENT_COMPRESSION_NONE
|
SoapClientOptions::SOAP_CLIENT_COMPRESSION_NONE
|
||||||
@ -45,6 +45,31 @@ class SoapClientOptionsBuilder
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function createWithProxy($proxy)
|
||||||
|
{
|
||||||
|
return new SoapClientOptions(
|
||||||
|
SoapClientOptions::SOAP_CLIENT_TRACE_ON,
|
||||||
|
SoapClientOptions::SOAP_CLIENT_EXCEPTIONS_ON,
|
||||||
|
CurlOptions::DEFAULT_USER_AGENT,
|
||||||
|
SoapClientOptions::SOAP_CLIENT_COMPRESSION_NONE,
|
||||||
|
SoapClientOptions::SOAP_CLIENT_AUTHENTICATION_NONE,
|
||||||
|
$proxy
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function createWithEndpointLocation($endpointLocation)
|
||||||
|
{
|
||||||
|
return new SoapClientOptions(
|
||||||
|
SoapClientOptions::SOAP_CLIENT_TRACE_ON,
|
||||||
|
SoapClientOptions::SOAP_CLIENT_EXCEPTIONS_ON,
|
||||||
|
CurlOptions::DEFAULT_USER_AGENT,
|
||||||
|
SoapClientOptions::SOAP_CLIENT_COMPRESSION_NONE,
|
||||||
|
SoapClientOptions::SOAP_CLIENT_AUTHENTICATION_NONE,
|
||||||
|
SoapClientOptions::SOAP_CLIENT_PROXY_NONE,
|
||||||
|
$endpointLocation
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
public static function createWithAuthentication(SoapServerAuthenticationInterface $authentication)
|
public static function createWithAuthentication(SoapServerAuthenticationInterface $authentication)
|
||||||
{
|
{
|
||||||
return new SoapClientOptions(
|
return new SoapClientOptions(
|
||||||
@ -55,4 +80,60 @@ class SoapClientOptionsBuilder
|
|||||||
$authentication
|
$authentication
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function createWithAuthenticationAndEndpointLocation($endpointLocation, SoapServerAuthenticationInterface $authentication)
|
||||||
|
{
|
||||||
|
return new SoapClientOptions(
|
||||||
|
SoapClientOptions::SOAP_CLIENT_TRACE_ON,
|
||||||
|
SoapClientOptions::SOAP_CLIENT_EXCEPTIONS_ON,
|
||||||
|
CurlOptions::DEFAULT_USER_AGENT,
|
||||||
|
SoapClientOptions::SOAP_CLIENT_COMPRESSION_NONE,
|
||||||
|
$authentication,
|
||||||
|
SoapClientOptions::SOAP_CLIENT_PROXY_NONE,
|
||||||
|
$endpointLocation
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param $endpointLocation
|
||||||
|
* @param SoapServerAuthenticationInterface $authentication
|
||||||
|
* @return SoapClientOptions
|
||||||
|
*/
|
||||||
|
public static function createWithAuthenticationAndEndpointLocationAndSslVersionV3(
|
||||||
|
$endpointLocation,
|
||||||
|
SoapServerAuthenticationInterface $authentication
|
||||||
|
) {
|
||||||
|
return new SoapClientOptions(
|
||||||
|
SoapClientOptions::SOAP_CLIENT_TRACE_ON,
|
||||||
|
SoapClientOptions::SOAP_CLIENT_EXCEPTIONS_ON,
|
||||||
|
CurlOptions::DEFAULT_USER_AGENT,
|
||||||
|
SoapClientOptions::SOAP_CLIENT_COMPRESSION_NONE,
|
||||||
|
$authentication,
|
||||||
|
SoapClientOptions::SOAP_CLIENT_PROXY_NONE,
|
||||||
|
$endpointLocation,
|
||||||
|
false,
|
||||||
|
CURL_SSLVERSION_SSLv3
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param SoapServerAuthenticationInterface $authentication
|
||||||
|
* @param bool $resolveRemoteIncludes
|
||||||
|
* @return SoapClientOptions
|
||||||
|
*/
|
||||||
|
public static function createWithAuthenticationAndResolveRemoteIncludes(
|
||||||
|
SoapServerAuthenticationInterface $authentication,
|
||||||
|
$resolveRemoteIncludes
|
||||||
|
) {
|
||||||
|
return new SoapClientOptions(
|
||||||
|
SoapClientOptions::SOAP_CLIENT_TRACE_ON,
|
||||||
|
SoapClientOptions::SOAP_CLIENT_EXCEPTIONS_ON,
|
||||||
|
CurlOptions::DEFAULT_USER_AGENT,
|
||||||
|
SoapClientOptions::SOAP_CLIENT_COMPRESSION_NONE,
|
||||||
|
$authentication,
|
||||||
|
SoapClientOptions::SOAP_CLIENT_PROXY_NONE,
|
||||||
|
SoapClientOptions::SOAP_CLIENT_ENDPOINT_LOCATION_NONE,
|
||||||
|
$resolveRemoteIncludes
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -17,6 +17,11 @@ class SoapClientOptions
|
|||||||
const SOAP_CLIENT_COMPRESSION_NONE = CurlOptions::SOAP_COMPRESSION_NONE;
|
const SOAP_CLIENT_COMPRESSION_NONE = CurlOptions::SOAP_COMPRESSION_NONE;
|
||||||
const SOAP_CLIENT_COMPRESSION_GZIP = CurlOptions::SOAP_COMPRESSION_GZIP;
|
const SOAP_CLIENT_COMPRESSION_GZIP = CurlOptions::SOAP_COMPRESSION_GZIP;
|
||||||
const SOAP_CLIENT_COMPRESSION_DEFLATE = CurlOptions::SOAP_COMPRESSION_DEFLATE;
|
const SOAP_CLIENT_COMPRESSION_DEFLATE = CurlOptions::SOAP_COMPRESSION_DEFLATE;
|
||||||
|
const SOAP_CLIENT_AUTHENTICATION_NONE = null;
|
||||||
|
const SOAP_CLIENT_PROXY_NONE = null;
|
||||||
|
const SOAP_CLIENT_ENDPOINT_LOCATION_NONE = null;
|
||||||
|
const SOAP_CLIENT_RESOLVE_REMOTE_INCLUDES_ON = true;
|
||||||
|
const SOAP_CLIENT_RESOLVE_REMOTE_INCLUDES_OFF = false;
|
||||||
|
|
||||||
private $trace;
|
private $trace;
|
||||||
private $exceptions;
|
private $exceptions;
|
||||||
@ -24,23 +29,41 @@ class SoapClientOptions
|
|||||||
private $compression;
|
private $compression;
|
||||||
private $authentication;
|
private $authentication;
|
||||||
private $proxy;
|
private $proxy;
|
||||||
|
private $location;
|
||||||
|
private $resolveRemoteIncludes;
|
||||||
|
private $sslVersion;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param bool $trace = SoapClientOptions::SOAP_CLIENT_TRACE_ON|SoapClientOptions::SOAP_CLIENT_TRACE_OFF
|
* @param bool $trace = self::SOAP_CLIENT_TRACE_ON|self::SOAP_CLIENT_TRACE_OFF
|
||||||
* @param bool $exceptions = SoapClientOptions::SOAP_CLIENT_EXCEPTIONS_ON|SoapClientOptions::SOAP_CLIENT_EXCEPTIONS_OFF
|
* @param bool $exceptions = self::SOAP_CLIENT_EXCEPTIONS_ON|self::SOAP_CLIENT_EXCEPTIONS_OFF
|
||||||
* @param string $userAgent
|
* @param string $userAgent
|
||||||
* @param int $compression = SoapClientOptions::SOAP_CLIENT_COMPRESSION_NONE|SoapClientOptions::SOAP_CLIENT_COMPRESSION_GZIP|SoapClientOptions::SOAP_CLIENT_COMPRESSION_DEFLATE
|
* @param int|null $compression = self::SOAP_CLIENT_COMPRESSION_NONE|self::SOAP_CLIENT_COMPRESSION_GZIP|self::SOAP_CLIENT_COMPRESSION_DEFLATE
|
||||||
* @param SoapServerAuthenticationInterface $authentication = null
|
* @param SoapServerAuthenticationInterface|null $authentication
|
||||||
* @param SoapServerProxy $proxy = null
|
* @param SoapServerProxy|null $proxy
|
||||||
|
* @param string|null $location
|
||||||
|
* @param bool $resolveRemoteIncludes = self::SOAP_CLIENT_RESOLVE_REMOTE_INCLUDES_ON|self::SOAP_CLIENT_RESOLVE_REMOTE_INCLUDES_OFF
|
||||||
|
* @param int $sslVersion
|
||||||
*/
|
*/
|
||||||
public function __construct($trace, $exceptions, $userAgent, $compression = null, SoapServerAuthenticationInterface $authentication = null, SoapServerProxy $proxy = null)
|
public function __construct(
|
||||||
{
|
$trace,
|
||||||
|
$exceptions,
|
||||||
|
$userAgent,
|
||||||
|
$compression = null,
|
||||||
|
SoapServerAuthenticationInterface $authentication = null,
|
||||||
|
SoapServerProxy $proxy = null,
|
||||||
|
$location = null,
|
||||||
|
$resolveRemoteIncludes = false,
|
||||||
|
$sslVersion = null
|
||||||
|
) {
|
||||||
$this->trace = $trace;
|
$this->trace = $trace;
|
||||||
$this->exceptions = $exceptions;
|
$this->exceptions = $exceptions;
|
||||||
$this->userAgent = $userAgent;
|
$this->userAgent = $userAgent;
|
||||||
$this->compression = $compression;
|
$this->compression = $compression;
|
||||||
$this->authentication = $authentication;
|
$this->authentication = $authentication;
|
||||||
$this->proxy = $proxy;
|
$this->proxy = $proxy;
|
||||||
|
$this->location = $location;
|
||||||
|
$this->resolveRemoteIncludes = $resolveRemoteIncludes;
|
||||||
|
$this->sslVersion = $sslVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getTrace()
|
public function getTrace()
|
||||||
@ -88,6 +111,11 @@ class SoapClientOptions
|
|||||||
return $this->proxy !== null;
|
return $this->proxy !== null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function hasLocation()
|
||||||
|
{
|
||||||
|
return $this->location !== null;
|
||||||
|
}
|
||||||
|
|
||||||
public function getAuthentication()
|
public function getAuthentication()
|
||||||
{
|
{
|
||||||
return $this->authentication;
|
return $this->authentication;
|
||||||
@ -98,6 +126,16 @@ class SoapClientOptions
|
|||||||
return $this->proxy;
|
return $this->proxy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getLocation()
|
||||||
|
{
|
||||||
|
return $this->location;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function isResolveRemoteIncludes()
|
||||||
|
{
|
||||||
|
return $this->resolveRemoteIncludes;
|
||||||
|
}
|
||||||
|
|
||||||
public function toArray()
|
public function toArray()
|
||||||
{
|
{
|
||||||
$optionsAsArray = [
|
$optionsAsArray = [
|
||||||
@ -114,7 +152,15 @@ class SoapClientOptions
|
|||||||
if ($this->hasProxy()) {
|
if ($this->hasProxy()) {
|
||||||
$optionsAsArray += $this->getProxy()->toArray();
|
$optionsAsArray += $this->getProxy()->toArray();
|
||||||
}
|
}
|
||||||
|
if ($this->hasLocation()) {
|
||||||
|
$optionsAsArray['location'] = $this->getLocation();
|
||||||
|
}
|
||||||
|
|
||||||
return $optionsAsArray;
|
return $optionsAsArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getSslVersion()
|
||||||
|
{
|
||||||
|
return $this->sslVersion;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,12 +2,60 @@
|
|||||||
|
|
||||||
namespace BeSimple\SoapClient;
|
namespace BeSimple\SoapClient;
|
||||||
|
|
||||||
|
use BeSimple\SoapCommon\SoapRequest;
|
||||||
use BeSimple\SoapCommon\SoapResponse as CommonSoapResponse;
|
use BeSimple\SoapCommon\SoapResponse as CommonSoapResponse;
|
||||||
|
|
||||||
class SoapResponse extends CommonSoapResponse
|
class SoapResponse extends CommonSoapResponse
|
||||||
{
|
{
|
||||||
|
/** @var mixed */
|
||||||
|
protected $responseObject;
|
||||||
|
/** @var SoapResponseTracingData */
|
||||||
|
protected $tracingData;
|
||||||
|
/** @var SoapRequest */
|
||||||
|
protected $request;
|
||||||
|
|
||||||
public function getResponseContent()
|
public function getResponseContent()
|
||||||
{
|
{
|
||||||
return $this->getContent();
|
return $this->getContent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getResponseObject()
|
||||||
|
{
|
||||||
|
return $this->responseObject;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setResponseObject($responseObject)
|
||||||
|
{
|
||||||
|
$this->responseObject = $responseObject;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function hasTracingData()
|
||||||
|
{
|
||||||
|
return $this->tracingData !== null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getTracingData()
|
||||||
|
{
|
||||||
|
return $this->tracingData;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setTracingData(SoapResponseTracingData $tracingData)
|
||||||
|
{
|
||||||
|
$this->tracingData = $tracingData;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function hasRequest()
|
||||||
|
{
|
||||||
|
return $this->request !== null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setRequest(SoapRequest $request)
|
||||||
|
{
|
||||||
|
$this->request = $request;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getRequest()
|
||||||
|
{
|
||||||
|
return $this->request;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -14,6 +14,7 @@ namespace BeSimple\SoapClient;
|
|||||||
|
|
||||||
use BeSimple\SoapBundle\Soap\SoapAttachment;
|
use BeSimple\SoapBundle\Soap\SoapAttachment;
|
||||||
use BeSimple\SoapCommon\Mime\PartFactory;
|
use BeSimple\SoapCommon\Mime\PartFactory;
|
||||||
|
use BeSimple\SoapCommon\SoapRequest;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SoapResponseFactory for SoapClient. Provides factory function for SoapResponse object.
|
* SoapResponseFactory for SoapClient. Provides factory function for SoapResponse object.
|
||||||
@ -26,31 +27,28 @@ class SoapResponseFactory
|
|||||||
/**
|
/**
|
||||||
* Factory method for SoapClient\SoapResponse.
|
* Factory method for SoapClient\SoapResponse.
|
||||||
*
|
*
|
||||||
|
* @param SoapRequest $soapRequest related request object
|
||||||
* @param string $content Content
|
* @param string $content Content
|
||||||
* @param string $location Location
|
|
||||||
* @param string $action SOAP action
|
|
||||||
* @param string $version SOAP version
|
|
||||||
* @param string $contentType Content type header
|
* @param string $contentType Content type header
|
||||||
* @param SoapAttachment[] $attachments SOAP attachments
|
* @param SoapAttachment[] $attachments SOAP attachments
|
||||||
* @return SoapResponse
|
* @return SoapResponse
|
||||||
*/
|
*/
|
||||||
public static function create(
|
public static function create(
|
||||||
|
SoapRequest $soapRequest,
|
||||||
$content,
|
$content,
|
||||||
$location,
|
|
||||||
$action,
|
|
||||||
$version,
|
|
||||||
$contentType,
|
$contentType,
|
||||||
array $attachments = []
|
array $attachments = []
|
||||||
) {
|
) {
|
||||||
$response = new SoapResponse();
|
$response = new SoapResponse();
|
||||||
|
$response->setRequest($soapRequest);
|
||||||
$response->setContent($content);
|
$response->setContent($content);
|
||||||
$response->setLocation($location);
|
$response->setLocation($soapRequest->getLocation());
|
||||||
$response->setAction($action);
|
$response->setAction($soapRequest->getAction());
|
||||||
$response->setVersion($version);
|
$response->setVersion($soapRequest->getVersion());
|
||||||
$response->setContentType($contentType);
|
$response->setContentType($contentType);
|
||||||
if (count($attachments) > 0) {
|
if (count($attachments) > 0) {
|
||||||
$response->setAttachments(
|
$response->setAttachments(
|
||||||
self::createAttachmentParts($attachments)
|
PartFactory::createAttachmentParts($attachments)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,33 +58,28 @@ class SoapResponseFactory
|
|||||||
/**
|
/**
|
||||||
* Factory method for SoapClient\SoapResponse with SoapResponseTracingData.
|
* Factory method for SoapClient\SoapResponse with SoapResponseTracingData.
|
||||||
*
|
*
|
||||||
|
* @param SoapRequest $soapRequest related request object
|
||||||
* @param string $content Content
|
* @param string $content Content
|
||||||
* @param string $location Location
|
|
||||||
* @param string $action SOAP action
|
|
||||||
* @param string $version SOAP version
|
|
||||||
* @param string $contentType Content type header
|
* @param string $contentType Content type header
|
||||||
* @param SoapResponseTracingData $tracingData Data value object suitable for tracing SOAP traffic
|
* @param SoapResponseTracingData $tracingData Data value object suitable for tracing SOAP traffic
|
||||||
* @param SoapAttachment[] $attachments SOAP attachments
|
* @param SoapAttachment[] $attachments SOAP attachments
|
||||||
* @return SoapResponse
|
* @return SoapResponse
|
||||||
*/
|
*/
|
||||||
public static function createWithTracingData(
|
public static function createWithTracingData(
|
||||||
|
SoapRequest $soapRequest,
|
||||||
$content,
|
$content,
|
||||||
$location,
|
|
||||||
$action,
|
|
||||||
$version,
|
|
||||||
$contentType,
|
$contentType,
|
||||||
SoapResponseTracingData $tracingData,
|
SoapResponseTracingData $tracingData,
|
||||||
array $attachments = []
|
array $attachments = []
|
||||||
) {
|
) {
|
||||||
$response = new SoapResponse();
|
$response = new SoapResponse();
|
||||||
|
$response->setRequest($soapRequest);
|
||||||
$response->setContent($content);
|
$response->setContent($content);
|
||||||
$response->setLocation($location);
|
$response->setLocation($soapRequest->getLocation());
|
||||||
$response->setAction($action);
|
$response->setAction($soapRequest->getAction());
|
||||||
$response->setVersion($version);
|
$response->setVersion($soapRequest->getVersion());
|
||||||
$response->setContentType($contentType);
|
$response->setContentType($contentType);
|
||||||
if ($tracingData !== null) {
|
$response->setTracingData($tracingData);
|
||||||
$response->setTracingData($tracingData);
|
|
||||||
}
|
|
||||||
if (count($attachments) > 0) {
|
if (count($attachments) > 0) {
|
||||||
$response->setAttachments(
|
$response->setAttachments(
|
||||||
PartFactory::createAttachmentParts($attachments)
|
PartFactory::createAttachmentParts($attachments)
|
||||||
|
@ -1,56 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This file is part of the BeSimpleSoapClient.
|
|
||||||
*
|
|
||||||
* (c) Christian Kerl <christian-kerl@web.de>
|
|
||||||
* (c) Francis Besset <francis.besset@gmail.com>
|
|
||||||
*
|
|
||||||
* This source file is subject to the MIT license that is bundled
|
|
||||||
* with this source code in the file LICENSE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests;
|
|
||||||
|
|
||||||
use Symfony\Component\Process\PhpExecutableFinder;
|
|
||||||
use Symfony\Component\Process\ProcessBuilder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author francis.besset@gmail.com <francis.besset@gmail.com>
|
|
||||||
*/
|
|
||||||
abstract class AbstractWebServerTest extends \PHPUnit_Framework_TestCase
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @var ProcessBuilder
|
|
||||||
*/
|
|
||||||
static protected $webserver;
|
|
||||||
static protected $websererPortLength;
|
|
||||||
|
|
||||||
public static function setUpBeforeClass()
|
|
||||||
{
|
|
||||||
if (version_compare(PHP_VERSION, '5.4.0', '<')) {
|
|
||||||
self::markTestSkipped('PHP Webserver is available from PHP 5.4');
|
|
||||||
}
|
|
||||||
|
|
||||||
$phpFinder = new PhpExecutableFinder();
|
|
||||||
self::$webserver = ProcessBuilder::create(array(
|
|
||||||
'exec', // used exec binary (https://github.com/symfony/symfony/issues/5759)
|
|
||||||
$phpFinder->find(),
|
|
||||||
'-S',
|
|
||||||
sprintf('localhost:%d', WEBSERVER_PORT),
|
|
||||||
'-t',
|
|
||||||
__DIR__.DIRECTORY_SEPARATOR.'Fixtures',
|
|
||||||
))->getProcess();
|
|
||||||
|
|
||||||
self::$webserver->start();
|
|
||||||
usleep(100000);
|
|
||||||
|
|
||||||
self::$websererPortLength = strlen(WEBSERVER_PORT);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static function tearDownAfterClass()
|
|
||||||
{
|
|
||||||
self::$webserver->stop(0);
|
|
||||||
usleep(100000);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\AxisInterop\Fixtures;
|
|
||||||
|
|
||||||
class AttachmentRequest extends AttachmentType
|
|
||||||
{
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\AxisInterop\Fixtures;
|
|
||||||
|
|
||||||
class AttachmentType
|
|
||||||
{
|
|
||||||
public $fileName;
|
|
||||||
public $binaryData;
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\AxisInterop\Fixtures;
|
|
||||||
|
|
||||||
class BookInformation
|
|
||||||
{
|
|
||||||
public $type;
|
|
||||||
public $isbn;
|
|
||||||
public $author;
|
|
||||||
public $title;
|
|
||||||
}
|
|
@ -1,89 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<definitions targetNamespace="http://ws.apache.org/axis2/mtomsample/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://ws.apache.org/axis2/mtomsample/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/">
|
|
||||||
<types>
|
|
||||||
<xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://ws.apache.org/axis2/mtomsample/" xmlns="http://schemas.xmlsoap.org/wsdl/">
|
|
||||||
<xsd:import namespace="http://www.w3.org/2005/05/xmlmime"/>
|
|
||||||
<xsd:complexType name="AttachmentType">
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element minOccurs="0" name="fileName" type="xsd:string"/>
|
|
||||||
<xsd:element minOccurs="0" name="binaryData" type="xmime:base64Binary"/>
|
|
||||||
</xsd:sequence>
|
|
||||||
</xsd:complexType>
|
|
||||||
<xsd:element name="AttachmentRequest" type="tns:AttachmentType"/>
|
|
||||||
<xsd:element name="AttachmentResponse" type="xsd:string"/>
|
|
||||||
</xsd:schema>
|
|
||||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://www.w3.org/2005/05/xmlmime">
|
|
||||||
<xs:attribute name="contentType">
|
|
||||||
<xs:simpleType>
|
|
||||||
<xs:restriction base="xs:string">
|
|
||||||
<xs:minLength value="3"/>
|
|
||||||
</xs:restriction>
|
|
||||||
</xs:simpleType>
|
|
||||||
</xs:attribute>
|
|
||||||
<xs:attribute name="expectedContentTypes" type="xs:string"/>
|
|
||||||
<xs:complexType name="base64Binary">
|
|
||||||
<xs:simpleContent>
|
|
||||||
<xs:extension base="xs:base64Binary">
|
|
||||||
<xs:attribute ref="xmime:contentType"/>
|
|
||||||
</xs:extension>
|
|
||||||
</xs:simpleContent>
|
|
||||||
</xs:complexType>
|
|
||||||
<xs:complexType name="hexBinary">
|
|
||||||
<xs:simpleContent>
|
|
||||||
<xs:extension base="xs:hexBinary">
|
|
||||||
<xs:attribute ref="xmime:contentType"/>
|
|
||||||
</xs:extension>
|
|
||||||
</xs:simpleContent>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:schema>
|
|
||||||
|
|
||||||
</types>
|
|
||||||
<message name="AttachmentResponse">
|
|
||||||
<part name="part1" element="tns:AttachmentResponse">
|
|
||||||
</part>
|
|
||||||
</message>
|
|
||||||
<message name="AttachmentRequest">
|
|
||||||
<part name="part1" element="tns:AttachmentRequest">
|
|
||||||
</part>
|
|
||||||
</message>
|
|
||||||
<portType name="MTOMServicePortType">
|
|
||||||
<operation name="attachment">
|
|
||||||
<input message="tns:AttachmentRequest" wsaw:Action="attachment">
|
|
||||||
</input>
|
|
||||||
<output message="tns:AttachmentResponse" wsaw:Action="http://schemas.xmlsoap.org/wsdl/MTOMServicePortType/AttachmentResponse">
|
|
||||||
</output>
|
|
||||||
</operation>
|
|
||||||
</portType>
|
|
||||||
<binding name="MTOMServiceSOAP11Binding" type="tns:MTOMServicePortType">
|
|
||||||
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
|
||||||
<operation name="attachment">
|
|
||||||
<soap:operation soapAction="attachment" style="document"/>
|
|
||||||
<input>
|
|
||||||
<soap:body use="literal"/>
|
|
||||||
</input>
|
|
||||||
<output>
|
|
||||||
<soap:body use="literal"/>
|
|
||||||
</output>
|
|
||||||
</operation>
|
|
||||||
</binding>
|
|
||||||
<binding name="MTOMServiceSOAP12Binding" type="tns:MTOMServicePortType">
|
|
||||||
<soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
|
||||||
<operation name="attachment">
|
|
||||||
<soap12:operation soapAction="attachment" style="document"/>
|
|
||||||
<input>
|
|
||||||
<soap12:body use="literal"/>
|
|
||||||
</input>
|
|
||||||
<output>
|
|
||||||
<soap12:body use="literal"/>
|
|
||||||
</output>
|
|
||||||
</operation>
|
|
||||||
</binding>
|
|
||||||
<service name="MTOMSample">
|
|
||||||
<port name="MTOMSampleSOAP12port_http" binding="tns:MTOMServiceSOAP12Binding">
|
|
||||||
<soap12:address location="http://localhost:8080/axis2/services/MTOMSample.MTOMSampleSOAP12port_http/"/>
|
|
||||||
</port>
|
|
||||||
<port name="MTOMSampleSOAP11port_http" binding="tns:MTOMServiceSOAP11Binding">
|
|
||||||
<soap:address location="http://localhost:8080/axis2/services/MTOMSample.MTOMSampleSOAP11port_http/"/>
|
|
||||||
</port>
|
|
||||||
</service>
|
|
||||||
</definitions>
|
|
@ -1,162 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://service.besimple" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://service.besimple">
|
|
||||||
<wsdl:documentation>BeSimpleSwaService</wsdl:documentation>
|
|
||||||
<wsdl:types>
|
|
||||||
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://service.besimple">
|
|
||||||
<xs:complexType name="Exception">
|
|
||||||
<xs:sequence>
|
|
||||||
<xs:element minOccurs="0" name="Exception" nillable="true" type="xs:anyType"/>
|
|
||||||
</xs:sequence>
|
|
||||||
</xs:complexType>
|
|
||||||
<xs:element name="Exception">
|
|
||||||
<xs:complexType>
|
|
||||||
<xs:sequence>
|
|
||||||
<xs:element minOccurs="0" name="Exception" nillable="true" type="ns:Exception"/>
|
|
||||||
</xs:sequence>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="uploadFile">
|
|
||||||
<xs:complexType>
|
|
||||||
<xs:sequence>
|
|
||||||
<xs:element minOccurs="0" name="data" nillable="true" type="xs:base64Binary"/>
|
|
||||||
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
|
|
||||||
</xs:sequence>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="uploadFileResponse">
|
|
||||||
<xs:complexType>
|
|
||||||
<xs:sequence>
|
|
||||||
<xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
|
|
||||||
</xs:sequence>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="downloadFile">
|
|
||||||
<xs:complexType>
|
|
||||||
<xs:sequence>
|
|
||||||
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
|
|
||||||
</xs:sequence>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="downloadFileResponse">
|
|
||||||
<xs:complexType>
|
|
||||||
<xs:sequence>
|
|
||||||
<xs:element minOccurs="0" name="data" nillable="true" type="xs:base64Binary"/>
|
|
||||||
</xs:sequence>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:element>
|
|
||||||
</xs:schema>
|
|
||||||
</wsdl:types>
|
|
||||||
<wsdl:message name="downloadFileRequest">
|
|
||||||
<wsdl:part name="parameters" element="ns:downloadFile"/>
|
|
||||||
</wsdl:message>
|
|
||||||
<wsdl:message name="downloadFileResponse">
|
|
||||||
<wsdl:part name="parameters" element="ns:downloadFileResponse"/>
|
|
||||||
</wsdl:message>
|
|
||||||
<wsdl:message name="Exception">
|
|
||||||
<wsdl:part name="parameters" element="ns:Exception"/>
|
|
||||||
</wsdl:message>
|
|
||||||
<wsdl:message name="uploadFileRequest">
|
|
||||||
<wsdl:part name="parameters" element="ns:uploadFile"/>
|
|
||||||
</wsdl:message>
|
|
||||||
<wsdl:message name="uploadFileResponse">
|
|
||||||
<wsdl:part name="parameters" element="ns:uploadFileResponse"/>
|
|
||||||
</wsdl:message>
|
|
||||||
<wsdl:portType name="BeSimpleSwaServicePortType">
|
|
||||||
<wsdl:operation name="downloadFile">
|
|
||||||
<wsdl:input message="ns:downloadFileRequest" wsaw:Action="urn:downloadFile"/>
|
|
||||||
<wsdl:output message="ns:downloadFileResponse" wsaw:Action="urn:downloadFileResponse"/>
|
|
||||||
<wsdl:fault message="ns:Exception" name="Exception" wsaw:Action="urn:downloadFileException"/>
|
|
||||||
</wsdl:operation>
|
|
||||||
<wsdl:operation name="uploadFile">
|
|
||||||
<wsdl:input message="ns:uploadFileRequest" wsaw:Action="urn:uploadFile"/>
|
|
||||||
<wsdl:output message="ns:uploadFileResponse" wsaw:Action="urn:uploadFileResponse"/>
|
|
||||||
<wsdl:fault message="ns:Exception" name="Exception" wsaw:Action="urn:uploadFileException"/>
|
|
||||||
</wsdl:operation>
|
|
||||||
</wsdl:portType>
|
|
||||||
<wsdl:binding name="BeSimpleSwaServiceSoap11Binding" type="ns:BeSimpleSwaServicePortType">
|
|
||||||
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
|
|
||||||
<wsdl:operation name="downloadFile">
|
|
||||||
<soap:operation soapAction="urn:downloadFile" style="document"/>
|
|
||||||
<wsdl:input>
|
|
||||||
<soap:body use="literal"/>
|
|
||||||
</wsdl:input>
|
|
||||||
<wsdl:output>
|
|
||||||
<soap:body use="literal"/>
|
|
||||||
</wsdl:output>
|
|
||||||
<wsdl:fault name="Exception">
|
|
||||||
<soap:fault use="literal" name="Exception"/>
|
|
||||||
</wsdl:fault>
|
|
||||||
</wsdl:operation>
|
|
||||||
<wsdl:operation name="uploadFile">
|
|
||||||
<soap:operation soapAction="urn:uploadFile" style="document"/>
|
|
||||||
<wsdl:input>
|
|
||||||
<soap:body use="literal"/>
|
|
||||||
</wsdl:input>
|
|
||||||
<wsdl:output>
|
|
||||||
<soap:body use="literal"/>
|
|
||||||
</wsdl:output>
|
|
||||||
<wsdl:fault name="Exception">
|
|
||||||
<soap:fault use="literal" name="Exception"/>
|
|
||||||
</wsdl:fault>
|
|
||||||
</wsdl:operation>
|
|
||||||
</wsdl:binding>
|
|
||||||
<wsdl:binding name="BeSimpleSwaServiceSoap12Binding" type="ns:BeSimpleSwaServicePortType">
|
|
||||||
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
|
|
||||||
<wsdl:operation name="downloadFile">
|
|
||||||
<soap12:operation soapAction="urn:downloadFile" style="document"/>
|
|
||||||
<wsdl:input>
|
|
||||||
<soap12:body use="literal"/>
|
|
||||||
</wsdl:input>
|
|
||||||
<wsdl:output>
|
|
||||||
<soap12:body use="literal"/>
|
|
||||||
</wsdl:output>
|
|
||||||
<wsdl:fault name="Exception">
|
|
||||||
<soap12:fault use="literal" name="Exception"/>
|
|
||||||
</wsdl:fault>
|
|
||||||
</wsdl:operation>
|
|
||||||
<wsdl:operation name="uploadFile">
|
|
||||||
<soap12:operation soapAction="urn:uploadFile" style="document"/>
|
|
||||||
<wsdl:input>
|
|
||||||
<soap12:body use="literal"/>
|
|
||||||
</wsdl:input>
|
|
||||||
<wsdl:output>
|
|
||||||
<soap12:body use="literal"/>
|
|
||||||
</wsdl:output>
|
|
||||||
<wsdl:fault name="Exception">
|
|
||||||
<soap12:fault use="literal" name="Exception"/>
|
|
||||||
</wsdl:fault>
|
|
||||||
</wsdl:operation>
|
|
||||||
</wsdl:binding>
|
|
||||||
<wsdl:binding name="BeSimpleSwaServiceHttpBinding" type="ns:BeSimpleSwaServicePortType">
|
|
||||||
<http:binding verb="POST"/>
|
|
||||||
<wsdl:operation name="downloadFile">
|
|
||||||
<http:operation location="BeSimpleSwaService/downloadFile"/>
|
|
||||||
<wsdl:input>
|
|
||||||
<mime:content type="text/xml" part="downloadFile"/>
|
|
||||||
</wsdl:input>
|
|
||||||
<wsdl:output>
|
|
||||||
<mime:content type="text/xml" part="downloadFile"/>
|
|
||||||
</wsdl:output>
|
|
||||||
</wsdl:operation>
|
|
||||||
<wsdl:operation name="uploadFile">
|
|
||||||
<http:operation location="BeSimpleSwaService/uploadFile"/>
|
|
||||||
<wsdl:input>
|
|
||||||
<mime:content type="text/xml" part="uploadFile"/>
|
|
||||||
</wsdl:input>
|
|
||||||
<wsdl:output>
|
|
||||||
<mime:content type="text/xml" part="uploadFile"/>
|
|
||||||
</wsdl:output>
|
|
||||||
</wsdl:operation>
|
|
||||||
</wsdl:binding>
|
|
||||||
<wsdl:service name="BeSimpleSwaService">
|
|
||||||
<wsdl:port name="BeSimpleSwaServiceHttpSoap11Endpoint" binding="ns:BeSimpleSwaServiceSoap11Binding">
|
|
||||||
<soap:address location="http://localhost:8080/axis2/services/BeSimpleSwaService.BeSimpleSwaServiceHttpSoap11Endpoint/"/>
|
|
||||||
</wsdl:port>
|
|
||||||
<wsdl:port name="BeSimpleSwaServiceHttpSoap12Endpoint" binding="ns:BeSimpleSwaServiceSoap12Binding">
|
|
||||||
<soap12:address location="http://localhost:8080/axis2/services/BeSimpleSwaService.BeSimpleSwaServiceHttpSoap12Endpoint/"/>
|
|
||||||
</wsdl:port>
|
|
||||||
<wsdl:port name="BeSimpleSwaServiceHttpEndpoint" binding="ns:BeSimpleSwaServiceHttpBinding">
|
|
||||||
<http:address location="http://localhost:8080/axis2/services/BeSimpleSwaService.BeSimpleSwaServiceHttpEndpoint/"/>
|
|
||||||
</wsdl:port>
|
|
||||||
</wsdl:service>
|
|
||||||
</wsdl:definitions>
|
|
@ -1,184 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<wsdl:definitions targetNamespace="http://ws.sosnoski.com/library/wsdl"
|
|
||||||
xmlns:wns="http://ws.sosnoski.com/library/wsdl"
|
|
||||||
xmlns:tns="http://ws.sosnoski.com/library/types"
|
|
||||||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
|
|
||||||
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/">
|
|
||||||
<wsdl:types>
|
|
||||||
|
|
||||||
<schema elementFormDefault="qualified"
|
|
||||||
targetNamespace="http://ws.sosnoski.com/library/wsdl"
|
|
||||||
xmlns="http://www.w3.org/2001/XMLSchema">
|
|
||||||
|
|
||||||
<import namespace="http://ws.sosnoski.com/library/types"/>
|
|
||||||
|
|
||||||
<element name="getBook">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="isbn" type="string"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<element name="getBookResponse">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="getBookReturn" minOccurs="0" type="tns:BookInformation"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<element name="getBooksByType">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="type" type="string"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<element name="getBooksByTypeResponse">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="getBooksByTypeReturn" minOccurs="0" maxOccurs="unbounded" type="tns:BookInformation"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<element name="addBook">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="type" type="string"/>
|
|
||||||
<element name="isbn" type="string"/>
|
|
||||||
<element name="author" minOccurs="0" maxOccurs="unbounded" type="string"/>
|
|
||||||
<element name="title" type="string"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<element name="addBookResponse">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="addBookReturn" type="boolean"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema elementFormDefault="qualified"
|
|
||||||
targetNamespace="http://ws.sosnoski.com/library/types"
|
|
||||||
xmlns="http://www.w3.org/2001/XMLSchema">
|
|
||||||
|
|
||||||
<complexType name="BookInformation">
|
|
||||||
<sequence>
|
|
||||||
<element name="author" minOccurs="0" maxOccurs="unbounded" type="string"/>
|
|
||||||
<element name="title" type="string"/>
|
|
||||||
</sequence>
|
|
||||||
<attribute name="type" use="required" type="string"/>
|
|
||||||
<attribute name="isbn" use="required" type="string"/>
|
|
||||||
</complexType>
|
|
||||||
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
</wsdl:types>
|
|
||||||
|
|
||||||
<wsdl:message name="getBookRequest">
|
|
||||||
<wsdl:part element="wns:getBook" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:message name="getBookResponse">
|
|
||||||
<wsdl:part element="wns:getBookResponse" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:message name="getBooksByTypeRequest">
|
|
||||||
<wsdl:part element="wns:getBooksByType" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:message name="getBooksByTypeResponse">
|
|
||||||
<wsdl:part element="wns:getBooksByTypeResponse" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:message name="addBookRequest">
|
|
||||||
<wsdl:part element="wns:addBook" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:message name="addBookResponse">
|
|
||||||
<wsdl:part element="wns:addBookResponse" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:portType name="Library">
|
|
||||||
|
|
||||||
<wsdl:operation name="getBook">
|
|
||||||
<wsdl:input message="wns:getBookRequest" name="getBookRequest"/>
|
|
||||||
<wsdl:output message="wns:getBookResponse" name="getBookResponse"/>
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
<wsdl:operation name="getBooksByType">
|
|
||||||
<wsdl:input message="wns:getBooksByTypeRequest" name="getBooksByTypeRequest"/>
|
|
||||||
<wsdl:output message="wns:getBooksByTypeResponse" name="getBooksByTypeResponse"/>
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
<wsdl:operation name="addBook">
|
|
||||||
<wsdl:input message="wns:addBookRequest" name="addBookRequest"/>
|
|
||||||
<wsdl:output message="wns:addBookResponse" name="addBookResponse"/>
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
</wsdl:portType>
|
|
||||||
|
|
||||||
<wsdl:binding name="LibrarySoapBinding" type="wns:Library">
|
|
||||||
|
|
||||||
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
|
||||||
|
|
||||||
<wsdl:operation name="getBook">
|
|
||||||
|
|
||||||
<wsdlsoap:operation soapAction="urn:getBook"/>
|
|
||||||
|
|
||||||
<wsdl:input name="getBookRequest">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:input>
|
|
||||||
|
|
||||||
<wsdl:output name="getBookResponse">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:output>
|
|
||||||
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
<wsdl:operation name="getBooksByType">
|
|
||||||
|
|
||||||
<wsdlsoap:operation soapAction="urn:getBooksByType"/>
|
|
||||||
|
|
||||||
<wsdl:input name="getBooksByTypeRequest">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:input>
|
|
||||||
|
|
||||||
<wsdl:output name="getBooksByTypeResponse">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:output>
|
|
||||||
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
<wsdl:operation name="addBook">
|
|
||||||
|
|
||||||
<wsdlsoap:operation soapAction="urn:addBook"/>
|
|
||||||
|
|
||||||
<wsdl:input name="addBookRequest">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:input>
|
|
||||||
|
|
||||||
<wsdl:output name="addBookResponse">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:output>
|
|
||||||
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
</wsdl:binding>
|
|
||||||
|
|
||||||
<wsdl:service name="library-signencr">
|
|
||||||
|
|
||||||
<wsdl:port binding="wns:LibrarySoapBinding" name="library">
|
|
||||||
<wsdlsoap:address location="http://localhost:8080/axis2/services/library-signencr"/>
|
|
||||||
</wsdl:port>
|
|
||||||
|
|
||||||
</wsdl:service>
|
|
||||||
|
|
||||||
</wsdl:definitions>
|
|
@ -1,184 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<wsdl:definitions targetNamespace="http://ws.sosnoski.com/library/wsdl"
|
|
||||||
xmlns:wns="http://ws.sosnoski.com/library/wsdl"
|
|
||||||
xmlns:tns="http://ws.sosnoski.com/library/types"
|
|
||||||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
|
|
||||||
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/">
|
|
||||||
<wsdl:types>
|
|
||||||
|
|
||||||
<schema elementFormDefault="qualified"
|
|
||||||
targetNamespace="http://ws.sosnoski.com/library/wsdl"
|
|
||||||
xmlns="http://www.w3.org/2001/XMLSchema">
|
|
||||||
|
|
||||||
<import namespace="http://ws.sosnoski.com/library/types"/>
|
|
||||||
|
|
||||||
<element name="getBook">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="isbn" type="string"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<element name="getBookResponse">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="getBookReturn" minOccurs="0" type="tns:BookInformation"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<element name="getBooksByType">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="type" type="string"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<element name="getBooksByTypeResponse">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="getBooksByTypeReturn" minOccurs="0" maxOccurs="unbounded" type="tns:BookInformation"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<element name="addBook">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="type" type="string"/>
|
|
||||||
<element name="isbn" type="string"/>
|
|
||||||
<element name="author" minOccurs="0" maxOccurs="unbounded" type="string"/>
|
|
||||||
<element name="title" type="string"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<element name="addBookResponse">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="addBookReturn" type="boolean"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema elementFormDefault="qualified"
|
|
||||||
targetNamespace="http://ws.sosnoski.com/library/types"
|
|
||||||
xmlns="http://www.w3.org/2001/XMLSchema">
|
|
||||||
|
|
||||||
<complexType name="BookInformation">
|
|
||||||
<sequence>
|
|
||||||
<element name="author" minOccurs="0" maxOccurs="unbounded" type="string"/>
|
|
||||||
<element name="title" type="string"/>
|
|
||||||
</sequence>
|
|
||||||
<attribute name="type" use="required" type="string"/>
|
|
||||||
<attribute name="isbn" use="required" type="string"/>
|
|
||||||
</complexType>
|
|
||||||
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
</wsdl:types>
|
|
||||||
|
|
||||||
<wsdl:message name="getBookRequest">
|
|
||||||
<wsdl:part element="wns:getBook" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:message name="getBookResponse">
|
|
||||||
<wsdl:part element="wns:getBookResponse" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:message name="getBooksByTypeRequest">
|
|
||||||
<wsdl:part element="wns:getBooksByType" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:message name="getBooksByTypeResponse">
|
|
||||||
<wsdl:part element="wns:getBooksByTypeResponse" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:message name="addBookRequest">
|
|
||||||
<wsdl:part element="wns:addBook" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:message name="addBookResponse">
|
|
||||||
<wsdl:part element="wns:addBookResponse" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:portType name="Library">
|
|
||||||
|
|
||||||
<wsdl:operation name="getBook">
|
|
||||||
<wsdl:input message="wns:getBookRequest" name="getBookRequest"/>
|
|
||||||
<wsdl:output message="wns:getBookResponse" name="getBookResponse"/>
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
<wsdl:operation name="getBooksByType">
|
|
||||||
<wsdl:input message="wns:getBooksByTypeRequest" name="getBooksByTypeRequest"/>
|
|
||||||
<wsdl:output message="wns:getBooksByTypeResponse" name="getBooksByTypeResponse"/>
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
<wsdl:operation name="addBook">
|
|
||||||
<wsdl:input message="wns:addBookRequest" name="addBookRequest"/>
|
|
||||||
<wsdl:output message="wns:addBookResponse" name="addBookResponse"/>
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
</wsdl:portType>
|
|
||||||
|
|
||||||
<wsdl:binding name="LibrarySoapBinding" type="wns:Library">
|
|
||||||
|
|
||||||
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
|
||||||
|
|
||||||
<wsdl:operation name="getBook">
|
|
||||||
|
|
||||||
<wsdlsoap:operation soapAction="urn:getBook"/>
|
|
||||||
|
|
||||||
<wsdl:input name="getBookRequest">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:input>
|
|
||||||
|
|
||||||
<wsdl:output name="getBookResponse">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:output>
|
|
||||||
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
<wsdl:operation name="getBooksByType">
|
|
||||||
|
|
||||||
<wsdlsoap:operation soapAction="urn:getBooksByType"/>
|
|
||||||
|
|
||||||
<wsdl:input name="getBooksByTypeRequest">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:input>
|
|
||||||
|
|
||||||
<wsdl:output name="getBooksByTypeResponse">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:output>
|
|
||||||
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
<wsdl:operation name="addBook">
|
|
||||||
|
|
||||||
<wsdlsoap:operation soapAction="urn:addBook"/>
|
|
||||||
|
|
||||||
<wsdl:input name="addBookRequest">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:input>
|
|
||||||
|
|
||||||
<wsdl:output name="addBookResponse">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:output>
|
|
||||||
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
</wsdl:binding>
|
|
||||||
|
|
||||||
<wsdl:service name="library-username">
|
|
||||||
|
|
||||||
<wsdl:port binding="wns:LibrarySoapBinding" name="library">
|
|
||||||
<wsdlsoap:address location="http://localhost:8080/axis2/services/library-username"/>
|
|
||||||
</wsdl:port>
|
|
||||||
|
|
||||||
</wsdl:service>
|
|
||||||
|
|
||||||
</wsdl:definitions>
|
|
@ -1,11 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\AxisInterop\Fixtures;
|
|
||||||
|
|
||||||
class addBook
|
|
||||||
{
|
|
||||||
public $type;
|
|
||||||
public $isbn;
|
|
||||||
public $author;
|
|
||||||
public $title;
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\AxisInterop\Fixtures;
|
|
||||||
|
|
||||||
class addBookResponse
|
|
||||||
{
|
|
||||||
public $addBookReturn;
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\AxisInterop\Fixtures;
|
|
||||||
|
|
||||||
class base64Binary
|
|
||||||
{
|
|
||||||
public $_;
|
|
||||||
public $contentType;
|
|
||||||
}
|
|
@ -1,17 +0,0 @@
|
|||||||
-----BEGIN CERTIFICATE-----
|
|
||||||
MIICoDCCAgkCBEnhw2IwDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNVBAYTAk5aMRMw
|
|
||||||
EQYDVQQIEwpXZWxsaW5ndG9uMRowGAYDVQQHExFQYXJhcGFyYXVtdSBCZWFjaDEq
|
|
||||||
MCgGA1UEChMhU29zbm9za2kgU29mdHdhcmUgQXNzb2NpYXRlcyBMdGQuMRAwDgYD
|
|
||||||
VQQLEwdVbmtub3duMRgwFgYDVQQDEw9EZW5uaXMgU29zbm9za2kwHhcNMDkwNDEy
|
|
||||||
MTAzMzA2WhcNMzYwODI3MTAzMzA2WjCBljELMAkGA1UEBhMCTloxEzARBgNVBAgT
|
|
||||||
CldlbGxpbmd0b24xGjAYBgNVBAcTEVBhcmFwYXJhdW11IEJlYWNoMSowKAYDVQQK
|
|
||||||
EyFTb3Nub3NraSBTb2Z0d2FyZSBBc3NvY2lhdGVzIEx0ZC4xEDAOBgNVBAsTB1Vu
|
|
||||||
a25vd24xGDAWBgNVBAMTD0Rlbm5pcyBTb3Nub3NraTCBnzANBgkqhkiG9w0BAQEF
|
|
||||||
AAOBjQAwgYkCgYEAhOVyNK8xyxtb4DnKtU6mF9KoiFqCk7eKoLE26+9h410CtTkx
|
|
||||||
zWAfgnR+8i+LPbdsPY+yXAo6NYpCCKolXfDLe+AG2GwnMZGrIl6+BLF3hqTmIXBF
|
|
||||||
TLGUmC7A7uBTivaWgdH1w3hb33rASoVU67BVtQ3QQi99juZX4vU9o9pScocCAwEA
|
|
||||||
ATANBgkqhkiG9w0BAQUFAAOBgQBMNPo1KAGbz8Jl6HGbtAcetieSJ3bEAXmv1tcj
|
|
||||||
ysBS67AXzdu1Ac+onHh2EpzBM7kuGbw+trU+AhulooPpewIQRApXP1F0KHRDcbqW
|
|
||||||
jwvknS6HnomN9572giLGKn2601bHiRUj35hiA8aLmMUBppIRPFFAoQ0QUBCPx+m8
|
|
||||||
/0n33w==
|
|
||||||
-----END CERTIFICATE-----
|
|
@ -1,14 +0,0 @@
|
|||||||
-----BEGIN PRIVATE KEY-----
|
|
||||||
MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAITlcjSvMcsbW+A5yrVOphfSqIha
|
|
||||||
gpO3iqCxNuvvYeNdArU5Mc1gH4J0fvIviz23bD2PslwKOjWKQgiqJV3wy3vgBthsJzGRqyJevgSx
|
|
||||||
d4ak5iFwRUyxlJguwO7gU4r2loHR9cN4W996wEqFVOuwVbUN0EIvfY7mV+L1PaPaUnKHAgMBAAEC
|
|
||||||
gYAZ6UqtLwN8YGc3fs0hMKZ9upsViuAuwPiMgED/G3twgzAF+ZLWQkmie+hMfCyf6eV200+pVm0n
|
|
||||||
Bz/8xH/oowxpX0Kk3szoB4vFghjU84GKUcrbhu/NRIm7l3drnfbzqhQkHDCx6n1CotI4Gs49cDWu
|
|
||||||
4uEAuxJkEIVY553unZjZgQJBAOJVIallNKmD0iQlvtWRmRzpmYDjt9vhNY6WBTIOx6SDn9SRaoSA
|
|
||||||
fkipQ2HXo04r78TQ674+zfZ1lRTkFG7px6ECQQCWUPHp3pSZOM1oGzJrNvNaw+MizZAZjq34npHm
|
|
||||||
9GRquFLG7BlCaI9QNGE7pN2ryYsYCRUMaM2e4GR0tUXxVGknAkAgrxqFU9AfCqI2Bh1gyf3KZxF7
|
|
||||||
w2axofwR8ygc6nV6FGfoUneHWubhp0/LuVAj4cRmL6Vbe8ZSaPh2Y9lviuMBAkEAicP8Q+1E4j1m
|
|
||||||
PPEYP51oYprANOiUFmhnWEL00+jPk+QFsd03tV6hYs/vAbwzkjuwqMHCMdJoCiH8z95IEUvc5wJA
|
|
||||||
MvLOuZdu4dmhOXg/YKsbMSPjFNEVskLQNSXqw6O2wIrpPg1NQvBBAOTbiuZj3vind4VPos1wc4vB
|
|
||||||
QocvdUC6dA==
|
|
||||||
-----END PRIVATE KEY-----
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\AxisInterop\Fixtures;
|
|
||||||
|
|
||||||
class downloadFile
|
|
||||||
{
|
|
||||||
public $name;
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\AxisInterop\Fixtures;
|
|
||||||
|
|
||||||
class downloadFileResponse
|
|
||||||
{
|
|
||||||
public $data;
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\AxisInterop\Fixtures;
|
|
||||||
|
|
||||||
class getBook
|
|
||||||
{
|
|
||||||
public $isbn;
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\AxisInterop\Fixtures;
|
|
||||||
|
|
||||||
class getBookResponse
|
|
||||||
{
|
|
||||||
public $getBookReturn;
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\AxisInterop\Fixtures;
|
|
||||||
|
|
||||||
class getBooksByType
|
|
||||||
{
|
|
||||||
public $type;
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\AxisInterop\Fixtures;
|
|
||||||
|
|
||||||
class getBooksByTypeResponse
|
|
||||||
{
|
|
||||||
public $getBooksByTypeReturn;
|
|
||||||
}
|
|
Binary file not shown.
Before Width: | Height: | Size: 74 KiB |
@ -1,17 +0,0 @@
|
|||||||
-----BEGIN CERTIFICATE-----
|
|
||||||
MIICoDCCAgkCBEnhwzMwDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNVBAYTAk5aMRMw
|
|
||||||
EQYDVQQIEwpXZWxsaW5ndG9uMRowGAYDVQQHExFQYXJhcGFyYXVtdSBCZWFjaDEq
|
|
||||||
MCgGA1UEChMhU29zbm9za2kgU29mdHdhcmUgQXNzb2NpYXRlcyBMdGQuMRAwDgYD
|
|
||||||
VQQLEwdVbmtub3duMRgwFgYDVQQDEw9EZW5uaXMgU29zbm9za2kwHhcNMDkwNDEy
|
|
||||||
MTAzMjE5WhcNMzYwODI3MTAzMjE5WjCBljELMAkGA1UEBhMCTloxEzARBgNVBAgT
|
|
||||||
CldlbGxpbmd0b24xGjAYBgNVBAcTEVBhcmFwYXJhdW11IEJlYWNoMSowKAYDVQQK
|
|
||||||
EyFTb3Nub3NraSBTb2Z0d2FyZSBBc3NvY2lhdGVzIEx0ZC4xEDAOBgNVBAsTB1Vu
|
|
||||||
a25vd24xGDAWBgNVBAMTD0Rlbm5pcyBTb3Nub3NraTCBnzANBgkqhkiG9w0BAQEF
|
|
||||||
AAOBjQAwgYkCgYEA1H3mjQCF9uce2jmm/Yq9kE4ytfvkp4c8G90cDfJXJvOiGQds
|
|
||||||
p2vDZXKuCkHQ7vsBBXPNTt8J/d8ZbEwyuB9Ccz5pJqi6Ig6Y2/mEsPthDyh5SrJV
|
|
||||||
yQ/wxUGwmfSuwdrIMnplMTq+OR9BOfT3CvjSvuy9d6BQNo4wOMkDvmZTtI8CAwEA
|
|
||||||
ATANBgkqhkiG9w0BAQUFAAOBgQCqv4475QaqlKcN2QCZJbLVKZEX+76XLQurGkgf
|
|
||||||
2fCgesRHjfUfOHyTTlhWQdEKTcBB2XviUyyW6I//fmKfXUIiQqvgh4LHdXRPEXDf
|
|
||||||
Y9nr89MjyQpDlnl6AlrvSej30a9iwVRUeVk4d6gxWHMRonKBFgh+TGexxUXHtPkf
|
|
||||||
B1Pdtg==
|
|
||||||
-----END CERTIFICATE-----
|
|
@ -1,9 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\AxisInterop\Fixtures;
|
|
||||||
|
|
||||||
class uploadFile
|
|
||||||
{
|
|
||||||
public $data;
|
|
||||||
public $name;
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\AxisInterop\Fixtures;
|
|
||||||
|
|
||||||
class uploadFileResponse
|
|
||||||
{
|
|
||||||
public $return;
|
|
||||||
}
|
|
@ -1,52 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Deploy "axis_services/sample-mtom.aar" to Apache Axis2 to get this
|
|
||||||
* example to work.
|
|
||||||
*
|
|
||||||
* Apache Axis2 MTOM example.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
use BeSimple\SoapCommon\Helper as BeSimpleSoapHelper;
|
|
||||||
use BeSimple\SoapClient\SoapClient as BeSimpleSoapClient;
|
|
||||||
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\AttachmentRequest;
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\AttachmentType;
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\base64Binary;
|
|
||||||
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\TestCase;
|
|
||||||
|
|
||||||
class MtomAxisInteropTest extends TestCase
|
|
||||||
{
|
|
||||||
private $options = array(
|
|
||||||
'soap_version' => SOAP_1_1,
|
|
||||||
'features' => SOAP_SINGLE_ELEMENT_ARRAYS, // make sure that result is array for size=1
|
|
||||||
'attachment_type' => BeSimpleSoapHelper::ATTACHMENTS_TYPE_MTOM,
|
|
||||||
'cache_wsdl' => WSDL_CACHE_NONE,
|
|
||||||
'classmap' => array(
|
|
||||||
'base64Binary' => 'BeSimple\SoapClient\Tests\AxisInterop\Fixtures\base64Binary',
|
|
||||||
'AttachmentRequest' => 'BeSimple\SoapClient\Tests\AxisInterop\Fixtures\AttachmentRequest',
|
|
||||||
),
|
|
||||||
'proxy_host' => false,
|
|
||||||
);
|
|
||||||
|
|
||||||
public function testAttachment()
|
|
||||||
{
|
|
||||||
$sc = new BeSimpleSoapClient(__DIR__.'/Fixtures/MTOM.wsdl', $this->options);
|
|
||||||
|
|
||||||
$b64 = new base64Binary();
|
|
||||||
$b64->_ = 'This is a test. :)';
|
|
||||||
$b64->contentType = 'text/plain';
|
|
||||||
|
|
||||||
$attachment = new AttachmentRequest();
|
|
||||||
$attachment->fileName = 'test123.txt';
|
|
||||||
$attachment->binaryData = $b64;
|
|
||||||
|
|
||||||
$this->assertEquals('File saved succesfully.', $sc->attachment($attachment));
|
|
||||||
|
|
||||||
// $fileCreatedByServer = __DIR__.'/'.$attachment->fileName;
|
|
||||||
// $this->assertEquals($b64->_, file_get_contents($fileCreatedByServer));
|
|
||||||
// unlink($fileCreatedByServer);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,38 +0,0 @@
|
|||||||
<project name="BeSimpleSwaService" default="generate.service">
|
|
||||||
<property environment="env" />
|
|
||||||
<property name="axis2.home" value="C:/axis2" />
|
|
||||||
<property name="axis2.repo" value="${axis2.home}/repository" />
|
|
||||||
<property name="build.dir" value="build" />
|
|
||||||
<property name="filename" value="besimple-swa.aar" />
|
|
||||||
|
|
||||||
<path id="axis.classpath">
|
|
||||||
<fileset dir="${axis2.home}/lib">
|
|
||||||
<include name="*.jar" />
|
|
||||||
</fileset>
|
|
||||||
</path>
|
|
||||||
|
|
||||||
<target name="generate.service" depends="compile">
|
|
||||||
<jar destfile="${build.dir}/${filename}">
|
|
||||||
<fileset dir="resources/">
|
|
||||||
<include name="META-INF/services.xml" />
|
|
||||||
</fileset>
|
|
||||||
<fileset dir="${build.dir}/classes">
|
|
||||||
<include name="besimple/service/**/*.class" />
|
|
||||||
</fileset>
|
|
||||||
</jar>
|
|
||||||
<copy file="${build.dir}/${filename}" tofile="../axis_services/${filename}" overwrite="true" />
|
|
||||||
<copy file="${build.dir}/${filename}" tofile="${axis2.repo}/services/${filename}" overwrite="true" />
|
|
||||||
<antcall target="clean" />
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="compile">
|
|
||||||
<mkdir dir="${build.dir}/classes" />
|
|
||||||
<javac debug="on" srcdir="src" destdir="${build.dir}/classes">
|
|
||||||
<classpath refid="axis.classpath" />
|
|
||||||
</javac>
|
|
||||||
</target>
|
|
||||||
|
|
||||||
<target name="clean">
|
|
||||||
<delete dir="${build.dir}" />
|
|
||||||
</target>
|
|
||||||
</project>
|
|
@ -1,15 +0,0 @@
|
|||||||
<serviceGroup>
|
|
||||||
<service name="BeSimpleSwaService">
|
|
||||||
<description>BeSimple test service for SwA.</description>
|
|
||||||
<parameter name="enableSwA">true</parameter>
|
|
||||||
<parameter name="ServiceClass" locked="false">besimple.service.BeSimpleSwaService</parameter>
|
|
||||||
<operation name="uploadFile">
|
|
||||||
<actionMapping>urn:uploadFile</actionMapping>
|
|
||||||
<messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
|
|
||||||
</operation>
|
|
||||||
<operation name="downloadFile">
|
|
||||||
<actionMapping>urn:downloadFile</actionMapping>
|
|
||||||
<messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
|
|
||||||
</operation>
|
|
||||||
</service>
|
|
||||||
</serviceGroup>
|
|
@ -1,78 +0,0 @@
|
|||||||
package besimple.service;
|
|
||||||
|
|
||||||
import java.io.File;
|
|
||||||
import java.io.FileOutputStream;
|
|
||||||
|
|
||||||
import javax.xml.namespace.QName;
|
|
||||||
|
|
||||||
import javax.activation.DataHandler;
|
|
||||||
import javax.activation.FileDataSource;
|
|
||||||
|
|
||||||
import org.apache.axiom.attachments.Attachments;
|
|
||||||
import org.apache.axiom.om.OMAbstractFactory;
|
|
||||||
import org.apache.axiom.om.OMAttribute;
|
|
||||||
import org.apache.axiom.om.OMElement;
|
|
||||||
import org.apache.axiom.om.OMFactory;
|
|
||||||
import org.apache.axiom.om.OMNamespace;
|
|
||||||
|
|
||||||
import org.apache.axis2.context.MessageContext;
|
|
||||||
import org.apache.axis2.context.OperationContext;
|
|
||||||
import org.apache.axis2.wsdl.WSDLConstants;
|
|
||||||
|
|
||||||
public class BeSimpleSwaService {
|
|
||||||
|
|
||||||
String namespace = "http://service.besimple";
|
|
||||||
|
|
||||||
public OMElement uploadFile(OMElement element) throws Exception {
|
|
||||||
OMElement dataElement = (OMElement)element.getFirstChildWithName(new QName(namespace, "data"));
|
|
||||||
OMAttribute hrefAttribute = dataElement.getAttribute(new QName("href"));
|
|
||||||
|
|
||||||
String contentID = hrefAttribute.getAttributeValue();
|
|
||||||
contentID = contentID.trim();
|
|
||||||
if (contentID.substring(0, 3).equalsIgnoreCase("cid")) {
|
|
||||||
contentID = contentID.substring(4);
|
|
||||||
}
|
|
||||||
OMElement nameElement = (OMElement)element.getFirstChildWithName(new QName(namespace, "name"));
|
|
||||||
String name = nameElement.getText();
|
|
||||||
|
|
||||||
MessageContext msgCtx = MessageContext.getCurrentMessageContext();
|
|
||||||
Attachments attachment = msgCtx.getAttachmentMap();
|
|
||||||
DataHandler dataHandler = attachment.getDataHandler(contentID);
|
|
||||||
|
|
||||||
File file = new File(name);
|
|
||||||
FileOutputStream fileOutputStream = new FileOutputStream(file);
|
|
||||||
dataHandler.writeTo(fileOutputStream);
|
|
||||||
fileOutputStream.flush();
|
|
||||||
fileOutputStream.close();
|
|
||||||
|
|
||||||
OMFactory factory = OMAbstractFactory.getOMFactory();
|
|
||||||
OMNamespace omNs = factory.createOMNamespace(namespace, "swa");
|
|
||||||
OMElement wrapperElement = factory.createOMElement("uploadFileResponse", omNs);
|
|
||||||
OMElement returnElement = factory.createOMElement("return", omNs, wrapperElement);
|
|
||||||
returnElement.setText("File saved succesfully.");
|
|
||||||
|
|
||||||
return wrapperElement;
|
|
||||||
}
|
|
||||||
|
|
||||||
public OMElement downloadFile(OMElement element) throws Exception {
|
|
||||||
OMElement nameElement = (OMElement)element.getFirstChildWithName(new QName(namespace, "name"));
|
|
||||||
String name = nameElement.getText();
|
|
||||||
|
|
||||||
MessageContext msgCtxIn = MessageContext.getCurrentMessageContext();
|
|
||||||
OperationContext operationContext = msgCtxIn.getOperationContext();
|
|
||||||
MessageContext msgCtxOut = operationContext.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE);
|
|
||||||
|
|
||||||
FileDataSource fileDataSource = new FileDataSource(name);
|
|
||||||
DataHandler dataHandler = new DataHandler(fileDataSource);
|
|
||||||
|
|
||||||
String contentID = "cid:" + msgCtxOut.addAttachment(dataHandler);
|
|
||||||
|
|
||||||
OMFactory factory = OMAbstractFactory.getOMFactory();
|
|
||||||
OMNamespace omNs = factory.createOMNamespace(namespace, "swa");
|
|
||||||
OMElement wrapperElement = factory.createOMElement("downloadFileResponse", omNs);
|
|
||||||
OMElement dataElement = factory.createOMElement("data", omNs, wrapperElement);
|
|
||||||
dataElement.addAttribute("href", contentID, null);
|
|
||||||
|
|
||||||
return wrapperElement;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,78 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Deploy "axis_services/besimple-swa.aar" to Apache Axis2 to get this
|
|
||||||
* example to work.
|
|
||||||
*
|
|
||||||
* Run ant to rebuild aar.
|
|
||||||
*
|
|
||||||
* Example based on:
|
|
||||||
* http://axis.apache.org/axis2/java/core/docs/mtom-guide.html#a3
|
|
||||||
* http://wso2.org/library/1675
|
|
||||||
*
|
|
||||||
* Doesn't work directly with ?wsdl served by Apache Axis!
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
use BeSimple\SoapCommon\Helper as BeSimpleSoapHelper;
|
|
||||||
use BeSimple\SoapClient\SoapClient as BeSimpleSoapClient;
|
|
||||||
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\uploadFile;
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\uploadFileResponse;
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\downloadFile;
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\downloadFileResponse;
|
|
||||||
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\TestCase;
|
|
||||||
|
|
||||||
class SwaAxisInteropTest extends TestCase
|
|
||||||
{
|
|
||||||
private $options = array(
|
|
||||||
'soap_version' => SOAP_1_1,
|
|
||||||
'features' => SOAP_SINGLE_ELEMENT_ARRAYS, // make sure that result is array for size=1
|
|
||||||
'attachment_type' => BeSimpleSoapHelper::ATTACHMENTS_TYPE_SWA,
|
|
||||||
'cache_wsdl' => WSDL_CACHE_NONE,
|
|
||||||
'classmap' => array(
|
|
||||||
'downloadFile' => 'BeSimple\SoapClient\Tests\AxisInterop\Fixtures\downloadFile',
|
|
||||||
'downloadFileResponse' => 'BeSimple\SoapClient\Tests\AxisInterop\Fixtures\downloadFileResponse',
|
|
||||||
'uploadFile' => 'BeSimple\SoapClient\Tests\AxisInterop\Fixtures\uploadFile',
|
|
||||||
'uploadFileResponse' => 'BeSimple\SoapClient\Tests\AxisInterop\Fixtures\uploadFileResponse',
|
|
||||||
),
|
|
||||||
'proxy_host' => false,
|
|
||||||
);
|
|
||||||
|
|
||||||
public function testUploadDownloadText()
|
|
||||||
{
|
|
||||||
$sc = new BeSimpleSoapClient(__DIR__.'/Fixtures/SwA.wsdl', $this->options);
|
|
||||||
|
|
||||||
$upload = new uploadFile();
|
|
||||||
$upload->name = 'upload.txt';
|
|
||||||
$upload->data = 'This is a test. :)';
|
|
||||||
$result = $sc->uploadFile($upload);
|
|
||||||
|
|
||||||
$this->assertEquals('File saved succesfully.', $result->return);
|
|
||||||
|
|
||||||
$download = new downloadFile();
|
|
||||||
$download->name = 'upload.txt';
|
|
||||||
$result = $sc->downloadFile($download);
|
|
||||||
|
|
||||||
$this->assertEquals($upload->data, $result->data);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testUploadDownloadImage()
|
|
||||||
{
|
|
||||||
$sc = new BeSimpleSoapClient(__DIR__.'/Fixtures/SwA.wsdl', $this->options);
|
|
||||||
|
|
||||||
$upload = new uploadFile();
|
|
||||||
$upload->name = 'image.jpg';
|
|
||||||
$upload->data = file_get_contents(__DIR__.'/Fixtures/image.jpg'); // source: http://www.freeimageslive.com/galleries/light/pics/swirl3768.jpg;
|
|
||||||
$result = $sc->uploadFile($upload);
|
|
||||||
|
|
||||||
$this->assertEquals('File saved succesfully.', $result->return);
|
|
||||||
|
|
||||||
$download = new downloadFile();
|
|
||||||
$download->name = 'image.jpg';
|
|
||||||
$result = $sc->downloadFile($download);
|
|
||||||
|
|
||||||
$this->assertEquals($upload->data, $result->data);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,23 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\AxisInterop;
|
|
||||||
|
|
||||||
class TestCase extends \PHPUnit_Framework_TestCase
|
|
||||||
{
|
|
||||||
protected function setUp()
|
|
||||||
{
|
|
||||||
$ch = curl_init('http://localhost:8080/');
|
|
||||||
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
|
|
||||||
curl_setopt($ch, CURLOPT_HEADER, true);
|
|
||||||
curl_setopt($ch, CURLOPT_NOBODY, true);
|
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
|
||||||
|
|
||||||
if (curl_exec($ch) === false) {
|
|
||||||
$this->markTestSkipped(
|
|
||||||
'The Axis server is not started on port 8080.'
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
curl_close($ch);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,60 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Deploy "axis_services/version2.aar" to Apache Axis2 to get this example to
|
|
||||||
* work.
|
|
||||||
*
|
|
||||||
* To rebuild the "axis_services/version2.aar" the following steps need to be
|
|
||||||
* done to build a working Apache Axis2 version service with SOAP session
|
|
||||||
* enabled.
|
|
||||||
*
|
|
||||||
* 1) Go to $AXIS_HOME/samples/version and edit the following files:
|
|
||||||
*
|
|
||||||
* resources/META-INF/services.xml:
|
|
||||||
* <service name="Version2" scope="soapsession">
|
|
||||||
* ...
|
|
||||||
* </service>
|
|
||||||
*
|
|
||||||
* build.xml:
|
|
||||||
* replace version.aar with version2.aar
|
|
||||||
*
|
|
||||||
* 2) Run ant build.xml in "$AXIS_HOME/samples/version"
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
use BeSimple\SoapClient\SoapClient as BeSimpleSoapClient;
|
|
||||||
use BeSimple\SoapClient\WsAddressingFilter as BeSimpleWsAddressingFilter;
|
|
||||||
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\TestCase;
|
|
||||||
|
|
||||||
class WsAddressingAxisInteropTest extends TestCase
|
|
||||||
{
|
|
||||||
private $options = array(
|
|
||||||
'soap_version' => SOAP_1_2,
|
|
||||||
'features' => SOAP_SINGLE_ELEMENT_ARRAYS, // make sure that result is array for size=1
|
|
||||||
'proxy_host' => false,
|
|
||||||
);
|
|
||||||
|
|
||||||
public function testSession()
|
|
||||||
{
|
|
||||||
$sc = new BeSimpleSoapClient('http://localhost:8080/axis2/services/Version2?wsdl', $this->options);
|
|
||||||
$soapKernel = $sc->getSoapKernel();
|
|
||||||
$wsaFilter = new BeSimpleWsAddressingFilter();
|
|
||||||
$soapKernel->registerFilter($wsaFilter);
|
|
||||||
|
|
||||||
$wsaFilter->setReplyTo(BeSimpleWsAddressingFilter::ENDPOINT_REFERENCE_ANONYMOUS);
|
|
||||||
$wsaFilter->setMessageId();
|
|
||||||
|
|
||||||
$version = $sc->getVersion();
|
|
||||||
|
|
||||||
$soapSessionId1 = $wsaFilter->getReferenceParameter('http://ws.apache.org/namespaces/axis2', 'ServiceGroupId');
|
|
||||||
|
|
||||||
$wsaFilter->addReferenceParameter('http://ws.apache.org/namespaces/axis2', 'axis2', 'ServiceGroupId', $soapSessionId1);
|
|
||||||
|
|
||||||
$version = $sc->getVersion();
|
|
||||||
|
|
||||||
$soapSessionId2 = $wsaFilter->getReferenceParameter('http://ws.apache.org/namespaces/axis2', 'ServiceGroupId');
|
|
||||||
|
|
||||||
$this->assertEquals($soapSessionId1, $soapSessionId2);
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,107 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Deploy "axis_services/library-signencr.aar" to Apache Axis2 to get this
|
|
||||||
* example to work.
|
|
||||||
*
|
|
||||||
* Links:
|
|
||||||
* http://www.dcc.uchile.cl/~pcamacho/tutorial/web/xmlsec/xmlsec.html
|
|
||||||
* http://www.aleksey.com/xmlsec/xmldsig-verifier.html
|
|
||||||
*
|
|
||||||
* Using code from axis example:
|
|
||||||
* http://www.ibm.com/developerworks/java/library/j-jws5/index.html
|
|
||||||
*
|
|
||||||
* Download key tool to export private key
|
|
||||||
* http://couchpotato.net/pkeytool/
|
|
||||||
*
|
|
||||||
* keytool -export -alias serverkey -keystore server.keystore -storepass nosecret -file servercert.cer
|
|
||||||
* openssl x509 -out servercert.pem -outform pem -in servercert.pem -inform der
|
|
||||||
*
|
|
||||||
* keytool -export -alias clientkey -keystore client.keystore -storepass nosecret -file clientcert.cer
|
|
||||||
* openssl x509 -out clientcert.pem -outform pem -in clientcert.pem -inform der
|
|
||||||
* java -jar pkeytool.jar -exportkey -keystore client.keystore -storepass nosecret -keypass clientpass -rfc -alias clientkey -file clientkey.pem
|
|
||||||
*
|
|
||||||
* C:\Program Files\Java\jre6\bin\keytool -export -alias serverkey -keystore server.keystore -storepass nosecret -file servercert.cer
|
|
||||||
* C:\xampp\apache\bin\openssl x509 -out servercert.pem -outform pem -in servercert.cer -inform der
|
|
||||||
*
|
|
||||||
* C:\Program Files\Java\jre6\bin\keytool -export -alias clientkey -keystore client.keystore -storepass nosecret -file clientcert.cer
|
|
||||||
* C:\xampp\apache\bin\openssl x509 -out clientcert.pem -outform pem -in clientcert.cer -inform der
|
|
||||||
* java -jar C:\axis2\pkeytool\pkeytool.jar -exportkey -keystore client.keystore -storepass nosecret -keypass clientpass -rfc -alias clientkey -file clientkey.pem
|
|
||||||
*
|
|
||||||
* build.properties:
|
|
||||||
* server-policy=hash-policy-server.xml
|
|
||||||
*
|
|
||||||
* allows both text and digest!
|
|
||||||
*/
|
|
||||||
|
|
||||||
use ass\XmlSecurity\Key as XmlSecurityKey;
|
|
||||||
|
|
||||||
use BeSimple\SoapClient\SoapClient as BeSimpleSoapClient;
|
|
||||||
use BeSimple\SoapClient\WsSecurityFilter as BeSimpleWsSecurityFilter;
|
|
||||||
use BeSimple\SoapCommon\WsSecurityKey as BeSimpleWsSecurityKey;
|
|
||||||
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\getBook;
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\getBookResponse;
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\getBooksByType;
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\getBooksByTypeResponse;
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\addBook;
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\addBookResponse;
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\BookInformation;
|
|
||||||
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\TestCase;
|
|
||||||
|
|
||||||
class WsSecuritySigEncAxisInteropTest extends TestCase
|
|
||||||
{
|
|
||||||
private $options = array(
|
|
||||||
'soap_version' => SOAP_1_2,
|
|
||||||
'features' => SOAP_SINGLE_ELEMENT_ARRAYS, // make sure that result is array for size=1
|
|
||||||
'classmap' => array(
|
|
||||||
'getBook' => 'BeSimple\SoapClient\Tests\AxisInterop\Fixtures\getBook',
|
|
||||||
'getBookResponse' => 'BeSimple\SoapClient\Tests\AxisInterop\Fixtures\getBookResponse',
|
|
||||||
'getBooksByType' => 'BeSimple\SoapClient\Tests\AxisInterop\Fixtures\getBooksByType',
|
|
||||||
'getBooksByTypeResponse' => 'BeSimple\SoapClient\Tests\AxisInterop\Fixtures\getBooksByTypeResponse',
|
|
||||||
'addBook' => 'BeSimple\SoapClient\Tests\AxisInterop\Fixtures\addBook',
|
|
||||||
'addBookResponse' => 'BeSimple\SoapClient\Tests\AxisInterop\Fixtures\addBookResponse',
|
|
||||||
'BookInformation' => 'BeSimple\SoapClient\Tests\AxisInterop\Fixtures\BookInformation',
|
|
||||||
),
|
|
||||||
'proxy_host' => false,
|
|
||||||
);
|
|
||||||
|
|
||||||
public function testSigEnc()
|
|
||||||
{
|
|
||||||
$sc = new BeSimpleSoapClient(__DIR__.'/Fixtures/WsSecuritySigEnc.wsdl', $this->options);
|
|
||||||
|
|
||||||
$wssFilter = new BeSimpleWsSecurityFilter();
|
|
||||||
// user key for signature and encryption
|
|
||||||
$securityKeyUser = new BeSimpleWsSecurityKey();
|
|
||||||
$securityKeyUser->addPrivateKey(XmlSecurityKey::RSA_SHA1, __DIR__.'/Fixtures/clientkey.pem', true);
|
|
||||||
$securityKeyUser->addPublicKey(XmlSecurityKey::RSA_SHA1, __DIR__.'/Fixtures/clientcert.pem', true);
|
|
||||||
$wssFilter->setUserSecurityKeyObject($securityKeyUser);
|
|
||||||
// service key for encryption
|
|
||||||
$securityKeyService = new BeSimpleWsSecurityKey();
|
|
||||||
$securityKeyService->addPrivateKey(XmlSecurityKey::TRIPLEDES_CBC);
|
|
||||||
$securityKeyService->addPublicKey(XmlSecurityKey::RSA_1_5, __DIR__.'/Fixtures/servercert.pem', true);
|
|
||||||
$wssFilter->setServiceSecurityKeyObject($securityKeyService);
|
|
||||||
// TOKEN_REFERENCE_SUBJECT_KEY_IDENTIFIER | TOKEN_REFERENCE_SECURITY_TOKEN | TOKEN_REFERENCE_THUMBPRINT_SHA1
|
|
||||||
$wssFilter->setSecurityOptionsSignature(BeSimpleWsSecurityFilter::TOKEN_REFERENCE_SECURITY_TOKEN);
|
|
||||||
$wssFilter->setSecurityOptionsEncryption(BeSimpleWsSecurityFilter::TOKEN_REFERENCE_THUMBPRINT_SHA1);
|
|
||||||
|
|
||||||
$soapKernel = $sc->getSoapKernel();
|
|
||||||
$soapKernel->registerFilter($wssFilter);
|
|
||||||
|
|
||||||
$gb = new getBook();
|
|
||||||
$gb->isbn = '0061020052';
|
|
||||||
$result = $sc->getBook($gb);
|
|
||||||
$this->assertInstanceOf('BeSimple\SoapClient\Tests\AxisInterop\Fixtures\BookInformation', $result->getBookReturn);
|
|
||||||
|
|
||||||
$ab = new addBook();
|
|
||||||
$ab->isbn = '0445203498';
|
|
||||||
$ab->title = 'The Dragon Never Sleeps';
|
|
||||||
$ab->author = 'Cook, Glen';
|
|
||||||
$ab->type = 'scifi';
|
|
||||||
|
|
||||||
$this->assertTrue((bool) $sc->addBook($ab));
|
|
||||||
|
|
||||||
// getBooksByType("scifi");
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,97 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Deploy "axis_services/library-username-digest.aar" to Apache Axis2 to get
|
|
||||||
* this example to work.
|
|
||||||
*
|
|
||||||
* Using code from axis example:
|
|
||||||
* http://www.ibm.com/developerworks/java/library/j-jws4/index.html
|
|
||||||
*
|
|
||||||
* build.properties:
|
|
||||||
* server-policy=hash-policy-server.xml
|
|
||||||
*
|
|
||||||
* allows both text and digest!
|
|
||||||
*/
|
|
||||||
|
|
||||||
use BeSimple\SoapClient\SoapClient as BeSimpleSoapClient;
|
|
||||||
use BeSimple\SoapClient\WsSecurityFilter as BeSimpleWsSecurityFilter;
|
|
||||||
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\getBook;
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\getBookResponse;
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\getBooksByType;
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\getBooksByTypeResponse;
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\addBook;
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\addBookResponse;
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\Fixtures\BookInformation;
|
|
||||||
|
|
||||||
use BeSimple\SoapClient\Tests\AxisInterop\TestCase;
|
|
||||||
|
|
||||||
class WsSecurityUserPassAxisInteropTest extends TestCase
|
|
||||||
{
|
|
||||||
private $options = array(
|
|
||||||
'soap_version' => SOAP_1_2,
|
|
||||||
'features' => SOAP_SINGLE_ELEMENT_ARRAYS, // make sure that result is array for size=1
|
|
||||||
'classmap' => array(
|
|
||||||
'getBook' => 'BeSimple\SoapClient\Tests\AxisInterop\Fixtures\getBook',
|
|
||||||
'getBookResponse' => 'BeSimple\SoapClient\Tests\AxisInterop\Fixtures\getBookResponse',
|
|
||||||
'getBooksByType' => 'BeSimple\SoapClient\Tests\AxisInterop\Fixtures\getBooksByType',
|
|
||||||
'getBooksByTypeResponse' => 'BeSimple\SoapClient\Tests\AxisInterop\Fixtures\getBooksByTypeResponse',
|
|
||||||
'addBook' => 'BeSimple\SoapClient\Tests\AxisInterop\Fixtures\addBook',
|
|
||||||
'addBookResponse' => 'BeSimple\SoapClient\Tests\AxisInterop\Fixtures\addBookResponse',
|
|
||||||
'BookInformation' => 'BeSimple\SoapClient\Tests\AxisInterop\Fixtures\BookInformation',
|
|
||||||
),
|
|
||||||
'proxy_host' => false,
|
|
||||||
);
|
|
||||||
|
|
||||||
public function testUserPassText()
|
|
||||||
{
|
|
||||||
$sc = new BeSimpleSoapClient(__DIR__.'/Fixtures/WsSecurityUserPass.wsdl', $this->options);
|
|
||||||
|
|
||||||
$wssFilter = new BeSimpleWsSecurityFilter(true, 600);
|
|
||||||
$wssFilter->addUserData('libuser', 'books', BeSimpleWsSecurityFilter::PASSWORD_TYPE_TEXT);
|
|
||||||
|
|
||||||
$soapKernel = $sc->getSoapKernel();
|
|
||||||
$soapKernel->registerFilter($wssFilter);
|
|
||||||
|
|
||||||
$gb = new getBook();
|
|
||||||
$gb->isbn = '0061020052';
|
|
||||||
$result = $sc->getBook($gb);
|
|
||||||
$this->assertInstanceOf('BeSimple\SoapClient\Tests\AxisInterop\Fixtures\BookInformation', $result->getBookReturn);
|
|
||||||
|
|
||||||
$ab = new addBook();
|
|
||||||
$ab->isbn = '0445203498';
|
|
||||||
$ab->title = 'The Dragon Never Sleeps';
|
|
||||||
$ab->author = 'Cook, Glen';
|
|
||||||
$ab->type = 'scifi';
|
|
||||||
|
|
||||||
$this->assertTrue((bool) $sc->addBook($ab));
|
|
||||||
|
|
||||||
// getBooksByType("scifi");
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testUserPassDigest()
|
|
||||||
{
|
|
||||||
$sc = new BeSimpleSoapClient(__DIR__.'/Fixtures/WsSecurityUserPass.wsdl', $this->options);
|
|
||||||
|
|
||||||
$wssFilter = new BeSimpleWsSecurityFilter(true, 600);
|
|
||||||
$wssFilter->addUserData( 'libuser', 'books', BeSimpleWsSecurityFilter::PASSWORD_TYPE_DIGEST );
|
|
||||||
|
|
||||||
$soapKernel = $sc->getSoapKernel();
|
|
||||||
$soapKernel->registerFilter($wssFilter);
|
|
||||||
|
|
||||||
$gb = new getBook();
|
|
||||||
$gb->isbn = '0061020052';
|
|
||||||
$result = $sc->getBook($gb);
|
|
||||||
$this->assertInstanceOf('BeSimple\SoapClient\Tests\AxisInterop\Fixtures\BookInformation', $result->getBookReturn);
|
|
||||||
|
|
||||||
$ab = new addBook();
|
|
||||||
$ab->isbn = '0445203498';
|
|
||||||
$ab->title = 'The Dragon Never Sleeps';
|
|
||||||
$ab->author = 'Cook, Glen';
|
|
||||||
$ab->type = 'scifi';
|
|
||||||
|
|
||||||
$this->assertTrue((bool) $sc->addBook($ab));
|
|
||||||
|
|
||||||
// getBooksByType("scifi");
|
|
||||||
}
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,86 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This file is part of the BeSimpleSoapClient.
|
|
||||||
*
|
|
||||||
* (c) Christian Kerl <christian-kerl@web.de>
|
|
||||||
* (c) Francis Besset <francis.besset@gmail.com>
|
|
||||||
*
|
|
||||||
* This source file is subject to the MIT license that is bundled
|
|
||||||
* with this source code in the file LICENSE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests;
|
|
||||||
|
|
||||||
use BeSimple\SoapClient\Curl\Curl;
|
|
||||||
use BeSimple\SoapClient\Curl\CurlOptionsBuilder;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author Andreas Schamberger <mail@andreass.net>
|
|
||||||
*/
|
|
||||||
class CurlTest extends AbstractWebserverTest
|
|
||||||
{
|
|
||||||
public function testExec()
|
|
||||||
{
|
|
||||||
$curlOptions = CurlOptionsBuilder::buildDefault();
|
|
||||||
$curl = new Curl(
|
|
||||||
$curlOptions
|
|
||||||
);
|
|
||||||
|
|
||||||
$this->assertTrue($curl->executeCurl($curlOptions, sprintf('http://localhost:%d/curl.txt', WEBSERVER_PORT)));
|
|
||||||
$this->assertTrue($curl->exec(sprintf('http://localhost:%d/404.txt', WEBSERVER_PORT)));
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testGetErrorMessage()
|
|
||||||
{
|
|
||||||
$curl = new Curl(array(
|
|
||||||
'proxy_host' => false,
|
|
||||||
));
|
|
||||||
|
|
||||||
$curl->exec('http://unknown/curl.txt');
|
|
||||||
$this->assertEquals('Could not connect to host', $curl->getErrorMessage());
|
|
||||||
|
|
||||||
$curl->exec(sprintf('xyz://localhost:%d/@404.txt', WEBSERVER_PORT));
|
|
||||||
$this->assertEquals('Unknown protocol. Only http and https are allowed.', $curl->getErrorMessage());
|
|
||||||
|
|
||||||
$curl->exec('');
|
|
||||||
$this->assertEquals('Unable to parse URL', $curl->getErrorMessage());
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testGetRequestHeaders()
|
|
||||||
{
|
|
||||||
$curl = new Curl(array(
|
|
||||||
'proxy_host' => false,
|
|
||||||
));
|
|
||||||
|
|
||||||
$curl->exec(sprintf('http://localhost:%d/curl.txt', WEBSERVER_PORT));
|
|
||||||
$this->assertEquals(132 + self::$websererPortLength, strlen($curl->getRequestHeaders()));
|
|
||||||
|
|
||||||
$curl->exec(sprintf('http://localhost:%s/404.txt', WEBSERVER_PORT));
|
|
||||||
$this->assertEquals(131 + self::$websererPortLength, strlen($curl->getRequestHeaders()));
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testGetResponse()
|
|
||||||
{
|
|
||||||
$curl = new Curl(array(
|
|
||||||
'proxy_host' => false,
|
|
||||||
));
|
|
||||||
|
|
||||||
$curl->exec(sprintf('http://localhost:%d/curl.txt', WEBSERVER_PORT));
|
|
||||||
$this->assertSame('OK', $curl->getResponseStatusMessage());
|
|
||||||
$this->assertEquals(145 + self::$websererPortLength, strlen($curl->getResponse()));
|
|
||||||
|
|
||||||
$curl->exec(sprintf('http://localhost:%d/404.txt', WEBSERVER_PORT));
|
|
||||||
$this->assertSame('Not Found', $curl->getResponseStatusMessage());
|
|
||||||
}
|
|
||||||
|
|
||||||
public function testGetResponseBody()
|
|
||||||
{
|
|
||||||
$curl = new Curl(array(
|
|
||||||
'proxy_host' => false,
|
|
||||||
));
|
|
||||||
|
|
||||||
$curl->exec(sprintf('http://localhost:%d/curl.txt', WEBSERVER_PORT));
|
|
||||||
$this->assertEquals('This is a testfile for cURL.', $curl->getResponseBody());
|
|
||||||
}
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
This is a testfile for cURL.
|
|
@ -1,47 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://foobar/soap/User/1.0/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="User" targetNamespace="http://foobar/soap/User/1.0/">
|
|
||||||
<portType name="UserPortType">
|
|
||||||
<operation name="login" parameterOrder="username password">
|
|
||||||
<input message="tns:loginRequest"/>
|
|
||||||
<output message="tns:loginResponse"/>
|
|
||||||
</operation>
|
|
||||||
</portType>
|
|
||||||
<binding name="UserBinding" type="tns:UserPortType">
|
|
||||||
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
|
|
||||||
<operation name="login">
|
|
||||||
<soap:operation soapAction="http://foobar/soap/User/1.0/login"/>
|
|
||||||
<input>
|
|
||||||
<soap:body parts="username password" use="literal" namespace="http://foobar/soap/User/1.0/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
|
|
||||||
</input>
|
|
||||||
<output>
|
|
||||||
<soap:body parts="return" use="literal" namespace="http://foobar/soap/User/1.0/" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
|
|
||||||
</output>
|
|
||||||
</operation>
|
|
||||||
</binding>
|
|
||||||
<service name="UserService">
|
|
||||||
<port name="UserPort" binding="tns:UserBinding">
|
|
||||||
<soap:address location="http://foobar/soap/user"/>
|
|
||||||
</port>
|
|
||||||
</service>
|
|
||||||
<types>
|
|
||||||
<xsd:schema targetNamespace="http://foobar/soap/User/1.0/">
|
|
||||||
<xsd:complexType name="User">
|
|
||||||
<xsd:all>
|
|
||||||
<xsd:element name="id" type="xsd:int" nillable="true"/>
|
|
||||||
<xsd:element name="username" type="xsd:string"/>
|
|
||||||
<xsd:element name="email" type="xsd:string"/>
|
|
||||||
<xsd:element name="language" type="xsd:string"/>
|
|
||||||
<xsd:element name="apiKey" type="xsd:string"/>
|
|
||||||
<xsd:element name="subscriptionEndAt" type="xsd:dateTime" nillable="true"/>
|
|
||||||
</xsd:all>
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:schema>
|
|
||||||
</types>
|
|
||||||
<message name="loginRequest">
|
|
||||||
<part name="username" type="xsd:string"/>
|
|
||||||
<part name="password" type="xsd:string"/>
|
|
||||||
</message>
|
|
||||||
<message name="loginResponse">
|
|
||||||
<part name="return" type="tns:User"/>
|
|
||||||
</message>
|
|
||||||
</definitions>
|
|
@ -1,15 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
||||||
|
|
||||||
<xs:element name="note">
|
|
||||||
<xs:complexType>
|
|
||||||
<xs:sequence>
|
|
||||||
<xs:element name="to" type="xs:string"/>
|
|
||||||
<xs:element name="from" type="xs:string"/>
|
|
||||||
<xs:element name="heading" type="xs:string"/>
|
|
||||||
<xs:element name="body" type="xs:string"/>
|
|
||||||
</xs:sequence>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:element>
|
|
||||||
|
|
||||||
</xs:schema>
|
|
@ -1,15 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<wsdl:types xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
||||||
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://test.sample">
|
|
||||||
<xs:element name="note">
|
|
||||||
<xs:complexType>
|
|
||||||
<xs:sequence>
|
|
||||||
<xs:element name="to" type="xs:string"/>
|
|
||||||
<xs:element name="from" type="xs:string"/>
|
|
||||||
<xs:element name="heading" type="xs:string"/>
|
|
||||||
<xs:element name="body" type="xs:string"/>
|
|
||||||
</xs:sequence>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:element>
|
|
||||||
</xs:schema>
|
|
||||||
</wsdl:types>
|
|
@ -1,5 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
||||||
<wsdl:documentation>wsdlincludetest</wsdl:documentation>
|
|
||||||
<wsdl:include location="http://%location%/wsdl_include.wsdl"/>
|
|
||||||
</wsdl:definitions>
|
|
@ -1,5 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
||||||
<wsdl:documentation>wsdlincludetest</wsdl:documentation>
|
|
||||||
<wsdl:include location="../wsdl_include.wsdl"/>
|
|
||||||
</wsdl:definitions>
|
|
@ -1,9 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
||||||
<wsdl:documentation>xsdinctest</wsdl:documentation>
|
|
||||||
<wsdl:types>
|
|
||||||
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://test.sample">
|
|
||||||
<xs:include schemaLocation="http://%location%/type_include.xsd"/>
|
|
||||||
</xs:schema>
|
|
||||||
</wsdl:types>
|
|
||||||
</wsdl:definitions>
|
|
@ -1,9 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
||||||
<wsdl:documentation>xsdinctest</wsdl:documentation>
|
|
||||||
<wsdl:types>
|
|
||||||
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://test.sample">
|
|
||||||
<xs:include schemaLocation="../type_include.xsd"/>
|
|
||||||
</xs:schema>
|
|
||||||
</wsdl:types>
|
|
||||||
</wsdl:definitions>
|
|
@ -1,23 +0,0 @@
|
|||||||
# HOW TO PREPARE Mock SWA Service
|
|
||||||
|
|
||||||
1. Create an test endpoint by using tools such as mockable.io, that will return response (expect POST requests with SOAP v1.1)
|
|
||||||
similar to the one provided in example file src/BeSimple/SoapClient/Tests/Mock/MockSwaService.example.response
|
|
||||||
and Content-Type headers from src/BeSimple/SoapClient/Tests/Mock/MockSwaService.example.response.headers
|
|
||||||
|
|
||||||
Example Endpoint URL: https://demo0580999.mockable.io/soap/testGenerator
|
|
||||||
|
|
||||||
2. Create a test WSDL endpoint that will return WSDL file from (expect GET requests)
|
|
||||||
an example file src/BeSimple/SoapClient/Tests/Mock/MockSwaService.wsdl
|
|
||||||
|
|
||||||
Example WSDL endpoint URL: https://demo0580999.mockable.io/soap/testGenerator?WSDL
|
|
||||||
|
|
||||||
3. Take the two endpoints and configure SoapClientBuilderTest::TEST_ENDPOINT_SWA
|
|
||||||
and SoapClientBuilderTest::TEST_REMOTE_WSDL_SWA variables
|
|
||||||
|
|
||||||
4. The test BeSimple\SoapClient\Tests\SoapClientBuilderTest::testSoapCallSwaWithAttachmentsOnResponse should work correctly.
|
|
||||||
|
|
||||||
If not, try to catch SoapFaultWithTracingData thrown by the soapCall method:
|
|
||||||
|
|
||||||
$soapClient->soapCall('generateTest', [$generateTestRequest]);
|
|
||||||
|
|
||||||
You can print the SoapFaultWithTracingData attributes in order to investigate the SoapClient request and request headers.
|
|
@ -1,18 +0,0 @@
|
|||||||
|
|
||||||
--Part_13_58a1b01a466a6.58a1b01a466e8
|
|
||||||
Content-Type: application/soap+xml; charset=utf-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
Content-ID: <part-72f5d209-2631-42ee-81d1-e554af739ce6@response.info>
|
|
||||||
|
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://schema.testcase"><env:Body xmlns:rpc="http://www.w3.org/2003/05/soap-rpc"><ns1:generateTestResponse><rpc:result>generateTestReturn</rpc:result><generateTestReturn><fileName>dummy-attachment.txt</fileName></generateTestReturn></ns1:generateTestResponse></env:Body></env:Envelope>
|
|
||||||
|
|
||||||
--Part_13_58a1b01a466a6.58a1b01a466e8
|
|
||||||
Content-Type: text/plain; charset=utf-8
|
|
||||||
Content-Transfer-Encoding: 8bit
|
|
||||||
Content-ID: <dummy-attachment.txt>
|
|
||||||
Content-Location: dummy-attachment.txt
|
|
||||||
|
|
||||||
Hello world!
|
|
||||||
|
|
||||||
--Part_13_58a1b01a466a6.58a1b01a466e8--
|
|
@ -1 +0,0 @@
|
|||||||
multipart/related; type="application/soap+xml"; charset=utf-8; boundary=Part_13_58a1b01a466a6.58a1b01a466e8; start="<part-72f5d209-2631-42ee-81d1-e554af739ce6@response.info>"
|
|
@ -1,61 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://schema.testcase" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://schema.testcase">
|
|
||||||
<wsdl:types>
|
|
||||||
<xsd:schema targetNamespace="http://schema.testcase">
|
|
||||||
<xsd:complexType name="SoapHeaderEntity">
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="user" type="xsd:string" minOccurs="1">
|
|
||||||
<xsd:annotation>
|
|
||||||
<xsd:documentation>User name for authorization</xsd:documentation>
|
|
||||||
</xsd:annotation>
|
|
||||||
</xsd:element>
|
|
||||||
</xsd:sequence>
|
|
||||||
</xsd:complexType>
|
|
||||||
<xsd:element name="SoapHeader" type="tns:SoapHeaderEntity"/>
|
|
||||||
<xsd:complexType name="GenerateTestRequest">
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="salutation" type="xsd:string" minOccurs="0"/>
|
|
||||||
</xsd:sequence>
|
|
||||||
</xsd:complexType>
|
|
||||||
<xsd:complexType name="GenerateTestResponse">
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element name="fileName" type="xsd:string" minOccurs="1"/>
|
|
||||||
</xsd:sequence>
|
|
||||||
</xsd:complexType>
|
|
||||||
</xsd:schema>
|
|
||||||
</wsdl:types>
|
|
||||||
<message name="SoapHeader">
|
|
||||||
<part name="SoapHeader" element="tns:SoapHeader"/>
|
|
||||||
</message>
|
|
||||||
<message name="GenerateTestRequest">
|
|
||||||
<part name="request" type="tns:GenerateTestRequest"/>
|
|
||||||
</message>
|
|
||||||
<message name="GenerateTestResponse">
|
|
||||||
<part name="generateTestReturn" type="tns:GenerateTestResponse"/>
|
|
||||||
</message>
|
|
||||||
<wsdl:portType name="TestGeneratorServiceSoapPortType">
|
|
||||||
<wsdl:operation name="generateTest">
|
|
||||||
<wsdl:input message="tns:GenerateTestRequest"/>
|
|
||||||
<wsdl:output message="tns:GenerateTestResponse"/>
|
|
||||||
</wsdl:operation>
|
|
||||||
</wsdl:portType>
|
|
||||||
<binding name="TestGeneratorServiceSoapBinding" type="tns:TestGeneratorServiceSoapPortType">
|
|
||||||
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
|
|
||||||
<wsdl:operation name="generateTest">
|
|
||||||
<soap:operation soapAction="TestGeneratorService.generateTest" style="rpc"/>
|
|
||||||
<wsdl:input>
|
|
||||||
<soap:header use="literal" message="tns:SoapHeader" part="SoapHeader" namespace="http://schema.testcase"/>
|
|
||||||
<soap:body use="literal" part="request" namespace="http://schema.testcase"/>
|
|
||||||
</wsdl:input>
|
|
||||||
<wsdl:output>
|
|
||||||
<soap:body use="literal" namespace="http://schema.testcase"/>
|
|
||||||
</wsdl:output>
|
|
||||||
</wsdl:operation>
|
|
||||||
</binding>
|
|
||||||
<wsdl:service name="TestGeneratorService">
|
|
||||||
<xsd:documentation>WSDL file for TestGeneratorService</xsd:documentation>
|
|
||||||
<port name="TestGeneratorServiceSoapPortType" binding="tns:TestGeneratorServiceSoapBinding">
|
|
||||||
<soap:address location="https://demo0580999.mockable.io/soap/testGenerator"/>
|
|
||||||
</port>
|
|
||||||
</wsdl:service>
|
|
||||||
</wsdl:definitions>
|
|
@ -1,7 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\ServerInterop\Fixtures;
|
|
||||||
|
|
||||||
class AttachmentRequest extends AttachmentType
|
|
||||||
{
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\ServerInterop\Fixtures;
|
|
||||||
|
|
||||||
class AttachmentType
|
|
||||||
{
|
|
||||||
public $fileName;
|
|
||||||
public $binaryData;
|
|
||||||
}
|
|
@ -1,11 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\ServerInterop\Fixtures;
|
|
||||||
|
|
||||||
class BookInformation
|
|
||||||
{
|
|
||||||
public $type;
|
|
||||||
public $isbn;
|
|
||||||
public $author;
|
|
||||||
public $title;
|
|
||||||
}
|
|
@ -1,89 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<definitions targetNamespace="http://ws.apache.org/axis2/mtomsample/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://ws.apache.org/axis2/mtomsample/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/">
|
|
||||||
<types>
|
|
||||||
<xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://ws.apache.org/axis2/mtomsample/" xmlns="http://schemas.xmlsoap.org/wsdl/">
|
|
||||||
<xsd:import namespace="http://www.w3.org/2005/05/xmlmime"/>
|
|
||||||
<xsd:complexType name="AttachmentType">
|
|
||||||
<xsd:sequence>
|
|
||||||
<xsd:element minOccurs="0" name="fileName" type="xsd:string"/>
|
|
||||||
<xsd:element minOccurs="0" name="binaryData" type="xmime:base64Binary"/>
|
|
||||||
</xsd:sequence>
|
|
||||||
</xsd:complexType>
|
|
||||||
<xsd:element name="AttachmentRequest" type="tns:AttachmentType"/>
|
|
||||||
<xsd:element name="AttachmentResponse" type="xsd:string"/>
|
|
||||||
</xsd:schema>
|
|
||||||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xmime="http://www.w3.org/2005/05/xmlmime" attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://www.w3.org/2005/05/xmlmime">
|
|
||||||
<xs:attribute name="contentType">
|
|
||||||
<xs:simpleType>
|
|
||||||
<xs:restriction base="xs:string">
|
|
||||||
<xs:minLength value="3"/>
|
|
||||||
</xs:restriction>
|
|
||||||
</xs:simpleType>
|
|
||||||
</xs:attribute>
|
|
||||||
<xs:attribute name="expectedContentTypes" type="xs:string"/>
|
|
||||||
<xs:complexType name="base64Binary">
|
|
||||||
<xs:simpleContent>
|
|
||||||
<xs:extension base="xs:base64Binary">
|
|
||||||
<xs:attribute ref="xmime:contentType"/>
|
|
||||||
</xs:extension>
|
|
||||||
</xs:simpleContent>
|
|
||||||
</xs:complexType>
|
|
||||||
<xs:complexType name="hexBinary">
|
|
||||||
<xs:simpleContent>
|
|
||||||
<xs:extension base="xs:hexBinary">
|
|
||||||
<xs:attribute ref="xmime:contentType"/>
|
|
||||||
</xs:extension>
|
|
||||||
</xs:simpleContent>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:schema>
|
|
||||||
|
|
||||||
</types>
|
|
||||||
<message name="AttachmentResponse">
|
|
||||||
<part name="part1" element="tns:AttachmentResponse">
|
|
||||||
</part>
|
|
||||||
</message>
|
|
||||||
<message name="AttachmentRequest">
|
|
||||||
<part name="part1" element="tns:AttachmentRequest">
|
|
||||||
</part>
|
|
||||||
</message>
|
|
||||||
<portType name="MTOMServicePortType">
|
|
||||||
<operation name="attachment">
|
|
||||||
<input message="tns:AttachmentRequest" wsaw:Action="attachment">
|
|
||||||
</input>
|
|
||||||
<output message="tns:AttachmentResponse" wsaw:Action="http://schemas.xmlsoap.org/wsdl/MTOMServicePortType/AttachmentResponse">
|
|
||||||
</output>
|
|
||||||
</operation>
|
|
||||||
</portType>
|
|
||||||
<binding name="MTOMServiceSOAP11Binding" type="tns:MTOMServicePortType">
|
|
||||||
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
|
||||||
<operation name="attachment">
|
|
||||||
<soap:operation soapAction="attachment" style="document"/>
|
|
||||||
<input>
|
|
||||||
<soap:body use="literal"/>
|
|
||||||
</input>
|
|
||||||
<output>
|
|
||||||
<soap:body use="literal"/>
|
|
||||||
</output>
|
|
||||||
</operation>
|
|
||||||
</binding>
|
|
||||||
<binding name="MTOMServiceSOAP12Binding" type="tns:MTOMServicePortType">
|
|
||||||
<soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
|
||||||
<operation name="attachment">
|
|
||||||
<soap12:operation soapAction="attachment" style="document"/>
|
|
||||||
<input>
|
|
||||||
<soap12:body use="literal"/>
|
|
||||||
</input>
|
|
||||||
<output>
|
|
||||||
<soap12:body use="literal"/>
|
|
||||||
</output>
|
|
||||||
</operation>
|
|
||||||
</binding>
|
|
||||||
<service name="MTOMSample">
|
|
||||||
<port name="MTOMSampleSOAP12port_http" binding="tns:MTOMServiceSOAP12Binding">
|
|
||||||
<soap12:address location="http://localhost:8081/ServerInterop/MTOMServer.php"/>
|
|
||||||
</port>
|
|
||||||
<port name="MTOMSampleSOAP11port_http" binding="tns:MTOMServiceSOAP11Binding">
|
|
||||||
<soap:address location="http://localhost:8081/ServerInterop/MTOMServer.php"/>
|
|
||||||
</port>
|
|
||||||
</service>
|
|
||||||
</definitions>
|
|
@ -1,162 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://service.besimple" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://service.besimple">
|
|
||||||
<wsdl:documentation>BeSimpleSwaService</wsdl:documentation>
|
|
||||||
<wsdl:types>
|
|
||||||
<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://service.besimple">
|
|
||||||
<xs:complexType name="Exception">
|
|
||||||
<xs:sequence>
|
|
||||||
<xs:element minOccurs="0" name="Exception" nillable="true" type="xs:anyType"/>
|
|
||||||
</xs:sequence>
|
|
||||||
</xs:complexType>
|
|
||||||
<xs:element name="Exception">
|
|
||||||
<xs:complexType>
|
|
||||||
<xs:sequence>
|
|
||||||
<xs:element minOccurs="0" name="Exception" nillable="true" type="ns:Exception"/>
|
|
||||||
</xs:sequence>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="uploadFile">
|
|
||||||
<xs:complexType>
|
|
||||||
<xs:sequence>
|
|
||||||
<xs:element minOccurs="0" name="data" nillable="true" type="xs:base64Binary"/>
|
|
||||||
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
|
|
||||||
</xs:sequence>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="uploadFileResponse">
|
|
||||||
<xs:complexType>
|
|
||||||
<xs:sequence>
|
|
||||||
<xs:element minOccurs="0" name="return" nillable="true" type="xs:string"/>
|
|
||||||
</xs:sequence>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="downloadFile">
|
|
||||||
<xs:complexType>
|
|
||||||
<xs:sequence>
|
|
||||||
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
|
|
||||||
</xs:sequence>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:element>
|
|
||||||
<xs:element name="downloadFileResponse">
|
|
||||||
<xs:complexType>
|
|
||||||
<xs:sequence>
|
|
||||||
<xs:element minOccurs="0" name="data" nillable="true" type="xs:base64Binary"/>
|
|
||||||
</xs:sequence>
|
|
||||||
</xs:complexType>
|
|
||||||
</xs:element>
|
|
||||||
</xs:schema>
|
|
||||||
</wsdl:types>
|
|
||||||
<wsdl:message name="downloadFileRequest">
|
|
||||||
<wsdl:part name="parameters" element="ns:downloadFile"/>
|
|
||||||
</wsdl:message>
|
|
||||||
<wsdl:message name="downloadFileResponse">
|
|
||||||
<wsdl:part name="parameters" element="ns:downloadFileResponse"/>
|
|
||||||
</wsdl:message>
|
|
||||||
<wsdl:message name="Exception">
|
|
||||||
<wsdl:part name="parameters" element="ns:Exception"/>
|
|
||||||
</wsdl:message>
|
|
||||||
<wsdl:message name="uploadFileRequest">
|
|
||||||
<wsdl:part name="parameters" element="ns:uploadFile"/>
|
|
||||||
</wsdl:message>
|
|
||||||
<wsdl:message name="uploadFileResponse">
|
|
||||||
<wsdl:part name="parameters" element="ns:uploadFileResponse"/>
|
|
||||||
</wsdl:message>
|
|
||||||
<wsdl:portType name="BeSimpleSwaServicePortType">
|
|
||||||
<wsdl:operation name="downloadFile">
|
|
||||||
<wsdl:input message="ns:downloadFileRequest" wsaw:Action="urn:downloadFile"/>
|
|
||||||
<wsdl:output message="ns:downloadFileResponse" wsaw:Action="urn:downloadFileResponse"/>
|
|
||||||
<wsdl:fault message="ns:Exception" name="Exception" wsaw:Action="urn:downloadFileException"/>
|
|
||||||
</wsdl:operation>
|
|
||||||
<wsdl:operation name="uploadFile">
|
|
||||||
<wsdl:input message="ns:uploadFileRequest" wsaw:Action="urn:uploadFile"/>
|
|
||||||
<wsdl:output message="ns:uploadFileResponse" wsaw:Action="urn:uploadFileResponse"/>
|
|
||||||
<wsdl:fault message="ns:Exception" name="Exception" wsaw:Action="urn:uploadFileException"/>
|
|
||||||
</wsdl:operation>
|
|
||||||
</wsdl:portType>
|
|
||||||
<wsdl:binding name="BeSimpleSwaServiceSoap11Binding" type="ns:BeSimpleSwaServicePortType">
|
|
||||||
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
|
|
||||||
<wsdl:operation name="downloadFile">
|
|
||||||
<soap:operation soapAction="urn:downloadFile" style="document"/>
|
|
||||||
<wsdl:input>
|
|
||||||
<soap:body use="literal"/>
|
|
||||||
</wsdl:input>
|
|
||||||
<wsdl:output>
|
|
||||||
<soap:body use="literal"/>
|
|
||||||
</wsdl:output>
|
|
||||||
<wsdl:fault name="Exception">
|
|
||||||
<soap:fault use="literal" name="Exception"/>
|
|
||||||
</wsdl:fault>
|
|
||||||
</wsdl:operation>
|
|
||||||
<wsdl:operation name="uploadFile">
|
|
||||||
<soap:operation soapAction="urn:uploadFile" style="document"/>
|
|
||||||
<wsdl:input>
|
|
||||||
<soap:body use="literal"/>
|
|
||||||
</wsdl:input>
|
|
||||||
<wsdl:output>
|
|
||||||
<soap:body use="literal"/>
|
|
||||||
</wsdl:output>
|
|
||||||
<wsdl:fault name="Exception">
|
|
||||||
<soap:fault use="literal" name="Exception"/>
|
|
||||||
</wsdl:fault>
|
|
||||||
</wsdl:operation>
|
|
||||||
</wsdl:binding>
|
|
||||||
<wsdl:binding name="BeSimpleSwaServiceSoap12Binding" type="ns:BeSimpleSwaServicePortType">
|
|
||||||
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
|
|
||||||
<wsdl:operation name="downloadFile">
|
|
||||||
<soap12:operation soapAction="urn:downloadFile" style="document"/>
|
|
||||||
<wsdl:input>
|
|
||||||
<soap12:body use="literal"/>
|
|
||||||
</wsdl:input>
|
|
||||||
<wsdl:output>
|
|
||||||
<soap12:body use="literal"/>
|
|
||||||
</wsdl:output>
|
|
||||||
<wsdl:fault name="Exception">
|
|
||||||
<soap12:fault use="literal" name="Exception"/>
|
|
||||||
</wsdl:fault>
|
|
||||||
</wsdl:operation>
|
|
||||||
<wsdl:operation name="uploadFile">
|
|
||||||
<soap12:operation soapAction="urn:uploadFile" style="document"/>
|
|
||||||
<wsdl:input>
|
|
||||||
<soap12:body use="literal"/>
|
|
||||||
</wsdl:input>
|
|
||||||
<wsdl:output>
|
|
||||||
<soap12:body use="literal"/>
|
|
||||||
</wsdl:output>
|
|
||||||
<wsdl:fault name="Exception">
|
|
||||||
<soap12:fault use="literal" name="Exception"/>
|
|
||||||
</wsdl:fault>
|
|
||||||
</wsdl:operation>
|
|
||||||
</wsdl:binding>
|
|
||||||
<wsdl:binding name="BeSimpleSwaServiceHttpBinding" type="ns:BeSimpleSwaServicePortType">
|
|
||||||
<http:binding verb="POST"/>
|
|
||||||
<wsdl:operation name="downloadFile">
|
|
||||||
<http:operation location="BeSimpleSwaService/downloadFile"/>
|
|
||||||
<wsdl:input>
|
|
||||||
<mime:content type="text/xml" part="downloadFile"/>
|
|
||||||
</wsdl:input>
|
|
||||||
<wsdl:output>
|
|
||||||
<mime:content type="text/xml" part="downloadFile"/>
|
|
||||||
</wsdl:output>
|
|
||||||
</wsdl:operation>
|
|
||||||
<wsdl:operation name="uploadFile">
|
|
||||||
<http:operation location="BeSimpleSwaService/uploadFile"/>
|
|
||||||
<wsdl:input>
|
|
||||||
<mime:content type="text/xml" part="uploadFile"/>
|
|
||||||
</wsdl:input>
|
|
||||||
<wsdl:output>
|
|
||||||
<mime:content type="text/xml" part="uploadFile"/>
|
|
||||||
</wsdl:output>
|
|
||||||
</wsdl:operation>
|
|
||||||
</wsdl:binding>
|
|
||||||
<wsdl:service name="BeSimpleSwaService">
|
|
||||||
<wsdl:port name="BeSimpleSwaServiceHttpSoap11Endpoint" binding="ns:BeSimpleSwaServiceSoap11Binding">
|
|
||||||
<soap:address location="http://localhost:8081/ServerInterop/SwAServer.php"/>
|
|
||||||
</wsdl:port>
|
|
||||||
<wsdl:port name="BeSimpleSwaServiceHttpSoap12Endpoint" binding="ns:BeSimpleSwaServiceSoap12Binding">
|
|
||||||
<soap12:address location="http://localhost:8081/ServerInterop/SwAServer.php"/>
|
|
||||||
</wsdl:port>
|
|
||||||
<wsdl:port name="BeSimpleSwaServiceHttpEndpoint" binding="ns:BeSimpleSwaServiceHttpBinding">
|
|
||||||
<http:address location="http://localhost:8081/ServerInterop/SwAServer.php"/>
|
|
||||||
</wsdl:port>
|
|
||||||
</wsdl:service>
|
|
||||||
</wsdl:definitions>
|
|
@ -1,184 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<wsdl:definitions targetNamespace="http://ws.sosnoski.com/library/wsdl"
|
|
||||||
xmlns:wns="http://ws.sosnoski.com/library/wsdl"
|
|
||||||
xmlns:tns="http://ws.sosnoski.com/library/types"
|
|
||||||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
|
|
||||||
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/">
|
|
||||||
<wsdl:types>
|
|
||||||
|
|
||||||
<schema elementFormDefault="qualified"
|
|
||||||
targetNamespace="http://ws.sosnoski.com/library/wsdl"
|
|
||||||
xmlns="http://www.w3.org/2001/XMLSchema">
|
|
||||||
|
|
||||||
<import namespace="http://ws.sosnoski.com/library/types"/>
|
|
||||||
|
|
||||||
<element name="getBook">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="isbn" type="string"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<element name="getBookResponse">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="getBookReturn" minOccurs="0" type="tns:BookInformation"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<element name="getBooksByType">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="type" type="string"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<element name="getBooksByTypeResponse">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="getBooksByTypeReturn" minOccurs="0" maxOccurs="unbounded" type="tns:BookInformation"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<element name="addBook">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="type" type="string"/>
|
|
||||||
<element name="isbn" type="string"/>
|
|
||||||
<element name="author" minOccurs="0" maxOccurs="unbounded" type="string"/>
|
|
||||||
<element name="title" type="string"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<element name="addBookResponse">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="addBookReturn" type="boolean"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema elementFormDefault="qualified"
|
|
||||||
targetNamespace="http://ws.sosnoski.com/library/types"
|
|
||||||
xmlns="http://www.w3.org/2001/XMLSchema">
|
|
||||||
|
|
||||||
<complexType name="BookInformation">
|
|
||||||
<sequence>
|
|
||||||
<element name="author" minOccurs="0" maxOccurs="unbounded" type="string"/>
|
|
||||||
<element name="title" type="string"/>
|
|
||||||
</sequence>
|
|
||||||
<attribute name="type" use="required" type="string"/>
|
|
||||||
<attribute name="isbn" use="required" type="string"/>
|
|
||||||
</complexType>
|
|
||||||
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
</wsdl:types>
|
|
||||||
|
|
||||||
<wsdl:message name="getBookRequest">
|
|
||||||
<wsdl:part element="wns:getBook" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:message name="getBookResponse">
|
|
||||||
<wsdl:part element="wns:getBookResponse" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:message name="getBooksByTypeRequest">
|
|
||||||
<wsdl:part element="wns:getBooksByType" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:message name="getBooksByTypeResponse">
|
|
||||||
<wsdl:part element="wns:getBooksByTypeResponse" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:message name="addBookRequest">
|
|
||||||
<wsdl:part element="wns:addBook" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:message name="addBookResponse">
|
|
||||||
<wsdl:part element="wns:addBookResponse" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:portType name="Library">
|
|
||||||
|
|
||||||
<wsdl:operation name="getBook">
|
|
||||||
<wsdl:input message="wns:getBookRequest" name="getBookRequest"/>
|
|
||||||
<wsdl:output message="wns:getBookResponse" name="getBookResponse"/>
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
<wsdl:operation name="getBooksByType">
|
|
||||||
<wsdl:input message="wns:getBooksByTypeRequest" name="getBooksByTypeRequest"/>
|
|
||||||
<wsdl:output message="wns:getBooksByTypeResponse" name="getBooksByTypeResponse"/>
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
<wsdl:operation name="addBook">
|
|
||||||
<wsdl:input message="wns:addBookRequest" name="addBookRequest"/>
|
|
||||||
<wsdl:output message="wns:addBookResponse" name="addBookResponse"/>
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
</wsdl:portType>
|
|
||||||
|
|
||||||
<wsdl:binding name="LibrarySoapBinding" type="wns:Library">
|
|
||||||
|
|
||||||
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
|
||||||
|
|
||||||
<wsdl:operation name="getBook">
|
|
||||||
|
|
||||||
<wsdlsoap:operation soapAction="urn:getBook"/>
|
|
||||||
|
|
||||||
<wsdl:input name="getBookRequest">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:input>
|
|
||||||
|
|
||||||
<wsdl:output name="getBookResponse">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:output>
|
|
||||||
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
<wsdl:operation name="getBooksByType">
|
|
||||||
|
|
||||||
<wsdlsoap:operation soapAction="urn:getBooksByType"/>
|
|
||||||
|
|
||||||
<wsdl:input name="getBooksByTypeRequest">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:input>
|
|
||||||
|
|
||||||
<wsdl:output name="getBooksByTypeResponse">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:output>
|
|
||||||
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
<wsdl:operation name="addBook">
|
|
||||||
|
|
||||||
<wsdlsoap:operation soapAction="urn:addBook"/>
|
|
||||||
|
|
||||||
<wsdl:input name="addBookRequest">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:input>
|
|
||||||
|
|
||||||
<wsdl:output name="addBookResponse">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:output>
|
|
||||||
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
</wsdl:binding>
|
|
||||||
|
|
||||||
<wsdl:service name="library-signencr">
|
|
||||||
|
|
||||||
<wsdl:port binding="wns:LibrarySoapBinding" name="library">
|
|
||||||
<wsdlsoap:address location="http://localhost:8081/ServerInterop/WsSecuritySigEncServer.php"/>
|
|
||||||
</wsdl:port>
|
|
||||||
|
|
||||||
</wsdl:service>
|
|
||||||
|
|
||||||
</wsdl:definitions>
|
|
@ -1,184 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<wsdl:definitions targetNamespace="http://ws.sosnoski.com/library/wsdl"
|
|
||||||
xmlns:wns="http://ws.sosnoski.com/library/wsdl"
|
|
||||||
xmlns:tns="http://ws.sosnoski.com/library/types"
|
|
||||||
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
|
|
||||||
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/">
|
|
||||||
<wsdl:types>
|
|
||||||
|
|
||||||
<schema elementFormDefault="qualified"
|
|
||||||
targetNamespace="http://ws.sosnoski.com/library/wsdl"
|
|
||||||
xmlns="http://www.w3.org/2001/XMLSchema">
|
|
||||||
|
|
||||||
<import namespace="http://ws.sosnoski.com/library/types"/>
|
|
||||||
|
|
||||||
<element name="getBook">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="isbn" type="string"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<element name="getBookResponse">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="getBookReturn" minOccurs="0" type="tns:BookInformation"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<element name="getBooksByType">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="type" type="string"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<element name="getBooksByTypeResponse">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="getBooksByTypeReturn" minOccurs="0" maxOccurs="unbounded" type="tns:BookInformation"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<element name="addBook">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="type" type="string"/>
|
|
||||||
<element name="isbn" type="string"/>
|
|
||||||
<element name="author" minOccurs="0" maxOccurs="unbounded" type="string"/>
|
|
||||||
<element name="title" type="string"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
<element name="addBookResponse">
|
|
||||||
<complexType>
|
|
||||||
<sequence>
|
|
||||||
<element name="addBookReturn" type="boolean"/>
|
|
||||||
</sequence>
|
|
||||||
</complexType>
|
|
||||||
</element>
|
|
||||||
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema elementFormDefault="qualified"
|
|
||||||
targetNamespace="http://ws.sosnoski.com/library/types"
|
|
||||||
xmlns="http://www.w3.org/2001/XMLSchema">
|
|
||||||
|
|
||||||
<complexType name="BookInformation">
|
|
||||||
<sequence>
|
|
||||||
<element name="author" minOccurs="0" maxOccurs="unbounded" type="string"/>
|
|
||||||
<element name="title" type="string"/>
|
|
||||||
</sequence>
|
|
||||||
<attribute name="type" use="required" type="string"/>
|
|
||||||
<attribute name="isbn" use="required" type="string"/>
|
|
||||||
</complexType>
|
|
||||||
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
</wsdl:types>
|
|
||||||
|
|
||||||
<wsdl:message name="getBookRequest">
|
|
||||||
<wsdl:part element="wns:getBook" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:message name="getBookResponse">
|
|
||||||
<wsdl:part element="wns:getBookResponse" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:message name="getBooksByTypeRequest">
|
|
||||||
<wsdl:part element="wns:getBooksByType" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:message name="getBooksByTypeResponse">
|
|
||||||
<wsdl:part element="wns:getBooksByTypeResponse" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:message name="addBookRequest">
|
|
||||||
<wsdl:part element="wns:addBook" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:message name="addBookResponse">
|
|
||||||
<wsdl:part element="wns:addBookResponse" name="parameters"/>
|
|
||||||
</wsdl:message>
|
|
||||||
|
|
||||||
<wsdl:portType name="Library">
|
|
||||||
|
|
||||||
<wsdl:operation name="getBook">
|
|
||||||
<wsdl:input message="wns:getBookRequest" name="getBookRequest"/>
|
|
||||||
<wsdl:output message="wns:getBookResponse" name="getBookResponse"/>
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
<wsdl:operation name="getBooksByType">
|
|
||||||
<wsdl:input message="wns:getBooksByTypeRequest" name="getBooksByTypeRequest"/>
|
|
||||||
<wsdl:output message="wns:getBooksByTypeResponse" name="getBooksByTypeResponse"/>
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
<wsdl:operation name="addBook">
|
|
||||||
<wsdl:input message="wns:addBookRequest" name="addBookRequest"/>
|
|
||||||
<wsdl:output message="wns:addBookResponse" name="addBookResponse"/>
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
</wsdl:portType>
|
|
||||||
|
|
||||||
<wsdl:binding name="LibrarySoapBinding" type="wns:Library">
|
|
||||||
|
|
||||||
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
|
|
||||||
|
|
||||||
<wsdl:operation name="getBook">
|
|
||||||
|
|
||||||
<wsdlsoap:operation soapAction="urn:getBook"/>
|
|
||||||
|
|
||||||
<wsdl:input name="getBookRequest">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:input>
|
|
||||||
|
|
||||||
<wsdl:output name="getBookResponse">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:output>
|
|
||||||
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
<wsdl:operation name="getBooksByType">
|
|
||||||
|
|
||||||
<wsdlsoap:operation soapAction="urn:getBooksByType"/>
|
|
||||||
|
|
||||||
<wsdl:input name="getBooksByTypeRequest">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:input>
|
|
||||||
|
|
||||||
<wsdl:output name="getBooksByTypeResponse">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:output>
|
|
||||||
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
<wsdl:operation name="addBook">
|
|
||||||
|
|
||||||
<wsdlsoap:operation soapAction="urn:addBook"/>
|
|
||||||
|
|
||||||
<wsdl:input name="addBookRequest">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:input>
|
|
||||||
|
|
||||||
<wsdl:output name="addBookResponse">
|
|
||||||
<wsdlsoap:body use="literal"/>
|
|
||||||
</wsdl:output>
|
|
||||||
|
|
||||||
</wsdl:operation>
|
|
||||||
|
|
||||||
</wsdl:binding>
|
|
||||||
|
|
||||||
<wsdl:service name="library-username">
|
|
||||||
|
|
||||||
<wsdl:port binding="wns:LibrarySoapBinding" name="library">
|
|
||||||
<wsdlsoap:address location="http://localhost:8081/ServerInterop/WsSecurityUserPassServer.php"/>
|
|
||||||
</wsdl:port>
|
|
||||||
|
|
||||||
</wsdl:service>
|
|
||||||
|
|
||||||
</wsdl:definitions>
|
|
@ -1,11 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\ServerInterop\Fixtures;
|
|
||||||
|
|
||||||
class addBook
|
|
||||||
{
|
|
||||||
public $type;
|
|
||||||
public $isbn;
|
|
||||||
public $author;
|
|
||||||
public $title;
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\ServerInterop\Fixtures;
|
|
||||||
|
|
||||||
class addBookResponse
|
|
||||||
{
|
|
||||||
public $addBookReturn;
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\ServerInterop\Fixtures;
|
|
||||||
|
|
||||||
class base64Binary
|
|
||||||
{
|
|
||||||
public $_;
|
|
||||||
public $contentType;
|
|
||||||
}
|
|
@ -1,17 +0,0 @@
|
|||||||
-----BEGIN CERTIFICATE-----
|
|
||||||
MIICoDCCAgkCBEnhw2IwDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNVBAYTAk5aMRMw
|
|
||||||
EQYDVQQIEwpXZWxsaW5ndG9uMRowGAYDVQQHExFQYXJhcGFyYXVtdSBCZWFjaDEq
|
|
||||||
MCgGA1UEChMhU29zbm9za2kgU29mdHdhcmUgQXNzb2NpYXRlcyBMdGQuMRAwDgYD
|
|
||||||
VQQLEwdVbmtub3duMRgwFgYDVQQDEw9EZW5uaXMgU29zbm9za2kwHhcNMDkwNDEy
|
|
||||||
MTAzMzA2WhcNMzYwODI3MTAzMzA2WjCBljELMAkGA1UEBhMCTloxEzARBgNVBAgT
|
|
||||||
CldlbGxpbmd0b24xGjAYBgNVBAcTEVBhcmFwYXJhdW11IEJlYWNoMSowKAYDVQQK
|
|
||||||
EyFTb3Nub3NraSBTb2Z0d2FyZSBBc3NvY2lhdGVzIEx0ZC4xEDAOBgNVBAsTB1Vu
|
|
||||||
a25vd24xGDAWBgNVBAMTD0Rlbm5pcyBTb3Nub3NraTCBnzANBgkqhkiG9w0BAQEF
|
|
||||||
AAOBjQAwgYkCgYEAhOVyNK8xyxtb4DnKtU6mF9KoiFqCk7eKoLE26+9h410CtTkx
|
|
||||||
zWAfgnR+8i+LPbdsPY+yXAo6NYpCCKolXfDLe+AG2GwnMZGrIl6+BLF3hqTmIXBF
|
|
||||||
TLGUmC7A7uBTivaWgdH1w3hb33rASoVU67BVtQ3QQi99juZX4vU9o9pScocCAwEA
|
|
||||||
ATANBgkqhkiG9w0BAQUFAAOBgQBMNPo1KAGbz8Jl6HGbtAcetieSJ3bEAXmv1tcj
|
|
||||||
ysBS67AXzdu1Ac+onHh2EpzBM7kuGbw+trU+AhulooPpewIQRApXP1F0KHRDcbqW
|
|
||||||
jwvknS6HnomN9572giLGKn2601bHiRUj35hiA8aLmMUBppIRPFFAoQ0QUBCPx+m8
|
|
||||||
/0n33w==
|
|
||||||
-----END CERTIFICATE-----
|
|
@ -1,14 +0,0 @@
|
|||||||
-----BEGIN PRIVATE KEY-----
|
|
||||||
MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAITlcjSvMcsbW+A5yrVOphfSqIha
|
|
||||||
gpO3iqCxNuvvYeNdArU5Mc1gH4J0fvIviz23bD2PslwKOjWKQgiqJV3wy3vgBthsJzGRqyJevgSx
|
|
||||||
d4ak5iFwRUyxlJguwO7gU4r2loHR9cN4W996wEqFVOuwVbUN0EIvfY7mV+L1PaPaUnKHAgMBAAEC
|
|
||||||
gYAZ6UqtLwN8YGc3fs0hMKZ9upsViuAuwPiMgED/G3twgzAF+ZLWQkmie+hMfCyf6eV200+pVm0n
|
|
||||||
Bz/8xH/oowxpX0Kk3szoB4vFghjU84GKUcrbhu/NRIm7l3drnfbzqhQkHDCx6n1CotI4Gs49cDWu
|
|
||||||
4uEAuxJkEIVY553unZjZgQJBAOJVIallNKmD0iQlvtWRmRzpmYDjt9vhNY6WBTIOx6SDn9SRaoSA
|
|
||||||
fkipQ2HXo04r78TQ674+zfZ1lRTkFG7px6ECQQCWUPHp3pSZOM1oGzJrNvNaw+MizZAZjq34npHm
|
|
||||||
9GRquFLG7BlCaI9QNGE7pN2ryYsYCRUMaM2e4GR0tUXxVGknAkAgrxqFU9AfCqI2Bh1gyf3KZxF7
|
|
||||||
w2axofwR8ygc6nV6FGfoUneHWubhp0/LuVAj4cRmL6Vbe8ZSaPh2Y9lviuMBAkEAicP8Q+1E4j1m
|
|
||||||
PPEYP51oYprANOiUFmhnWEL00+jPk+QFsd03tV6hYs/vAbwzkjuwqMHCMdJoCiH8z95IEUvc5wJA
|
|
||||||
MvLOuZdu4dmhOXg/YKsbMSPjFNEVskLQNSXqw6O2wIrpPg1NQvBBAOTbiuZj3vind4VPos1wc4vB
|
|
||||||
QocvdUC6dA==
|
|
||||||
-----END PRIVATE KEY-----
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\ServerInterop\Fixtures;
|
|
||||||
|
|
||||||
class downloadFile
|
|
||||||
{
|
|
||||||
public $name;
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\ServerInterop\Fixtures;
|
|
||||||
|
|
||||||
class downloadFileResponse
|
|
||||||
{
|
|
||||||
public $data;
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\ServerInterop\Fixtures;
|
|
||||||
|
|
||||||
class getBook
|
|
||||||
{
|
|
||||||
public $isbn;
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\ServerInterop\Fixtures;
|
|
||||||
|
|
||||||
class getBookResponse
|
|
||||||
{
|
|
||||||
public $getBookReturn;
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\ServerInterop\Fixtures;
|
|
||||||
|
|
||||||
class getBooksByType
|
|
||||||
{
|
|
||||||
public $type;
|
|
||||||
}
|
|
@ -1,8 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace BeSimple\SoapClient\Tests\ServerInterop\Fixtures;
|
|
||||||
|
|
||||||
class getBooksByTypeResponse
|
|
||||||
{
|
|
||||||
public $getBooksByTypeReturn;
|
|
||||||
}
|
|
Binary file not shown.
Before Width: | Height: | Size: 74 KiB |
@ -1,17 +0,0 @@
|
|||||||
-----BEGIN CERTIFICATE-----
|
|
||||||
MIICoDCCAgkCBEnhwzMwDQYJKoZIhvcNAQEFBQAwgZYxCzAJBgNVBAYTAk5aMRMw
|
|
||||||
EQYDVQQIEwpXZWxsaW5ndG9uMRowGAYDVQQHExFQYXJhcGFyYXVtdSBCZWFjaDEq
|
|
||||||
MCgGA1UEChMhU29zbm9za2kgU29mdHdhcmUgQXNzb2NpYXRlcyBMdGQuMRAwDgYD
|
|
||||||
VQQLEwdVbmtub3duMRgwFgYDVQQDEw9EZW5uaXMgU29zbm9za2kwHhcNMDkwNDEy
|
|
||||||
MTAzMjE5WhcNMzYwODI3MTAzMjE5WjCBljELMAkGA1UEBhMCTloxEzARBgNVBAgT
|
|
||||||
CldlbGxpbmd0b24xGjAYBgNVBAcTEVBhcmFwYXJhdW11IEJlYWNoMSowKAYDVQQK
|
|
||||||
EyFTb3Nub3NraSBTb2Z0d2FyZSBBc3NvY2lhdGVzIEx0ZC4xEDAOBgNVBAsTB1Vu
|
|
||||||
a25vd24xGDAWBgNVBAMTD0Rlbm5pcyBTb3Nub3NraTCBnzANBgkqhkiG9w0BAQEF
|
|
||||||
AAOBjQAwgYkCgYEA1H3mjQCF9uce2jmm/Yq9kE4ytfvkp4c8G90cDfJXJvOiGQds
|
|
||||||
p2vDZXKuCkHQ7vsBBXPNTt8J/d8ZbEwyuB9Ccz5pJqi6Ig6Y2/mEsPthDyh5SrJV
|
|
||||||
yQ/wxUGwmfSuwdrIMnplMTq+OR9BOfT3CvjSvuy9d6BQNo4wOMkDvmZTtI8CAwEA
|
|
||||||
ATANBgkqhkiG9w0BAQUFAAOBgQCqv4475QaqlKcN2QCZJbLVKZEX+76XLQurGkgf
|
|
||||||
2fCgesRHjfUfOHyTTlhWQdEKTcBB2XviUyyW6I//fmKfXUIiQqvgh4LHdXRPEXDf
|
|
||||||
Y9nr89MjyQpDlnl6AlrvSej30a9iwVRUeVk4d6gxWHMRonKBFgh+TGexxUXHtPkf
|
|
||||||
B1Pdtg==
|
|
||||||
-----END CERTIFICATE-----
|
|
@ -1,14 +0,0 @@
|
|||||||
-----BEGIN PRIVATE KEY-----
|
|
||||||
MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBANR95o0AhfbnHto5pv2KvZBOMrX7
|
|
||||||
5KeHPBvdHA3yVybzohkHbKdrw2VyrgpB0O77AQVzzU7fCf3fGWxMMrgfQnM+aSaouiIOmNv5hLD7
|
|
||||||
YQ8oeUqyVckP8MVBsJn0rsHayDJ6ZTE6vjkfQTn09wr40r7svXegUDaOMDjJA75mU7SPAgMBAAEC
|
|
||||||
gYEAmw+EvkAzggkGKpkHkt07l6J4vvQh116ILo0be9HsZzBCiaExWLr6y3z0I+gDX2ErTZ9Dotp/
|
|
||||||
oBK9qpmwKUwmYD3ogbB2AEDtN29qQxzrJR8dD742zAY6s2SrvU+HVvNmp84UutEtMceP9LsqKX3o
|
|
||||||
9ZwhY4GefkoJPdumYZa+hYECQQDzNgSE5+bZfWQnd+o59vWpF+ZGWegIW9aEb+O5jnb5msYtJGGx
|
|
||||||
SJ1UWV+c/xn2xO/djXCLVh0EFjMLgr/4g45tAkEA36pbTesmnXB4m/9Q87Ljkgo1mRXGfq5na3bU
|
|
||||||
k1FrXjxEBaumpssniyy7tT6TWiwGBIelmWCI1dv4shcQFnPBawJBAJwGDFIi3zKpQWYchJOY/bHz
|
|
||||||
lhONu9AY8n5VtValsWehRf9RtqZfuiaRi0gRU1u+rU6JXSjWHpkvkKGSyIqqAuUCQG321q8HZtPP
|
|
||||||
AS1JKKa4E9SwOkvKfe24l1YpdTf8trn9DUBwdR3aEdYGJz9jxZR2wnqlqlAvOvdSEAKW/izbuoMC
|
|
||||||
QBn5SLa7Zk2e9N5bmcV9Wa1VRC8wawKu+qO/Qj4UcmTH8bSrr4/kqh2TpMxSZ99HeCDJkSK0XZME
|
|
||||||
y+Vn2DLefIc=
|
|
||||||
-----END PRIVATE KEY-----
|
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user