I see another thing that cannot be right ... write style="document" ;)
-----Ursprüngliche Nachricht----- Von: Agustin1984 [mailto:[email protected]] Gesendet: Dienstag, 4. Mai 2010 10:54 An: [email protected] Betreff: Re: AW: Error in wsdl parsing wsdl2java.sh I tried to modify all things that you say to me but I receive the same error. In particular I made the correction obtaining the following bind and Notify operation <wsdl:binding name="NotificationBrokerBinding" type="tns:NotificationBroker"> <wsdl-soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="Notify"> <wsdl-soap:operation soapAction="Notify" style="rpc"/> <wsdl:input > <wsdl-soap:body use="literal" /> </wsdl:input> </wsdl:operation> .... </wsdl:binding> Konrad Krentz wrote: > > I think you should write use="literal" everywhere in your binding. In case > of faults, I'm pretty sure that literal is the default, so you can leave > it > out there. > > -----Ursprüngliche Nachricht----- > Von: Agustin1984 [mailto:[email protected]] > Gesendet: Montag, 3. Mai 2010 16:02 > An: [email protected] > Betreff: Re: Error in wsdl parsing wsdl2java.sh > > > Can you help me, I have your same problem, the same error, but I'have not > Understood how you have resolved this problem. > > I'm implementing the ws-brokered notification, have you implemented it? > > best regards > thanks > > > > alfredo.s.g_uam_spain wrote: >> >> 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://old.nabble.com/Error-in-wsdl-parsing-wsdl2java.sh-tp13365893p28435501 > .html > Sent from the Muse User mailing list archive at Nabble.com. > > > -- View this message in context: http://old.nabble.com/Error-in-wsdl-parsing-wsdl2java.sh-tp13365893p28444717.html Sent from the Muse User mailing list archive at Nabble.com.
