Hi,

We have provided an api that people wishing to interface with our system
must code to. This ensures that any users will provide the same objects and
the same service name that we will call.

What we would like to do is to create a set of generic stubs that we can use
to make a call to any provider, by looking up the end point in the database
for a particular system. So far I have in part achieved this by calling
getService() and passing in an endpoint URL.

When I look at the code generated with wsdl2java it is not completely
generic though, I have overridden the package structure to look like
'stub.generic.ltc' but the namespaces in the generated classes still map to
the packages defined by the provider (I guess this is due to the WSDL
namespaces).

Has anybody done this sort of thing before? Is it possible? Am I approaching
this in the right way if it is possible? And should I be editing the
generated code to remove any namespaces?

Ideally the situation we would like to end up with is one set of stubs
generated and placed into a jar file, with the endpoint switched at runtime
to point to a particular provider, we would only ever use one wsdl to
generate the stubs and all new providers that would like us to call this
service would only need to provide us with an endpoint.

Thanks,

Paul Ockleford


**********************************************************************
This message  may  contain  confidential  and  privileged information.
If you are not  the intended  recipient please  accept our  apologies.
Please do not disclose, copy or distribute  information in this e-mail
or take any  action in reliance on its  contents: to do so is strictly
prohibited and may be unlawful. Please inform us that this message has
gone  astray  before  deleting it.  Thank  you for  your co-operation.

NHSmail is used daily by over 100,000 staff in the NHS. Over a million
messages  are sent every day by the system.  To find  out why more and
more NHS personnel are  switching to  this NHS  Connecting  for Health
system please visit www.connectingforhealth.nhs.uk/nhsmail
**********************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to