2011-06-21 55 views
4

我試着從我的.NET應用程序的AXIS服務中獲取數據。到目前爲止,我能夠收集簡單的數據,如int,string ...。但是當我嘗試獲取像long []這樣的Array數據時,數組只包含正確的數據計數,但只包含零值而不是我想要的ID。未定義complexType'http://schmeas.xmlsoap.org/soap/encoding/:Array'被用作複雜類型限制的基礎

我的WSDL看起來是這樣的:

 <wsdl:definitions xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:intf="urn:api.broadmail.de/soap11/RpcRecipientList" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns2="http://lang.java" xmlns:impl="urn:api.broadmail.de/soap11/RpcRecipientList" targetNamespace="urn:api.broadmail.de/soap11/RpcRecipientList" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> 
     <wsdl:types> 
     <xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:api.broadmail.de/soap11/RpcRecipientList"> 
      <xsd:import namespace="http://lang.java" /> 
      <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" /> 
      <xsd:complexType name="WebserviceException"> 
      <xsd:sequence> 
       <xsd:element name="cause" nillable="true" type="xsd:anyType" /> 
       <xsd:element name="message" nillable="true" type="xsd:string" /> 
      </xsd:sequence> 
      </xsd:complexType> 
      <xsd:complexType name="ArrayOf_xsd_string"> 
      <xsd:complexContent mixed="false"> 
       <xsd:restriction base="soapenc:Array"> 
       <xsd:attribute wsdl:arrayType="xsd:string[]" ref="soapenc:arrayType" /> 
       </xsd:restriction> 
      </xsd:complexContent> 
      </xsd:complexType> 
      <xsd:complexType name="ArrayOf_xsd_long"> 
      <xsd:complexContent mixed="false"> 
       <xsd:restriction base="soapenc:Array"> 
       <xsd:attribute wsdl:arrayType="xsd:long[]" ref="soapenc:arrayType" /> 
       </xsd:restriction> 
      </xsd:complexContent> 
      </xsd:complexType> 
      <xsd:complexType name="ArrayOfArrayOf_xsd_string"> 
      <xsd:complexContent mixed="false"> 
       <xsd:restriction base="soapenc:Array"> 
       <xsd:attribute wsdl:arrayType="xsd:string[][]" ref="soapenc:arrayType" /> 
       </xsd:restriction> 
      </xsd:complexContent> 
      </xsd:complexType> 
     </xsd:schema> 
     </wsdl:types> 
     <wsdl:message name="getDataSetRequest"> 
     <wsdl:part name="in0" type="xsd:string" /> 
     </wsdl:message> 
     <wsdl:message name="setNameResponse" /> 
     <wsdl:message name="WebserviceException"> 
     <wsdl:part name="fault" type="impl:WebserviceException" /> 
     </wsdl:message> 
     <wsdl:message name="getDescriptionRequest"> 
     <wsdl:part name="in0" type="xsd:string" /> 
     <wsdl:part name="in1" type="xsd:long" /> 
     </wsdl:message> 
..... 

,當我與VS2010打開它下面的行強調:

<xsd:restriction base="soapenc:Array"> 

說出以下錯誤:

'未定義複雜類型的' http ://schmeas.xmlsoap.org/soap/encoding/:Array'用作複雜類型限制的基礎'

我不明白問題是什麼,這可能是我只得到零值的原因嗎? (我不是說NULL值btw。)

回答

1

經過幾個小時的嘗試和尋找解決方案,我可能找到了解決這個問題的方法。也許你們可以通過以下鏈接獲得幫助

Solution 1

相關問題