|
From: Pieter C. <pie...@on...> - 2005-01-10 08:58:22
|
Colin, I'm maintaining a 'faq' on the wiki, although it is far from complete: http://opensource.atlassian.com/confluence/spring/display/DOC/FAQ Pieter Colin Sampaleanu said: > Michael, > > For about a good 6 months or so now I keep meaning to set up a > 'cookbook' area on the wiki where people can put shorts bits of code an= d > tips for doing things. You could perhaps put up the stuff on the wiki, > and I'll try to organize it a bit more in about 2-3 weeks when I am don= e > with the project I am on now... > > Colin > > Michael Schuerig wrote: > >>On Thursday 06 January 2005 02:42, Michael Schuerig wrote: >> >> >>>I've stumbled again on my quest to make Axis and Spring work together >>>in the way I want them to. One of my operations has an out parameter >>>(in WSDL: a part of the output message that does not appear in the >>>operation's parameterOrder attribute; see JAX-RPC 4.3.4). >>> >>> >>[snip] >> >> >>>I'll probably have a go at it in the next couple of days. Thus if >>>anyone else intends to do something similar, please contact me. >>> >>> >> >>So, now I've got a factory bean that creates a "tweakable" web service >>client using Axis. The factory helps with declarative type mapping, >>unwraps business exceptions, handles out parameters and allows to set >>document-style services to be "wrapped". See below for a sample >>configuration. >> >>I really don't want to keep this to myself. The same goes for other >>smallish-but-reusable stuff I've written in the past few months; tests >>included, of course. But what can I do to avoid this? I could put the >>code on my web site where nobody will find it. What I'm looking for is >>some kind of Spring Component Playground for bits and pieces that snap >>into Spring but are not (yet) part of the official distribution. >>Something with a wider scope and access than the existing sandbox. >> >>Michael >> >> >><bean id=3D"webserviceclient" >> class=3D"de.schuerig.webservices.AxisClientFactoryBean"> >> <property name=3D"serviceFactoryClass"> >> <value>org.apache.axis.client.ServiceFactory</value> >> </property> >> <property name=3D"wsdlDocumentUrl"> >> <value>http://serviceprovider.net/service?wsdl</value> >> </property> >> <property name=3D"timeout"> >> <value>30000</value> <!-- milliseconds --> >> </property> >> <property name=3D"namespaceUri"> >> <value>http://serviceprovider.net/service</value> >> </property> >> <property name=3D"typeNamespaceUri"> >> <value>http://serviceprovider.net/service/types</value> >> </property> >> <property name=3D"serviceName"> >> <value>TheService</value> >> </property> >> <property name=3D"portName"> >> <value>TheSoapPort</value> >> </property> >> <property name=3D"serviceInterface"> >> <value>net.example.TheService</value> >> </property> >> <property name=3D"wrappedStyle"> >> <value>false</value> >> </property> >> <property name=3D"encodingStyleUri"> >> <value></value> <!-- for literal --> >> </property> >> <property name=3D"typeMappings"> >> <list> >> <bean class=3D"de.schuerig.webservices.TypeMappingDesc"> >> <property name=3D"javaType"> >> <value>net.example.SomeBean</value> >> </property> >> <property name=3D"xmlType"> >> <value>someBean</value> >> </property> >> </bean> >> <bean class=3D"de.schuerig.webservices.TypeMappingDesc"> >> <property name=3D"javaType"> >> <value>net.example.SomeBean[]</value> >> </property> >> <property name=3D"xmlType"> >> <value>SomeBeanList</value> >> </property> >> </bean> >> <bean class=3D"de.schuerig.webservices.TypeMappingDesc"> >> <property name=3D"javaType"> >> <value>net.example.SpecialBean</value> >> </property> >> <property name=3D"xmlType"> >> <value>specialBean</value> >> </property> >> <property name=3D"serializerFactory"> >> <value>net.example.SpecialBeanSerializerFactory</va= lue> >> </property> >> <property name=3D"deserializerFactory"> >> <value>net.example.SpecialBeanDeserializerFactory</= value> >> </property> >> </bean> >> </list> >> </property> >></bean> >> >> >> > > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |