axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DEEPTHI PRABHAKAR" <deep...@hotmail.com>
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="http://xml.apache.org/axis/wsdd/"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
xmlns:message="http://schemas.xmlsoap.org/message/"&gt;</P>
<P>&lt;service name="ssoService" provider="java:RPC"&gt;</P>
<P>&nbsp;&lt;parameter name="className" value="com.ericsson.webservices.ssoService"
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>&lt;/service&gt;</P>
<P>&lt;/deployment&gt;</P>
<P>Will this work to change the parameter names from arg0 to "number"? </P>
<P>Thanx a lot!</P>
<P>Deepthi</P>
<P>&nbsp;</P></DIV>
<DIV></DIV>
<DIV></DIV>&gt;From: "Volkmann, Mark" <MARK.VOLKMANN@AGEDWARDS.COM>
<DIV></DIV>&gt;Reply-To: axis-user@xml.apache.org 
<DIV></DIV>&gt;To: "'axis-user@xml.apache.org'" <AXIS-USER@XML.APACHE.ORG>
<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; 
<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; 
<DIV></DIV>&gt;Here's my Ant target that compiles 
<DIV></DIV>&gt; 
<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}/${service.name}.java">
<DIV></DIV>&gt; <INCLUDE name="${package.dir}/${service.name}Impl.java">
<DIV></DIV>&gt; </JAVAC>
<DIV></DIV>&gt; </TARGET>
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Notice how the Impl class is compiled with debug="on". 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Here's my Ant target that generates the WSDL. 
<DIV></DIV>&gt; 
<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;
classpathref="classpath" 
<DIV></DIV>&gt; fork="yes"&gt; 
<DIV></DIV>&gt; <ARG value="-o${service.name}.wsdl">
<DIV></DIV>&gt; <ARG value="-lhttp://localhost:8080/axis/services/${service.name}">
<DIV></DIV>&gt; <ARG value="-n${service.ns}">
<DIV></DIV>&gt; <ARG value="-p${package}=${service.ns}">
<DIV></DIV>&gt; <ARG value="-i${package}.${service.name}Impl"><!--
for arg names -->
<DIV></DIV>&gt; <ARG value="${package}.${service.name}">
<DIV></DIV>&gt; </JAVA>
<DIV></DIV>&gt; </TARGET>
<DIV></DIV>&gt; 
<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; 
<DIV></DIV>&gt;-----Original Message----- 
<DIV></DIV>&gt;From: DEEPTHI PRABHAKAR [mailto:deep204@hotmail.com] 
<DIV></DIV>&gt;Sent: Wednesday, April 17, 2002 3:13 AM 
<DIV></DIV>&gt;To: axis-user@xml.apache.org 
<DIV></DIV>&gt;Subject: Problem with WSDL message names 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Hi all 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;I have an automatically generatd WSDL file using 
<DIV></DIV>&gt;http://localhost:80/axis/...?wsdl 
<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
into 
<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
invocation. 
<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; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;***********************************************************************************

<DIV></DIV>&gt;WARNING: All e-mail sent to and from this address will be received
or 
<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
to, 
<DIV></DIV>&gt;someone other than the recipient. 
<DIV></DIV>&gt;************************************************************************************

<DIV></DIV></div><br clear=all><hr>MSN Photos is the easiest
way to share and print your photos: <a href='http://g.msn.com/1HM203401/d'>Click Here</a><br></html>

Mime
View raw message