JaxWS-RI supports an expanded form of QName :

<endpoint service="{http://ws.index.rnm.basistech.com}NameIndex";
               port="{http://ws.index.rnm.basistech.com}NameIndexPort2"/>

javax.xml.namespace.QName.toString() produces the expanded form too and it makes the above form easy to use. This pattern can be also enforced at a schema validation time.

Now that CXF already defines a serviceName be of QName type, not sure if it 
would be feasible
to introduce an alternative attribute like @service and @port. If it were possible then the configuration would get simplified quite a bit IMHO.
Existing @serviceName and @portName could be deprecated and supported for a 
while too...

Cheers, Sergey

----- Original Message ----- From: "Daniel Kulp" <[EMAIL PROTECTED]>
To: <[email protected]>
Cc: "Benson Margulies" <[EMAIL PROTECTED]>
Sent: Wednesday, October 10, 2007 11:01 PM
Subject: Re: spring and qnames



It should be something like:

<jaxws:client  serviceName="ns1:NameIndex"
  xmlns:ns1="http://ws.index.rnm.basistech.com";
  address="${serviceUrl}/NameIndex"
  serviceClass="com.basistech.rnm.index.ws.NameIndexService">
  <jaxws:dataBinding><bean ref="....."/></jaxws:dataBinding/>
</jaxws:client>


Dan


On Wednesday 10 October 2007, Benson Margulies wrote:
Is there a way to express this with jaxws:? Whether or not, is there
an editor out there for QNames that reduces the noise level of this?



<bean id="rni-proxyFactory"
class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean" >

    <property name="serviceClass"
value="com.basistech.rnm.index.ws.NameIndexService"/>

    <property name="serviceName">

      <bean class="javax.xml.namespace.QName">

       <constructor-arg value="http://ws.index.rnm.basistech.com"/>

       <constructor-arg value="NameIndex"/>

      </bean>

    </property>

    <property name="address" value="${serviceUrl}/NameIndex"/>

    <property name="dataBinding" ref="aegis-databinding"/>

  </bean>



--
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
[EMAIL PROTECTED]
http://www.dankulp.com/blog

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

Reply via email to