The problem was the namespace is not tns ( local namespace ) for all instances for Notify, i changed that and everything went ok, now im developing the logic of the Broker. Thanks !
alfredo.s.g_uam_spain wrote: > > I think there is a mistake in my specification of Notify message, i think > there is some problem connecting the different parts. > Can you find the problem? > > <wsdl:message name="Notify"> > <wsdl:part name="Notify" element="wsnt:Notify"/> <!--brobably here is > wsntw but doesn't help--> > </wsdl:message> > > <wsdl:operation name="Notify"> > > <wsdl:input > wsa:Action="http://docs.oasis-open.org/wsn/bw-2/NotificationConsumer/NotifyRequest" > message="wsntw:Notify" /> > > </wsdl:operation> > > <wsdl:operation name="Notify"> > <wsdl-soap:operation soapAction="Notify"> > <wsdl:input message="wsntw:Notify"> > <wsdl-soap:body > use="encoded" > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> > > </wsdl:input> > </wsdl-soap:operation> > </wsdl:operation> > > > And my types definition are: > > <wsdl:types> > > <xsd:schema> > > <xsd:import > > namespace="http://docs.oasis-open.org/wsn/br-2" > > > schemaLocation="http://docs.oasis-open.org/wsn/br-2.xsd"/> > > </xsd:schema> > <xsd:schema > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > targetNamespace="http://docs.oasis-open.org/wsrf/rw-2" > elementFormDefault="qualified" > attributeFormDefault="unqualified"> > > <xsd:import > namespace="http://docs.oasis-open.org/wsrf/r-2" > > schemaLocation="http://docs.oasis-open.org/wsrf/r-2.xsd" > /> > > </xsd:schema> > <xsd:schema > > elementFormDefault="qualified" > > targetNamespace="http://www.w3.org/2005/08/addressing"> > > <xsd:include > schemaLocation="WS-Addressing-2005_08.xsd"/> > > </xsd:schema> > > <xsd:schema > > elementFormDefault="qualified" > > targetNamespace="http://docs.oasis-open.org/wsrf/rl-2"> > > <xsd:include > schemaLocation="WS-ResourceLifetime-1_2.xsd" /> > > </xsd:schema> > > <xsd:schema > > elementFormDefault="qualified" > > targetNamespace="http://docs.oasis-open.org/wsrf/rp-2"> > > <xsd:include > schemaLocation="WS-ResourceProperties-1_2.xsd" /> > > </xsd:schema> > > <xsd:schema > > elementFormDefault="qualified" > > targetNamespace="http://docs.oasis-open.org/wsrf/r-2"> > > <xsd:include schemaLocation="WS-Resource-1_2.xsd" /> > > </xsd:schema> > > <xsd:schema > > elementFormDefault="qualified" > > > targetNamespace="http://docs.oasis-open.org/wsdm/muws1-2.xsd"> > > <xsd:include schemaLocation="WSDM-MUWS-Part1-1_1.xsd" /> > > </xsd:schema> > > <xsd:schema > > elementFormDefault="qualified" > > > targetNamespace="http://docs.oasis-open.org/wsdm/muws2-2.xsd"> > > <xsd:include schemaLocation="WSDM-MUWS-Part2-1_1.xsd" /> > > </xsd:schema> > > <xsd:schema > > elementFormDefault="qualified" > > targetNamespace="http://docs.oasis-open.org/wsn/b-2"> > > <xsd:include > schemaLocation="WS-BaseNotification-1_3.xsd" /> > > </xsd:schema> > > <xsd:schema > > elementFormDefault="qualified" > > targetNamespace="http://docs.oasis-open.org/wsn/t-1"> > > <xsd:include schemaLocation="WS-Topics-1_3.xsd" /> > > </xsd:schema> > <xsd:schema> > <xsd:import > namespace="http://docs.oasis-open.org/wsn/b-2" > > schemaLocation="http://docs.oasis-open.org/wsn/b-2.xsd"/> > </xsd:schema> > > </wsdl:types> > > > > lenni.madsen wrote: >> >> I think this email from earlier this year might help out >> http://marc.info/?l=muse-user&m=117525841316735&w=2 >> >> As to what is Document Literal, this resource might help: >> http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/ >> >> Sincerely >> >> Lenni >> -----Original Message----- >> From: alfredo.s.g_uam_spain [mailto:[EMAIL PROTECTED] >> Sent: 23 October 2007 15:37 >> To: [email protected] >> Subject: Error in wsdl parsing wsdl2java.sh >> >> >> I got this error during code generation, but i think all is well >> defined.. >> what is wrong?? >> >> >> An exception was caught: [ID = 'NotDocLiteral'] The WSDL operation >> 'Notify' >> is not doc-literal because it defines a message with more than one >> message >> part for its SOAP Body. The SOAP Body of a doc-literal message should >> contain one root request element (with the operation name) with zero or >> more >> child elements (the parameters). >> >> What does not doc-literal mean??? >> >> in this wsdl: >> >> >> >> >> <wsdl:definitions name="WS-BrokeredNotification" >> >> targetNamespace="http://ws.apache.org/muse/test/wsrf" >> xmlns:tns="http://ws.apache.org/muse/test/wsrf" >> >> xmlns="http://schemas.xmlsoap.org/wsdl/" >> >> xmlns:wsa="http://www.w3.org/2005/08/addressing" >> >> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" >> >> xmlns:wsdl-soap="http://schemas.xmlsoap.org/wsdl/soap/" >> >> xmlns:xsd="http://www.w3.org/2001/XMLSchema" >> >> xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" >> >> xmlns:wsrf-r="http://docs.oasis-open.org/wsrf/r-2" >> >> xmlns:wsrf-rl="http://docs.oasis-open.org/wsrf/rl-2" >> >> xmlns:wsrf-bf="http://docs.oasis-open.org/wsrf/bf-2" >> >> xmlns:wsrf-rp="http://docs.oasis-open.org/wsrf/rp-2" >> >> xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" >> >> xmlns:wsntw="http://docs.oasis-open.org/wsn/bw-2" >> >> xmlns:wst="http://docs.oasis-open.org/wsn/t-1" >> >> xmlns:wsrmd="http://docs.oasis-open.org/wsrf/rmd-1" >> >> xmlns:muws1="http://docs.oasis-open.org/wsdm/muws1-2.xsd" >> >> xmlns:muws2="http://docs.oasis-open.org/wsdm/muws2-2.xsd" >> >> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> >> xmlns:wsn-br="http://docs.oasis-open.org/wsn/br-2" >> >> xmlns:wsn-brw="http://docs.oasis-open.org/wsn/brw-2" >> >> xmlns:wsn-b="http://docs.oasis-open.org/wsn/b-2" >> >> xmlns:wsn-bw="http://docs.oasis-open.org/wsn/bw-2" >> >> xmlns:wsrf-rw="http://docs.oasis-open.org/wsrf/rw-2" > >> >> >> >> <wsdl:types> >> >> <xsd:schema >> >> elementFormDefault="qualified" >> >> >> targetNamespace="http://www.w3.org/2005/08/addressing"> >> >> <xsd:include >> schemaLocation="WS-Addressing-2005_08.xsd"/> >> >> </xsd:schema> >> >> <xsd:schema >> >> elementFormDefault="qualified" >> >> >> targetNamespace="http://schemas.xmlsoap.org/ws/2004/09/mex"> >> >> <xsd:include >> schemaLocation="WS-MetadataExchange-2004_09.xsd"/> >> >> </xsd:schema> >> >> <xsd:schema >> >> elementFormDefault="qualified" >> >> >> targetNamespace="http://docs.oasis-open.org/wsrf/rl-2"> >> >> <xsd:include >> schemaLocation="WS-ResourceLifetime-1_2.xsd" /> >> >> </xsd:schema> >> >> <xsd:schema >> >> elementFormDefault="qualified" >> >> >> targetNamespace="http://docs.oasis-open.org/wsrf/rp-2"> >> >> <xsd:include >> schemaLocation="WS-ResourceProperties-1_2.xsd" /> >> >> </xsd:schema> >> >> <xsd:schema >> >> elementFormDefault="qualified" >> >> >> targetNamespace="http://docs.oasis-open.org/wsrf/r-2"> >> >> <xsd:include >> schemaLocation="WS-Resource-1_2.xsd" /> >> >> </xsd:schema> >> >> <xsd:schema >> >> elementFormDefault="qualified" >> >> >> targetNamespace="http://docs.oasis-open.org/wsrf/rmd-1"> >> >> <xsd:include >> schemaLocation="WS-ResourceMetadataDescriptor-CD-01.xsd" /> >> >> </xsd:schema> >> >> <xsd:schema >> >> elementFormDefault="qualified" >> >> >> targetNamespace="http://docs.oasis-open.org/wsdm/muws1-2.xsd"> >> >> <xsd:include >> schemaLocation="WSDM-MUWS-Part1-1_1.xsd" /> >> >> </xsd:schema> >> >> <xsd:schema >> >> elementFormDefault="qualified" >> >> >> targetNamespace="http://docs.oasis-open.org/wsdm/muws2-2.xsd"> >> >> <xsd:include >> schemaLocation="WSDM-MUWS-Part2-1_1.xsd" /> >> >> </xsd:schema> >> >> <xsd:schema >> >> elementFormDefault="qualified" >> >> >> targetNamespace="http://docs.oasis-open.org/wsn/b-2"> >> >> <xsd:include >> schemaLocation="WS-BaseNotification-1_3.xsd" /> >> >> </xsd:schema> >> >> <xsd:schema >> >> elementFormDefault="qualified" >> >> >> targetNamespace="http://docs.oasis-open.org/wsn/t-1"> >> >> <xsd:include schemaLocation="WS-Topics-1_3.xsd" >> /> >> >> </xsd:schema> >> </wsdl:types> >> >> <!-- ========================== Imports =========================== --> >> >> <wsdl:import namespace="http://docs.oasis-open.org/wsrf/rw-2" >> >> location="http://docs.oasis-open.org/wsrf/rw-2.wsdl"/> >> >> >> >> <wsdl:import namespace="http://docs.oasis-open.org/wsn/bw-2" >> >> location="http://docs.oasis-open.org/wsn/bw-2.wsdl"/> >> >> >> >> <!-- ===================== Types Definitions ====================== --> >> >> <wsdl:types> >> >> <xsd:schema> >> >> <xsd:import >> >> namespace="http://docs.oasis-open.org/wsn/br-2" >> >> schemaLocation="http://docs.oasis-open.org/wsn/br-2.xsd"/> >> >> </xsd:schema> >> >> </wsdl:types> >> >> >> >> <!-- ========== NotificationBroker::RegisterPublisher ============= >> >> RegisterPublisher(PublisherReference, TopicExpression* , >> >> [Demand], [InitialTerminationTime]) >> >> returns: WS-Resource qualified EPR to a PublisherRegistration --> >> >> <wsdl:message name="RegisterPublisherRequest"> >> >> <wsdl:part name="RegisterPublisherRequest" >> >> element="wsn-br:RegisterPublisher"/> >> >> </wsdl:message> >> >> >> >> <wsdl:message name="RegisterPublisherResponse"> >> >> <wsdl:part name="RegisterPublisherResponse" >> >> element="wsn-br:RegisterPublisherResponse"/> >> >> </wsdl:message> >> >> >> >> <wsdl:message name="PublisherRegistrationRejectedFault"> >> >> <wsdl:part name="PublisherRegistrationRejectedFault" >> >> element="wsn-br:PublisherRegistrationRejectedFault"/> >> >> </wsdl:message> >> >> >> >> <wsdl:message name="PublisherRegistrationFailedFault"> >> >> <wsdl:part name="PublisherRegistrationFailedFault" >> >> element="wsn-br:PublisherRegistrationFailedFault"/> >> >> </wsdl:message> >> >> >> >> <wsdl:message name="DestroyRegistrationRequest"> >> >> <wsdl:part name="DestroyRegistrationRequest" >> >> element="wsn-br:DestroyRegistration"/> >> >> </wsdl:message> >> >> >> >> <wsdl:message name="DestroyRegistrationResponse"> >> >> <wsdl:part name="DestroyRegistrationResponse" >> >> element="wsn-br:DestroyRegistrationResponse"/> >> >> </wsdl:message> >> >> >> >> <wsdl:message name="ResourceNotDestroyedFault"> >> >> <wsdl:part name="ResourceNotDestroyedFault" >> >> element="wsn-br:ResourceNotDestroyedFault"/> >> >> </wsdl:message> >> >> >> >> <!-- =================== PortType Definitions ===================== --> >> >> >> <!-- ========== NotificationBroker PortType Definition ============ --> >> >> <wsdl:portType name="NotificationBroker"> >> >> <!-- ============= extends NotificationConsumer ============= --> >> >> <wsdl:operation name="Notify"> >> >> <wsdl:input message="wsn-bw:Notify" /> >> >> </wsdl:operation> >> >> >> >> <!-- ============= extends NotificationProducer ============= --> >> >> <wsdl:operation name="Subscribe"> >> >> <wsdl:input message="wsn-bw:SubscribeRequest" /> >> >> <wsdl:output message="wsn-bw:SubscribeResponse" /> >> >> <wsdl:fault name="ResourceUnknownFault" >> >> message="wsrf-rw:ResourceUnknownFault" /> >> >> <wsdl:fault name="InvalidFilterFault" >> >> message="wsn-bw:InvalidFilterFault"/> >> >> <wsdl:fault name="TopicExpressionDialectUnknownFault" >> >> message="wsn-bw:TopicExpressionDialectUnknownFault"/> >> >> <wsdl:fault name="InvalidTopicExpressionFault" >> >> message="wsn-bw:InvalidTopicExpressionFault" /> >> >> <wsdl:fault name="TopicNotSupportedFault" >> >> message="wsn-bw:TopicNotSupportedFault" /> >> >> <wsdl:fault name="InvalidProducerPropertiesExpressionFault" >> >> message="wsn-bw:InvalidProducerPropertiesExpressionFault"/> >> >> <wsdl:fault name="InvalidMessageContentExpressionFault" >> >> message="wsn-bw:InvalidMessageContentExpressionFault"/> >> >> <wsdl:fault name="UnacceptableInitialTerminationTimeFault" >> >> message="wsn-bw:UnacceptableInitialTerminationTimeFault"/> >> >> <wsdl:fault name="UnrecognizedPolicyRequestFault" >> >> message="wsn-bw:UnrecognizedPolicyRequestFault"/> >> >> <wsdl:fault name="UnsupportedPolicyRequestFault" >> >> message="wsn-bw:UnsupportedPolicyRequestFault"/> >> >> <wsdl:fault name="NotifyMessageNotSupportedFault" >> >> message="wsn-bw:NotifyMessageNotSupportedFault"/> >> >> <wsdl:fault name="SubscribeCreationFailedFault" >> >> message="wsn-bw:SubscribeCreationFailedFault"/> >> >> </wsdl:operation> >> >> <wsdl:operation name="GetCurrentMessage"> >> >> <wsdl:input message="wsn-bw:GetCurrentMessageRequest"/> >> >> <wsdl:output message="wsn-bw:GetCurrentMessageResponse"/> >> >> <wsdl:fault name="ResourceUnknownFault" >> >> message="wsrf-rw:ResourceUnknownFault"/> >> >> <wsdl:fault name="TopicExpressionDialectUnknownFault" >> >> message="wsn-bw:TopicExpressionDialectUnknownFault"/> >> >> <wsdl:fault name="InvalidTopicExpressionFault" >> >> message="wsn-bw:InvalidTopicExpressionFault"/> >> >> <wsdl:fault name="TopicNotSupportedFault" >> >> message="wsn-bw:TopicNotSupportedFault"/> >> >> <wsdl:fault name="NoCurrentMessageOnTopicFault" >> >> message="wsn-bw:NoCurrentMessageOnTopicFault"/> >> >> <wsdl:fault name="MultipleTopicsSpecifiedFault" >> >> message="wsn-bw:MultipleTopicsSpecifiedFault"/> >> >> </wsdl:operation> >> >> >> >> <!-- ========= extends RegisterPublisher ======= --> >> >> >> >> </wsdl:portType> >> >> >> >> <wsdl:binding name="NotificationBrokerBinding" >> type="tns:NotificationBroker"> >> >> <wsdl-soap:binding style="document" >> transport="http://schemas.xmlsoap.org/soap/http" /> >> >> >> <wsdl:operation name="Notify"> >> <wsdl-soap:operation soapAction="Notify"/> >> <wsdl:input> >> <wsdl-soap:body >> use="encoded" >> >> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> >> >> </wsdl:input> >> <wsdl:output> >> >> <wsdl-soap:body >> >> use="encoded" >> >> >> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> >> >> </wsdl:output> >> </wsdl:operation> >> >> >> >> >> <wsdl:operation name="Subscribe"> >> >> <wsdl-soap:operation >> >> >> soapAction="http://ws.apache.org/muse/test/wsrf/Subscribe" /> >> >> <wsdl:input> >> >> <wsdl-soap:body use="encoded" /> >> >> </wsdl:input> >> >> <wsdl:output> >> >> <wsdl-soap:body use="encoded" /> >> >> </wsdl:output> >> >> <wsdl:fault name="ResourceUnknownFault"> >> >> <wsdl-soap:fault >> >> >> namespace="http://ws.apache.org/muse/test/wsrf" >> >> use="encoded" >> name="ResourceUnknownFault" /> >> >> </wsdl:fault> >> >> <wsdl:fault name="InvalidFilterFault"> >> >> <wsdl-soap:fault >> >> >> namespace="http://ws.apache.org/muse/test/wsrf" >> >> use="encoded" name="InvalidFilterFault" >> /> >> >> </wsdl:fault> >> >> <wsdl:fault name="TopicExpressionDialectUnknownFault"> >> >> <wsdl-soap:fault >> >> >> namespace="http://ws.apache.org/muse/test/wsrf" >> >> use="encoded" >> name="TopicExpressionDialectUnknownFault" /> >> >> </wsdl:fault> >> >> <wsdl:fault name="InvalidTopicExpressionFault"> >> >> <wsdl-soap:fault >> >> >> namespace="http://ws.apache.org/muse/test/wsrf" >> >> use="encoded" >> name="InvalidTopicExpressionFault" /> >> >> </wsdl:fault> >> >> <wsdl:fault name="TopicNotSupportedFault"> >> >> <wsdl-soap:fault >> >> >> namespace="http://ws.apache.org/muse/test/wsrf" >> >> use="encoded" >> name="TopicNotSupportedFault" /> >> >> </wsdl:fault> >> >> <wsdl:fault >> >> name="InvalidProducerPropertiesExpressionFault"> >> >> <wsdl-soap:fault >> >> >> namespace="http://ws.apache.org/muse/test/wsrf" >> >> use="encoded" >> >> >> name="InvalidProducerPropertiesExpressionFault" /> >> >> </wsdl:fault> >> >> <wsdl:fault name="InvalidMessageContentExpressionFault"> >> >> <wsdl-soap:fault >> >> >> namespace="http://ws.apache.org/muse/test/wsrf" >> >> use="encoded" >> name="InvalidMessageContentExpressionFault" /> >> >> </wsdl:fault> >> >> <wsdl:fault >> >> name="UnacceptableInitialTerminationTimeFault"> >> >> <wsdl-soap:fault >> >> >> namespace="http://ws.apache.org/muse/test/wsrf" >> >> use="encoded" >> name="UnacceptableInitialTerminationTimeFault" /> >> >> </wsdl:fault> >> >> <wsdl:fault name="UnrecognizedPolicyRequestFault"> >> >> <wsdl-soap:fault >> >> >> namespace="http://ws.apache.org/muse/test/wsrf" >> >> use="encoded" >> name="UnrecognizedPolicyRequestFault" /> >> >> </wsdl:fault> >> >> <wsdl:fault name="UnsupportedPolicyRequestFault"> >> >> <wsdl-soap:fault >> >> >> namespace="http://ws.apache.org/muse/test/wsrf" >> >> use="encoded" >> name="UnsupportedPolicyRequestFault" /> >> >> </wsdl:fault> >> >> <wsdl:fault name="NotifyMessageNotSupportedFault"> >> >> <wsdl-soap:fault >> >> >> namespace="http://ws.apache.org/muse/test/wsrf" >> >> use="encoded" >> name="NotifyMessageNotSupportedFault" /> >> >> </wsdl:fault> >> >> <wsdl:fault name="SubscribeCreationFailedFault"> >> >> <wsdl-soap:fault >> >> >> namespace="http://ws.apache.org/muse/test/wsrf" >> >> use="encoded" >> name="SubscribeCreationFailedFault" /> >> >> </wsdl:fault> >> >> </wsdl:operation> >> >> >> <wsdl:operation name="GetCurrentMessage"> >> >> <wsdl-soap:operation >> >> >> soapAction="http://ws.apache.org/muse/test/wsrf/GetCurrentMessage"/> >> >> <wsdl:input> >> >> <wsdl-soap:body use="encoded" /> >> >> </wsdl:input> >> >> <wsdl:output> >> >> <wsdl-soap:body use="encoded" /> >> >> </wsdl:output> >> >> <wsdl:fault name="ResourceUnknownFault"> >> >> <wsdl-soap:fault >> >> >> namespace="http://ws.apache.org/muse/test/wsrf" >> >> use="encoded" >> name="ResourceUnknownFault" /> >> >> </wsdl:fault> >> >> <wsdl:fault name="TopicExpressionDialectUnknownFault"> >> >> <wsdl-soap:fault >> >> >> namespace="http://ws.apache.org/muse/test/wsrf" >> >> use="encoded" >> name="TopicExpressionDialectUnknownFault" /> >> >> </wsdl:fault> >> >> <wsdl:fault name="InvalidTopicExpressionFault"> >> >> <wsdl-soap:fault >> >> >> namespace="http://ws.apache.org/muse/test/wsrf" >> >> use="encoded" >> name="InvalidTopicExpressionFault" /> >> >> </wsdl:fault> >> >> <wsdl:fault name="TopicNotSupportedFault"> >> >> <wsdl-soap:fault >> >> >> namespace="http://ws.apache.org/muse/test/wsrf" >> >> use="encoded" >> name="TopicNotSupportedFault" /> >> >> </wsdl:fault> >> >> <wsdl:fault name="NoCurrentMessageOnTopicFault"> >> >> <wsdl-soap:fault >> >> >> namespace="http://ws.apache.org/muse/test/wsrf" >> >> use="encoded" >> name="NoCurrentMessageOnTopicFault" /> >> >> </wsdl:fault> >> >> <wsdl:fault name="MultipleTopicsSpecifiedFault"> >> >> <wsdl-soap:fault >> >> >> namespace="http://ws.apache.org/muse/test/wsrf" >> >> use="encoded" >> name="MultipleTopicsSpecifiedFault" /> >> >> </wsdl:fault> >> >> </wsdl:operation> >> >> </wsdl:binding> >> >> >> >> >> >> <wsdl:service name="WsResourceService"> >> >> <wsdl:port name="NotificationBrokerPort" >> binding="tns:NotificationBrokerBinding"> >> >> <wsdl-soap:address >> location="http://localhost:9090/wsn-producer/services/WsResource"/> >> >> </wsdl:port> >> >> </wsdl:service> >> >> </wsdl:definitions> >> >> >> >> >> -- >> View this message in context: >> http://www.nabble.com/Error-in-wsdl-parsing-wsdl2java.sh-tf4677959.html# >> a13365893 >> Sent from the Muse User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- View this message in context: http://www.nabble.com/Error-in-wsdl-parsing-wsdl2java.sh-tf4677959.html#a13384563 Sent from the Muse User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
