Hi,

Andrew Lindsay wrote:
I am using session-ed web services in a servlet deploy. If the endpoint I want including the session/instance is as follows...

http://foo.co.nz/FOO/WebObjects/FOO.woa/ws/FooService; jsessionid=abc.i1?wsdl

...then the resultant WSDL returned actually contains the following endpoint...

[SNIP]
  <wsdl:service name="FooService">
    <wsdl:port name="FooService" binding="impl:FooService SoapBinding">
<wsdlsoap:address location="http://foo.co.nz/FOO/WebObjects/FOO.woa/ws/FooService"/>
    </wsdl:port>
  </wsdl:service>
[SNIP]

Note the lack of a session/instance ("abc.i1") and because of this, the adaptor has no idea which servlet instance to send it to and the whole thing fails. Has anybody found a way of getting the 'jsessionid' into the 'location' of the WSDL?


You can force namespaces definition in rules (see reference below). I've never did that kind of thing before, but maybe you could define dynamically it a new rule set, using D2WModel.setDefaultModel(D2WModel)? You can even create your own D2WModel subclass that can build the "serviceLocationURL" / "WSDLDefinitionName" values dynamically?


Defining custom WebServices namespace and definitions:
http://en.wikibooks.org/wiki/Programming:WebObjects/Web_Services/ Problems#DirectToWebService_can.27t_return_a_WSDL_with_custom_namespace_ and_definitions_name_in_it_.28WO_5.2.x.29

--
Francis Labrie
Saint-Bruno-de-Montarville, Québec, Canada

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to