|
Found solution: add <property
name="compile.debug" value="true"/> <!--for some reason the
debuglevel has to be set to get the formal method parameter names--> <property
name="compile.debuglevel" value="lines,vars,source"/> To the javac target, ie debug=”${compile.debug}”
and debuglevel=”${compile.debuglevel}” to the javac target. Now I get the implementation parameter
names instead of in0, in1,…. james From: Anne Thomas
Manes [mailto:[EMAIL PROTECTED] Compile your Java class
with debug on, then run java2wsdl. On 5/9/06, James Armstrong
<[EMAIL PROTECTED] > wrote: Hi, Was wondering if someone can tell me how to the
axis-java2wsdl ant task to produce a wsdl with actual implementation parameters
names instead of in0, in1, etc. Here is my ant task: <target name="java2wsdl"
depends="compileSource" description="Generates a WSDL
description.">
<axis-java2wsdl output="${wsdl.file}"
classname="${classname}" namespace="${service.namespace}"
methods="${wsdl.methods}" use="${wsdl.use}"
style="${wsdl.style}" location="${service.url}"/>
<echo message="java2wsdl has been completed."/>
</target> Here are my property values: <property name="wsdl.methods"
value="patronEdit,validatePph,validatePip,validatePatron,storeID,getReturn,renewAll,renew,register,placeHold,deleteHold,payFines,chargeItems,itemInfo,patronInfo"/>
<property name="wsdl.file"
value="${target.src.dir}\org\carl\ops\webServices\autogenerated\OPSWebServices.wsdl"/>
<property name="wsdl.style" value="WRAPPED"/>
<property name="wsdl.use" value="LITERAL"/> Here is a snap shot of generated wsdl: <element name="patronEdit"> <complexType> <sequence> <element name="in0"
type="xsd:string"/> <element name="in1"
type="xsd:string"/> <element name="in2"
type="xsd:string"/> <element name="in3"
type="xsd:string"/> <element name="in4"
type="xsd:string"/> <element name="in5"
type="xsd:string"/> <element name="in6"
type="xsd:string"/> <element name="in7"
type="xsd:string"/> <element name="in8"
type="xsd:string"/> <element name="in9"
type="xsd:string"/> <element name="in10"
type="xsd:string"/> <element name="in11"
type="xsd:string"/> </sequence> Here's what they need to be: String patronEdit(String pid,
String reverse_id,
String field_nameLast,
String field_nameFirst,
String field_email,
String field_addressStreet,
String field_addressCity,
String field_addressState,
String field_addressZipCode,
String field_phone,
String field_dob,
String uri
); TIA, James From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]] It's valid. The numbers represent chunking. On
5/9/06, Collin VanDyck <[EMAIL PROTECTED]
> wrote: I have changed from using an Axis client to using a
manual POST of the |
