Consuming MapPoint Webservice with MX 7

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139