Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
03-01-2010, 01:39 AM #1
- Join Date
- Mar 2010
- Thanked 0 Times in 0 Posts
Perl SOAP::Lite passing POJO to Jave Server
First post so a couple of disclaimers; I'm not a coder, I'm a scripter/UNIX Admin (hence the perl) and I've not got a great deal of experience working with Web Services or SOAP or anything (hence the problem).
I'm currently trying to write a client for a webservice and have used stubmaker to generate a .pm for the service from the WSDL - all good thus far. However, the documentation for the service states that every method I want to call needs to have a "Authentication" POJO passed to it first. i.e.
String listfiles(authentication, directory, types, size)
Desc: Application Authentication object
Syntax: Authentication object with user and pass fields set
The Authentication object contains just two fields: String user and String pass, along with the following methods:
String getuser(), setuser(String user), getpass() and setpass(String pass)
Can anyone give me an example of calling "listfiles" and passing the authentication object before the other strings?
Have a feeling this could just be me being baffled by Java terminology and trying to do Java objects in perl.
Any help or links etc. to sites that might help clear this up would be great.
Note: some of the nouns changed to protect the infuriatingly guilty app.