As part of a project here at BlueReach we have made
some updates/changes to the wsdl2perl which we hope
others find useful.
I have attached RELEASE-NOTES below which include
high level overview of the changes to the templates.
# Revised by: $Author: kapi $
# on: $Date: 2004/03/31 21:10:39 $
# Filename: $RCSfile: Adapter.pm,v $
# Revision: $Revision: 1.1 $
- need to use latest version of SOAP::Lite 0.65 from CVS
- added POD style documentation section to each class
which includes usage examples of methods in that class
- use of Log::Log4perl for logging. All Log::Log4perl
lines have been
commented out in this release as not everyone gets
the coolness of this
- During the auto generation of all classes distinguish
- methods for exception handling
- methods for complexType handling
to facilitate throwable exceptions as defined by WSDL
- Extend Error.pm module into each auto generated
to implement a mechanism of exception handling as
by the source WSDL.
- In methods which extend Error.pm module override
Error::strinify to allow
customizable formating of error messages
- a complexType gets instantiated with a data from a
SOM object. All the
values in the SOM object are not prefixed with '_'.
expects all input parameters to be prefixed with
an '_'. A simple,
non-exhaustive conversion logic was added to accept
parameters and convert them into '_' prefixed versions.
- When a method returns a complexType the
complexType is instantiated with
its corresponding SOM data and that complexType is
return as an object of
that complexType. (Internally each method gets a
SOM object from the
SOAP call, we now do a transformation of that data
into the appropriate
complexType object described by the WSDL.)
- If there is a fault returned by the SOM object the
method in which the
fault occured an exception is thrown according to
described in the WSDL.
- Added a new Util class (per WSDL used) to implement
If a complexType contains a serialized verion of a
complexType as one of
its elements, expandNode() converts that serialized
an appropriate complexType object and returns it as
an ArrayOf those types
- overloaded methods in the WSDL are currently not
handled at all, two
methods of the same name will be stubbed which will
- still unable to properly serialize proper name spaces to
complexType's of complexTypes.
- currently data complexTypes during the autobuilding
process do not
check the namespace they belong to. For example
two WSDL's which
share the same namespace will create their own
versions of a complexType
defined inside each of their respective packages even
complexType is really unique within the namespace
that both packages
- WARNING: we also noticed that XML docs sometimes
contain soap:body style
declarations and othertimes contain wsdlsoap:body...
this makes many things
break in wsdl2perl. Hence we modified some findvalue
() pattern matches
to use 'wsdlsoap' instead of 'soap'.
These updates are maintained by:
BlueReach Communications Inc.
Jason Kelly (jkelly at promptunetworks dot com)
Piotr Kapiszewski (kapi at promtpunetworks dot com)
Log in to post a comment.