Hi

 

I am using Microsoft Webservices MapPoint like this in MX7:

<CFSCRIPT>
// RenderServiceSoap 
myRenderServiceSoap =
createObject("webservice","http://staging.mappoint.net/standard-30/mappoint.wsdl
<http://staging.mappoint.net/standard-30/mappoint.wsdl%22,> ",
"RenderServiceSoap");
myRenderServiceSoap.setUsername("#application.MapPointUsername#");
myRenderServiceSoap.setPassword("#application.MapPointPassword#");
</CFSCRIPT>

MapPoint uses all over Arrays as Parameters like in the following example. I did
not found another way of giving Parameters to this Webservice.

// Pushpin 
myPushpins = ArrayNew(1);
myPushpins[1] = CreateObject("java", "net.mappoint.s.mappoint_30.Pushpin");
myPushpins[1].setIconDataSource("MapPoint.Icons");
myPushpins[1].setIconName("RedCircle1");
myPushpins[1].setLabel("Start");
myPushpins[1].setLatLong(myLatLong[1]);
myPushpins[2] = CreateObject("java", "net.mappoint.s.mappoint_30.Pushpin");
myPushpins[2].setIconDataSource("MapPoint.Icons");
myPushpins[2].setIconName("RedCircle2");
myPushpins[2].setLabel("End");
myPushpins[2].setLatLong(myLatLong[2]);

myArrayOfPushpin = CreateObject("java",
"net.mappoint.s.mappoint_30.ArrayOfPushpin");
myArrayOfPushpin.setPushpin(myPushpins);

1. Why do I have to use the Lib itself for creating a Array to pass to the
WebService?
Is there a other way for doing this?
(I think it has to do that CF-Arrays bgin with 1 and Java Arrays wiht 0)

2. The Stub / Package "net.mappoint.s.mappoint_30" created by
myRenderServiceSoap =
createObject("webservice","http://staging.mappoint.net/standard-30/mappoint.wsdl
<http://staging.mappoint.net/standard-30/mappoint.wsdl%22,> ",
"RenderServiceSoap");
has to be in Classpath to be used as
myArrayOfPushpin = CreateObject("java",
"net.mappoint.s.mappoint_30.ArrayOfPushpin");
Is there a other way of using/accessing Stubs (this Package) by Programm-Code
but adding this Package to the Classpath,
like over "coldfusion.server.ServiceFactory" or so?

Many Thanks in advance
Bruno

 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:212922
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to