Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Bruno Gubler #1
Access Stubs Library from Webservices
Hi
I am using Microsoft Webservices MapPoint like this in MX7:
<CFSCRIPT>
// RenderServiceSoap
myRenderServiceSoap =
createObject("webservice","http://staging.mappoint.net/standard-30/mappoint.wsdl
", "RenderServiceSoap");
myRenderServiceSoap.setUsername("#application.MapP ointUsername#");
myRenderServiceSoap.setPassword("#application.MapP ointPassword#");
</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
", "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 this Package by Programm-Code but
"Classpath to the Stub",
like over "coldfusion.server.ServiceFactory" or so?
Many Thanks in advance
Bruno
Bruno Gubler Guest
-
Problem with access to WebServices
I have written a generic proxy class for web services access This proxy class runs in the same server of WebService The class works fine if the... -
HELP! HELP! Access problem to WebServices
I have written a generic proxy class for web services access This proxy class runs in the same server of WebService The class works fine if the... -
Type re-definitions in WebServices + Auto Generated Proxy Stubs
I'm a little confused about autogenerated stub for web service (If i create manual one everything works great) the automatic one creates XML... -
Access exception in Webservices
hi, We are trying to enumerate sites on a MS Sharepoint portal server v2.0 through web services, using SPGlobalAdmin object of sharepoint. When... -
WebServices file access problem with UNC Name.
Hi everybody, First of all, I know that the question has been asked many times, but I've never seen the answer till now : I have a WebService...



Reply With Quote

