view raw
Felipe Martinez Felipe Martinez - 9 months ago 133
Scala Question

Soapui maven plugin can not parse XmlHolder

I created a Soap Service mock in SoapUI to run some integration tests. I also put a groovy script to validate some fields within.

import java.math.BigDecimal;
def holder = new mockRequest.requestContent )
def lineItemId1 = holder["//*:QuotationRequest/*:LineItem[1]/@lineItemId[1]"]

When I run my test that call the mock through Eclipse JUnit plugin, and start the SoapUI Mock manually everything goes well, but when I run the test with mvn test - using soapui-maven-plugin - I got an exception:

10:17:55,056 ERROR [SoapUI] An error occurred java.lang.ClassCastException:
org.apache.xmlbeans.impl.xpath.saxon.XBeansXPath cannot be cast to$SelectPathInterface], see error log for details
java.lang.RuntimeException: java.lang.ClassCastException:
org.apache.xmlbeans.impl.xpath.saxon.XBeansXPath cannot be cast to$SelectPathInterface

2016-07-14 10:17:55,180 WARN PhaseInterceptorChain:449 - Interceptor for
has thrown exception, unwinding now org.apache.cxf.interceptor.Fault: Response was of unexpected text/html ContentType.
Incoming portion of HTML stream:
<soapenv:Envelope xmlns:soapenv="">

It seems to be this line that I'm getting error:


More info:
snippet of my pom.xml


This is the service that I am trying to mock

Could you help me with that?



Fixed removing the following dependency