axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eliot Stock" <>
Subject java:EJB provider and parameter names in WSDL
Date Sat, 13 Nov 2004 23:54:15 GMT
I'm having trouble getting Axis to generate WSDL with proper parameter names in rather than
in0, in1, etc.

This was working fine with the java:RPC provider when I had a simple class with static methods
as the service implementation and compiling with the debug flag to javac on, but I have now
switched to using the java:EJB provider. My implementation is a stateless session bean (classes
for which are still compiled with debug though).

My deployment descriptor is as follows:

<deployment xmlns=""
    <service name="Voordeel" provider="java:EJB">
        <handler type="soapmonitor"/>
        <handler type="soapmonitor"/>
    <parameter name="beanJndiName" value="IVoordeelHome"/>
    <parameter name="homeInterfaceName" value=""/>
    <parameter name="remoteInterfaceName" value=""/>
    <parameter name="className" value=""/>
    <parameter name="allowedMethods" value="*"/>
    <parameter name="jndiContextClass" value="weblogic.jndi.WLInitialContextFactory"/>

and my generated WDSL (viewed by using the link in the axis service list, not by running java2wsdl)

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="" xmlns=""
xmlns:apachesoap="" xmlns:impl=""
xmlns:intf="" xmlns:soapenc=""
xmlns:wsdl="" xmlns:wsdlsoap=""
xmlns:xsd=""><wsdl:types><schema targetNamespace=""
xmlns=""><import namespace=""/><complexType
name="ArrayOf_xsd_string"><complexContent><restriction base="soapenc:Array"><attribute
ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/></restriction></complexContent></complexType></schema></wsdl:types>
  <wsdl:message name="getVoordeelNumbersResponse">
    <wsdl:part name="getVoordeelNumbersReturn" type="intf:ArrayOf_xsd_string"/>
  <wsdl:message name="getVoordeelNumbersRequest">
    <wsdl:part name="in0" type="xsd:string"/>
    <wsdl:part name="in1" type="xsd:string"/>
    <wsdl:part name="in2" type="xsd:dateTime"/>
  <wsdl:portType name="IVoordeel">
    <wsdl:operation name="getVoordeelNumbers" parameterOrder="in0 in1 in2">
      <wsdl:input message="intf:getVoordeelNumbersRequest" name="getVoordeelNumbersRequest"/>
      <wsdl:output message="intf:getVoordeelNumbersResponse" name="getVoordeelNumbersResponse"/>
  <wsdl:binding name="VoordeelSoapBinding" type="intf:IVoordeel">
    <wsdlsoap:binding style="rpc" transport=""/>
    <wsdl:operation name="getVoordeelNumbers">
      <wsdlsoap:operation soapAction=""/>
      <wsdl:input name="getVoordeelNumbersRequest">
        <wsdlsoap:body encodingStyle="" namespace=""
      <wsdl:output name="getVoordeelNumbersResponse">
        <wsdlsoap:body encodingStyle="" namespace=""
  <wsdl:service name="IVoordeelService">
    <wsdl:port binding="intf:VoordeelSoapBinding" name="Voordeel">
      <wsdlsoap:address location="https://psunix21:6443/axis/services/Voordeel"/>

The remote interface of my bean looks like this:

public interface IVoordeel extends EJBObject {

    public String[] getVoordeelNumbers(String aNumberAreaCode,
                                       String aNumberTelephone,
                                       Date dateWithinInvoice)
            throws RemoteException;


How do I get parameter names like 'aNumberAreaCode' into the WSDL in place of 'in0'?

I've seen this same question asked on the list years ago with no response, so I hope this
is possible somehow:


Eliot Stock.

View raw message