Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > problem with complexTypes and arrayType in wsdl?

Reply
Thread Tools

problem with complexTypes and arrayType in wsdl?

 
 
DJShultz@gmail.com
Guest
Posts: n/a
 
      06-21-2006
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"
xmlnssd="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/"
xmlnssdl="/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/"
xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
xmlnssd="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>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
arrayType vs. typedArrayType? tobiah Python 0 12-15-2006 08:30 PM
is it possible to have a union of complextypes? sachin XML 1 12-02-2005 04:06 PM
Deriving complexTypes by restriction. bclark76@gmail.com XML 5 11-18-2005 02:55 AM
repost-.Net XmlValidatingReader should fail on complextypes withwhitespace? Larry XML 1 06-10-2004 06:55 PM
.Net XmlValidatingReader should fail on complextypes with whitespace? Larry XML 0 06-04-2004 12:59 PM



Advertisments