I'm talking about "org.apache.soap.providers" which are
rather "services'providers". I misunderstood your question ...

You just have to write a class who wraps the creation of a SOAP
call with the matching transport.

<---->
  Call call = new Call();
  call.setSOAPTransport (ss);
// SS is either a SOAPHTTPConnection, a SOAPSMTPConnection ....
<--->

This is the typical way to do this. I don't know the right one without
writing a line of code  (existing one ???).

SOAP is a transport independant protocol so that no
protocol definition is inserted in a SOAP envelope. You'll find transport
related things in a WSDL file (location attribut ...).

FJ

-----Message d'origine-----
De : Jeff MAURY [mailto:[EMAIL PROTECTED]]
Envoye : jeudi 31 mai 2001 16:47
A : Frederic Jeanne
Objet : Re: Plugin Transport providers




Frederic Jeanne wrote:

> The transport provider is defined in the Deployment descriptor of
> your SOAP service. At runtime, the provider class is dynamically loaded
> thanks to the Provider field of your targeted SOAP service.
> To change the targeted provider, create a new service URN.
> If you want a more sophisticated scheme, write your own provider, it's
quite
> intuitive.

Are you talking of a transport provider or a service provider. What I want
to do
is communicating in an open fashion with a SOAP server using a protocol
different from HTTP or SMTP without changing a line of code in either the
client
or the server.

Jeff


>
>
> Hope this can help you !
>
> FJ.
>
> -----Message d'origine-----
> De : Jeff MAURY [mailto:[EMAIL PROTECTED]]
> Envoye : jeudi 31 mai 2001 14:34
> A : [EMAIL PROTECTED]
> Objet : Plugin Transport providers
>
> Hello,
>
> SOAP Apache supports the notion the pluggable transport provider.
> However, the choice is given to the client that needs to specify the
> transport to use. Is there is a way to have a mecanism that could guess
> the right transport according to the form of the URL given, just as the
> URL class is doing for the stream handler ?
>
> Thanks
> Jeff
>
> --
> Jeff MAURY
> SCORT CTO
>
>  #####   #####  ####### ######  #######
> #     # #     # #     # #     #    #
> #       #       #     # #     #    #
>  #####  #       #     # ######     #
>       # #       #     # #   #      #
> #     # #     # #     # #    #     #
>  #####   #####  ####### #     #    #
>
>   Extending the net to the mainframe
>   ==================================

--
Jeff MAURY
SCORT CTO

 #####   #####  ####### ######  #######
#     # #     # #     # #     #    #
#       #       #     # #     #    #
 #####  #       #     # ######     #
      # #       #     # #   #      #
#     # #     # #     # #    #     #
 #####   #####  ####### #     #    #

  Extending the net to the mainframe
  ==================================



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

Reply via email to