我已经解决了相关问题,但没有提供答案。我有这个肥皂要求
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org /soap/envelope/" xmlns:ns1="http://xxx.xxxx.com">
<SOAP-ENV:Body>
<ns1:ASS>
<ns1:MRequest>
<ns1:RefNo>34</ns1:RefNo>
<ns1:mobileNo></ns1:mobileNo>
<ns1:mobileName></ns1:mobileName>
</ns1:MRequest>
</ns1:ASS>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
我想从所有其他参数中删除前缀,并将其保留在ASS上。所需的请求如下所示
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org /soap/envelope/" xmlns:ns1="http://xxx.xxxx.com">
<SOAP-ENV:Body>
<ns1:ASS>
<MRequest>
<RefNo>34</RefNo>
<mobileNo></mobileNo>
<mobileName></mobileName>
</MRequest>
</ns1:ASS>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>