Forum Discussion
- ppat7046_16 years agoOccasional Contributor
Sorry for not clearly asking the question. Here is the issue.
1) In Ready! API 1.9.0, under projects, I imported the wsdl then sending following request
<soapenv:Envelope xmlns:soapenv="http://../">
<soapenv:Header/>
<soapenv:Body>
<MIKESmiley:TongueFU>
<uId>?</uId>
<p>?</p>
<UFL>
<MIKE:UFD>
<MIKE:NVPFF>
<MIKE:name>NULL</MIKE:name>
<MIKE:value>NULL</MIKE:value>
</MIKE:NVPFF>
<MIKE:wII>105</MIKE:wII>
<MIKE:b>659-458</MIKE:b>
<MIKE:fT>P1B</MIKE:fT>
<MIKE:action/>
</MIKE:UFD>
</UFL>
</MIKESmiley:TongueFU>
</soapenv:Body>
</soapenv:Envelope>2) Under ServiceV, I have following Script
def blockValue="XX";
def groovyUtils=new com.eviware.soapui.support.GroovyUtils(context)
def xml=new XmlSlurper().parseText(mockRequest.requestContent)
xml.breadthFirst().each{
if(it.name()=="b"){
bValue=it.text();
context.setProperty("BVALUE", bValue);
}
if(it.name()=="wII"){
wIIValue=it.text();
context.setProperty("WII", wIIValue);
}
if(it.name()=="fT"){
fTValue=it.text();
context.setProperty("FT", fTValue);
}
}
context.setProperty("STATUSMESSAGE1", "Updated for: ${bValue}; ${wIIValue};");3) Under Response, I have following
<soapenv:Envelope xmlns:soapenv="http://..." xmlns:map="https://test.com/">
<soapenv:Header/>
<soapenv:Body>
<pas:pFUR>
<RSL>
<pas:RS>
<pas:wII>${wIIValue}</pas:wII>
<pas:b>${bValue}</pas:b>
<pas:statusMessage>${STATUSMESSAGE1}</pas:statusMessage>
</pas:RS>
</RSL>
</pas:pFUR>
</soapenv:Body>
</soapenv:Envelope>4) I get correct response, no issues so far.
5) Now, I send following request
<soapenv:Envelope xmlns:soapenv="http://../">
<soapenv:Header/>
<soapenv:Body>
<MIKESmiley:TongueFU>
<uId>?</uId>
<p>?</p>
<UFL>
<MIKE:UFD>
<MIKE:NVPFF>
<MIKE:name>NULL</MIKE:name>
<MIKE:value>NULL</MIKE:value>
</MIKE:NVPFF>
<MIKE:wII>105</MIKE:wII>
<MIKE:b>659-458</MIKE:b>
<MIKE:fT>P1B</MIKE:fT>
<MIKE:action/>
</MIKE:UFD><MIKE:UFD>
<MIKE:NVPFF>
<MIKE:name>NULL</MIKE:name>
<MIKE:value>NULL</MIKE:value>
</MIKE:NVPFF>
<MIKE:wII>106</MIKE:wII>
<MIKE:b>659-459</MIKE:b>
<MIKE:fT>P1B</MIKE:fT>
<MIKE:action/>
</MIKE:UFD>
</UFL>
</MIKESmiley:TongueFU>
</soapenv:Body>
</soapenv:Envelope>6) Issue: I only received a response that is highlighted in Red. I DO NOT get response for 105 and 106.
Can someone please help?
- nmrao6 years agoChampion Level 3Because, it is working as per the script.
What is the expected response message (xml ) please?
Related Content
- 6 years agopankajmalinda
- 7 years agomoolickj
Recent Discussions
- 11 minutes agoyassir
- 23 hours agodipsthorat
- 2 days agoisbiat