I am trying to generate an Axis Webservice from my existing J2EE-EJB and
have the following issue:

1. Running java2wsdl over the EJB Remote Interface, which contains all
method signatures and references their return value objects.
2. Running wsdl2java over the generated wsdl file to generate the
Webservice Server- and Client-Code

I am using Axis Version 1.4 (tried 1.2, 1.3 also, same issue)

Original Interface (simplified):

package org.axis.test;
public interface PersonManager {
   public Long getRandomPersonId(Long fromInternalId, Long
toInternalId); }


Generated Interface:

package org.axis.test;
public interface PersonManager extends java.rmi.Remote {
   public long getRandomPersonId(long in0, long in1) throws
java.rmi.RemoteException; }


Ant tasks:
<axis-java2wsdl typemappingversion="1.2" style="document" use="literal"
output="srcgen/personmanager.wsdl" location="file:unkown"
namespace="http://personmanager.test.axis.org";
classname="org.axis.test.PersonManager"/>

<axis-wsdl2java typemappingversion="1.2" wraparrays="true"
url="srcgen/personmanager.wsdl" output="srcgen" serverside="true"
deployscope="Application"/>


Does anybody know why the original java.lang.Long gets to java type long
(scalar) after the java2wsdl/wsdl2java process and how to change this?
It gets generated correct, when I just use rpc encoded style with
typemappingversion 1.2 (not so if typemapping=1.1).
Looks like typemappingversion gets ignored as soon as style is not RPC
AND ENCODED,

I have to use document/literal style because we want to include complex
types with arrays later, and may have interop with .NET clients.

RPC style generated wsdl (types only):
   <wsdl:message name="getRandomPersonIdResponse">
      <wsdl:part name="getRandomPersonIdReturn" type="soapenc:long"/>
   </wsdl:message>
   <wsdl:message name="getRandomPersonIdRequest">
      <wsdl:part name="in0" type="soapenc:long"/>
      <wsdl:part name="in1" type="soapenc:long"/>
   </wsdl:message>


DOC/LIT generated wsdl (types only):
  <wsdl:types>
    <schema elementFormDefault="qualified"
targetNamespace="http://personmanager.test.axis.org";
xmlns="http://www.w3.org/2001/XMLSchema";>
     <element name="in0" type="xsd:long"/>
     <element name="in1" type="xsd:long"/>
     <element name="getRandomPersonIdReturn" type="xsd:long"/>
    </schema>
   </wsdl:types>
   <wsdl:message name="getRandomPersonIdResponse">
      <wsdl:part element="impl:getRandomPersonIdReturn"
name="getRandomPersonIdReturn"/>
   </wsdl:message>
   <wsdl:message name="getRandomPersonIdRequest">
      <wsdl:part element="impl:in0" name="in0"/>
      <wsdl:part element="impl:in1" name="in1"/>
   </wsdl:message>



Thanks for help,
Clemens Martin


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to