mabroukONnet wrote: > > 1.1- If it's so, how MetadatExchangeClient.getWSDL() method can work? >
Ok, I looked into it by building wsn-consumer and droping it into tomcat. Then made a small Java app that creates a MetadataExchangeClient on the epr and tries to retrieve the WSDL. As expected this throws an error [ID = 'ActionNotSupported'] The resource at 'consumer' does not expose an operation with the WS-Action 'http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata' This is because the port does not define the method, so you can add the following lines to the wsn-consumer.wsdl file (in the appropriate parts) and you will be able to get the Metadata xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" - in the schema definition <xsd:import namespace="http://schemas.xmlsoap.org/ws/2004/09/mex" schemaLocation="WS-MetadataExchange-2004_09.xsd"/> Above in the Types Definitions <wsdl:message name="GetMetadataMsg"> <wsdl:part name="GetMetadataMsg" element="wsx:GetMetadata" /> </wsdl:message> <wsdl:message name="GetMetadataResponseMsg"> <wsdl:part name="GetMetadataResponseMsg" element="wsx:Metadata" /> </wsdl:message> Above in the message section <wsdl:operation name="GetMetadata"> <wsdl:input wsa:Action="http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadata" name="GetMetadataMsg" message="wsntw:GetMetadataMsg"/> <wsdl:output wsa:Action="http://schemas.xmlsoap.org/ws/2004/09/mex/GetMetadataResponse" name="GetMetadataResponseMsg" message="wsntw:GetMetadataResponseMsg"/> </wsdl:operation> The operation should go in the <wsdl:portType name="NotificationConsumer"> tag. -- View this message in context: http://www.nabble.com/wsn-consumer-tf3920425.html#a11121527 Sent from the Muse User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
