пʼятницю, 14 січня 2011 р.

SoapUI 3.6.1 start up fail on Win XP

SoapUI is the biliant tool for web-service and JMS testing purposes, but last version has a one bug - it has start up problems with the next error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cli/CommandLineParser
If you'll check libs, you'll found related jar, misterious...
Don't worry - let's look at soapui.bat, and add before the line:
"%JAVA%" %JAVA_OPTS% -cp "%CLASSPATH%" com.eviware.soapui.SoapUI %*
next code:
setlocal ENABLEDELAYEDEXPANSION
if defined CLASSPATH (set CLASSPATH=%CLASSPATH%;.) else (set CLASSPATH=.)
FOR /R ..\lib %%G IN (*.jar) DO set CLASSPATH=!CLASSPATH!;%%G
It seems a bit strange, but it realy helpful;)

четвер, 13 січня 2011 р.

Groovy Soap Client, Custom Groovy Soap Client, and webservice overloading

It was beautiful winter morning, when I started creating SOAP client to our web-services. I decided to use groovy.net.soap.SoapClient. because of the applciation was written in Groovy language. The examples from official tutorial promise the easy life, so I was wondered when in ten minutes a got completed code which throws exception
XmlSchemaException "Content is not allowed in prolog"
In the line:
proxy = new SoapClient( endpoint )



First of all I checked xml and realized that it's absolutely correct. On the next step I touched: http://www.webservicex.net/CurrencyConvertor.asmx?WSDL
and my code works fine with this URL. So, I started googling...