简体   繁体   中英

How to give XML as input in soapui testing a webservice

I have a webservice. I have to test it using soap UI. but when I have to test it my input xml should be hardcoded inside the webservice implementation class. But I have to give xml input from SOAPUI. How to give like below.

<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
 <implmentation><input xml><header>.........</header></input xml> </implementation>
</soap:Envelope>

When I give like this it throws "javax.xml.bind.unmarshalexception the parsing instruction target [xX] [mX][lL] are not allowed"

It throws "javax.xml.bind.unmarshalexception the parsing instruction target [xX] [mX][lL] are not allowed" because tag "input xml" is not allowed due to not allowed "xml" parsing instruction.

So your service responded in the way it should - not allowing to invoke it with invalid xml.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM