Skip to content

Commit 77381bd

Browse files
committed
fix extraneous space in DGDS_v3.wsdl and regenerate code
1 parent 5a945d7 commit 77381bd

File tree

3 files changed

+26
-24
lines changed

3 files changed

+26
-24
lines changed

src/FedEx/DGDSService/Request.php

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
namespace FedEx\DGDSService;
3-
3+
44
use FedEx\AbstractRequest;
55

66
/**
@@ -16,7 +16,7 @@ class Request extends AbstractRequest
1616
const TESTING_URL = 'https://wsbeta.fedex.com:443/web-services/dgds';
1717

1818
protected static $wsdlFileName = 'DGDS_v3.wsdl';
19-
19+
2020
/**
2121
* Sends the AddDangerousGoodsHandlingUnitRequest and returns the response
2222
*
@@ -30,12 +30,12 @@ public function getAddDangerousGoodsHandlingUnitReply(ComplexType\AddDangerousGo
3030
if ($returnStdClass) {
3131
return $response;
3232
}
33-
33+
3434
$addDangerousGoodsHandlingUnitReply = new ComplexType\AddDangerousGoodsHandlingUnitReply;
3535
$addDangerousGoodsHandlingUnitReply->populateFromStdClass($response);
3636
return $addDangerousGoodsHandlingUnitReply;
3737
}
38-
38+
3939
/**
4040
* Sends the ModifyDangerousGoodsShipmentRequest and returns the response
4141
*
@@ -49,12 +49,12 @@ public function getModifyDangerousGoodsShipmentReply(ComplexType\ModifyDangerous
4949
if ($returnStdClass) {
5050
return $response;
5151
}
52-
52+
5353
$modifyDangerousGoodsShipmentReply = new ComplexType\ModifyDangerousGoodsShipmentReply;
5454
$modifyDangerousGoodsShipmentReply->populateFromStdClass($response);
5555
return $modifyDangerousGoodsShipmentReply;
5656
}
57-
57+
5858
/**
5959
* Sends the UploadDangerousGoodsRequest and returns the response
6060
*
@@ -68,12 +68,12 @@ public function getUploadDangerousGoodsReply(ComplexType\UploadDangerousGoodsReq
6868
if ($returnStdClass) {
6969
return $response;
7070
}
71-
71+
7272
$uploadDangerousGoodsReply = new ComplexType\UploadDangerousGoodsReply;
7373
$uploadDangerousGoodsReply->populateFromStdClass($response);
7474
return $uploadDangerousGoodsReply;
7575
}
76-
76+
7777
/**
7878
* Sends the ModifyDangerousGoodsHandlingUnitRequest and returns the response
7979
*
@@ -87,12 +87,12 @@ public function getModifyDangerousGoodsHandlingUnitReply(ComplexType\ModifyDange
8787
if ($returnStdClass) {
8888
return $response;
8989
}
90-
90+
9191
$modifyDangerousGoodsHandlingUnitReply = new ComplexType\ModifyDangerousGoodsHandlingUnitReply;
9292
$modifyDangerousGoodsHandlingUnitReply->populateFromStdClass($response);
9393
return $modifyDangerousGoodsHandlingUnitReply;
9494
}
95-
95+
9696
/**
9797
* Sends the DeleteDangerousGoodsHandlingUnitRequest and returns the response
9898
*
@@ -106,12 +106,12 @@ public function getDeleteDangerousGoodsHandlingUnitReply(ComplexType\DeleteDange
106106
if ($returnStdClass) {
107107
return $response;
108108
}
109-
109+
110110
$deleteDangerousGoodsHandlingUnitReply = new ComplexType\DeleteDangerousGoodsHandlingUnitReply;
111111
$deleteDangerousGoodsHandlingUnitReply->populateFromStdClass($response);
112112
return $deleteDangerousGoodsHandlingUnitReply;
113113
}
114-
114+
115115
/**
116116
* Sends the DeleteDangerousGoodsRequest and returns the response
117117
*
@@ -125,12 +125,12 @@ public function getDeleteDangerousGoodsReply(ComplexType\DeleteDangerousGoodsReq
125125
if ($returnStdClass) {
126126
return $response;
127127
}
128-
128+
129129
$deleteDangerousGoodsReply = new ComplexType\DeleteDangerousGoodsReply;
130130
$deleteDangerousGoodsReply->populateFromStdClass($response);
131131
return $deleteDangerousGoodsReply;
132132
}
133-
133+
134134
/**
135135
* Sends the RetrieveDangerousGoodsRequest and returns the response
136136
*
@@ -144,26 +144,26 @@ public function getRetrieveDangerousGoodsReply(ComplexType\RetrieveDangerousGood
144144
if ($returnStdClass) {
145145
return $response;
146146
}
147-
147+
148148
$retrieveDangerousGoodsReply = new ComplexType\RetrieveDangerousGoodsReply;
149149
$retrieveDangerousGoodsReply->populateFromStdClass($response);
150150
return $retrieveDangerousGoodsReply;
151151
}
152-
152+
153153
/**
154-
* Sends the alidateDangerousGoods and returns the response
154+
* Sends the ValidateDangerousGoodsRequest and returns the response
155155
*
156-
* @param ComplexType\alidateDangerousGoods $alidateDangerousGoods
156+
* @param ComplexType\ValidateDangerousGoodsRequest $validateDangerousGoodsRequest
157157
* @param bool $returnStdClass Return the $stdClass response directly from \SoapClient
158158
* @return ComplexType\ValidateDangerousGoodsReply|stdClass
159159
*/
160-
public function getReply(ComplexType\alidateDangerousGoods $alidateDangerousGoods, $returnStdClass = false)
160+
public function getValidateDangerousGoodsReply(ComplexType\ValidateDangerousGoodsRequest $validateDangerousGoodsRequest, $returnStdClass = false)
161161
{
162-
$response = $this->getSoapClient()->$alidateDangerousGoods->toArray();
162+
$response = $this->getSoapClient()->validateDangerousGoods($validateDangerousGoodsRequest->toArray());
163163
if ($returnStdClass) {
164164
return $response;
165165
}
166-
166+
167167
$validateDangerousGoodsReply = new ComplexType\ValidateDangerousGoodsReply;
168168
$validateDangerousGoodsReply->populateFromStdClass($response);
169169
return $validateDangerousGoodsReply;

src/FedEx/_wsdl/DGDS_v3.wsdl

+3-3
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@
11791179
<input message="ns:RetrieveDangerousGoodsRequest"/>
11801180
<output message="ns:RetrieveDangerousGoodsReply"/>
11811181
</operation>
1182-
<operation name="validateDangerousGoods " parameterOrder="ValidateDangerousGoodsRequest">
1182+
<operation name="validateDangerousGoods" parameterOrder="ValidateDangerousGoodsRequest">
11831183
<input message="ns:ValidateDangerousGoodsRequest"/>
11841184
<output message="ns:ValidateDangerousGoodsReply"/>
11851185
</operation>
@@ -1249,8 +1249,8 @@
12491249
<s1:body use="literal"/>
12501250
</output>
12511251
</operation>
1252-
<operation name="validateDangerousGoods ">
1253-
<s1:operation soapAction="http://fedex.com/ws/dgds/v3/validateDangerousGoods " style="document"/>
1252+
<operation name="validateDangerousGoods">
1253+
<s1:operation soapAction="http://fedex.com/ws/dgds/v3/validateDangerousGoods" style="document"/>
12541254
<input>
12551255
<s1:body use="literal"/>
12561256
</input>

util/Cli/GenerateCode/Command/GenerateCode.php

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ protected function configure()
3636
*/
3737
protected function execute(InputInterface $input, OutputInterface $output)
3838
{
39+
ini_set("soap.wsdl_cache_enabled", 0);
40+
3941
if (!isset($_SERVER['PWD'])) {
4042
throw new \Exception('Cannot determin current working directory. Make sure you run this script from command line.');
4143
}

0 commit comments

Comments
 (0)