mabroukONnet wrote:
>
> hi all,
> I have two questions:
>
> 1- i didn't find a wsdl description for the consumer resource in
> wsn-consumer example (however there is the capability class). So i want to
> ask:
> can i create simple resource code without creating wsdl description for
> that resource (only including standard wsdl and xsd files) and off course
> without passing via wsdl2java (by coding manually) ?
> 1.1- If it's so, how MetadatExchangeClient.getWSDL() method can work?
>
>
Yes, you can. What wsdl2java does (or at least part of what it does) is that
it modifies your wsdl and copies parts of the other wsdls to your main wsdl
that it deploys. For a simple consumer that only receives some notifications
the WS-BaseNotification-1_3.wsdl is the wsdl that is being used as the
"main" wsdl for the application. If you look at muse.xml in the wsn-consumer
example you will see that it maps the resource to this wsdl
> <resource-type use-router-persistence="true">
> <context-path>consumer</context-path>
> <wsdl>
> <wsdl-file>wsdl/WS-BaseNotification-1_3.wsdl</wsdl-file>
>
> <wsdl-port-type>wsntw:NotificationConsumer</wsdl-port-type>
> </wsdl>
>
For question 1.1 I am not 100% sure, and I'll need to look into it. Muse.xml
defines a capability for MetadataExchange for the client, but I was sure
that anything in Muse.xml must also be expressed in the wsdl file. So just
looking at it, I'd say the wsn-consumer should not be able to send Metadata
--
View this message in context:
http://www.nabble.com/wsn-consumer-tf3920425.html#a11120006
Sent from the Muse User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]