[JBoss-user] [JBoss.NET] - Re: Webservice authentication

2004-09-08 Thread nehring
I have run Axis 1.1 installed as a war under JBoss and JBoss-net services in the same server instance without any trouble. Using JBoss-net (which is also built on Axis 1.1) has an advantange in that you don't need to mess with the Axis deploy/undeploy descriptors or plug your apps under the Ax

[JBoss-user] [JBoss.NET] - Re: Webservice authentication

2004-09-08 Thread arielah
I got it to work with authentication. From the locator I was getting my interface (which extends the Remote). Instead I casted it, per your suggestion, to the stub: AxisSoapBindingStub port = (AxisSoapBindingStub)service.getAxis(); | port.setUsername("blah"); |

[JBoss-user] [JBoss.NET] - Re: Webservice authentication

2004-09-07 Thread nehring
Your method likely will not be named "getHello". In the Locator code generated by wsdl2java, you should see a few methods that return your Stub. In mine, I see that one method has no arguments and one takes a URL object as an argument to return the Stub. For example, I have web service named

[JBoss-user] [JBoss.NET] - Re: Webservice authentication

2004-09-07 Thread arielah
nehring, What is the getHello method? My locate doesn't have any access to my defined methods. In the client code I'm doing the following below. Where first I get the locate, then from it I get my EJB remote interface (that was generate from wsdl2java) where I can call my defined methods. I'm

[JBoss-user] [JBoss.NET] - Re: Webservice authentication

2004-09-07 Thread nehring
I would use code similar to below. The idea is to: 1) locate the SOAP service (wsdl2java should have generated a Locator) 2) Instantiate the stub class. 3) Set the username and password in the stub. 4) Make the SOAP call to a remote method. The names of the Locator and Stub classes have been