How to removing instance number from target namespace
How to removing instance number from target namespace
- Subject: How to removing instance number from target namespace
- From: Corin Lawson <email@hidden>
- Date: Wed, 8 Mar 2006 13:07:10 +1100
Hi List,
How does one (or is it possible) to change the target namespace of
the definitions (root) element of a wsdl doc of a web service
registered by WO 5.2.4? I should like to remove the instance number,
at least.
To be more specific I have this in the wsdl doc that is located at
http://host-name/cgi-bin/WebObjects/app-name.woa/ws/service-name?wsdl:
<wsdl:definitions targetNamespace="http://host-name/cgi-bin/
WebObjects/app-name.woa/5/ws/service-name">
Where the instance number, 5 in this case, changes upon each request.
This seems to me to be bad practice, and appears to be generating
this error:
com.webobjects.foundation.NSForwardException
[javax.xml.rpc.ServiceException] Error processing WSDL document:
javax.xml.rpc.ServiceException: Cannot find service: {http://host-
name/cgi-bin/WebObjects/app-name.woa/5/ws/service-name} service-name:
Unable to create axis service with url http://host-name/cgi-bin/
WebObjects/app-name.woa/ws/service-name?wsdl and QName {http://host-
name/cgi-bin/WebObjects/app-name.woa/5/ws/service-name} service-name:
Exception trying to invoke operation: operation-name
What I interrupt this message to be is that WO has parsed the wsdl
doc received instance 5 and parsed it again (for some unknown reason)
expecting the same wsdl doc but instead received the wsdl doc for a
different instance, say 1. (BTW I have since discovered the unknown
reason and fixed... I was not maintaining the session appropriately.)
Cheers,
Corin.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden