Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Info
titleDeprecated Module

Before using GroovySOAP, make sure to check GroovyWS

Introduction


linkSOAPSOAP1

Wiki Markup
{link:SOAP|http://www.w3.org/TR/soap/}{link}
is a lightweight protocol intended for exchanging structured information in a decentralized, distributed environment. Groovy has a SOAP implementation based on
linkXfire Xfire 1
Wiki Markup
{link:Xfire |http://xfire.codehaus.org}{link}
which allows you to create a SOAP server and/or make calls to remote SOAP servers using Groovy.

...


For each class compiled by the groovy compiler a metaClass property is added to the bytecode. This property must be excluded from being mapped by XFire, otherwise an error will be reported when trying to obtain the WSDL document from http://localhost:6980/PersonServiceInterface?wsdl. The reason is that XFire cannot map groovy.lang.MetaClass. To ignore the metaClass property a custom type mapping must be defined (for details refer to Aegis Binding).

Code Block
xmlxml
titlePerson.aegis.xml
xml
<?xml version="1.0" encoding="UTF-8"?>
<mappings xmlns:sample="http://DefaultNamespace">
  <mapping name="sample:Person">
    <property name="metaClass" ignore="true"/>
  </mapping>
</mappings>

...