Re: question regarding WSDL and WS-Security

2004-01-09 Thread Ricky Ho
There is a nice separation between application processing and infrastructure processing. WSDL describes the former and WS-Policy describe the later. If you are writing application code, you shouldn't care about WS-Policy (and WS-Security), you only care about WSDL. The underlying

Re: question regarding WSDL and WS-Security

2004-01-09 Thread Ricky Ho
this to the client? Clearly, I need to supply something more than a WSDL document to the client. Even if the client has an underlying infrastructure (e.g. a security gateway) it needs some sort of information. Does WS-Policy provide that? Thanks, Shantanu Sen --- Ricky Ho [EMAIL PROTECTED] wrote

Re: Callbacks in SOAP application

2003-03-17 Thread Ricky Ho
just has to notify the event to a client who registered oneself as the event listener. Best Regards, Toshi (Toshiyuki Kimura) [EMAIL PROTECTED] RD Headquarters NTT DATA Corporation -Original Message- From: Ricky Ho [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 4:41 PM

RE: Authorization using WS security and SAML

2003-03-17 Thread Ricky Ho
One of the primary reasons why you might want to use SAML is to support single sign-on. But if you don't have a SAML authentication authority, then you probably don't want to use SAML. Can I use SAML for just Authorization Authority ? But you don't need to use either SAML or WS-Security to

Re: Callbacks in SOAP application

2003-03-17 Thread Ricky Ho
We certainly can use a Gnutella approach to multi-cast an event. Rgds, Ricky At 10:15 AM 3/17/2003 -0800, Steve Loughran wrote: - Original Message - From: Ricky Ho [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, March 17, 2003 09:47 Subject: Re: Callbacks

Re: Callbacks in SOAP application

2003-03-16 Thread Ricky Ho
A SOAP client registers with a SOAP server: send me a message when event XYZ occurs The client should register: send me a message AT THIS LOCATION when the event XYZ occurs When XYZ occurs, how should the server callback? Is there anything provided as part of the Axis framework? The server

Re: Callbacks in SOAP application

2003-03-16 Thread Ricky Ho
Note that I'm comparing UDP multicast with sending a message repeatedly over multiple HTTP/TCP connections. 1)Reliability: The UDP packets might be lost depending on the network conditions, as you may know. As I said, the callback message in this application-specific case is

Re: Why Pull-Parser faster ?

2003-02-21 Thread Ricky Ho
and faster. - Dennis Ricky Ho wrote: Thanks Dennis, some more followup question Is it true that Pull Parser is also a forward-only iterator ? The only difference that I see is still that Pull Parser allows you to stop anytime. Maybe lets go through an example as follows ... Look

Re: Why Pull-Parser faster ? - Still NO answer

2003-02-21 Thread Ricky Ho
Tom, my comments embedded My impression (until this discussion started) was that both are linear in input, able to quit at any point, but the difference was three-fold (a) since SAX events are context-independent, and the logic of XML often depends on what has gone before it, event handlers

Re: Why Pull-Parser faster ?

2003-02-21 Thread Ricky Ho
Got it ! Thanks At 04:39 PM 2/21/2003 +, you wrote: Ricky Ho wrote: At the Parser side, in both XPP and SAX code case, the parser deliver the same number of elements to the application sequentially (regardless of whether the application ask for it or the parser callback the application

Re: Handler chain implementation

2003-02-21 Thread Ricky Ho
Few months ago, I run into the same issue when I try to implement a cache handler. The answer I got back from Steve is the only way to stop the handler passing on the request is to throw an exception, in that case a SOAP Fault is send back to client. I guess this behavior is still the same

HTTPProxyTunnel

2003-02-20 Thread Ricky Ho
Would it be nice to no requiring the TCPTunnel to define the target address and port ? For example, I have a client application which dynamically determine the service endpoint address (via UDDI), there is NO way that I can setup the TCPTunnel to monitor the traffic between the client app and

RE: Why Pull-Parser faster ?

2003-02-20 Thread Ricky Ho
://www.javaworld.com/javaworld/jw-04-2002/jw-0426-xmljava3.html? Anne -Original Message- From: Ricky Ho [mailto:[EMAIL PROTECTED]] Sent: Monday, February 10, 2003 10:02 PM To: Anne Thomas Manes Subject: RE: Why Pull-Parser faster ? I don't see they are giving an introduction of how Pull

RE: Why Pull-Parser faster ?

2003-02-20 Thread Ricky Ho
, [EMAIL PROTECTED] Researching tomorrow's decisions today. (319) 369-2070 (work) SYSTEMS ARCHITECT, ITS, AEGON FINANCIAL PARTNERS -Original Message- From: Ricky Ho [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 9:57 AM To: Anne Thomas Manes Cc: [EMAIL PROTECTED

Re: Why Pull-Parser faster ?

2003-02-20 Thread Ricky Ho
is also useful at times, but not that big of a deal (you can always stop a SAX parse by throwing an exception from your handler, after all). - Dennis Ricky Ho wrote: Thanks Annie, but it is still unclear to me why Pull-Parser is faster when the application take control. Is it because ... 1) Less

Why Pull-Parser faster ? - Still NO answer

2003-02-20 Thread Ricky Ho
Just between SAX and XPP If SAX can be stopped anytime by throwing an exception, this means the application can control when to stop. And if XPP is not skipping whitespace ... Why XPP is faster than SAX ?? Best regards, Ricky Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm

Handler Chain Limitations

2003-02-10 Thread Ricky Ho
I definitely appreciate the simplicity and elegance of AXIS handler chain model. But on the other hand, I also observe some limitations when trying to build a more sophisticated intermediary processing model on it. I would like to get a sense if other people hitting the same issues in their

Re: AXIS App. Design/Architecture

2003-01-24 Thread Ricky Ho
Who is making the Manager.getInstance() call ? Is it simpler by just declaring the object class in application scope ? Rgds, Ricky At 08:25 AM 1/24/2003 -0700, Wes Devauld wrote: The approach you can take is to create your 'Manager' classes as singletons. The idea is to make the constructors

How to add a SOAP header into a SOAP envelope ??

2003-01-17 Thread Ricky Ho
I try to add a SOAP header into a SOAP envelope. 1) SOAPEnvelope soapEnv = ; 2) System.out.println(SoapEnv is ..\n + soapEnv); 3) SOAPHeaderElement hdrElement = new SOAPHeaderElement(new PrefixedQName(myNamespace,someHeader, prefix)); 4) soapEnv.addHeader(hdrElement); 5)

