[jboss-user] [JBossWS] - Re: web service and asynchronous processing

vitor_b do-not-reply at jboss.com
Mon Mar 5 12:48:27 EST 2007


Hello

Thank you for your reply, but unfortunately there are some things i don't understand. Could you clarify these for me please?

We have Message Addressing Properties:

<wsa:To>xs:anyURI</wsa:To> ?
  | <wsa:From>wsa:EndpointReferenceType</wsa:From> ?
  | <wsa:ReplyTo>wsa:EndpointReferenceType</wsa:ReplyTo> ?
  | <wsa:FaultTo>wsa:EndpointReferenceType</wsa:FaultTo> ?
  | <wsa:Action>xs:anyURI</wsa:Action>
  | <wsa:MessageID>xs:anyURI</wsa:MessageID> ?
  | <wsa:RelatesTo RelationshipType="xs:anyURI"?>xs:anyURI</wsa:RelatesTo> *
  | <wsa:ReferenceParameters>xs:any*</wsa:ReferenceParameters> ?

where EndpointReferenceType means:

<wsa:EndpointReference>
  |     <wsa:Address>xs:anyURI</wsa:Address>
  |     <wsa:ReferenceParameters>xs:any*</wsa:ReferenceParameters> ?
  |     <wsa:Metadata>xs:any*</wsa:Metadata>?
  | </wsa:EndpointReference>

That is ok, but there is on the page 
http://jbws.dyndns.org/mediawiki/index.php/JAX-WS_User_Guide#WS-Addressing 
something like this:

<handler-chains xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee javaee_web_services_1_2.xsd">
  | 
  |   <handler-chain>
  |     <protocol-bindings>##SOAP11_HTTP</protocol-bindings>
  |     <handler>
  |       <handler-name>Application Server Handler</handler-name>
  |       <handler-class>org.jboss.test.ws.jaxws.samples.wsaddressing.ServerHandler</handler-class>
  |     </handler>
  |   </handler-chain>
  | 
  | </handler-chains>

At this point i have some questions:

1. in which file should i put handler-chains element?

2. What does element handler-class contain? What is this class? Does this class is able to read SOAPMessage? I think i should i think write this class myself, but what is the contract for writing this class? What interface should it implement? SOAPHandler? Do i have to implement logic which will take info from soap message header?

3. I think these properties are handled automatically, this means webservice will send reply to adderss taken from element: wsa:ReplyTo, and i don't need to do anything in order to get this done. Am i right?

4. If 3 is true, that means that message addressing properties don't support property i need. Client should have entry point which will accept soap message sent by server after message from queue is processed. But this entry point will not be any identified by message addressing properties received in request

.................request......................................RequestObject
Client -------------------------> WebService ---------------
Client <------------------------- WebService ..................|
............ConfirmationObject........................................v
............................................................................Queue
...................................................................................|
...................SOAPMessage.........................................|
Client (EP) <-------------------   SessionBean <-----------
Client (EP) -------------------->  SessionBean

. (dot) - only used as a spaces, to format this message

EP - this should be a client entry point, where all results after processing objects from queue will be sent. There won't be address of this EP in the request.

Any help will be appreciated. 
cheers

vitor_b





View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025145#4025145

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025145



More information about the jboss-user mailing list