Question
CF web services driving me mad
Hi all,
I am attempting to consume some asp web services using CF8 and it is driving me beserk. I can connect when I am expecting nothing than multiple string or integer fields but as soon as I hit a service which is expecting a complex structure all I get is error messages back saying that web service operation with {field names} cannot be found.
Can anyone give me an example of how to build the complex structure as I have now read so many blogs that it is going around in circles.
Big thanks
Leigh
------
if anyone is interested the wsdl bit is pasted below.
- <s:element name="AddPurchaseOrderExternal">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Title" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Forename" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Surname" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Email" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Phone" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Mobile" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="DeliveryAddress" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="DeliveryTown" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="DeliveryCounty" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="DeliveryPostcode" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="DeliveryCountry" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="DeliveryNotes" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillingAddress" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillingTown" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillingCounty" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillingPostcode" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillingCountry" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="OrderNotes" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="PurchaseItems" type="tns:ArrayOfPurchaseItemInfoExternal" />
<s:element minOccurs="1" maxOccurs="1" name="TaxAmount" type="s:decimal" />
<s:element minOccurs="1" maxOccurs="1" name="DeliveryAmount" type="s:decimal" />
<s:element minOccurs="1" maxOccurs="1" name="DonationAmount" type="s:decimal" />
<s:element minOccurs="1" maxOccurs="1" name="TotalAmount" type="s:decimal" />
<s:element minOccurs="0" maxOccurs="1" name="MarketingInfo" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="NoFutureMailings" type="s:boolean" />
<s:element minOccurs="1" maxOccurs="1" name="OptInEmail" type="s:boolean" />
<s:element minOccurs="1" maxOccurs="1" name="EmailPDF" type="s:boolean" />
<s:element minOccurs="1" maxOccurs="1" name="IsTest" type="s:boolean" />
</s:sequence>
</s:complexType>
</s:element>
- <s:complexType name="ArrayOfPurchaseItemInfoExternal">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="PurchaseItemInfoExternal" type="tns:PurchaseItemInfoExternal" />
</s:sequence>
</s:complexType>
- <s:complexType name="PurchaseItemInfoExternal">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ProductName" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="Quantity" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="ItemPrice" type="s:decimal" />
</s:sequence>
</s:complexType>
- <s:element name="AddPurchaseOrderExternalResponse">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="AddPurchaseOrderExternalResult" type="s:int" />
</s:sequence>
</s:complexType>
</s:element>
I am attempting to consume some asp web services using CF8 and it is driving me beserk. I can connect when I am expecting nothing than multiple string or integer fields but as soon as I hit a service which is expecting a complex structure all I get is error messages back saying that web service operation with {field names} cannot be found.
Can anyone give me an example of how to build the complex structure as I have now read so many blogs that it is going around in circles.
Big thanks
Leigh
------
if anyone is interested the wsdl bit is pasted below.
- <s:element name="AddPurchaseOrderExternal">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Title" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Forename" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Surname" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Email" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Phone" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Mobile" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="DeliveryAddress" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="DeliveryTown" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="DeliveryCounty" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="DeliveryPostcode" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="DeliveryCountry" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="DeliveryNotes" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillingAddress" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillingTown" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillingCounty" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillingPostcode" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillingCountry" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="OrderNotes" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="PurchaseItems" type="tns:ArrayOfPurchaseItemInfoExternal" />
<s:element minOccurs="1" maxOccurs="1" name="TaxAmount" type="s:decimal" />
<s:element minOccurs="1" maxOccurs="1" name="DeliveryAmount" type="s:decimal" />
<s:element minOccurs="1" maxOccurs="1" name="DonationAmount" type="s:decimal" />
<s:element minOccurs="1" maxOccurs="1" name="TotalAmount" type="s:decimal" />
<s:element minOccurs="0" maxOccurs="1" name="MarketingInfo" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="NoFutureMailings" type="s:boolean" />
<s:element minOccurs="1" maxOccurs="1" name="OptInEmail" type="s:boolean" />
<s:element minOccurs="1" maxOccurs="1" name="EmailPDF" type="s:boolean" />
<s:element minOccurs="1" maxOccurs="1" name="IsTest" type="s:boolean" />
</s:sequence>
</s:complexType>
</s:element>
- <s:complexType name="ArrayOfPurchaseItemInfoExternal">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="PurchaseItemInfoExternal" type="tns:PurchaseItemInfoExternal" />
</s:sequence>
</s:complexType>
- <s:complexType name="PurchaseItemInfoExternal">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ProductName" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="Quantity" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="ItemPrice" type="s:decimal" />
</s:sequence>
</s:complexType>
- <s:element name="AddPurchaseOrderExternalResponse">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="AddPurchaseOrderExternalResult" type="s:int" />
</s:sequence>
</s:complexType>
</s:element>