Changes for page Web Services-Controlling WSDL Service Location
Last modified by Pascal Robert on 2007/09/03 19:24
From version 3.1
edited by Pascal Robert
on 2007/09/03 19:24
on 2007/09/03 19:24
Change comment:
There is no comment for this version
To version 5.1
edited by Pascal Robert
on 2007/09/03 19:24
on 2007/09/03 19:24
Change comment:
Migrated to Confluence 5.3
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Parent
-
... ... @@ -1,0 +1,1 @@ 1 +Web Services - Content
-
... ... @@ -1,14 +1,12 @@ 1 -This documentation was written by Andrew Lindesay ([[http://www.lindesay.co.nz]]) in 2006 as part of supported code in the LEWOStuff framework, but this material has been transcribed here. 1 +This documentation was written by Andrew Lindesay ([[http:~~/~~/www.lindesay.co.nz>>url:http://www.lindesay.co.nz||shape="rect"]]) in 2006 as part of supported code in the LEWOStuff framework, but this material has been transcribed here. It was written around the time of WebObjects 5.2 and 5.3 on the 1.4 JVM. 2 2 3 -AXIS provides a number of handlers for ultimately executing the WS. 3 +AXIS provides a number of handlers for ultimately executing the WS. This generally works in the WebObjects environment out of the box. However, in the case of a servlet deployment, the URLs are manipulated by the servlet container so they look something like this. 4 4 5 5 {{panel}} 6 - 7 7 ...ects/FOO.woa/ws/FooService;jsessionid=abc.i1?wsdl 8 - 9 9 {{/panel}} 10 10 11 -If a client starts a session on a WS invocation then you want all subsequent requests to return to this same servlet container (Here we assume a redundant deployment where there are a number of servlet containers.) where the session resides. 9 +If a client starts a session on a WS invocation then you want all subsequent requests to return to this same servlet container (Here we assume a redundant deployment where there are a number of servlet containers.) where the session resides. However the servlet-container's HTTP adaptor typically only knows this by looking at the modified URL. Unfortunately, the default WSDL generated by AXIS would have a section like this. 12 12 13 13 {{code}} 14 14 ... ... @@ -22,7 +22,7 @@ 22 22 23 23 {{/code}} 24 24 25 -A WSDL like this does not contain the modified URL caused by the context having a session in the location for the service. 23 +A WSDL like this does not contain the modified URL caused by the context having a session in the location for the service. The example handler //LEWOWebServicesWSDLLocationHandler// below which is supplied in LEWOStuff will correct the location supplied in the WSDL to contain the session information. To install this handler for use in WebObjects, locate the //server.wsdd// file within your project and modify the following section so that it appears as follows. 26 26 27 27 {{code}} 28 28