You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Stan Jordan <sk...@worldnet.att.net> on 2002/02/23 23:34:20 UTC
WSDL2Java emitter issue (confusing String[] and String)
MessageThe emitter seems to get confused by WSDL files generated by .NET. I found many examples of this problem on www.xmethods.com but this one here is very simple and illustrates the problem well...
http://alethea.net/webservices/LocalTime.asmx?WSDL
When you generate stubs from this file, they compile fine. However, the interface generated is wrong (see below). The signature should be:
public java.lang.String localTimeByZipCode(java.lang.String zipCode) throws java.rmi.RemoteException;
In other words, "String" is correct and "String[]" is wrong. I verified this by editing the interface and stub java files, recompiling, and executing a client. The client works fine when the interface and stub files are fixed (by hand).
I did this work with nightly download Feb 22.
Cheers.
Stan
---------------------------------------------------------------------
/**
* LocalTimeSoap.java
*
* This file was auto-generated from WSDL
* by the Apache Axis Wsdl2java emitter.
*/
package net.alethea;
public interface LocalTimeSoap extends java.rmi.Remote {
// Returns the local time for a given zip code.
public java.lang.String[] localTimeByZipCode(java.lang.String[] zipCode) throws java.rmi.RemoteException;
}
String[] wrong here String[] wrong here too