RE: Method authorization

2003-11-14 Thread Chandrasegaram Jeyakumaran
hi, I think you can do it by using the simple authorization handler provided by axis. (I think it is sufficient for your problems, it deals with wsdd and checks the authorization detail for a particular method, some time you may need to change the code a bit). Check it out...:) Regards, Jeyakumar

AW: WSDD and explicit headers

2003-11-14 Thread Thomas Bayer
Hi, Axis can handle in and out parameters as header elements. The service method is implemented as usual but the parameters are passed in the header. Try: Let me know, if Axis generates proper WSDL for the service. Thomas > -Ursprungliche Nachricht- > Von: Christians

AW: Deploying Providers - one issue

2003-11-14 Thread Thomas Bayer
Hallo Mark,   Axis can't load the plugable Provider. Probably Axis can't find the file containing the name of the factory. Make sure there is a file named org.apache.axis.deployment.wsdd.Provider in a META-INF/services directory reachable from the classpath. A good place for the file is WE

Re: WSDD and explicit headers

2003-11-14 Thread Michael Woinoski
Chris, I've been trying to find a way to specified explicit headers in a WSDD. I want these headers to appear in the WSDL document axis generates for my web service. Is there any way to do this? Can someone point me to an example? I haven't found a Java2WSDL option for this, so what I do is manual

RE: How to define document/literal service with multiple operatio ns

2003-11-14 Thread PILLAI,RANJITH (HP-PaloAlto,ex1)
Hi Anne, Dimuthu, I would like to try this. Do you know what method do I need to call at Axis Client to set this QName?. My method name is updateProfile and in my server-config.wsdd, I have this entry for my service http://xml.apache.org/xml-soap"; > http://xml.apache.org/xml-soap"/>

Re: wsdl2java returns invalid characters in wsdd and .java

