You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@apache.org on 2002/10/23 16:28:07 UTC

DO NOT REPLY [Bug 13882] New: - Any in WSDL generates "org.w3.www.Any"

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13882>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13882

Any in WSDL generates "org.w3.www.Any"

           Summary: Any in WSDL generates "org.w3.www.Any"
           Product: Axis
           Version: 1.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: WSDL processing
        AssignedTo: axis-dev@xml.apache.org
        ReportedBy: Andre.Kramer@computer.org


WSDL returning an element that is a sequence of <any namespace="##other"/>
causes "org.w3.www.Any" to be generated as a Java class/type name. 
I can't find a definition for this class in Axis 1.0.
----------- attached stub -----------------------------------------
/**
 * WSRP_V1_Registration_Binding_SOAPStub.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis WSDL2Java emitter.
 */

package org.oasis_open.www;

public class WSRP_V1_Registration_Binding_SOAPStub extends 
org.apache.axis.client.Stub implements 
org.oasis_open.www.WSRP_V1_Registration_PortType {
    private java.util.Vector cachedSerClasses = new java.util.Vector();
    private java.util.Vector cachedSerQNames = new java.util.Vector();
    private java.util.Vector cachedSerFactories = new java.util.Vector();
    private java.util.Vector cachedDeserFactories = new java.util.Vector();

    public WSRP_V1_Registration_Binding_SOAPStub() throws 
org.apache.axis.AxisFault {
         this(null);
    }

    public WSRP_V1_Registration_Binding_SOAPStub(java.net.URL endpointURL, 
javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
         this(service);
         super.cachedEndpoint = endpointURL;
    }

    
    // AK deleted generated code. Use of org.w3.www.Any follows:

    public org.w3.www.Any deregister(java.lang.String registrationHandle, 
java.lang.String registrationState, org.oasis_open.www.Extension[] extension) 
throws java.rmi.RemoteException {
        if (super.cachedEndpoint == null) {
            throw new org.apache.axis.NoEndPointException();
        }
        org.apache.axis.client.Call _call = createCall();
        _call.addParameter(new javax.xml.namespace.QName("http://www.oasis-
open.org/committees/wsrp/v1/wsdl/types", "registrationHandle"), new 
javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), 
java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
        _call.addParameter(new javax.xml.namespace.QName("http://www.oasis-
open.org/committees/wsrp/v1/wsdl/types", "registrationState"), new 
javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), 
java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
        _call.addParameter(new javax.xml.namespace.QName("http://www.oasis-
open.org/committees/wsrp/v1/wsdl/types", "Extension"), new 
javax.xml.namespace.QName("http://www.oasis-
open.org/committees/wsrp/v1/wsdl/types", "Extension"), 
org.oasis_open.www.Extension[].class, javax.xml.rpc.ParameterMode.IN);
        _call.setReturnType(new javax.xml.namespace.QName
("http://www.w3.org/2001/XMLSchema", "any"), org.w3.www.Any.class);
        _call.setUseSOAPAction(true);
        _call.setSOAPActionURI("http://tempuri.org/deregister");
        _call.setEncodingStyle(null);
        _call.setScopedProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, 
Boolean.FALSE);
        _call.setScopedProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, 
Boolean.FALSE);
        _call.setOperationStyle("wrapped");
        _call.setOperationName(new javax.xml.namespace.QName("http://www.oasis-
open.org/committees/wsrp/v1/wsdl/types", "deregister"));
        _call.setReturnQName(new javax.xml.namespace.QName("", "any"));

        java.lang.Object _resp = _call.invoke(new java.lang.Object[] 
{registrationHandle, registrationState, extension});

        if (_resp instanceof java.rmi.RemoteException) {
            throw (java.rmi.RemoteException)_resp;
        }
        else {
            try {
                return (org.w3.www.Any) _resp;
            } catch (java.lang.Exception _exception) {
                return (org.w3.www.Any) org.apache.axis.utils.JavaUtils.convert
(_resp, org.w3.www.Any.class);
            }
        }
    }

    // AK deleted generated code.
}