axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Problem with WSDL message names
Date Thu, 18 Apr 2002 01:32:58 GMT
<html><div style='background-color:'><DIV>
<P><BR>Hi Mark</P>
<P>I am not using Java2Wsdl. Instead I am generating the wsdl file from the browser
by <A href="http://localhost/axis/services/ssoService?wsdl">http://localhost/axis/services/ssoService?wsdl</A>.&nbsp;This
gives me a wsdl automatically. So, I want to know whether any changes made in the deployment
descriptor will be reflected in this wsdl. and also pls lemme know whether this is the right
way to create the deplyment descriptor for this.<BR></P>
<P>&lt;deployment xmlns=""<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<P>&lt;service name="ssoService" provider="java:RPC"&gt;</P>
<P>&nbsp;&lt;parameter name="className" value=""
locked="false"/&gt;<BR>&nbsp;&lt;parameter name="methodName" value="*"/&gt;</P>
<P>&nbsp;&lt;operation name="loginhere"&gt;<BR>&nbsp;&nbsp;
&lt;parameter name="number" mode="inout"/&gt;<BR>&nbsp;&nbsp; &lt;parameter
name="passwd" mode="in"/&gt;<BR>&nbsp; &lt;/operation&gt;</P>
<P>Will this work to change the parameter names from arg0 to "number"? </P>
<P>Thanx a lot!</P>
<DIV></DIV>&gt;From: "Volkmann, Mark" <MARK.VOLKMANN@AGEDWARDS.COM>
<DIV></DIV>&gt;Subject: RE: Problem with WSDL message names 
<DIV></DIV>&gt;Date: Wed, 17 Apr 2002 08:47:05 -0500 
<DIV></DIV>&gt;I'm assuming you are generating your WSDL using Java2WSDL.
If that's the 
<DIV></DIV>&gt;case then you need to use the -i option to get correct parameter
names in 
<DIV></DIV>&gt;the WSDL. You also need to compile the web service implementation
class with 
<DIV></DIV>&gt;debug information. 
<DIV></DIV>&gt;Here's my Ant target that compiles 
<DIV></DIV>&gt; <TARGET DIV < depends="prepare" name="compile.pre">&gt;
description="compiles source files"&gt; 
<DIV></DIV>&gt; <JAVAC DIV < srcdir="${src.dir}">&gt; destdir="${build.dir}"

<DIV></DIV>&gt; classpathref="classpath" 
<DIV></DIV>&gt; deprecation="on" 
<DIV></DIV>&gt; debug="on"&gt; <!-- needed by Java2WSDL -->
<DIV></DIV>&gt; <INCLUDE name="${package.dir}/${}.java">
<DIV></DIV>&gt; <INCLUDE name="${package.dir}/${}">
<DIV></DIV>&gt; </JAVAC>
<DIV></DIV>&gt; </TARGET>
<DIV></DIV>&gt;Notice how the Impl class is compiled with debug="on". 
<DIV></DIV>&gt;Here's my Ant target that generates the WSDL. 
<DIV></DIV>&gt; <TARGET DIV < depends="compile.pre" name="java2wsdl">&gt;
description="generates WSDL from Java service implementation"&gt; 
<DIV></DIV>&gt; <JAVA DIV < classname="org.apache.axis.wsdl.Java2WSDL">&gt;
<DIV></DIV>&gt; fork="yes"&gt; 
<DIV></DIV>&gt; <ARG value="-o${}.wsdl">
<DIV></DIV>&gt; <ARG value="-lhttp://localhost:8080/axis/services/${}">
<DIV></DIV>&gt; <ARG value="-n${service.ns}">
<DIV></DIV>&gt; <ARG value="-p${package}=${service.ns}">
<DIV></DIV>&gt; <ARG value="-i${package}.${}Impl"><!--
for arg names -->
<DIV></DIV>&gt; <ARG value="${package}.${}">
<DIV></DIV>&gt; </JAVA>
<DIV></DIV>&gt; </TARGET>
<DIV></DIV>&gt;Notice how this target depends on "compile.pre" and the -i
option that 
<DIV></DIV>&gt;references the Impl class. 
<DIV></DIV>&gt;-----Original Message----- 
<DIV></DIV>&gt;Sent: Wednesday, April 17, 2002 3:13 AM 
<DIV></DIV>&gt;Subject: Problem with WSDL message names 
<DIV></DIV>&gt;Hi all 
<DIV></DIV>&gt;I have an automatically generatd WSDL file using 
<DIV></DIV>&gt;format. In the wsdl, the in/out parameters have been assigned
the default 
<DIV></DIV>&gt;names like "arg0", "arg1" etc. However I want to change these
<DIV></DIV>&gt;comprehensible names like "username", "pass" . Is there any
way to do go 
<DIV></DIV>&gt;about it. I could manage to change these parameter names in
the SOAP request 
<DIV></DIV>&gt;response format by adding call.addParameter( ) in my service
<DIV></DIV>&gt;Should I change my wsdd file, If I do, will that be reflected
in the wsdl 
<DIV></DIV>&gt;file that is generated?? 

<DIV></DIV>&gt;WARNING: All e-mail sent to and from this address will be received
<DIV></DIV>&gt;otherwise recorded by the A.G. Edwards corporate e-mail system
and is 
<DIV></DIV>&gt;subject to archival, monitoring or review by, and/or disclosure
<DIV></DIV>&gt;someone other than the recipient. 

<DIV></DIV></div><br clear=all><hr>MSN Photos is the easiest
way to share and print your photos: <a href=''>Click Here</a><br></html>

View raw message