我有一个使用axis2 1.6.1,xmlbeans的Web服务客户端。它工作正常。 现在,我想从请求对象创建一个soap请求消息字符串(不仅是一个xml字符串,还有一个soap字符串)。
请帮忙。
(使用jaxb或cxf不是此项目的选项)
答案 0 :(得分:0)
好的,我把它解决了。拥有xmlbean对象后,只需在soap envelope和xmlObject.toXML()之间进行字符串连接。
import time
current_question = ()
i = 1
while i <= 4:
q1 = str(input('Is your phone wet? ')).lower()
current_question = q1
i = i + 1
if q1 == 'yes' or q1 == 'Yes':
print('dry it out')
break
elif q1 == 'no' or q1 == 'No':
q2 = str(input('is your phone cracked? ')).lower()
current_question = q2
i = i + 1
if q2 == 'yes' or q2 == 'Yes':
print('replace screen')
break
elif q2 == 'no' or q2 == 'No':
q3 = str(input('are you able to download apps/videos? ')).lower()
current_question = q3
i = i + 1
if q3 == 'yes' or q3 == 'Yes':
print('delete any apps or videos that you don\'t need')
break
elif q3 == 'no' or q3 == 'No':
q4 = str(input('Is your phone unresponsive? ')).lower()
current_question = q4
i = i + 1
if q4 == 'yes' or q4 == 'Yes':
print('restart it')
break
elif q4 == 'no' or q4 == 'No':
print('contact the supplier')
break
while current_question != 'yes' and current_question != 'no':
print('try again')
time.sleep(1)
print(current_question)