Codeception / Codeception/module-soap

Issue in XML parser in SOAP function

Đang mở
#7 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
PHP
Star
0
Fork
4
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

If I do:

``` php
$xml = new \Codeception\Util\XmlBuilder();
$xml->name->val('test')->parent()
->catid->val(4);

$I->sendSoapRequest('create', $xml);
```

The soap request works:

```
[Request] test4
```

However if I do:

```
$I->sendSoapRequest('create', 'test4');
```

It says:

```

[PHPUnit_Framework_Exception] DOMDocument::loadXML(): Extra content at the end of the document in Entity, line: 1

```

The problem I think is here: https://github.com/Codeception/Codeception/blob/2.1/src/Codeception/Util/Xml.php#L27-L57

The parser seems able to parse a xml string wrapped in an outer tag ():

`$I->sendSoapRequest('create', 'test4');`

but not like:

`$I->sendSoapRequest('create', 'test4');`

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.