[ 
https://issues.apache.org/jira/browse/AXIS2-3828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13861551#comment-13861551
 ] 

Martin Gainty commented on AXIS2-3828:
--------------------------------------

consider 
http://www.w3.org/TR/2003/WD-wsdl12-20030303/#Definitions_targetnamespace_attribute
example from SOAP-1.2 spec

<?xml version="1.0" encoding="UTF-8"?> 
<definitions name="TicketAgent" 
    targetNamespace="http://airline.wsdl/ticketagent/"; 
    xmlns="http://schemas.xmlsoap.org/wsdl/"; 
    xmlns:tns="http://airline.wsdl/ticketagent/"; 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsd1="http://airline/";> 
    <import location="TicketAgent.xsd" namespace="http://airline/"/> 
    <message name="listFlightsRequest"> 
        <part name="depart" type="xsd:dateTime"/> 
        <part name="origin" type="xsd:string"/> 
 <!-- string is of type http://www.w3.org/2001/XMLSchema -->
        <part name="destination" type="xsd:string"/> 
 <!-- string is of type http://www.w3.org/2001/XMLSchema -->
    </message> 
    <message name="listFlightsResponse"> 
        <part name="result" type="xsd1:ArrayOfString"/>  
<!--ArrayOfString is custom element ArrayOfString defined by xsd 
TicketAgent.xsd -->
    </message> 

<!-- unless otherwise mapped you need to allow soap 1.2 types to map to Java 
elements (integer,string,date) -->

<!--did you contact the indian consultant that created this definition to 
inquire which SOAP version he is using ? -->
http://www.webservicex.net/WS/contact.aspx
[email protected]

> Unable to compile code generated from WSDL
> ------------------------------------------
>
>                 Key: AXIS2-3828
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3828
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.4
>         Environment: Linux Ubuntu, Java 6
>            Reporter: Jason Spangler
>
> Attempting to generate code for the WSDL at : 
> http://www.webservicex.net/stockquote.asmx?WSDL
> Generate code through ANT command using ADB data binding
> Code generates, however does not compile, The Compiler gives the following 
> error:
> /net/webservicex/www/StockQuoteStub.java:34:
> incompatible types
> found   : java.lang.String
> required: net.webservicex.www.String



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to