No code generated by wsdl2java

View: New views
2 Messages — Rating Filter:   Alert me  

No code generated by wsdl2java

by s raju :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
using: muse2.2.0 on axis2-1.4

Tried running wsdl2java on the WS-BaseNotification-1_3.wsdl found in the wsn-consumer sample.
Ofcourse, it came back with 'oneserviceperwsdl' error. So added the following snippet to the wsdl.

     <wsdl:binding name="Binding" type="wsntw:NotificationConsumer">
         <wsdl-soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
         <wsdl:operation name="Notify">
             <wsdl-soap:operation/>
             <wsdl:input>
                 <wsdl-soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="literal"/>
             </wsdl:input>
         </wsdl:operation>
     </wsdl:binding>
     <wsdl:service name="Service">
         <wsdl:port binding="wsntw:Binding" name="Port">
             <wsdl-soap:address location="http://127.0.0.1/notification/services/notification"/>
         </wsdl:port>
     </wsdl:service>  

Then ran 'wsdl2java.bat -j2ee axis2 -wsdl wsdl\WS-BaseNotification-1_3.wsdl'

and it finished successfully but i do not see any java code. I creates webcontent
directory and everything under it but no 'javasource' or 'src' directory.

Would really appreciate some help with this. Btw, total newbie. All the samples work ok.

Thanks,
Srini




Re: No code generated by wsdl2java

by Chris Twiner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Srini,

please follow the tutorials for Muse, they really help in
understanding. The WS-N wsdl is merged in with the other wsdls (via
wsdl-merge) to provide the end service wsdl. You must have your own
resources wsdl to use wsdl2java.

Here's some good reading material that should help

http://ws.apache.org/muse/docs/2.2.0/tutorial/index.html

this is a link to a number of good muse articles. Unfourtantely google
only finds a few of these

http://www.ibm.com/developerworks/search/searchResults.jsp?searchType=1&pageLang=&displaySearchScope=dW&searchSite=dW&lastUserQuery1=wsdm&lastUserQuery2=&lastUserQuery3=&lastUserQuery4=&qa=wsdm&query=muse&searchScope=dW&Go.x=0&Go.y=0

cheers,
Chris

On Fri, Feb 13, 2009 at 1:14 AM, s raju <srini_raj@...> wrote:

> Hi,
> using: muse2.2.0 on axis2-1.4
>
> Tried running wsdl2java on the WS-BaseNotification-1_3.wsdl found in the wsn-consumer sample.
> Ofcourse, it came back with 'oneserviceperwsdl' error. So added the following snippet to the wsdl.
>
>      <wsdl:binding name="Binding" type="wsntw:NotificationConsumer">
>          <wsdl-soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
>          <wsdl:operation name="Notify">
>              <wsdl-soap:operation/>
>              <wsdl:input>
>                  <wsdl-soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="literal"/>
>              </wsdl:input>
>          </wsdl:operation>
>      </wsdl:binding>
>      <wsdl:service name="Service">
>          <wsdl:port binding="wsntw:Binding" name="Port">
>              <wsdl-soap:address location="http://127.0.0.1/notification/services/notification"/>
>          </wsdl:port>
>      </wsdl:service>
>
> Then ran 'wsdl2java.bat -j2ee axis2 -wsdl wsdl\WS-BaseNotification-1_3.wsdl'
>
> and it finished successfully but i do not see any java code. I creates webcontent
> directory and everything under it but no 'javasource' or 'src' directory.
>
> Would really appreciate some help with this. Btw, total newbie. All the samples work ok.
>
> Thanks,
> Srini
>
>
>
>