We used WSDL2Java to generated code to access webservices.

Here is a fragment of the xml request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><soapenv:Body><RetrieveScheduleTransferFundsHistoryV001
 
xmlns="http://www.domain.com/xmlschema/resource/metadata/oos/api/v002";><osaRequestHeader><ns1:providerService
 
xmlns:ns1="http://www.domain.com/xmlschema/resource/metadata/osa/infrastructure/v001";><ns1:name>OOS</ns1:name><ns1:operation>http://www.domain.com/osa</ns1:operation><ns1:version>V001</ns1:version></ns1:providerService><ns2:component
 
xmlns:ns2="http://www.domain.com/xmlschema/resource/metadata/osa/infrastructure/v001";>EAS</ns2:component><ns3:channel
 
xmlns:ns3="http://www.domain.com/xmlschema/resource/metadata/osa/infrastructure/v001";>


The namespace, ie. 
http://www.domain.com/xmlschema/resource/metadata/osa/infrastructure/v001 is 
everywhere in the request. Is there some setting in Axis that would optimize 
the request?

In the generated data class, there is 
  // Type metadata
    private static org.apache.axis.description.TypeDesc typeDesc =
        new org.apache.axis.description.TypeDesc(OSARequestHeader.class);

    static {
        typeDesc.setXmlType(new 
javax.xml.namespace.QName("http://www.domain.com/xmlschema/resource/metadata/osa/infrastructure/v001";,
 "OSARequestHeader"));
        org.apache.axis.description.ElementDesc elemField = new 
org.apache.axis.description.ElementDesc();
        elemField.setFieldName("providerService");
        elemField.setXmlName(new 
javax.xml.namespace.QName("http://www.domain.com/xmlschema/resource/metadata/osa/infrastructure/v001";,
 "providerService"));
        elemField.setXmlType(new 
javax.xml.namespace.QName("http://www.domain.com/xmlschema/resource/metadata/osa/infrastructure/v001";,
 "Service"));
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("component");
        elemField.setXmlName(new 
javax.xml.namespace.QName("http://www.domain.com/xmlschema/resource/metadata/osa/infrastructure/v001";,
 "component"));
        elemField.setXmlType(new 
javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema";, "string"));
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("channel");
        elemField.setXmlName(new 
javax.xml.namespace.QName("http://www.domain.com/xmlschema/resource/metadata/osa/infrastructure/v001";,
 "channel"));
        elemField.setXmlType(new 
javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema";, "string"));
}
}

Reply via email to