You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Nilesh Ghorpade <ni...@yahoo.com> on 2006/12/20 13:50:13 UTC

Command line tools in AXIS 2.1.1

Hi,
  
  Does AXIS 2.1.1 support RPC? I generated a WSDL by explicitly setting  the "-st" attribute of the "java2wsdl" command to "rpc". However on  executing the "wsdl2java" command the stubs which were generated were  having the comments that the Style is "document". Also the Document  Style approach is being used for sending the SOAP message across.
  
  On viewing the WSDL I observed that the <soap:Binding> and the  <soap:Operation> are both having the "style" attribute set to  "rpc". I wanted to know if I am setting the style attribute correctly.  I am pasting my Ant task below
  
  <target name="java2wsdl" depends="" >
            <java classname="org.apache.ws.java2wsdl.Java2WSDL"  >
              <arg value="-o"/>
              <arg value="wsdl" />
              <arg value="-cn"/>
              <arg value="com.demo.WebServiceImpl" />
              <arg value="-l"/>
               <arg value="http://localhost:8000/demo/services/WebService" />
              <arg value="-of"/>
              <arg value="WebService.wsdl" />
              <arg value="-st"/>
              <arg value="rpc"/>
              <arg value="-cp"/>
              <arg value=".\build\classes"/>
               <classpath refid="example.classpath"/>
         </java> 
     </target>
  
  Please review the "-st" attribute. If the same is not correct then please suggest me the correct values for the "-st" attribute.
  
  Thanks in advance.
  
  With best regards,
  
  Nile
  
 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com