RE: Stateful Web Services

2003-01-15 Thread Ricky Ho
Most Java-based SOAP engine (over HTTP) implementation leverages the Servlet model which allows you to specify whether the service implementation object is request, or session, or application scope. But there is no industry standards around this, and there is no way to communicate this

Re: Stateful Web Services

2003-01-15 Thread Ricky Ho
You need to tell the client to store all cookies you receive, and resend it in your next request. Also, there is nothing in the WSDL telling the client that the state is maintained in the server side. The fact that session scope is configured is purely an implementation detail. Therefore, I

Re: Async web services, do they exist?

2002-12-02 Thread Ricky Ho
Although I assume the session id is locally unique (which is the same assumption of the HTTPSession), there is NO need for a globally unique session id across servers. Since the session id is only being used within a service container to identify a previous client session, it is OK to have

Re: Async web services, do they exist?

2002-12-01 Thread Ricky Ho
No ! I think the same mechanism works for the scenario you describe here as well by having the client pass an extra session id for each request it make. In other words, the client will use different session id for each different server it contacts. Rgds, Ricky At 10:23 AM 11/27/2002 -0800,

Re: Async web services, do they exist?

2002-11-27 Thread Ricky Ho
As you see in my sample code, I think the right way is NOT to spawn a thread at the calling client, but have the server immediately return after buffering the request. In fact, the thread is spawned at the server which take the request from the buffer to handle at a later time. At the same

Re: Async web services, do they exist?

