ContributionsMost RecentMost LikesSolutionsxsi:type and namespace prefixeshello we have a teststep 'SampleStep' which returns this response: <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"> <S:Body> <ns2:Container xmlns="http://example.ch/ws" xmlns:ns2="http://example.ch/container"> <referencedObjects xsi:type="Person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ID>21</ID> <name>sample</name> </referencedObjects> </ns2:Container> </S:Body> </S:Envelope> in the next step we add in the request the following xpath because we need the referencedObjects from the SampleStep Response: ${SampleStep#Response# declare namespace ws='http://example.ch/ws'; //ws:referencedObjects[1] } this returns the following xml-fragment: <ws:referencedObjects xsi:type="Person" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ws="http://example.ch/ws"> <ws:ID>21</ws:ID> <ws:name>sample</ws:name> </ws:referencedObjects> soapui adds all the prefixes in the tags correctly (ws:), but not in xsi:type="Person" - now we have the problem that jaxb cannot deserialize the person anymore because of the xsi:type="Person" which is in no namespace. when we change it to xsi:type="ws:Person" it works. has someone an idea how we can use a simple xpath for the same and which add the prefix ws: to the Person too? or what's an easy solution to the problem and why is this not working automatically? thanks for helpingmissing class: ExtendedContentHandler / generating html-reportsAfter an update to version 2.5.1 I had some problems with the report generation: [tt:2tebhvlk][java] 08:05:32,791 ERROR [SoapUIProTestCaseRunner] java.lang.NoClassDefFoundError: org/apache/xml/serializer/ExtendedContentHandler [java] at org.apache.xalan.processor.XSLTSchema.build(XSLTSchema.java:325) [java] at org.apache.xalan.processor.XSLTSchema. (XSLTSchema.java:72) [java] at org.apache.xalan.processor.StylesheetHandler. (StylesheetHandler.java:1290) [java] 08:05:32,791 ERROR [SoapUI] An error occured [org/apache/xml/serializer/ExtendedContentHandler], see error log for details [java] at org.apache.xalan.processor.TransformerFactoryImpl.newTemplatesHandler(TransformerFactoryImpl.java:376) [java] at org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:867) [java] at com.eviware.soapui.impl.wsdl.actions.testcase.CreateReportAction.initTransformers(SourceFile:178) [java] at com.eviware.soapui.impl.wsdl.actions.testcase.CreateReportAction.a(SourceFile:122) [java] at com.eviware.soapui.impl.wsdl.actions.testcase.CreateReportAction.createReport(SourceFile:115) [java] at com.eviware.soapui.SoapUIProTestCaseRunner.exportJUnitReports(SourceFile:98) [java] at com.eviware.soapui.tools.SoapUITestCaseRunner.exportReports(SoapUITestCaseRunner.java:360) [java] at com.eviware.soapui.SoapUIProTestCaseRunner.exportReports(SourceFile:89) [java] at com.eviware.soapui.tools.SoapUITestCaseRunner.runRunner(SoapUITestCaseRunner.java:341) [java] at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:127) [java] at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:72) [java] at com.eviware.soapui.SoapUIProTestCaseRunner.main(SourceFile:34)[/tt:2tebhvlk] Is it possible that there is a jar-file missing in the 2.5.1 bin-distribution? After I copied the serializer.jar from xalan-dist 2.7.1, it worked well. greets iwan Re: Insert node with xQuery in Property TransferHi yes, I've done it now with a temporary property. and yes, I think such an "append" in the property-transfer would be a great idea! then we could insert/append nodes very easy! thanks! regards! iwanInsert node with xQuery in Property TransferHello, I'm new to xQuery/xPath and I'll manipulate a request. I would like to insert informations from a datasource and the response of the step before - but that's not the problem, the Problem is now to insert a node without overwriting the existing things. example source: result should look like the following c b a 123 Is it possible to insert with a property transfer step and xQuery/xPath? source in property transfer (xQuery): { for $z in //testText return $z/text() } destination in property transfer (XPath): //root How do I have to define the xPath in the destination that node3 is added and not is overwritten? result now is: 123 thank you for help... Re: classpath too longHi Robert Your proposed solution works perfect, thanks br ErhardRe: classpath too longHi Ole I tried your proposal, but it did not help. The error occures during the set classpath commands. Windows 2000 limits the command lenth to 2k (2048 characters). As soon as this lenght is reached, the next "set command" fails. I even tried to install the soapui directly under c:\so in order to shorten the classpath, but the classpath setting did still not get through all the libraries. Best regards, Erhardclasspath too longHi soaupUI-Pro 2.5 does not startup on my Windows 2000 PC. I got an error message saying that the classpath gets too long. I had to change the classpath setting in the soapui-pro.bat file (remove the SOAPUI_HOME in front of the libraries). Does anybody had a similar problem, is there a more elegant work around for this classpath problem? Regards, ErhardRelativ path for wsdl location in project fileHi We are defining mock services on windows machines. This mock services need to be executed afterwards on unix machines. When defining a new mock service project with the wsdl from a file, the location path is written as an absolut path (X:\..\mockservice.wsdl) into the corresponding project xml file. Unfortunately this absolut path does not exist on the unix environment. Therefore the mock service execution is failing on the unix machines. Is there a possibility to define the location of the wsdl relativ to the location of the project file? best regards, ErhardRe: Adding http-header using groovyHej Ole thanks for your fast response. The script works fine best regards, ErhardAdding http-header using groovyHi I have a test case where I need to add a http-header (due to security reasons) before sending the soap request. The header is dynamically created using a coresponding java class. Is it possible to add an http-header using groovy before sending the request? If yes, is there any example script available? many thanks erhard