I have a webservice that I have to push data to. I am not a
.NET guys and cannot translate this to ColdFusion very well. Here
is an example of C# code provided. Attached on the bottom.
Now...
I've created following...
<cfset ws = Createobject("webservice","
https://url")>
<cfscript>
sOrder.CustomerId = 1;
sOrder.OrderStatus = "Incomplete";
sOrder.OrderDate = DateFormat(now(), "yyyy-mm-dd") & "T"
& TimeFormat(now(), "HH:mm:ss") & "Z";
sOrder.CurrencyCode = "USD";
sOrder.WarehouseID = "1";
sOrder.ShipMethodId = "2";
sOrder.PriceType = 1;
sOrder.FirstName = "misha";
sOrder.LastName = "misha";
sOrder.Company = "a";
sOrder.Address1 = "address1";
sOrder.Address2 = "address2";
sOrder.City = "sj";
sOrder.State = "CA";
sOrder.Zip = "33333";
sOrder.Country = "US";
sOrder.County = "a";
sOrder.Email = "test@test.com";
sOrder.Phone = "555-555-5555";
sOrder.Notes = "a";
sOrder.details = ArrayNew(1);
sOrder.details[1] = StructNew();
sOrder.details[1].ItemCode = "code1";
sOrder.details[1].Quantity = 1;
sOrder.details[2] = StructNew();
sOrder.details[2].ItemCode = "code2";
sOrder.details[2].Quantity = 1;
ws.CreateOrder(sOrder);
</cfscript>
This code throws an error
Web service operation CreateOrder with parameters {parameters
here} cannot be found.
What am I missing?