axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Jordahl <t...@macromedia.com>
Subject RE: How to control the Call object in code generated by WSDL2Java ?
Date Fri, 10 May 2002 19:32:37 GMT

Yes, you should be able to set the org.apache.axis.AxisEngine.PROP_DOMULTIREFS
property (or any other Call property) in the stub and it will get moved to the Call object.

In the WSDL2Java generated stub you can see these lines of code:

            java.util.Enumeration keys = super.cachedProperties.keys();
            while (keys.hasMoreElements()) {
                String key = (String) keys.nextElement();
                call.setProperty(key, super.cachedProperties.get(key));
            }

Since Call extends the Stub class, the "super" in the above code is Stub.

--
Tom Jordahl
Macromedia



-----Original Message-----
From: Vidyanand Murunikkara [mailto:Vidyanand@infravio.com]
Sent: Friday, May 10, 2002 3:23 PM
To: axis-user@xml.apache.org
Subject: RE: How to control the Call object in code generated by
WSDL2Java ?


Hi Tom

I had posted this sometime early too but had got no reply. I want to
know whether there is any wya u can turn off the multi ref being sent by
a client generated out of WSDL2Java. I know it can be done by setting
the property on Call object . But since we dont have a direct handle to
the Call object while using the WSDL2Java generated classes, I can not
the set the property. Does setting the property using _setProperty()
mehtod on the stub also set this option. ?

Thanks for ur time
Vidyanand.

-----Original Message-----
From: Tom Jordahl [mailto:tomj@macromedia.com]
Sent: Friday, May 10, 2002 12:19 PM
To: 'axis-user@xml.apache.org'
Subject: RE: How to control the Call object in code generated by
WSDL2Java ?



FYI

The --user and --password options are used to access the WSDL URI for
the tool.  WSDL may be protected by web server Basic Authentication.
They do not embed this info in to the stubs.

The _setProperty() function is the right way to do this.

--
Tom Jordahl
Macromedia


-----Original Message-----
From: Alan Moore [mailto:amoore@ciphergen.com]
Sent: Friday, May 10, 2002 3:06 PM
To: 'axis-user@xml.apache.org'
Subject: RE: How to control the Call object in code generated by
WSDL2Java ?


Run WSDL2Java with no parameters and you will see --user --password
options
are available. I haven't used these options but I think that the user
and
password will be embedded directly into the client side generated code
for
XXXBindingStub.java.

Another option may be to use:

yourStub._setProperty( javax.xml.rpc.Call.USERNAME_PROPERTY, "username"
);
yourStub._setProperty( javax.xml.rpc.Call.PASSWORD_PROPERTY, "password"
);

Good luck!

alan

-----Original Message-----
From: Naresh Bhatia [mailto:NBhatia@sapient.com]
Sent: Friday, May 10, 2002 10:36 AM
To: 'axis-user@xml.apache.org'
Subject: How to control the Call object in code generated by WSDL2Java?


I have used WSDL2Java to generate my Web Service. I need to set the
username
and password properties on the Call object before I send out the SOAP
message. How can I do that? Currently the client code that invokes the
call
looks like this:
    nodeService nodeService = new nodeServiceLocator(); 
    Node node = nodeService.getMyService(); 
    node.doStuff();  // creates and invokes the Call object 
I don't know how to exert this level of control on the Call object that
is
essentially created and invoked in the doStuff() method of the stub
created
by WSDL2Java. Is this really possible?
Thanks. 
Naresh 

Mime
View raw message