Joel, the next thing is that .Net web services have been know to return a reference to a COM component rather than data, other developers have reported problems similar here on this list.

You said the other methods of the web service work, could it be possible that they are returning different data types to the one that's not working properly? That could be a fair indicator of what's going on.

I'd check with the .Net developer of this web service to see how they've built the web service as it's .Net that's the only application server that creates these problems for web services - if the data is an array, string, structure or combination you should have no problem.

I've used .Net web services that return COM references as results previously where I've had to work out what methods on the COM to call - it gets rather messy but it can be done.

If you can talk to the developer of the web service I'd do that first so as not to waste too much of your own time.

Andrew

Joel Nath wrote:
Hi Andrew,

Yes the function works correctly if i test it via VB.Net
hence
VB.Net => Web service WORKS
CFMX => Web service DOESNT WORK..:( (but only for the Book())


cheers Joel

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Andrew
Muller
Sent: Thursday, 12 August 2004 11:25
To: CFAussie Mailing List
Subject: [cfaussie] Re: URGENT: pls help.. CFMX web service


Joel

.Net web services are a little unfriendly at times, are you able to
confirm that the method you're trying to call is definately working -
especially since the others are.

Andrew

Joel Nath wrote:

Hi,

can anyone help me out here plssssssssss!!!!!

i am trying to consume a web service thats written in .NET,

but for some odd reason it doesnt seem to pick up the function call
correctly...

the WSDL can be found here.http://210.193.130.19/default.asmx?WSDL

they are 5 Functions.
i can call 4 out of the 5 functions...

i cant seem to be able to call the *BOOK()* function.
i get the following error..

"


Web service operation "Book" with parameters


{1,SYDCENT,Scotty,{RTREQ={[1]},[EMAIL PROTECTED],CARDAUTH={123}, USERATETABLE={N},ORIGBKGNO={e4b1c0e5},COMM={},PMCODE={CVCD},ARRDATE={11/08/2 004},FIRSTNAME={Joel},DEPTIME={},RTADULTCOUNT={[1]},CARDNO={5123456789012346 },LASTNAME={Nath},TOTALCOST={70.00},RTROOMCOST={[50.00]},COUNTRY={Australia} ,ARRTIME={},ADDRESS={302/182-190

hampden},STATE={NSW},PGCODE={},RTCODE={[2DES]},AGNCODE={},POSC={2064},NOOFRO
OMSTYPES={1},RTCHILDCOUNT={[0]},DEPDATE={15/08/2004},FAX={},PHONE={61

 02


94112746},CARDEXP={0405},},returnBookingChartsBRN,returnBookingTotalCost,err orMsg}

 could not be found.

The error occurred in *E:\wwwroot\joel\yha\test.cfm: line 65*

63 : <cfscript>
64 : ws = CreateObject("webservice",

"http://210.193.130.19/default.asmx?WSDL";);

*65 : ReturnCall = ws.Book(1, "SYDCENT", "Scotty", stForm,

"returnBookingChartsBRN", "returnBookingTotalCost", "errorMsg");*

66 : </cfscript>

"

i have checked that the correct parameters are being passed.
i have pasted some test code below which you could copy and paste for
testing purposes.

*<!--- START COPY --->*

<cfset aRtCode = ArrayNew(1)>
<cfset aRtCode[1] = "2DES" >
<cfset aRtReq = ArrayNew(1)>
<cfset aRtReq[1] = "1" >
<cfset aRtAdultCount = ArrayNew(1)>
<cfset aRtAdultCount[1] = "1" >
<cfset aRtChildCount = ArrayNew(1)>
<cfset aRtChildCount[1] = "0" >
<cfset aRtRoomCost = ArrayNew(1)>
<cfset aRtRoomCost[1] = "50.00" >

<cfset stForm = StructNew()>

<cfset stForm.OrigBkgNo = "e4b1c0e5"> <!--- Web BRN 20 char--->
<cfset stForm.ArrDate = "11/08/2004"> <!--- Date Object or DateTime
Object --->
<cfset stForm.ArrTime = ""> <!--- optional --->
<cfset stForm.DepDate = "15/08/2004"> <!--- Date Object or DateTime
Object --->
<cfset stForm.DepTime = ""> <!--- optional --->
<cfset stForm.LastName = "XXXX"> <!--- 20 chars --->
<cfset stForm.FirstName = "Joel"> <!--- 20 chars --->
<cfset stForm.Address = "49 Greek St"> <!--- 25 chars --->
<cfset stForm.State = "NSW"> <!--- 3 chars --->
<cfset stForm.Posc = "2064"> <!--- 12 chars --->
<cfset stForm.Country = "Australia"> <!--- 20 chars --->
<cfset stForm.Phone = "61 02 94112746"> <!--- 16 chars --->
<cfset stForm.Fax = ""> <!--- 16 chars ---> <!--- optional--->
<cfset stForm.Email = "[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>"> <!--- 40 chars --->
<cfset stForm.AgnCode = ""> <!--- 4 chars ---> <!--- optional--->
<cfset stForm.PgCode = ""> <!--- 10 chars ---> <!--- optional--->
<cfset stForm.PmCode = "CVCD">
<cfset stForm.CardNo = "5123456789012346"> <!--- 21 char --->
<cfset stForm.CardExp = "0405"> <!--- 5 char --->
<cfset stForm.CardAuth = "XXX"> <!--- 20 char --->
<cfset stForm.Comm = ""> <!--- 100 char --->
<cfset stForm.noOfRoomsTypes = "1">
<cfset stForm.RtCode = aRtCode>
<cfset stForm.RtReq = aRtReq>
<cfset stForm.RtAdultCount = aRtAdultCount>
<cfset stForm.RtChildCount = aRtChildCount>
<cfset stForm.RtRoomCost = aRtRoomCost>
<cfset stForm.UseRateTable = "N">
<cfset stForm.TotalCost = "70.00"> <!--- Total Cost for the Booking --->

<cfscript>
ws = CreateObject("webservice",

"http://210.193.130.19/default.asmx?WSDL";);

ReturnCall = ws.Book(1, "SYDCENT", "Scotty", stForm,
"returnBookingChartsBRN", "returnBookingTotalCost", "errorMsg");
</cfscript>


*<!--- END COPY --->*


Thanks for your help

Cheers
Joel


*Joel Nath * Senior Developer


*Redsquare*


[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>


Work: +61 2 8596 4067


Mobile: 0414 303965


*49 Greek Street Glebe, 2037 NSW, Australia*

Visit us at _www.redsquare.com.au <http://www.redsquare.com.au/>_ for
more information.





--

Andrew Muller
Partner

RocketBoots Pty Limited
Professional Services for Macromedia Technologies

http://www.rocketboots.com.au

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/




--

Andrew Muller
Partner

RocketBoots Pty Limited
Professional Services for Macromedia Technologies

http://www.rocketboots.com.au

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to