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 Sergey GMAIL <za...@gmail.com> on 2006/09/18 11:11:26 UTC

Re[2]: Axis2 import xsd into WSDL and generator WSDL2Java

Hello, Anne.

Âû ïèñàëè 16 ???????? 2006 ?., 3:32:58:

ATM> To clarify, You may not use <wsdl:import> to import an XSD file. You
ATM> must use <xsd:import>. It would look like this:

ATM> <definitions name="CalculatorsService"
ATM> targetNamespace="http://com/nuance/pws/middleware/beans/calculator"
ATM>             .....
ATM>            
ATM> xmlns:tns1="http://com/nuance/pws/middleware/beans/calculator/schemas"
ATM>             ....
ATM>     <types>
ATM>        <xsd:schema
ATM>           
ATM> targetNamepsace="http://com/nuance/pws/middleware/beans/calculator"
ATM>            xmlns:xsd="http://www.w3.org/2000/10/XMLSchema">
ATM>            <xsd:import
ATM>            
ATM> namespace="http://com/nuance/pws/middleware/beans/calculator/schemas"
ATM> schemaLocation="http://com/nuance/pws/middleware/beans/calculator/Calculator_new.xsd"/>
ATM>             ....
ATM>         </xsd:schema
ATM>       </types>
ATM>             <message name="requestHeader">
ATM>                 <part name="requestHeader"
ATM> element="tns1:TradePriceRequest"/>
ATM>              </message>
ATM>            ........

ATM> Anne

ATM> On 9/15/06, Spies, Brennan <Br...@ejgallo.com> wrote:
>> Are you using the <import> inside the <types> section of your WSDL (i.e., is
>> it the xsd:import rather than the wsdl:import)?
>>
>> -----Original Message-----
>> From: Sergey GMAIL [mailto:zagr.serg@gmail.com]
>> Sent: Friday, September 15, 2006 7:07 AM
>> To: axis-user@ws.apache.org
>> Subject: Axis2 import xsd into WSDL and generator WSDL2Java
>>
>> Hello, axis-user.
>> I have a problem, as correctly to import *.xsd chart in WSDL and then
>> correctly using a WSDL2Java generate code ?
>> My code:
>> WSDL:
>>
>> <definitions name="CalculatorsService"
>> targetNamespace="http://com/nuance/pws/middleware/beans/calculator"
>>              .....
>>
>> xmlns:tns1="http://com/nuance/pws/middleware/beans/calculator/schemas"
>>              ....
>>             <import
>> namespace="http://com/nuance/pws/middleware/beans/calculator/schemas"
>>
>> location="http://com/nuance/pws/middleware/beans/calculator/Calculator_new.xs
>> d"/>
>>              ....
>>              <message name="requestHeader">
>>                  <part name="requestHeader"
>> element="tns1:TradePriceRequest"/>
>>               </message>
>>             ........
>>
>> XSD:
>> <?xml version="1.0"?>
>> <schema
>> targetNamespace="http://com/nuance/pws/middleware/beans/calculator/schemas"
>>        xmlns="http://www.w3.org/2000/10/XMLSchema">
>>
>>  ........
>>
>>     <element name="TradePriceRequest">
>>         <complexType>
>>             <all>
>>                 <element name="tickerSymbol" type="string"/>
>>             </all>
>>         </complexType>
>>     </element>
>>  ...........
>>
>>  doesn't work  :(
>>
>>  How do correct wsdl?
>>
>>  Thanks.
>> --
>> WBR,
>>  Sergey                          mailto:zagr.serg@gmail.com
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>

ATM> ---------------------------------------------------------------------
ATM> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
ATM> For additional commands, e-mail: axis-user-help@ws.apache.org

O, ok Thanks!

-- 
WBR,
 Sergey                          mailto:zagr.serg@gmail.com


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org