[UGGUG] Dumping Cxf, Going to XmlSlurper

3 views
Skip to first unread message

Steve Olsen

unread,
Apr 23, 2010, 11:41:26 AM4/23/10
to Utah Groovy & Grails User Group
Hi everyone. I have the opportunity tight now of using Grails to
develop an internal time reporting app at my job. It doesn't use a
database table, but calls a SOAP service. Initially I looked into Cxf,
wsdl2java, etc... but that was way complicated. So instead, I took the
wsdl file and fed it thru SoapUi which gave me the XML request
envelope structure.
From there, it was cake. I could easily fill in the req env properties
using GStrings, send it with httpclient, and then the response could
be slurped up with XmlSlurper and easily processed for the gsp to
display.
I LOVE Grails!!

--
Utah Groovy & Grails Users Group
ug...@googlegroups.com
http://groups.google.com/group/uggug/
- All meeting times and places can be found here.

** Please prefix your subject with "[JOB]" if your message is about job opportunities.

Eric Berry

unread,
Apr 23, 2010, 12:08:56 PM4/23/10
to ug...@googlegroups.com
Would you mind showing us how you did that at the next meeting? I'd
love to see how it works.

Eric

Steve Olsen

unread,
Apr 24, 2010, 11:54:41 AM4/24/10
to Utah Groovy & Grails User Group
Sure, I'd be happy to -- the GUI is still a work in progress, but the
SOAP piece I described is working great.

~Steve

On Apr 23, 10:08 am, Eric Berry <cav...@gmail.com> wrote:
> Would you mind showing us how you did that at the next meeting?  I'd
> love to see how it works.
>
> Eric
>
>
>
> On Fri, Apr 23, 2010 at 9:41 AM, Steve Olsen <steven.ol...@gmail.com> wrote:
> > Hi everyone. I have the opportunity tight now of using Grails to
> > develop an internal time reporting app at my job. It doesn't use a
> > database table, but calls a SOAP service. Initially I looked into Cxf,
> > wsdl2java, etc... but that was way complicated. So instead, I took the
> > wsdl file and fed it thru SoapUi which gave me the XML request
> > envelope structure.
> > From there, it was cake. I could easily fill in the req env properties
> > using GStrings, send it with httpclient, and then the response could
> > be slurped up with XmlSlurper and easily processed for the gsp to
> > display.
> > I LOVE Grails!!
>
> > --
> > Utah Groovy & Grails Users Group
> > ug...@googlegroups.com
> >http://groups.google.com/group/uggug/
> > - All meeting times and places can be found here.
>
> > ** Please prefix your subject with "[JOB]" if your message is about job opportunities.
>
> --
> Utah Groovy & Grails Users Group
> uggug@googlegroups.comhttp://groups.google.com/group/uggug/
Reply all
Reply to author
Forward
0 new messages