axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei Chen" <wc...@vitria.com>
Subject REPOST: document style generate invalid WSDL?
Date Tue, 03 Sep 2002 17:32:57 GMT
Appreciate if someone on the axis team can take a look.

Thanks.

- Wei Chen


>Hi,
>
>I am trying to generate a document style WSDL.
>
>I have this simple Java type:
>
>  package TestService;
>  import java.rmi.*;
>  public interface TestPort extends Remote {
>    public java.lang.String test(java.lang.String in0) throws 
>RemoteException;
>  }
>
>If I run "java org.apache.axis.wsdl.Java2WSDL -y DOCUMENT 
>TestService.TestPort", it will generate an invalid WSDL 
>(WSDL2Java will fail on the generated one). I think the 
>problem is the empty targetNamespace in the generated WSDL:
> ....
> <wsdl:types>
>   <schema targetNamespace="" xmlns="http://www.w3.org/2001/XMLSchema">
>     <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
>     <element name="in0" type="soapenc:string"/>
>     <element name="return" type="soapenc:string"/>
>   </schema>
> </wsdl:types>
> ....
>Am I doing something wrong? Is this a known issue? Any workaround?
>
>Thanks in advance.
>
>- Wei Chen 
>
>

Mime
View raw message