2002-11-26 Thread Ricky Ho
I guess the behavior you observe is implementation dependent. The SOAP server you've used doesn't take advantage of the optimization opportunity where things can be execute in parallel. But you certainly can achieve what you want in the following ways ... public class AsyncService {

Re: Design Pattern

2002-11-13 Thread Ricky Ho
This sounds violate the heterogeneity principle of SOAP. And SOAP has never define language bindings, so you can only have such guarantee when using the same vendor's product. And of course, the same Java class need to be explicitly installed at both side. I think you should question why you

RE: Design Pattern

2002-11-13 Thread Ricky Ho
My previous comment is making in the parameter object (not the service object). As I mentioned before, SOAP is NOT DESIGN FOR transferring object behavior across the wire because this is infeasible in a heterogeneous programming language environment. Think about the scenario your Java client may

Re: XML and web services

2002-10-29 Thread Ricky Ho
Besides the performance overhead of converting the XML to a byte array and back, another big minus is the WSDL in this case has lost all the schema definition. In other words, the client and the server has to use another channel to communicate what does the detail of the request and response

Re: XML and web services

2002-10-29 Thread Ricky Ho
rather than manipulate the data type to another form. Rgds, Ricky At 05:08 PM 10/29/2002 -0500, [EMAIL PROTECTED] wrote: What I was thinking of was some sort of equivalent - not necesarily the DOM tree sa I've laid it out here. Ricky Ho [EMAIL PROTECTED] on 10/29/2002 05:06:49 PM Please

Re: Make parallel calls to diferents web services

2002-10-29 Thread Ricky Ho
If you are not the service provider and if the service itself is synchronous, then the only way is to spawn multiple threads, each making a synchronous invocation to a different web services. If you have control on the service, then use an async invocation model, by splitting the service

Re: Session handling

2002-10-24 Thread Ricky Ho
You are using different stub for different user. Do you put the each stub in the HttpSession ? How do you get a particular stub ? Rgds, Ricky At 08:21 PM 10/23/2002 -0500, Sandeep G Nijsure wrote: Hi all, Could someone plz. explain me the diff between session management using cookies and

Re: SOAP on JMS, a solution to which problem?

2002-10-15 Thread Ricky Ho
Comments and questions as embedded ... The second answer (for Axis again) is using HTTP for communications between the SOAP client and server, but having the SOAP messages be persisted in JMS inside the Web Service client before they are sent. It could also mean persisting the SOAP Messages

Re: SOAP on JMS, a solution to which problem?

2002-10-14 Thread Ricky Ho
An excellent summary !! Another BIG thing about the Web Service and JMS semantic mismatch is about the way they look at TRANSACTION (although there is not a widely-accepted one at this moment, so I'm talking about the model behind BTP and WS-Transaction). In JMS, it is NOT possible to send

Re: SOAP on JMS, a solution to which problem?

2002-10-14 Thread Ricky Ho
I agree that SOAP over JMS over the intranet (to Dave's definition) is a very practical approach today. although we still need to be aware of other conflicting approaches as well Without knowing the Sonic contribution, I', not sure if the message correlation id is an explicit field

Re: SOAP on JMS, a solution to which problem?

2002-10-14 Thread Ricky Ho
are you talking about here when you say SOAP over JMS ? I can undertand the reverse JMS over SOAP where the wire level binding is a SOAP message and travels over another protocol like HTTP (eg the Systinet product). /S Original Message: - From: Ricky Ho [EMAIL PROTECTED] Date: Mon

RE: Dynamic publishing

2002-10-01 Thread Ricky Ho
Your suggested approach is in fact very heavy-weight because of the life cycle management of millions of service instances behind each URL. Passing along the account id (or any business data for correlation) is a better way to handle this. I've observed a pure OO thought is in many times a

RE: Dynamic publishing

2002-10-01 Thread Ricky Ho
I guess what Tuan wants is NOT writing the dispatching code. The way you suggest is the same as asking the client to pass the account as a parameter to a generic service. It makes no difference whether you pass via the URL or in the SOAP request. Rgds, Ricky At 08:12 AM 10/1/2002 -0400,

Re: MessageContext.setMaintainSession

2002-10-01 Thread Ricky Ho
I think your SOAP service is depending on the cookie mechanism as well as the HTTP transport. And you also restricting the session variables to ONE client. But no doubt this approach is the easiest. I think a better approach is to have the message itself carry some data that maps into an

Re: MessageContext.setMaintainSession

2002-09-30 Thread Ricky Ho
How does the handler detect the incoming request belongs to some existing sessions ?? (is it assessible via MessageContext ?) And then throw a SOAP Fault if not. Rgds, Ricky At 10:29 AM 9/30/2002 +0200, Matthias Brunner wrote: On Monday 30 September 2002 10:23, Jan-Olav Eide wrote: When

RE: Dynamic publishing

2002-09-30 Thread Ricky Ho
SOAP is more an RPC mechanism than a remote Object mechanism. I doubt it would be scalable. From the lesson we learnt in EJB, if we shouldn't expose EntityBean, then expose a web service per object instance is even much worse. Rgds, Ricky At 10:48 AM 10/1/2002 +0700, Tuan Le Viet wrote:

Re: Axis generated SOAP question.

2002-09-17 Thread Ricky Ho
Use document/literal encoding At 12:56 PM 9/17/2002 -0700, you wrote: Hi, I noticed that the SOAP generated by Axis clients is different from what I expected. Whenever, the request/reply messages contain a complexType as a parameter then the generated SOAP seems to use multiRef and the