I think Gilbert is pointing out that the OSOA SCA WS binding spec says that the TNS of the WSDL services/bindings/ports is supposed to be based on the SCA names: Base System URI for HTTP / Component Name / Service Name
While the portType should indeed be generated from the Java interface name per JAX-WS, the SCA spec does define a different TNS for the services/bindings/ports. This conversation btw. Lou and Simon Nash brought up this same subject but that thread didn't seemed to be resolved: http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg31241.html Scott On Mon, Jun 9, 2008 at 1:23 PM, Raymond Feng <[EMAIL PROTECTED]> wrote: > OK. I don't think the service QName in the generated WSDL has anything to > do with the SCA service name. The WSDL service name is probably derived from > the java interface package name and class name (@interface of > <interface.java>). > > BTW, why do you care the WSDL service qname? Are you trying to find the > correct service for the WS client? > > Thanks, > Raymond > -------------------------------------------------- > From: "Gilbert Kwan" <[EMAIL PROTECTED]> > Sent: Monday, June 09, 2008 10:10 AM > > To: <tuscany-dev@ws.apache.org> > Subject: Re: Why the QName of service be changed? > > I defined following in my composite >> >> <component name="BComponent"> >> <implementation.java >> >> class="org.apache.tuscany.sca.vtest.wsbinding.nowsdl.soapversion.impl.BServiceImpl"/> >> <service name="BService"> >> <interface.java >> >> interface="org.apache.tuscany.sca.vtest.wsbinding.nowsdl.soapversion.BService"/> >> <binding.ws/> >> </service> >> </component> >> >> I used WSDLReader to read the generated WSDL, such as >> Definition wsdl = wsdlReader.readWSDL(uri + "?wsdl"); >> >> then got the services by wsdl.getServices(). For each service, I got >> qname by s.getQName(). >> >> It was returned >> { >> http://soapversion.nowsdl.wsbinding.vtest.sca.tuscany.apache.org/}BServiceService<http://soapversion.nowsdl.wsbinding.vtest.sca.tuscany.apache.org/%7DBServiceService> >> >> For old build, I got >> { >> http://soapversion.nowsdl.wsbinding.vtest.sca.tuscany.apache.org/}BService<http://soapversion.nowsdl.wsbinding.vtest.sca.tuscany.apache.org/%7DBService> >> >> Which is the proper qname? >> >> Hope the information may help to understand my question. >> >> Thanks >> Gilbert >> >> >> >> >> >> On Mon, Jun 9, 2008 at 1:01 PM, Raymond Feng <[EMAIL PROTECTED]> wrote: >> >>> Hi, >>> >>> I was probably confused. When you say "service", do you mean SCA service >>> or >>> the service element in the generated WSDL? My answer was for the later >>> case. >>> >>> Thanks, >>> Raymond >>> -------------------------------------------------- >>> From: "Gilbert Kwan" <[EMAIL PROTECTED]> >>> Sent: Monday, June 09, 2008 9:37 AM >>> To: <tuscany-dev@ws.apache.org> >>> Subject: Re: Why the QName of service be changed? >>> >>> Are you talking about the WS Binding Spec v1.0 line 273? >>>> Base System URI for HTTP / Component Name / Service Name >>>> >>>> If yes, >>>> { >>>> http://soapversion.nowsdl.wsbinding.vtest.sca.tuscany.apache.org/}BServiceService<http://soapversion.nowsdl.wsbinding.vtest.sca.tuscany.apache.org/%7DBServiceService> >>>> still did not fit >>>> If no, would you point me where the spec defines it? >>>> >>>> Thanks >>>> Gilbert >>>> >>>> >>>> On Mon, Jun 9, 2008 at 12:23 PM, Raymond Feng <[EMAIL PROTECTED]> >>>> wrote: >>>> >>>>> >>>>> The trailing / is following the JAXWS java package to XML namespace >>>>> mapping >>>>> rule. >>>>> >>>>> Thanks, >>>>> Raymond >>>>> -------------------------------------------------- >>>>> From: "Gilbert Kwan" <[EMAIL PROTECTED]> >>>>> Sent: Monday, June 09, 2008 9:06 AM >>>>> To: <tuscany-dev@ws.apache.org> >>>>> Subject: Why the QName of service be changed? >>>>> >>>>> When I used 659139 build, my service qname was >>>>>> >>>>>> {http://soapversion.nowsdl.wsbinding.vtest.sca.tuscany.apache.org >>>>>> }BService >>>>>> When I used recent build 665707, my service qname was changed to >>>>>> >>>>>> >>>>>> { >>>>>> http://soapversion.nowsdl.wsbinding.vtest.sca.tuscany.apache.org/}BServiceService<http://soapversion.nowsdl.wsbinding.vtest.sca.tuscany.apache.org/%7DBServiceService> >>>>>> >>>>>> Why? >>>>>> >>>>>> Gilbert >>>>>> >>>>> >>>>> >>>>> >>>