When I am consuming a webservice, an object has an undefined value
(inq3Type.Call3Data). I do not completely understand why this is happening
and apologize for the vague question. My assumption is that the WSDL is
defined incorrectly and .NET cannot parse the types. Any help is greatly
appreciated!
CustDDGSvc ws = new CustDDGSvc();
ws.Url = "http://dmapfra003.decisionone.com:8080/JISOAP/CustDDGSvc";
// don't understand why the inq3Type.Call3Data is <undefined value>
JI_M_INQCall3 inq3Type = ws.M_INQCall3("027378");
M_INQCall3_Call3Data_DataTemplate dataTemplate = inq3Type.Call3Data;
Following is the WSDL:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://CustDDGSvc.wsdlgen.EA_DDG"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://CustDDGSvc.wsdlgen.EA_DDG"
xmlns:intf="http://CustDDGSvc.wsdlgen.EA_DDG"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema targetNamespace="http://CustDDGSvc.wsdlgen.EA_DDG"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="M_INQCall3_Call3Data_DataTemplate">
<sequence>
<element name="CallStatus" nillable="true" type="xsd:string"/>
<element name="CSE14Info" nillable="true" type="xsd:string"/>
<element name="CSE6Info" nillable="true" type="xsd:string"/>
<element name="ReasonCode" nillable="true" type="xsd:string"/>
<element name="ManufSerial" nillable="true" type="xsd:string"/>
<element name="ReturnCode" nillable="true" type="xsd:string"/>
<element name="CSE2Info" nillable="true" type="xsd:string"/>
<element name="SiteAddress" nillable="true" type="xsd:string"/>
<element name="SiteName" nillable="true" type="xsd:string"/>
<element name="CSE10Info" nillable="true" type="xsd:string"/>
<element name="NPC" nillable="true" type="xsd:string"/>
<element name="EventComment" nillable="true" type="xsd:string"/>
<element name="DHRRcb" nillable="true" type="xsd:string"/>
<element name="SiteCity" nillable="true" type="xsd:string"/>
<element name="CSE9Info" nillable="true" type="xsd:string"/>
<element name="SiteZip" nillable="true" type="xsd:string"/>
<element name="Problem" nillable="true" type="xsd:string"/>
<element name="DHRRhours" nillable="true" type="xsd:string"/>
<element name="CSE13Info" nillable="true" type="xsd:string"/>
<element name="CSE5Info" nillable="true" type="xsd:string"/>
<element name="DispatcherID" nillable="true" type="xsd:string"/>
<element name="SupportCode" nillable="true" type="xsd:string"/>
<element name="AssignedCSE" nillable="true" type="xsd:string"/>
<element name="CustPO" nillable="true" type="xsd:string"/>
<element name="OpenDtTm" nillable="true" type="xsd:string"/>
<element name="ServiceCat" nillable="true" type="xsd:string"/>
<element name="CSE1Info" nillable="true" type="xsd:string"/>
<element name="ArriveDtTm" nillable="true" type="xsd:string"/>
<element name="ServAtName" nillable="true" type="xsd:string"/>
<element name="DDGCallNbr" nillable="true" type="xsd:string"/>
<element name="IDMSStatus" nillable="true" type="xsd:string"/>
<element name="CSE8Info" nillable="true" type="xsd:string"/>
<element name="DHRRdays" nillable="true" type="xsd:string"/>
<element name="Action" nillable="true" type="xsd:string"/>
<element name="CallType" nillable="true" type="xsd:string"/>
<element name="ContactPhone" nillable="true" type="xsd:string"/>
<element name="DDGAutoAssnFlag" nillable="true" type="xsd:string"/>
<element name="VABA" nillable="true" type="xsd:string"/>
<element name="CSE4Info" nillable="true" type="xsd:string"/>
<element name="CSE12Info" nillable="true" type="xsd:string"/>
<element name="ReferanceNbr" nillable="true" type="xsd:string"/>
<element name="TimeZone" nillable="true" type="xsd:string"/>
<element name="SitePhoneNbr" nillable="true" type="xsd:string"/>
<element name="ServiceAtCity" nillable="true" type="xsd:string"/>
<element name="AssesmentInd" nillable="true" type="xsd:string"/>
<element name="ETADtTm" nillable="true" type="xsd:string"/>
<element name="UpdateDispatcherID" nillable="true" type="xsd:string"/>
<element name="Unit" nillable="true" type="xsd:string"/>
<element name="CallEventCode" nillable="true" type="xsd:string"/>
<element name="ManufModel" nillable="true" type="xsd:string"/>
<element name="DHRRurg" nillable="true" type="xsd:string"/>
<element name="ServiceAtStreet" nillable="true" type="xsd:string"/>
<element name="DHRRrest" nillable="true" type="xsd:string"/>
<element name="SiteState" nillable="true" type="xsd:string"/>
<element name="CSE7Info" nillable="true" type="xsd:string"/>
<element name="EventCSE" nillable="true" type="xsd:string"/>
<element name="DeptName" nillable="true" type="xsd:string"/>
<element name="DHRRresp" nillable="true" type="xsd:string"/>
<element name="LastEntryDtTm" nillable="true" type="xsd:string"/>
<element name="EventDtTm" nillable="true" type="xsd:string"/>
<element name="DDGSite" nillable="true" type="xsd:string"/>
<element name="ManufID" nillable="true" type="xsd:string"/>
<element name="CSE3Info" nillable="true" type="xsd:string"/>
<element name="CSE11Info" nillable="true" type="xsd:string"/>
<element name="Priority" nillable="true" type="xsd:string"/>
<element name="ServiceAtDept" nillable="true" type="xsd:string"/>
<element name="ServiceAtZipPC" nillable="true" type="xsd:string"/>
<element name="ServiceAtState" nillable="true" type="xsd:string"/>
<element name="ContactName" nillable="true" type="xsd:string"/>
<element name="ManufType" nillable="true" type="xsd:string"/>
<element name="Symptom" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<complexType name="JI_M_INQCall3">
<sequence>
<element name="Call3Data" nillable="true"
type="impl:M_INQCall3_Call3Data_DataTemplate"/>
</sequence>
</complexType>
</schema>
</wsdl:types>
<wsdl:message name="M_INQCall3Response">
<wsdl:part name="M_INQCall3Return" type="intf:JI_M_INQCall3"/>
</wsdl:message>
<wsdl:message name="M_INQCall3Request">
<wsdl:part name="CallNum3" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="CustDDGSvc">
<wsdl:operation name="M_INQCall3" parameterOrder="CallNum3">
<wsdl:input message="intf:M_INQCall3Request"
name="M_INQCall3Request"/>
<wsdl:output message="intf:M_INQCall3Response"
name="M_INQCall3Response"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="CustDDGSvcPortSoapBinding" type="intf:CustDDGSvc">
<wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="M_INQCall3">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="M_INQCall3Request">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://CustDDGSvc.wsdlgen.EA_DDG" use="encoded"/>
</wsdl:input>
<wsdl:output name="M_INQCall3Response">
<wsdlsoap:body
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://CustDDGSvc.wsdlgen.EA_DDG" use="encoded"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="CustDDGSvc">
<wsdl:port binding="intf:CustDDGSvcPortSoapBinding"
name="CustDDGSvcPort">
<wsdlsoap:address
location="http://dmapfra003.decisionone.com:8080/JISOAP/CustDDGSvc"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>