ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 26th, 2003, 09:58 AM
phlebas phlebas is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 1 phlebas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Passing complex to a web service

I need of a spot of help.

I am calling a simple webservice like this:

<cfinvoke
webservice="http://myaddress.com/IStaticData"
method="GetDropOffCityList"
returnvariable="bComplex">
<cfinvokeargument name="Login" value="taxi" />
<cfinvokeargument name="Password" value="test" />
<cfinvokeargument name="CompanyID" value="1" />
</cfinvoke>

The xml doc requires simple values:

<message name="GetVehicleTypes0Request">
<part name="Login" type="xs:string" />
<part name="Password" type="xs:string" />
<part name="CompanyID" type="xs:int" />
</message>

I am getting the correct information back, the problem comes in when i need to send a complex value:

<xs:complexType name="TBookOrder">
<xs:sequence>
<xs:element name="ServiceProviderID" type="xs:int" />
<xs:element name="ConfirmationID" type="xs:int" />
<xs:element name="OrderID" type="xs:int" />
</xs:sequence>
</xs:complexType>

What structure do you use for the data in TBookOrder?

<message name="SaveBookOrder2Request">
<part name="Login" type="xs:string" />
<part name="Password" type="xs:string" />
<part name="BookOrder" type="ns2:TBookOrder" />
</message>

I know i have cut up the XML doc alot here, but as you can see i need to nest the TBookOrder into SaveBookOrder2Request for sending, if this isn't enough information or makes no sense please post a message or if you have any idea please let me know.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Passing complex to a web service


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT