axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [jira] Resolved: (AXIS-1277) WSDL2Java adds some unwanted characters in produced files
Date Thu, 01 Apr 2004 17:08:43 GMT
Message:

   The following issue has been resolved as CANNOT REPRODUCE.

   Resolver: Glen Daniels
       Date: Thu, 1 Apr 2004 9:06 AM

Hm - this works fine for me with the current CVS source.  When I access http://localhost:8080/axis/services/RMImportSOAPPort?wsdl,
I get the following:

- <wsdl:definitions targetNamespace="http://rmv3.abd.it/schemas/services/importservice/wsdl"
xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://rmv3.abd.it/schemas/services/importservice/wsdl"
xmlns:intf="http://rmv3.abd.it/schemas/services/importservice/wsdl" xmlns:tns1="http://rmv3.abd.it/schemas/services/importservice"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <!-- 
WSDL created by Apache Axis version: 1.2beta
Built on Apr 01, 2004 (11:55:19 EST)

  --> 
- <wsdl:types>
- <schema elementFormDefault="qualified" targetNamespace="http://rmv3.abd.it/schemas/services/importservice"
xmlns="http://www.w3.org/2001/XMLSchema">
- <element name="importRequest">
- <complexType>
- <sequence>
  <element name="username" nillable="true" type="xsd:string" /> 
  <element name="password" nillable="true" type="xsd:string" /> 
  <element name="codeShop" nillable="true" type="xsd:string" /> 
  <element name="objectType" nillable="true" type="xsd:string" /> 
  <element name="fValidation" type="xsd:boolean" /> 
  <element name="fVocabulary" type="xsd:boolean" /> 
  <element name="fDefView" type="xsd:boolean" /> 
  <element name="fMemory" type="xsd:boolean" /> 
  </sequence>
  </complexType>
  </element>
  <element name="importResponse" type="xsd:string" /> 
  <element name="importFault" type="xsd:string" /> 
  </schema>
  </wsdl:types>
- <wsdl:message name="ImportFaultMsg">
  <wsdl:part element="tns1:importFault" name="importFault" /> 
  </wsdl:message>
- <wsdl:message name="importOperationResponse">
  <wsdl:part element="tns1:importResponse" name="importResponse" /> 
  </wsdl:message>
- <wsdl:message name="importOperationRequest">
  <wsdl:part element="tns1:importRequest" name="importRequest" /> 
  </wsdl:message>
- <wsdl:portType name="RMImportPortType">
- <wsdl:operation name="importOperation" parameterOrder="importRequest">
  <wsdl:input message="impl:importOperationRequest" name="importOperationRequest" />

  <wsdl:output message="impl:importOperationResponse" name="importOperationResponse" />

  <wsdl:fault message="impl:ImportFaultMsg" name="ImportFaultMsg" /> 
  </wsdl:operation>
  </wsdl:portType>
- <wsdl:binding name="RMImportSOAPPortSoapBinding" type="impl:RMImportPortType">
  <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />

- <wsdl:operation name="importOperation">
  <wsdlsoap:operation soapAction="" /> 
- <wsdl:input name="importOperationRequest">
  <wsdlsoap:body namespace="http://rmv3.abd.it/schemas/services/importservice/wsdl" use="literal"
/> 
  </wsdl:input>
- <wsdl:output name="importOperationResponse">
  <wsdlsoap:body namespace="http://rmv3.abd.it/schemas/services/importservice" use="literal"
/> 
  </wsdl:output>
- <wsdl:fault name="importFault">
  <wsdlsoap:fault name="importFault" use="literal" /> 
  </wsdl:fault>
- <wsdl:fault name="ImportFaultMsg">
  <wsdlsoap:fault name="ImportFaultMsg" use="literal" /> 
  </wsdl:fault>
  </wsdl:operation>
  </wsdl:binding>
- <wsdl:service name="RMImportService">
- <wsdl:port binding="impl:RMImportSOAPPortSoapBinding" name="RMImportSOAPPort">
  <wsdlsoap:address location="http://AURORA:8080/axis/services/RMImportSOAPPort" />

  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1277

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1277
    Summary: WSDL2Java adds some unwanted characters in produced files
       Type: Bug

     Status: Resolved
   Priority: Major
 Resolution: CANNOT REPRODUCE

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.1
             1.2 Beta

   Assignee: 
   Reporter: Dario Di Minno

    Created: Thu, 1 Apr 2004 6:30 AM
    Updated: Thu, 1 Apr 2004 9:06 AM
Environment: win2000, tomcat4.1, jdk1.4.2_02

Description:
WSDL2Java places some ">" characters in the produced files, that give problems at runtime,
so everytime I have to do a "clean up" of the files. 

Below I show you where I find these characters (in the use of QName(...) and in deploy.wsdd):

In ...BindingStub.java:
qName = new javax.xml.namespace.QName("...", ">importRequest");

In beans:
typeDesc.setXmlType(new javax.xml.namespace.QName("...", ">importRequest"));

In deploy.wsdd, in the parameter "type" of the element "parameter" in "operation":

<operation ...>
       <parameter qname="..." xmlns:pns="..." type="tns:>importRequest" xmlns:tns="..."
/>
       ...
</operation> 

These characters give problems at runtime, infact axis can't generate
the wsdl at the url http://...?wsdl

I get the following error instead:

AXIS error

Sorry, something seems to have gone wrong... here are the details:

Fault - makeTypeElement() was told to create a type
"{http://rmv3.abd.it/schemas/services/importservice}>importRequest", with no containing
element

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultSubcode: 
 faultString: makeTypeElement() was told to create a type
"{http://rmv3.abd.it/schemas/services/importservice}>importRequest", with no containing
element
 faultActor: 
 faultNode: 
 faultDetail: 


Attached you find the wsdl file and an imported xsd schema.



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message