cocoonSupport/CocoonNetwork.java
CocoonNetwork.java is an HTTP processor.
By default, CocoonNetwork.java expects to find an XML element named WebServiceHeader under the root element like this:
<WebServiceHeader>
<Url/> |
Web service URL |
mandatory |
<TimeToComplete/> | After TimeToComplete milliseconds the request is cancelled |
optional (default 2000) |
</WebServiceHeader>
You can change its behavior by overiding its processQuery method.
By default, CocoonNetwork.java returns a message:
<Reply>
<Request>
Message received by CocoonNetwork.java
<Request/>
<Response>
Message returned by the Web service or Error message
<Response/>
<Reply/>
You can change its behavior by overiding its processResponse method.
cocoonSupport/CocoonSOAP.java
CocoonSOAP.java is a SOAP processor.
By default, CocoonSOAP.java expects to find an XML element named WebServiceHeader under the root element like this:
<WebServiceHeader>
<Url/> | Web service URL | mandatory |
<TargetObjectURI/> | Name the SOAP service is registered with | mandatory |
<Method/> | Name of the method to invoke | mandatory |
<TimeToComplete/> | After TimeToComplete milliseconds the request is cancelled |
optional (default 2000) |
</WebServiceHeader>
You can change its behavior by overiding its processQuery method.
By default, CocoonSOAP.java returns a message:
<Reply>
<Request>
Message received by CocoonNetwork.java
<Request/>
<Response>
Message returned by the Web service or Error message
<Response/>
<Reply/>
You can change its behavior by overiding its processResponse method.
Current (Version 1.0.4) CocoonSOAP.java is only able to call methods with a signature
Element myMethod(Element) where Element is a DOM Element.
Though this model is the most concise and extensible one, it doesn't use very well SOAP features.
You can implement a SOAP processor using CocoonSOAP.java as a template.
We would be happy to make it downloadable on this site.