web services - Error: Emitter Failure Undefined Binding <MusicBinding> in the WSDL Document -


here code currently, cannot find way of making compile, ideas why not?

any appreciated.

thanks lee wishaw

<xsd:schema  targetnamespace="urn:music"  xmlns="http://www.w3.org/2001/xmlschema">             <!-- start schema -->    <complextype name="trackdetail">               <!-- start 'trackdetail' type -->     <sequence>                                         <!-- start fields -->       <element name="discnumber" type="xsd:integer"/>         <!-- 'disc' field -->       <element name="tracknumber" type="xsd:integer"/>        <!-- 'track' field -->       <element name="composername" type="xsd:string"/>       <!-- 'composer' field -->       <element name="workname" type="xsd:string"/>          <!-- 'work' field -->       <element name="titlename" type="xsd:string"/>         <!-- 'title' field -->     </sequence>                                          <!-- end fields -->   </complextype>                                <!-- end 'trackdetail' type -->  </xsd:schema>                                            <!-- end schema --> 

<operation name="getbycomposer">                <!-- start 'getbycomposer' operation -->    <documentation>                     <!-- start 'getbycomposer' documentation -->     approve operation takes search composers name,     , returns details track.   </documentation>                      <!-- end 'getbycomposer' documentation -->    <input message="getbycomposermessage"/>            <!-- input of 'getbycomposer' -->   <output message="resultmessage"/>              <!-- output of 'result' -->   <fault name="notfound" message="errormessage"/>                                     <!-- fault 'notfound' message 'error' --> </operation>                                <!-- end 'getbycomposer' operation -->   <operation name="getbydisc">                <!-- start 'getbydisc' operation -->    <documentation>                     <!-- start 'getbydisc' documentation -->     approve operation takes search disk number,     , returns details track.   </documentation>                      <!-- end 'getbydisc' documentation -->    <input message="getbydiscmessage"/>            <!-- input of 'getbydisc' -->   <output message="resultmessage"/>              <!-- output of 'result' -->   <fault name="notfound" message="errormessage"/>                                     <!-- fault 'notfound' message 'error' --> </operation>                                <!-- end 'getbydisc' operation --> 

<soap:binding style="rpc"   transport="http://schemas.xmlsoap.org/soap/http"/>    <!-- rpc binding -->  <operation name="getbycomposer">                <!-- start 'getbycomposer' operation -->   <soap:operation soapaction=""/>                 <!-- empty soap action -->   <input>                                  <!-- start 'getbycomposer' binding -->     <soap:body use="literal" namespace="urn:music"      encodingstyle="http://schemas.xmlsoap.org/soap/encoding/"/>                                                    <!-- literal encoding -->   </input>                                   <!-- end 'search' binding -->   <output>                                     <!-- start 'result' binding -->     <soap:body use="literal" namespace="urn:music"      encodingstyle="http://schemas.xmlsoap.org/soap/encoding/"/>                                                    <!-- literal encoding -->   </output>                                      <!-- end 'result' binding -->   <fault name="notfound">                    <!-- start 'notfound' binding -->     <soap:fault use="literal" namespace="urn:music"      encodingstyle="http://schemas.xmlsoap.org/soap/encoding/"/>                                                    <!-- literal encoding -->   </fault>                                    <!-- end 'notfound' binding --> </operation>                                <!-- end 'getbycomposer' operation -->  <operation name="getbydisc">                <!-- start 'getbydisc' operation -->   <soap:operation soapaction=""/>                 <!-- empty soap action -->   <input>                                  <!-- start 'getbydisc' binding -->     <soap:body use="literal" namespace="urn:music"      encodingstyle="http://schemas.xmlsoap.org/soap/encoding/"/>                                                    <!-- literal encoding -->   </input>                                   <!-- end 'search' binding -->   <output>                                     <!-- start 'result' binding -->     <soap:body use="literal" namespace="urn:music"      encodingstyle="http://schemas.xmlsoap.org/soap/encoding/"/>                                                    <!-- literal encoding -->   </output>                                      <!-- end 'result' binding -->   <fault name="notfound">                    <!-- start 'notfound' binding -->     <soap:fault use="literal" namespace="urn:music"      encodingstyle="http://schemas.xmlsoap.org/soap/encoding/"/>                                                    <!-- literal encoding -->   </fault>                                    <!-- end 'notfound' binding --> </operation>                                <!-- end 'getbydisc' operation --> 

<documentation>                      <!-- start 'music' documentation -->   music search service returns tracks details based on   composers name or disk number. </documentation>                 <!-- end 'music' documentation -->  <port name="musicport" binding="musicbinding">                                               <!-- start 'music' port -->   <soap:address    location="http://localhost:8080/active-bpel/services/musicport"/>                                                        <!-- soap address --> </port>                                         <!-- end 'music' port --> 

your binding element needs have name attribute, name attribute needs referenced in port element. reference needs qname, should "tns:musicbinding" tns bound wsdl's targetnamespace.


Comments