2003-11-14 Thread Dan Christopherson
I'll work something up this weekend. Davanum Srinivas wrote: Danch, We'd REALLY appreciate a bug report with a complete WSDL. So that we can fix the problem with complex schema definitions. (http://ws.apache.org/axis/bugs.html) Thanks, dims --- Dan Christopherson <[EMAIL PROTECTED]> wrote: wsdl

WSDD and explicit headers

2003-11-14 Thread Christians Izquierdo
Hi, I've been trying to find a way to specified explicit headers in a WSDD. I want these headers to appear in the WSDL document axis generates for my web service. Is there any way to do this? Can someone point me to an example? Thank you very much, Chris

Re: wsdl2java returns invalid characters in wsdd and .java

2003-11-14 Thread Davanum Srinivas
Danch, We'd REALLY appreciate a bug report with a complete WSDL. So that we can fix the problem with complex schema definitions. (http://ws.apache.org/axis/bugs.html) Thanks, dims --- Dan Christopherson <[EMAIL PROTECTED]> wrote: > wsdl2java doesn't seem to work very well with more complex sche

Re: Deploying Providers - one issue

2003-11-14 Thread Mark
Hi I wrote my provider. But when I list the deployed services thru the axis admin page I get this error Exception - org.apache.axis.ConfigurationException: org.apache.axis.deployment.wsdd.WSDDException: No provider type matches QName '{http://xml.apache.org/axis/wsdd/providers/java}MyProviderClass

Re: wsdl2java returns invalid characters in wsdd and .java

2003-11-14 Thread Dan Christopherson
wsdl2java doesn't seem to work very well with more complex schema definitions (like xCIL from oasis.org). You might also want to take a look at recent threads regarding doc/literal - people are working on making this work better, but there is a way to go yet. This isn't necesarily a weakness spe

Re: How to define document/literal service with multiple operatio ns

2003-11-14 Thread Michael Woinoski
Thompson, Eugene wrote: Is it that Axis provides a communication style (message) that isn't part of the specs? Yes, the Axis Message style is not part of JAX-RPC. However, there is a lot of confusion about exactly what "message-style" means. The WSDL spec defines "document-style" operations as

RE: WebSphere reading materials

2003-11-14 Thread Koller, Shmuel
http://www-106.ibm.com/developerworks/webservices/wsdk/ http://www-106.ibm.com/developerworks/webservices -Original Message- From: Leo de Blaauw [mailto:[EMAIL PROTECTED] Sent: Fri, November 14, 2003 4:43 PM To: [EMAIL PROTECTED] Subject: Re: WebSphere reading materials Well, I am sure

wsdl2java returns invalid characters in wsdd and .java

2003-11-14 Thread asif . jiwani
Title: wsdl2java returns invalid characters in wsdd and .java I observed that whenever I do wsdl2java, the wsdd and .java files generated have invalid '>' character at different places. Am I the only one experiencing it? I didn't see any discussion around this issue. Is there a better way to g

Re: CommonsHTTPSender

2003-11-14 Thread Dan Christopherson
in client-config.wsdd You may have to rebuild axis with CommonsHTTPClient in order for CommonsHTTPSender to be built - I had to, anyway. Make sure you use the lates release of CommonsHTTPClient -danch [EMAIL PROTECTED] wrote: I was wonder how to configure Axis to use CommonsHTTPSender, and

Re: How to define document/literal service with multiple operatio ns

2003-11-14 Thread Michael Woinoski
Keith Bohnenberger wrote: Is this different than the "wrapper" element convention. It sounds like the same thing. I agree. We might not call it a wrapper, but it serves the same purpose. So if I have two operations named process and validate, and they both take a PurchaseOrder input message, my

Client Stub reuse?

2003-11-14 Thread Greg Hess
Hi All,   Is it ok for a client to reuse a stub for many invocations and in what scope(request[single thread], session, application)?   If any, what are the implications?   My client/server both send and receive attachments by hand, be it that the service does not expose DataHandlers

RE: Chris, the example doesn't work, why?

2003-11-14 Thread Yan Lin
Chris, Thanks for your reply! I found out why it went wrong: I did set up a client-config.wsdd and dropped it in the same directory as my client jar. Apparently, this is not enough. I need to explicitly load the file as EngineConfig and set it in my service. After that, my code works! This

Re: How to define document/literal service with multiple operations

2003-11-14 Thread Michael Woinoski
Hi, Dimuthu. No it's not less sleep, or more coffee, or anything else :-). Correct me if I am wrong, but I am under the impression that axis does not use SOAP action at all when invoking a service. If someone wants to use doc\literal service to have multiple operations he has to explicity map the

Re: DOCUMENT LITERAL and Java2WSDL error - Attempted to write schema for bad QName (no namespace) : fault

2003-11-14 Thread Michael Woinoski
Stuart, I ran into the same problem yesterday. It seemed to happen when a service implement method declares that it throws a service-specific exception (e.g., public void process(PO po) throws PoException). A Java2WSDL bug, apparently. Workaround (simple, but not practical): remove service-speci

RE: How to define document/literal service with multiple operations

2003-11-14 Thread Keith Bohnenberger
The article that you mention uses the axis "wrapped" programming style with the Axis CVS version which supports castor serialization. They are using document/literal web services. Keep in mind that "message", "document", and "wrapped" are program styles not communication styles or WSLD styles. A

Re: WebSphere reading materials

2003-11-14 Thread Leo de Blaauw
Well, I am sure there will be documents related to that, but since we use axis with websphere/wsad 5 i havent found many of interest. I just posted the links I did because a lot of questions are popping up here later for help on how to deploy this and that on websphere etc.. greetz Leo - Ori

RE: How to define document/literal service with multiple operatio ns

2003-11-14 Thread Thompson, Eugene
> One of the reasons standards exist is to avoid vendor lock-in. > It is a good architecture goal to avoid vendor lock-in and > write code to > the specs/standard apis. Absolutely. For the implementation, I would agree whole-heartedly. I guess where I'm missing the point is where you say ...

RE: How to define document/literal service with multiple operations

2003-11-14 Thread Davanum Srinivas
Keith, You can write a JAX-RPC/Axis handlers to enforce this. For example, you can extend SimpleAuthorizationHandler. Patches are welcome as well (http://nagoya.apache.org/wiki/apachewiki.cgi?AxisProjectPages/SubmitPatches). -- dims --- Keith Bohnenberger <[EMAIL PROTECTED]> wrote: > One of the

RE: Method authorization

2003-11-14 Thread chris
Axis doesn't contain anything out of the box to enforce method level security. You would need to look at vendor products or roll your own solution. /Chris -Original Message- From: Pablo [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2003 7:27 AM To: [EMAIL PROTECTED] Subject: Met

RE: How to define document/literal service with multiple operations

2003-11-14 Thread Keith Bohnenberger
One of the reasons standards exist is to avoid vendor lock-in. It is a good architecture goal to avoid vendor lock-in and write code to the specs/standard apis. Lets say you didnt know about axis and you implemented a bunch of web services in Java using some other SAAJ/JAX-RPC implementation. A f

RE: How to define document/literal service with multiple operatio ns

2003-11-14 Thread Keith Bohnenberger
Is this different than the "wrapper" element convention. It sounds like the same thing. -Original Message- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Friday, November 14, 2003 8:42 AM To: [EMAIL PROTECTED] Subject: Re: How to define document/literal service with multiple ope

Re: Method authorization

2003-11-14 Thread Anne Thomas Manes
You need to write a handler to do this. At 07:27 AM 11/14/2003, you wrote: Hi Suppose my web service has some methods: methodA methodB methodC How can I do authorization by methods? For instance: methodA and methodB can be called just if the user is in an administrator role, methodC just for

Re: WebSphere reading materials

2003-11-14 Thread Anne Thomas Manes
Leo, Thanks for the link. Can you provide some more pointers to Web services-specific information? Most of these links were focused on traditional J2EE stuff, and not on Web services. Thanks, Anne At 03:34 AM 11/14/2003, you wrote: To all interested, Below is a link to all sorts of IBM websph

Re: AW: Intermediary node

2003-11-14 Thread Anne Thomas Manes
Per the SOAP spec (SOAP 1.2 is clearer than SOAP 1.1), and intermediary is a full SOAP node, not a handler. You can use WS-Addressing or WS-Routing to indicate the routing path in SOAP headers. WS-Addressing supercedes WS-Routing. Anne At 10:26 PM 11/13/2003, you wrote: Hi Bob, I would like t

Re: How to define document/literal service with multiple operatio ns

2003-11-14 Thread Anne Thomas Manes
According to the WS-I Basic Profile, a Doc/Literal service is required to have a unique wire signature for each operation. What that means is that the child element of the soap:Body must have a unique QName. This uniqueness should be sufficient information for dispatching purposes. The QName do

RE : CommonsHTTPSender

2003-11-14 Thread Olivier Lamy
Title: Message in the client-config.wsdd : your class extends org.apache.axis.transport.http.HTTPSender see the example in the attached file. -Message d'origine-De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : vendredi 14 novembre 2003 13:54À : [EMAIL PROTECT

implicit conversation from java wrapper type to simple type

2003-11-14 Thread Schlachter, Steffen (LDS)
Hello, the problem we have detected is as follows: In the WSDL a field is described as which means that null is not allowed for that value. But 0 certainly is. If somesome send a soap message with the value of this field set to null, i.e. an empty element value then Axis implicitly tr

CommonsHTTPSender

2003-11-14 Thread Kenneth.Aastrom
I was wonder how to configure Axis to use CommonsHTTPSender, and also how can I configure the HTTPClient from Axis? I need to do the following connection: Client --(http)--> Proxy --(https)--> WebService The HTTPSender doesn't seem to support this, but the commons HTTP client seems to do. wbr

RE: How to define document/literal service with multiple operatio ns

2003-11-14 Thread Thompson, Eugene
> Also, I'd like to keep my web services portable to different JAX-RPC > implementations, so I try to avoid Axis-specific features > (e.g., Message-style > services.) > Just curious, but why? Are you constructing a service that you are planning to sell or that will need to be installed in man

Method authorization

2003-11-14 Thread Pablo
Hi Suppose my web service has some methods: methodA methodB methodC How can I do authorization by methods? For instance: methodA and methodB can be called just if the user is in an administrator role, methodC just for users with a manager role. Is it possible to do so? Authorization by method

RE: MessageContext doesn't work at client side?

2003-11-14 Thread chris
Gloria - At what step are you attempting to capture the message context? MessageContext is *only* present and valid while the client is processing the SOAP method call. Until the call method is triggered by ClientMain, a message context doesn't exist. By the time control is returned to ClientMai

RE: Chris, the example doesn't work, why?

2003-11-14 Thread chris
Gloria - Without looking at both your client and server side configuration, it is hard to tell exactly where the example went awry. It seems like you have not followed the configuration steps for the SimpleSessionHandler. I didn't post the full example. The e-mail thread assumed that the user w

help: session id not found in client side

2003-11-14 Thread Yan Lin
Hi, I have searched in this mail list and tried to apply the possible solutions, however, I failed to find session id in the client side soap message. What I did: (01) set scope to be session in the wsdd file (02) set setMaintainSession to be true (03) include SimpleSessionHandler at both serve

help: multiple stateful services

2003-11-14 Thread Yan Lin
Hi, I'm new to AXIS and I tried Example6 for a stateful service (i.e. using session). It worked fine. Then, I expanded the example to contain 2 stateful services, i.e. now I have: ServiceA with method a() and b() ServiceB with method c() and d() I have configured them in the same way (both in

Re: AW: Intermediary node

2003-11-14 Thread Borut Bolcina
Hello Dimuthu, On Friday, Nov 14, 2003, at 04:26 Europe/Ljubljana, Dimuthu Leelarathne wrote: Hi Bob, I would like to comment on the following line. CLIENT ---> INTERMEDIARY ---> ENDPOINT Are you talking about the "INTERMEDIARY" mentioned in the SOAP specification? Yes, as the theory says,

Re: AW: Intermediary node

2003-11-14 Thread Borut Bolcina
Hello Wolfgang, On Thursday, Nov 13, 2003, at 13:29 Europe/Ljubljana, Wolfgang Vullhorst wrote: Hi, am a bit confused by some of your statements. Perhaps you can help me with that... Of course, I will try to. Wolfgang Borut Bolcina [mailto:[EMAIL PROTECTED] wrote: Hi, again since I had no

WebSphere reading materials

2003-11-14 Thread Leo de Blaauw
Title: WebSphere reading materials To all interested, Below is a link to all sorts of IBM websphere documentation reachable from this one link, for those interested. As i see a lot of technical websphere questions pop up lately on this list, and this is not really the list to ask those: htt

Re: MessageContext doesn't work at client side?

2003-11-14 Thread Michael Binz
I have created a service and successfully deployed. At client side, I created a ClientMain.java which only contains a "main" method for the purpose of testing. I tried to use "MessageContext.getCurrentContext()", but I always get NullPointerException. Does MessageContext only exist with the

RE: Install/Deploy Axis 1.1 under WebSphere 5

2003-11-14 Thread Leo de Blaauw
Title: RE: Install/Deploy Axis 1.1 under WebSphere 5 Hi, I have just confirmed my requirement, we wanted to have SOAP server at web server side, which will be using IBM HTTP Server, I remembered when we deployod Axis into Apache Tomcat, we only need to modify one configuration file, server