File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ final class SoapBodyLocator
13
13
{
14
14
public function __invoke (DOMDocument $ document ): ?DOMElement
15
15
{
16
- $ soapNs = $ document ->namespaceURI ?? '' ;
16
+ $ soapNs = $ document ->documentElement -> namespaceURI ?? '' ;
17
17
$ xpath = Document::fromUnsafeDocument ($ document )->xpath (namespaces (['soap ' => $ soapNs ]));
18
18
19
19
return $ xpath ->query ('//soap:Envelope/soap:Body ' )->first ();
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ final class SoapHeaderLocator
13
13
{
14
14
public function __invoke (DOMDocument $ document ): ?DOMElement
15
15
{
16
- $ soapNs = $ document ->namespaceURI ?? '' ;
16
+ $ soapNs = $ document ->documentElement -> namespaceURI ?? '' ;
17
17
$ xpath = Document::fromUnsafeDocument ($ document )->xpath (namespaces (['soap ' => $ soapNs ]));
18
18
19
19
return $ xpath ->query ('//soap:Envelope/soap:Header ' )->first ();
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ public function __construct(Document $document)
22
22
23
23
public function __invoke (DOMXPath $ xpath ): DOMXPath
24
24
{
25
- namespaces (array_filter ([
26
- 'soap ' , $ this ->document ->locate (root_namespace_uri ()),
25
+ return namespaces (array_filter ([
26
+ 'soap ' => $ this ->document ->locate (root_namespace_uri ()),
27
27
'application ' => $ this ->document ->locate (new BodyNamespaceLocator ()),
28
28
]))($ xpath );
29
29
}
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ public function __construct(Document $document)
21
21
22
22
public function __invoke (DOMXPath $ xpath ): DOMXPath
23
23
{
24
- namespaces ([
25
- 'wsdl ' , $ this ->document ->locate (root_namespace_uri ()),
24
+ return namespaces ([
25
+ 'wsdl ' => $ this ->document ->locate (root_namespace_uri ()),
26
26
])($ xpath );
27
27
}
28
28
}
You can’t perform that action at this time.
0 commit comments