users@jax-rpc.java.net

RE: Same WSDL different environment - help please

From: Anne Thomas Manes <anne_at_manes.net>
Date: Mon, 22 Mar 2004 20:02:18 -0500

You need to have three different <service> definitions -- one for each
endpoint. That equates to three different WSDL files. But there's no need
to define the <binding> multiple times. It's one <binding>, three
implementations.

At 10:37 PM 3/22/2004, you wrote:
>In my scenario everything is same excet the service location. If it
>
>development environment then ist http:\\localhost....
>if its production then it is http:\\abc.com\
>
>
>-----Original Message-----
>From: Anne Thomas Manes [mailto:anne_at_manes.net]
>Sent: Monday, March 22, 2004 12:57 PM
>To: users_at_jax-rpc.dev.java.net
>Subject: RE: Same WSDL different environment - help please
>
>The proper way to handle this situation is to use the <wsdl:import> function.
>
>WSDL is designed to support factoring and composition. A WSDL document may
>contain just an abstract services definition (types, messages, and
>portTypes), or it may define just bindings, or it may define a just a
>service implementation.
>
>Assuming that all three service instances support the same binding, then
>you want to define the binding on one WSDL document, and then import that
>binding definition into three separate service definitions.
>
>Here's an example of a WSDL service definition that imports a binding
>definition:
>
><wsdl:definitions name='Service1' targetNamespace='urn:sample/service1'
> xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/'
> xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
> xmlns:binding='urn:sample/binding' >
>
> <wsdl:import namespace='urn:sample/binding'
> location='http://my.org/sample/binding.wsdl' />
>
> <wsdl:service name='Service1'>
> <wsdl:port name='SampleSoapPort' binding='binding:SampleSoapBinding'>
> <soap:address location='http://my.org/sample/service1'/>
> </wsdl:port>
> </wsdl:service>
></wsdl:definitions>
>
>
>At 03:49 PM 3/22/2004, you wrote:
>
>> >You mean same WSDL description for services resident on 3 different
>> locations
>>
>>yes this is what I want
>>
>> >I suppose you could do it with 3 different binding (port)
>>
>>Does not three different bindings mean 3 WSDL ? If not can you please
>>tell me how to do.
>>
>>-----Original Message-----
>>From: Norberto Carnelli
>>[<mailto:norberto.carnelli_at_poste.it>mailto:norberto.carnelli_at_poste.it]
>>Sent: Monday, March 22, 2004 08:45 AM
>>To: users_at_jax-rpc.dev.java.net
>>Subject: Re: Same WSDL different environment - help please
>>
>>Jaswinder Kaur ha scritto:
>>
>> >
>> >
>> > If a same service need to run in three different environment like Test,
>> > Staging and production, How you can handle with same WSDL.
>>
>>You mean same WSDL description for services resident on 3 different
>>locations?
>>
>>I suppose you could do it with 3 different binding (port)
>>
>>
>>
>>--
>>Norberto Carnelli
>>Personal E-mail: <norberto.carnelli_at_poste.it>
>>Pc-Action E-mail: <norberto.carnelli_at_xenia.it>
>>GPG Key ID: 0xBD2BB3E2 (available on keyservers)
>>
>>"Il vero programmatore non si vede da quale linguaggio usa,
>>ma da come usa il linguaggio.", parlando tra colleghi di lavoro.
>>Poi venne il capo e disse: "Guaglio' muvimmece a fa stu progetto
>>senno' ve manno a casa a tutte quante!"
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>>
>>"Attention: This message is intended only for the individual to whom it
>>is addressed and may contain information that is confidential or
>>privileged. If you are not the intended recipient, or the employee or
>>person responsible for delivering it to the intended recipient, you are
>>hereby notified that any dissemination, distribution, copying or use is
>>strictly prohibited. If you have received this communication in error,
>>please notify the sender and destroy or delete this communication immediately."
>>==============================================================================
>
>~~~~~~~~~~~~~~~~~~
>Anne Thomas Manes
>VP & Research Director
>Burton Group
>--------------------------------------------------------------------- To
>unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net For additional
>commands, e-mail: users-help_at_jax-rpc.dev.java.net

~~~~~~~~~~~~~~~~~~
Anne Thomas Manes
VP & Research Director
Burton Group


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net