2017-08-23 24 views
0

如何从这个脚本设置为空值:置空变量

<dat:customerNo></ dat:customerNo> 

我已经尝试过这样做:

<dat:customerNo xsi:nil="true" /> 

,但得到的错误:

<soapenv:Fault> 
<faultcode>soapenv:Server.generalException</faultcode> 
<faultstring>WSDoAllReceiver: cannot convert into document; nested exception is: 
org.xml.sax.SAXParseException: The prefix "xsi" for attribute "xsi:nil" associated with an element type "dat:customerNo" is not bound.</faultstring> 

请任何人都可以帮忙谢谢

+0

你在SoapUI中需要什么? Groovy一步?休息?肥皂请求? – Rao

+0

我不确定,也许是肥皂要求。我如何检查它? – user3679987

+0

任何人都可以帮忙吗? – user3679987

回答

0

您需要在您的字段或您的肥皂信封中添加xsi元素的定义。

<dat:customerNo xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" /> 
+0

它的工作非常感谢你:) – user3679987

+0

不客气,你可以接受的答案,如果它可以为你:) – Lerminou