Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Bruno Gubler #1
Consuming MapPoint Webservice with MX 7
Hi,
I want to use Microsofts MapPoint Webservice, wich is username/password -
Protected, with MX7.
I tried with the following:
<cfinvoke
webservice="http://staging.mappoint.net/standard-30/mappoint.wsdl"
username="#application.MapPointUsername#"
password="#application.MapPointPassword#"
servicePort="CommonServiceSoap"
method="getVersionInfo"
returnvariable="aArrayOfVersionInfo">
</cfinvoke>
The username/password is correct but I got the following error.
Any Ideas?
MS writes: The credentials must be set before you call nay of the methods
================================================== ========
Error Occurred While Processing Request
Could not perform web service invocation "getVersionInfo".
Here is the fault returned when invoking the web service operation:
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (401)Unauthorized
faultActor:
faultNode:
faultDetail:
{}:return code: 401
{http://xml.apache.org/axis/}HttpErrorCode:401
The error occurred in D:\home\hnt20a031\oo\tests\Allg.cfm: line 42
40 : servicePort="CommonServiceSoap"
41 : method="getVersionInfo"
42 : returnvariable="aArrayOfVersionInfo">
43 : </cfinvoke>
44 : #aArrayOfVersionInfo[1].Component#<br>
--------------------------------------------------------------------------------
Please try the following:
Check the ColdFusion documentation to verify that you are using the correct
syntax.
Search the Knowledge Base to find a solution to your problem.
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR
1.1.4322)
Remote Address 217.162.63.240
Referrer
Date/Time 23-Jun-05 03:57 AM
Stack Trace (click to expand)
at cfAllg2ecfm1072237646.runPage(D:\home\hnt20a031\oo \tests\Allg.cfm:42)
coldfusion.xml.rpc.ServiceProxy$ServiceInvocationE xception: Could not perform
web service invocation "getVersionInfo".
at coldfusion.xml.rpc.ServiceProxy.invokeImpl(Service Proxy.java:230)
at coldfusion.xml.rpc.ServiceProxy.invoke(ServiceProx y.java:143)
at coldfusion.runtime.CfJspPage._invoke(CfJspPage.jav a:1587)
at coldfusion.tagext.lang.InvokeTag.doEndTag(InvokeTa g.java:388)
at cfAllg2ecfm1072237646.runPage(D:\home\hnt20a031\oo \tests\Allg.cfm:42)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java :152)
at coldfusion.tagext.lang.IncludeTag.doStartTag(Inclu deTag.java:343)
at coldfusion.filter.CfincludeFilter.invoke(Cfinclude Filter.java:65)
at coldfusion.filter.ApplicationFilter.invoke(Applica tionFilter.java:210)
at coldfusion.filter.RequestMonitorFilter.invoke(Requ estMonitorFilter.java:51)
at coldfusion.filter.PathFilter.invoke(PathFilter.jav a:86)
at coldfusion.filter.ExceptionFilter.invoke(Exception Filter.java:50)
at
coldfusion.filter.ClientScopePersistenceFilter.inv oke(ClientScopePersistenceFilt
er.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilt er.java:38)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilt er.java:38)
at coldfusion.filter.DatasourceFilter.invoke(Datasour ceFilter.java:22)
at coldfusion.CfmServlet.service(CfmServlet.java:105)
at coldfusion.bootstrap.BootstrapServlet.service(Boot strapServlet.java:78)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker. java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvok erChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequ estDispatcher.java:257)
at jrun.servlet.ServletEngineService.dispatch(Servlet EngineService.java:527)
at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable( JRunProxyService.java:204)
at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invok eRunnable(ThreadPool.java:349)
at
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRu nnable(ThreadPool.java:457)
at
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeR unnable(ThreadPool.java:295)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java :66)
Bruno Gubler Guest
-
Consuming webservice problem
I have created the sample webservice HelloWorld when I try to instantiate it from either a console app or a windows forms app I get the following... -
Consuming webservice using soap in VB.Net
Hi All, I have a web service and i wanted to access that webservice from a vb.net application. I have no problems accessing the web service either... -
MapPoint WebService - ZipCodes - PostalCodes - Territories
I need the zipcode (postalcode) to display on maps returned by the service. Is there a MapStyle enumeration that displays this? If not, can I... -
WebService::Mappoint module: Plans to upgrade for Mappoint 3.5? If not, options?
Well, the subject pretty much says it all. Thought I would post it here before emailing the module's author. If anyone knows whether plans are in... -
consuming webservice over ssl problem
Hey all I'm following msdn's 'Call a Web Service Using SSL' how to. I have complited successfully the first 2 steps (creating a simple web... -
Mr Black #2
Re: Consuming MapPoint Webservice with MX 7
As far as I know, MapPoint uses Digest authentication, which CF does not
support. In theory, you could support it on your own, but I don't know is it
possible to provide a custom header with cfinvoke or not.
An alternate way is to do everything on your own using CFHTTP (CF Web-services
support sucks anyway). Not a rocket science. However, the same problem here:
you need to support Digest. This replacement for CFHTTP:
[url]http://www.cftagstore.com/tags/cfxhttp5.cfm[/url]
supports Digest directly, if you under Windows.
Mr Black Guest
-
PaulH #3
Re: Consuming MapPoint Webservice with MX 7
have you seen [url]http://blogs.msdn.com/cthota/archive/2004/05/07/127964.aspx?[/url] what
exactly are you trying to do? are you fixed w/mappoint? i've had better luck
w/ESRI's webservice (arcWeb) and NAC or geoCoder US (if geocoding is what
you're after).
PaulH Guest
-
Bruno Gubler #4
Re: Consuming MapPoint Webservice with MX 7
I want to use Microsofts MapPoint with ColdFusion MX 7
Authentication
==============
The MapPoint Web Service uses HTTP digest authentication to validate accounts.
Unfortunately, as of the current version,
AXIS only supports basic authentication. Because ColdFusion simply
encapsulates AXIS, the ColdFusion Web Service layer
doesn't support digest authentication either.
==>
Does somebody have an emaple to work around this problem?
Bruno Gubler Guest



Reply With Quote

