axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aleksander Slominski <>
Subject Re: Remote references - future architectural idea
Date Tue, 11 Dec 2001 20:26:20 GMT

here is how remote reference to service described in [1] could look in XSOAP:

<Port id='id1' xsi:type='ns1:port'
          <name xsi:type='xsd:string'>InteropTestPort</name>
          <portType id='id4' xsi:type='ns:port-type'>
             <uri xsi:type='xsd:string'></uri>
             <name xsi:type='xsd:string'>InteropTestPortType</name>
          <endpoint id='id2' xsi:type='ns:endpoint'>

            <binding id='id3' xsi:type='ns:binding'>
              <name xsi:type='xsd:string'></name>

Name - is pretty much like valueof WSDL service name attribute.

PortType -of course there must be registered A mapping for java interface to
port type (, InteropTestPortType) in XSOAP
but we do not put as part of remote resefrence.

Endpoint - conatins actual location of service - how is it done in WASP?
in your examplke there is only SOAP action so if i need to use
service instance that was dynamically created and available and some URL
how i would do it? would i need to regenerate WSDL file that us pointed
by  <wsdl> element?

Binding - in XSOAP we use binding element to keep SOAP action and in priniciple
binding can be subclassed to any new kind of binding however we
have never explored it as it was becoming more obvious for us that what
we really want as remote refernece is more more looking like WSDL,
for example this remote refernce could be very easily expressed
using valid and _small_ WSDL document:

<?xml version="1.0"?>
<definitions name="SOAP Interop Testing Service Instance"
targetNamespace="http://myhost/GLOBALLY_UNIQUE-ID_OF SERVICE_INSTANCE"
 <service name="SOAPInterop">
  <documentation>Interop Services</documentation>
  <port name="InteropTestPort" binding="interop:InteropTestSoapBinding">
   <soap:address location=""/>

this should be enough to describe instance of remote service and effectively
represent remote reference without need to use anything but WSDL.

and we could even add Java-PortType extension element to WSDL
to express what is WASP doing in portTypeMappings.

let me know what you think about it.




Jacek Kopecky wrote:

>  Aleks,
>  I agree with your conclusion about showing the few different
> approaches on a concrete example and going on from there. 8-)
>  Lemme start:
>  Let's take the Apache SOAP Interop WSDL at [1].
>  Our remote reference would look like the following. I've
> excluded the namespace declarations as I think they are not
> really needed in this exercise and they should be obvious. The
> only non-obvious (IMHO) namespace prefix is declared.
>  <x xsi:type="idoox:serviceReference"
>      xmlns:apache="">
>    <service xsi:type="xsd:qname">
>      apache:SOAPInterop
>    </service>
>    <wsdl xsi:type="xsd:anyURI">
>    </wsdl>
>    <portTypeMappings xsi:type="idoox:ArrayOfInterfaceMappings"
>      soap-enc:arrayType="idoox:interfaceMapping[1]">
>      <item>
>        <portType xsi:type="xsd:qname">
>          apache:InteropTestPortType
>        </portType>
>        <className>
>          demo.interop.InteropServiceInterface
>        </className>
>      </item>
>    </portTypeMappings>
>  </x>
>  The portTypeMappings element need not be there, as I said, it's
> just for zero-config best-case scenario.
>  An interesting activity again... 8-)
>                    Jacek Kopecky
>                    Senior Architect, Systinet (formerly Idoox)
> [1]

View raw message