I am attempting to consume a .Net Web Service using the attached wsdl
file.  I created a web service client from Eclipse.  When using the
classes created by Netbeans and Weblogic, the requests work.  But
using the classes created using Axis 1.4 and Eclipse, the xml in the
soap envelop is incorrect.  The classes created are different from the
ones created by Netbeans and WebLogic.  I downloaded Axis 1.4 and
created the classes by running wsdl2Java.  It creates the same classes
that Eclipse does.

Axis2 generates the correct classes (but I'd prefer to use Axis since
it comes with Eclipse and doesn't need any additional jars).  Is there
a work around or fix for this?  Netbeans/WebLogic creates an
"ArrayofSection", "Section" and PropertyType" classes.  But Eclipse
and Axis 1.4 only create the "PropertyType" class.

The following request is sent.  Instead of creating the element
"Property" under the element "Section", it creates another element
named "Section".

---------------------

<?xml version="1.0" encoding="UTF-8"?>
<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>
   <GetHardwareSoftwareGdid xmlns="http://hp.com/RSPS/GDID";>
     <ns1:GdidRequest caller="GDIDTestCaller"
                      objectOfServiceType="Hardware"
                      readOnly="true"
                      schemaVersion="1.1"
                      xmlns:ns1="http://hp.com/RSPS/GDID/GDIDRequest";>
       <ns1:CSID>
         <ns1:Section>
           <ns1:Section name="SAID" value="hpuxtesting"/>
           <ns1:Section name="UserApprovedNumber" value="USR4020068"/>
           <ns1:Section name="AutoDetectedNumber" value="USR4020068"
         </ns1:Section>
       </ns1:CSID>
     </ns1:GdidRequest>
   </GetHardwareSoftwareGdid>
 </soapenv:Body>
</soapenv:Envelope>

-- 
Regards
Milind
<wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema"; xmlns:s3="http://hp.com/RSPS/GDID/ReassignedGdidsRequest"; xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:tns="http://hp.com/RSPS/GDID"; xmlns:s1="http://hp.com/RSPS/GDID/GDIDRequest"; xmlns:s2="http://hp.com/RSPS/GDID/GdidResponse"; xmlns:s4="http://hp.com/RSPS/GDID/ReassignedGdidsResponse"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"; xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; targetNamespace="http://hp.com/RSPS/GDID"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
  <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>Global Delivery ID (GDID)</wsdl:documentation>
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://hp.com/RSPS/GDID";>
      <s:import namespace="http://hp.com/RSPS/GDID/GDIDRequest"/>
      <s:import namespace="http://hp.com/RSPS/GDID/GdidResponse"/>
      <s:import namespace="http://hp.com/RSPS/GDID/ReassignedGdidsRequest"/>
      <s:import namespace="http://hp.com/RSPS/GDID/ReassignedGdidsResponse"/>
      <s:element name="GetGdid">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" ref="s1:GdidRequest"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetGdidResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" ref="s2:GdidResponse"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetHardwareSoftwareGdid">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" ref="s1:GdidRequest"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetHardwareSoftwareGdidResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" ref="s2:GdidResponse"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetReassignedGdids">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" ref="s3:ReassignedGdidsRequest"/>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetReassignedGdidsResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" ref="s4:ReassignedGdidsResponse"/>
          </s:sequence>
        </s:complexType>
      </s:element>
    </s:schema>
    <s:schema elementFormDefault="qualified" targetNamespace="http://hp.com/RSPS/GDID/GDIDRequest";>
      <s:element name="GdidRequest" type="s1:GdidRequestType"/>
      <s:complexType name="GdidRequestType">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" name="OSID" type="s1:ArrayOfSection"/>
          <s:element minOccurs="0" maxOccurs="1" name="CSID" type="s1:ArrayOfSection"/>
          <s:element minOccurs="0" maxOccurs="1" name="Host" type="s1:Host"/>
        </s:sequence>
        <s:attribute name="objectOfServiceType" type="s1:GdidRequestTypeObjectOfServiceType"/>
        <s:attribute name="caller" type="s:string"/>
        <s:attribute name="schemaVersion" type="s:decimal" use="required"/>
        <s:attribute name="readOnly" type="s:boolean"/>
      </s:complexType>
      <s:complexType name="ArrayOfSection">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="Section" type="s1:Section"/>
        </s:sequence>
      </s:complexType>
      <s:complexType name="Section">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="Property" type="s1:PropertyType"/>
        </s:sequence>
        <s:attribute name="name" type="s:string"/>
      </s:complexType>
      <s:complexType name="PropertyType">
        <s:attribute name="name" type="s:string"/>
        <s:attribute name="value" type="s:string"/>
      </s:complexType>
      <s:complexType name="Host">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" name="OSID" type="s1:ArrayOfSection"/>
          <s:element minOccurs="0" maxOccurs="1" name="CSID" type="s1:ArrayOfSection"/>
        </s:sequence>
      </s:complexType>
      <s:simpleType name="GdidRequestTypeObjectOfServiceType">
        <s:restriction base="s:string">
          <s:enumeration value="Hardware"/>
          <s:enumeration value="OperatingSystem"/>
        </s:restriction>
      </s:simpleType>
    </s:schema>
    <s:schema elementFormDefault="qualified" targetNamespace="http://hp.com/RSPS/GDID/GdidResponse";>
      <s:element name="GdidResponse" type="s2:GdidResultGroupType"/>
      <s:complexType name="GdidResultGroupType">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="GdidResult" type="s2:GdidResultType"/>
        </s:sequence>
      </s:complexType>
      <s:complexType name="GdidResultType">
        <s:attribute name="matchFound" type="s:boolean" use="required"/>
        <s:attribute name="objectOfServiceType" type="s2:GdidResultTypeObjectOfServiceType" use="required"/>
        <s:attribute name="gdid" type="s:string"/>
        <s:attribute name="universalSequenceNo" type="s:long"/>
        <s:attribute name="gdidStatus" type="s2:GdidResultTypeGdidStatus"/>
      </s:complexType>
      <s:simpleType name="GdidResultTypeObjectOfServiceType">
        <s:restriction base="s:string">
          <s:enumeration value="Unspecified"/>
          <s:enumeration value="Hardware"/>
          <s:enumeration value="OperatingSystem"/>
        </s:restriction>
      </s:simpleType>
      <s:simpleType name="GdidResultTypeGdidStatus">
        <s:restriction base="s:string">
          <s:enumeration value="Normal"/>
          <s:enumeration value="Temporary"/>
        </s:restriction>
      </s:simpleType>
    </s:schema>
    <s:schema elementFormDefault="qualified" targetNamespace="http://hp.com/RSPS/GDID/ReassignedGdidsRequest";>
      <s:element name="ReassignedGdidsRequest" type="s3:ReassignedGdidsData"/>
      <s:complexType name="ReassignedGdidsData">
        <s:attribute name="Caller" type="s:string"/>
        <s:attribute name="DateFrom" type="s:dateTime" use="required"/>
      </s:complexType>
    </s:schema>
    <s:schema elementFormDefault="qualified" targetNamespace="http://hp.com/RSPS/GDID/ReassignedGdidsResponse";>
      <s:element name="ReassignedGdidsResponse" type="s4:ReassignedGdidsResponseType"/>
      <s:complexType name="ReassignedGdidsResponseType">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="ReassignedGdidsResponseData" type="s4:ReassignedGdidsResponseDataType"/>
        </s:sequence>
        <s:attribute name="Caller" type="s:string"/>
        <s:attribute name="DateFrom" type="s:dateTime" use="required"/>
      </s:complexType>
      <s:complexType name="ReassignedGdidsResponseDataType">
        <s:sequence>
          <s:element minOccurs="1" maxOccurs="1" name="USN" type="s:long"/>
          <s:element minOccurs="0" maxOccurs="1" name="AssignedFromGDID" type="s:string"/>
          <s:element minOccurs="0" maxOccurs="1" name="AssignedToGDID" type="s:string"/>
        </s:sequence>
      </s:complexType>
    </s:schema>
  </wsdl:types>
  <wsdl:message name="GetGdidSoapIn">
    <wsdl:part name="parameters" element="tns:GetGdid"/>
  </wsdl:message>
  <wsdl:message name="GetGdidSoapOut">
    <wsdl:part name="parameters" element="tns:GetGdidResponse"/>
  </wsdl:message>
  <wsdl:message name="GetHardwareSoftwareGdidSoapIn">
    <wsdl:part name="parameters" element="tns:GetHardwareSoftwareGdid"/>
  </wsdl:message>
  <wsdl:message name="GetHardwareSoftwareGdidSoapOut">
    <wsdl:part name="parameters" element="tns:GetHardwareSoftwareGdidResponse"/>
  </wsdl:message>
  <wsdl:message name="GetReassignedGdidsSoapIn">
    <wsdl:part name="parameters" element="tns:GetReassignedGdids"/>
  </wsdl:message>
  <wsdl:message name="GetReassignedGdidsSoapOut">
    <wsdl:part name="parameters" element="tns:GetReassignedGdidsResponse"/>
  </wsdl:message>
  <wsdl:portType name="GdidServiceSoap">
    <wsdl:operation name="GetGdid">
      <wsdl:input message="tns:GetGdidSoapIn"/>
      <wsdl:output message="tns:GetGdidSoapOut"/>
    </wsdl:operation>
    <wsdl:operation name="GetHardwareSoftwareGdid">
      <wsdl:input message="tns:GetHardwareSoftwareGdidSoapIn"/>
      <wsdl:output message="tns:GetHardwareSoftwareGdidSoapOut"/>
    </wsdl:operation>
    <wsdl:operation name="GetReassignedGdids">
      <wsdl:input message="tns:GetReassignedGdidsSoapIn"/>
      <wsdl:output message="tns:GetReassignedGdidsSoapOut"/>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="GdidServiceSoap" type="tns:GdidServiceSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="GetGdid">
      <soap:operation soapAction="http://hp.com/RSPS/GDID/GetGdid"; style="document"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetHardwareSoftwareGdid">
      <soap:operation soapAction="http://hp.com/RSPS/GDID/GetHardwareSoftwareGdid"; style="document"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetReassignedGdids">
      <soap:operation soapAction="http://hp.com/RSPS/GDID/GetReassignedGdids"; style="document"/>
      <wsdl:input>
        <soap:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="GdidServiceSoap12" type="tns:GdidServiceSoap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="GetGdid">
      <soap12:operation soapAction="http://hp.com/RSPS/GDID/GetGdid"; style="document"/>
      <wsdl:input>
        <soap12:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetHardwareSoftwareGdid">
      <soap12:operation soapAction="http://hp.com/RSPS/GDID/GetHardwareSoftwareGdid"; style="document"/>
      <wsdl:input>
        <soap12:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetReassignedGdids">
      <soap12:operation soapAction="http://hp.com/RSPS/GDID/GetReassignedGdids"; style="document"/>
      <wsdl:input>
        <soap12:body use="literal"/>
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="GdidService">
    <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>Global Delivery ID (GDID)</wsdl:documentation>
    <wsdl:port name="GdidServiceSoap" binding="tns:GdidServiceSoap">
      <soap:address location="https://rsdc-itg-gdid.atlanta.hp.com:443/GdidService/GdidService.asmx"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to