-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
69 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://some-web-service.com/CustomUI" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsdLocal0="http://www.some-web-service.com/xml/ContactInformation" targetNamespace="http://some-web-service.com/CustomUI"> | ||
<message name="Contact_Information_Input"> | ||
<part name="Contact_Id" type="xsd:string" /> | ||
</message> | ||
<message name="Contact_Information_Output"> | ||
<part name="Response_Code" type="xsd:string" /> | ||
<part name="Response_Message" type="xsd:string" /> | ||
</message> | ||
<portType name="Contact_Information"> | ||
<operation name="Contact_Information"> | ||
<input message="tns:Contact_Information_Input" /> | ||
<output message="tns:Contact_Information_Output" /> | ||
</operation> | ||
</portType> | ||
<binding name="Contact_Information" type="tns:Contact_Information"> | ||
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" /> | ||
<operation name="Contact_Information"> | ||
<soap:operation soapAction="rpc/http://some-web-service.com/CustomUI:Contact_Information" /> | ||
<input> | ||
<soap:body namespace="http://some-web-service.com/CustomUI" use="literal" /> | ||
</input> | ||
<output> | ||
<soap:body namespace="http://some-web-service.com/CustomUI" use="literal" /> | ||
</output> | ||
</operation> | ||
</binding> | ||
<service name="Web_Service"> | ||
<port binding="tns:Contact_Information" name="Contact_Information"> | ||
<soap:address location="https://some-web-service.com" /> | ||
</port> | ||
</service> | ||
</definitions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--TEST-- | ||
\PHPUnit\Framework\MockObject\Generator::generateClassFromWsdl('3530.wsdl', 'Test') | ||
--SKIPIF-- | ||
<?php declare(strict_types=1); | ||
if (!extension_loaded('soap')) echo 'skip: SOAP extension is required'; | ||
--FILE-- | ||
<?php declare(strict_types=1); | ||
require __DIR__ . '/../../../../vendor/autoload.php'; | ||
|
||
$generator = new \PHPUnit\Framework\MockObject\Generator; | ||
|
||
print $generator->generateClassFromWsdl( | ||
__DIR__ . '/../../../_files/3530.wsdl', | ||
'Test' | ||
); | ||
--EXPECTF-- | ||
class Test extends \SoapClient | ||
{ | ||
public function __construct($wsdl, array $options) | ||
{ | ||
parent::__construct('%s/3530.wsdl', $options); | ||
} | ||
|
||
public function Contact_Information($Contact_Id) | ||
{ | ||
} | ||
} |