D
DJShultz
My problem is that c# seems to get nothing back from this wsdl (source
below) and I'm wondering if I'm writing it wrong? sample xml returned
is also below. Can someone please either tell me what is wrong or
point me in the right direction? Is my mapping in wsdl correct with my
xml output?
I'm refering to my getSRGByWeek method (login works find and returns an
int)
--David Shultz
----WSDL--
<?xml version="1.0"?>
<definitions name="BoxofficeService"
targetNamespace="/RTK/Digitrak/SOAP/Client/Variety"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="/RTK/Digitrak/SOAP/Client/Variety"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsdl="/RTK/Digitrak/SOAP/Client/Variety"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<xsd:schema
targetNamespace="/RTK/Digitrak/SOAP/Client/Variety">
<xsd:element name="login">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="username" type="xsd:string" />
<xsd:element name="password" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="loginResponse" type="xsd:int" />
<xsd:element name="getSRGByWeekRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="usename" type="xsd:string" />
<xsd:element name="password" type="xsd:string" />
<xsd:element name="week" type="xsd:date" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="srg_title">
<xsd:all>
<xsd:element name="TITLE_NAME"
type="xsd:string" />
<xsd:element name="TITLE_NO"
type="xsd:string" />
<xsd:element name="EXHIBITION_WEEK"
type="xsd:date" />
<xsd:element name="REV"
type="xsd:string" />
<xsd:element name="WEEKEND_REV"
type="xsd:string" />
<xsd:element name="FRIDAY_REV"
type="xsd:string" />
<xsd:element name="SATURDAY_REV"
type="xsd:string" />
<xsd:element name="SUNDAY_REV"
type="xsd:string" />
<xsd:element name="MONDAY_REV"
type="xsd:string" />
<xsd:element name="TUESDAY_REV"
type="xsd:string" />
<xsd:element name="WEDNESDAY_REV"
type="xsd:string" />
<xsd:element name="THURSDAY_REV"
type="xsd:string" />
<xsd:element name="NUM_THEATERS"
type="xsd:string" />
<xsd:element name="WEEKEND_NUM_THEATERS"
type="xsd:string" />
<xsd:element name="FRIDAY_NUM_THEATERS"
type="xsd:string" />
<xsd:element name="SATURDAY_NUM_THEATERS"
type="xsd:string" />
<xsd:element name="SUNDAY_NUM_THEATERS"
type="xsd:string" />
<xsd:element name="MONDAY_NUM_THEATERS"
type="xsd:string" />
<xsd:element name="TUESDAY_NUM_THEATERS"
type="xsd:string" />
<xsd:element name="WEDNESDAY_NUM_THEATERS"
type="xsd:string" />
<xsd:element name="THURSDAY_NUM_THEATERS"
type="xsd:string" />
<xsd:element name="CUME_REV"
type="xsd:string" />
<xsd:element name="HOLIDAY_REV"
type="xsd:string" />
<xsd:element name="HOLIDAY_NUM_THEATERS"
type="xsd:string" />
</xsd:all>
</xsd:complexType>
<xsd:element name="ArrayOfSRGData">
<xsd:complexType>
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType"
wsdl:arrayType="xsdl:srg_title[]" />
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</types>
<message name="loginRequest">
<part name="loginRequestSoapMsg" element="xsdl:login" />
</message>
<message name="loginResponse">
<part name="result" element="xsdl:loginResponse" />
</message>
<message name="getSRGByWeekRequest">
<part name="getSRGByWeekReqSoapMsg"
element="xsdl:getSRGByWeekRequest" />
</message>
<message name="getSRGByWeekResponse">
<part name="result" element="xsdl:ArrayOfSRGData" />
</message>
<portType name="BoxofficeServicePortType">
<operation name="login">
<input message="tns:loginRequest" />
<output message="tns:loginResponse" />
</operation>
<operation name="getSRGByWeek">
<input message="tns:getSRGByWeekRequest" />
<output message="tns:getSRGByWeekResponse" />
</operation>
</portType>
<binding name="BoxofficeServiceBinding"
type="tns:BoxofficeServicePortType">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="login">
<soapperation style="document" soapAction="" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
<operation name="getSRGByWeek">
<soapperation style="document" soapAction="" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
</binding>
<service name="BoxofficeService">
<port name="WorldFunctionsPort"
binding="tns:BoxofficeServiceBinding">
<soap:address location="**Removed**"/>
</port>
</service>
</definitions>
--SAMPLE-XML--
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<getSRGByWeekResponse xmlns="/RTK/Digitrak/SOAP/Client/Variety">
<srg_title>
<monday_rev xsi:nil="true" />
<title_no xsi:type="xsd:int">408791</title_no>
<thursday_rev xsi:nil="true" />
<tuesday_num_theaters xsi:type="xsd:int">6</tuesday_num_theaters>
<thursday_num_theaters
xsi:type="xsd:int">6</thursday_num_theaters>
<wednesday_num_theaters
xsi:type="xsd:int">6</wednesday_num_theaters>
<weekend_rev xsi:type="xsd:int">46965</weekend_rev>
<holiday_rev xsi:nil="true" />
<friday_rev xsi:nil="true" />
<saturday_rev xsi:nil="true" />
<wednesday_rev xsi:nil="true" />
<sunday_rev xsi:nil="true" />
<exhibition_week xsi:type="xsd:string">20050107
00:00:00</exhibition_week>
<num_theaters xsi:type="xsd:int">6</num_theaters>
<weekend_num_theaters xsi:type="xsd:int">6</weekend_num_theaters>
<friday_num_theaters xsi:type="xsd:int">6</friday_num_theaters>
<holiday_num_theaters xsi:nil="true" />
<cume_rev xsi:type="xsd:int">56595670</cume_rev>
<saturday_num_theaters
xsi:type="xsd:int">6</saturday_num_theaters>
<title_name xsi:type="xsd:string">Space Station 3D</title_name>
<sunday_num_theaters xsi:type="xsd:int">6</sunday_num_theaters>
<monday_num_theaters xsi:type="xsd:int">6</monday_num_theaters>
<rev xsi:type="xsd:int">46965</rev>
<tuesday_rev xsi:nil="true" />
</srg_title>
</getSRGByWeekResponse>
</soap:Body>
</soap:Envelope>
below) and I'm wondering if I'm writing it wrong? sample xml returned
is also below. Can someone please either tell me what is wrong or
point me in the right direction? Is my mapping in wsdl correct with my
xml output?
I'm refering to my getSRGByWeek method (login works find and returns an
int)
--David Shultz
----WSDL--
<?xml version="1.0"?>
<definitions name="BoxofficeService"
targetNamespace="/RTK/Digitrak/SOAP/Client/Variety"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="/RTK/Digitrak/SOAP/Client/Variety"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsdl="/RTK/Digitrak/SOAP/Client/Variety"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<xsd:schema
targetNamespace="/RTK/Digitrak/SOAP/Client/Variety">
<xsd:element name="login">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="username" type="xsd:string" />
<xsd:element name="password" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="loginResponse" type="xsd:int" />
<xsd:element name="getSRGByWeekRequest">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="usename" type="xsd:string" />
<xsd:element name="password" type="xsd:string" />
<xsd:element name="week" type="xsd:date" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="srg_title">
<xsd:all>
<xsd:element name="TITLE_NAME"
type="xsd:string" />
<xsd:element name="TITLE_NO"
type="xsd:string" />
<xsd:element name="EXHIBITION_WEEK"
type="xsd:date" />
<xsd:element name="REV"
type="xsd:string" />
<xsd:element name="WEEKEND_REV"
type="xsd:string" />
<xsd:element name="FRIDAY_REV"
type="xsd:string" />
<xsd:element name="SATURDAY_REV"
type="xsd:string" />
<xsd:element name="SUNDAY_REV"
type="xsd:string" />
<xsd:element name="MONDAY_REV"
type="xsd:string" />
<xsd:element name="TUESDAY_REV"
type="xsd:string" />
<xsd:element name="WEDNESDAY_REV"
type="xsd:string" />
<xsd:element name="THURSDAY_REV"
type="xsd:string" />
<xsd:element name="NUM_THEATERS"
type="xsd:string" />
<xsd:element name="WEEKEND_NUM_THEATERS"
type="xsd:string" />
<xsd:element name="FRIDAY_NUM_THEATERS"
type="xsd:string" />
<xsd:element name="SATURDAY_NUM_THEATERS"
type="xsd:string" />
<xsd:element name="SUNDAY_NUM_THEATERS"
type="xsd:string" />
<xsd:element name="MONDAY_NUM_THEATERS"
type="xsd:string" />
<xsd:element name="TUESDAY_NUM_THEATERS"
type="xsd:string" />
<xsd:element name="WEDNESDAY_NUM_THEATERS"
type="xsd:string" />
<xsd:element name="THURSDAY_NUM_THEATERS"
type="xsd:string" />
<xsd:element name="CUME_REV"
type="xsd:string" />
<xsd:element name="HOLIDAY_REV"
type="xsd:string" />
<xsd:element name="HOLIDAY_NUM_THEATERS"
type="xsd:string" />
</xsd:all>
</xsd:complexType>
<xsd:element name="ArrayOfSRGData">
<xsd:complexType>
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType"
wsdl:arrayType="xsdl:srg_title[]" />
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</types>
<message name="loginRequest">
<part name="loginRequestSoapMsg" element="xsdl:login" />
</message>
<message name="loginResponse">
<part name="result" element="xsdl:loginResponse" />
</message>
<message name="getSRGByWeekRequest">
<part name="getSRGByWeekReqSoapMsg"
element="xsdl:getSRGByWeekRequest" />
</message>
<message name="getSRGByWeekResponse">
<part name="result" element="xsdl:ArrayOfSRGData" />
</message>
<portType name="BoxofficeServicePortType">
<operation name="login">
<input message="tns:loginRequest" />
<output message="tns:loginResponse" />
</operation>
<operation name="getSRGByWeek">
<input message="tns:getSRGByWeekRequest" />
<output message="tns:getSRGByWeekResponse" />
</operation>
</portType>
<binding name="BoxofficeServiceBinding"
type="tns:BoxofficeServicePortType">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="login">
<soapperation style="document" soapAction="" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
<operation name="getSRGByWeek">
<soapperation style="document" soapAction="" />
<input>
<soap:body use="literal" />
</input>
<output>
<soap:body use="literal" />
</output>
</operation>
</binding>
<service name="BoxofficeService">
<port name="WorldFunctionsPort"
binding="tns:BoxofficeServiceBinding">
<soap:address location="**Removed**"/>
</port>
</service>
</definitions>
--SAMPLE-XML--
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<getSRGByWeekResponse xmlns="/RTK/Digitrak/SOAP/Client/Variety">
<srg_title>
<monday_rev xsi:nil="true" />
<title_no xsi:type="xsd:int">408791</title_no>
<thursday_rev xsi:nil="true" />
<tuesday_num_theaters xsi:type="xsd:int">6</tuesday_num_theaters>
<thursday_num_theaters
xsi:type="xsd:int">6</thursday_num_theaters>
<wednesday_num_theaters
xsi:type="xsd:int">6</wednesday_num_theaters>
<weekend_rev xsi:type="xsd:int">46965</weekend_rev>
<holiday_rev xsi:nil="true" />
<friday_rev xsi:nil="true" />
<saturday_rev xsi:nil="true" />
<wednesday_rev xsi:nil="true" />
<sunday_rev xsi:nil="true" />
<exhibition_week xsi:type="xsd:string">20050107
00:00:00</exhibition_week>
<num_theaters xsi:type="xsd:int">6</num_theaters>
<weekend_num_theaters xsi:type="xsd:int">6</weekend_num_theaters>
<friday_num_theaters xsi:type="xsd:int">6</friday_num_theaters>
<holiday_num_theaters xsi:nil="true" />
<cume_rev xsi:type="xsd:int">56595670</cume_rev>
<saturday_num_theaters
xsi:type="xsd:int">6</saturday_num_theaters>
<title_name xsi:type="xsd:string">Space Station 3D</title_name>
<sunday_num_theaters xsi:type="xsd:int">6</sunday_num_theaters>
<monday_num_theaters xsi:type="xsd:int">6</monday_num_theaters>
<rev xsi:type="xsd:int">46965</rev>
<tuesday_rev xsi:nil="true" />
</srg_title>
</getSRGByWeekResponse>
</soap:Body>
</soap:Envelope>