Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 8 of 8

Error while connecting mp webservice : (401)Unauthorized

This is a discussion on Error while connecting mp webservice : (401)Unauthorized within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I am new to mappoint. I have got the evaluation account and I can login on the website using ...

  1. #1
    psbaj is offline Junior Member White Belt
    Join Date
    May 2004
    Posts
    1

    Error while connecting mp webservice : (401)Unauthorized

    Hi,
    I am new to mappoint. I have got the evaluation account and I can login on the website using the accountid and password. But using my java client i get the error.

    Any Help?

    Finding Service...
    Finding Service...
    Finding Address...
    AxisFault
    faultCode: {http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (401)Unauthorized
    faultActor:
    faultNode:
    faultDetail:
    {}string: return code: 401


    (401)Unauthorized
    at org.apache.axis.transport.http.HTTPSender.readFrom Socket(HTTPSender.java:630)
    at org.apache.axis.transport.http.HTTPSender.invoke(H TTPSender.java:12
    at org.apache.axis.strategies.InvocationStrategy.visi t(InvocationStrategy.java:71)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain .java:150)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.jav a:120)
    at org.apache.axis.client.AxisClient.invoke(AxisClien t.java:180)
    at org.apache.axis.client.Call.invokeEngine(Call.java :2564)
    at org.apache.axis.client.Call.invoke(Call.java:2553)
    at org.apache.axis.client.Call.invoke(Call.java:224
    at org.apache.axis.client.Call.invoke(Call.java:2171)
    at org.apache.axis.client.Call.invoke(Call.java:1691)
    at net.mappoint.s.mappoint_30.FindServiceSoapStub.fin dAddress(FindServiceSoapStub.java:1045)
    at LocationInformation.findAddressHelper(LocationInfo rmation.java:122)
    at LocationInformation.findAddress(LocationInformatio n.java:65)
    at MapPointClient.main(MapPointClient.java:41)
    (401)Unauthorized


    Thanks in advance.
    Prashant Baj

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    MapPoint 401 Access Error from Java

    I'm experiencing the same problem. Have you made any progress on this?

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    add .wsdd file into classpath ...

  4. #4
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Save the following code in a file "client-config.wsdd" and put in classpath

    <?xml version="1.0" encoding="UTF-8"?>
    <deployment name="defaultClientConfig"
    xmlns="http://xml.apache.org/axis/wsdd/"
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
    <transport name="http" pivot="java:SimpleHTTPSender"/>
    <transport name="local"
    pivot="javarg.apache.axis.transport.local.LocalSender"/>
    </deployment>


    This should solve the problem

  5. #5
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    On startup, an Axis client looks for a configuration file named client-config.wsdd in the current directory and in the classpath. To replace the sender, the file client-config.wsdd with a transport element should be used (see below). The easiest way to achieve this is to place the file in the directory where the Axis client is started.


    http://www.osmoticweb.com/axis-soap-compression.htm

    http://archives.ogsadai.org.uk/users/0303.html

  6. #6
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Still Does Not Work

    Hello,
    I have the client-config.wsdd file in my classpath, but I still get the 401 exception. I have verified the credentials with Microsofts, and I am using the same user name and password. However, I still have no luck. Any other possibilities where I might be going wrong?

    Finding Service...
    Finding Service...
    Finding Address...
    (401)Unauthorized

  7. #7
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    Thankx guys Solved my Problem

    by adding .wsdd file in classpath solved my problem

  8. #8
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    this topic is sucking

    this topic is sucking

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Error while accessing Map POint webservice
    By amitsh in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 11-22-2006, 01:27 PM
  2. http request error 401: unauthorized
    By okanss in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 06-09-2005, 03:52 PM
  3. Can MapPoint webservice do this?
    By Anonymous in forum Bing Maps and MapPoint Web Service
    Replies: 1
    Last Post: 02-14-2005, 09:13 AM
  4. MapPoint WebService http 403 forbidden error
    By duongtuphong in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 02-06-2005, 04:00 PM
  5. connecting points with lines
    By robert hunter in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 09-05-2002, 07:28 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not 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