Matthew,
 
I experienced the same problem. Try adding an import namespace declaration to the schema that's referencing your exception complex type.
 
Michael Pair
-----Original Message-----
From: Drooker, Matthew [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 10:13 AM
To: '[EMAIL PROTECTED]'
Subject: Namespace getting dropped from WSDL generation

Hello All-

Can someone shed some light on what I am doing wrong here? 

In a nut shell...I have a complex type that inherits from "Exception"...

            In the WSDL that Axis1.1 generates (which a stub is below), Axis added the "tns4" namespace to the type attribute.

            The problem is that it "forgets" to add that namespace in the definition section of the WSDL doc.

 

What am I doing wrong?

 

Thanks for the help

 

 

 

 

  <?xml version="1.0" encoding="UTF-8" ?>

- <wsdl:definitions targetNamespace="http://eadevjapp02:8080/newAxis/services/wsAdmin" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://eadevjapp02:8080/newAxis/services/wsAdmin" xmlns:intf="http://eadevjapp02:8080/newAxis/services/wsAdmin" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://rsa.buildingblocks.ea.turner.com" xmlns:tns2="http://webservice.rsa.buildingblocks.ea.turner.com" xmlns:tns3="http://tools.exception.core.buildingblocks.ea.turner.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

.............................cut out for time...............................................

- <wsdl:types>

- <schema targetNamespace="http://rsa.buildingblocks.ea.turner.com" xmlns="http://www.w3.org/2001/XMLSchema">

  <import namespace="http://schemas.xmlsoap.org/soap/encoding/" />

- <complexType name="EAException">

- <sequence>

  <element name="errId" nillable="true" type="tns3:ErrId" />

  <element name="message" nillable="true" type="xsd:string" />

  <element name="subCode" nillable="true" type="xsd:string" />

  <element name="subException" nillable="true" type="tns4:Exception" />

  </sequence>

  </complexType>

  </schema>

  </wsdl:types>

.............................cut out for time...............................................

 

Reply via email to