读取XMLStreamReader时出错。执行以下shell脚本时
> #!/bin/sh
>
> read -d '' delete_payload <<"EOF"
><soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:typ="http://someurl.com/vi/ma"> <soapenv:Header/>
> <soapenv:Body>
> <typ:DecommissionRequest>
> <typ:Credentials>
> <typ:Source></typ:Source>
> <typ:Username></typ:Username>
> <typ:Password></typ:Password>
> </typ:Credentials>
> <typ:PeerHmIP>Secondary_IP</typ:PeerHmIP>
> </typ:DecommissionRequest> </soapenv:Body> </soapenv:Envelope>
> EOF
>
>
> resp=$(curl -ks \
> -H "Content-Type: text/xml;charset=UTF-8" \
> -H "SOAPAction:Delete" \
> -d $delete_payload \
> https://serverip:8080/vi)
>echo "$resp"
OutPut
soap:客户端错误 读 XMLStreamReader的。