Discussion:
MapPoint WS with JAXWS
(too old to reply)
Wlad
2008-06-03 19:43:00 UTC
Permalink
Hi,

I am trying to develop a client application for the MWS. I have generated
all needed classes with the JAXWS, and now then I am trying to call the
service like this:

FindService findService = new FindService();
FindServiceSoap serviceProxy = findService.getFindServiceSoap();
serviceProxy. ....

I get the Error:
Exception in thread "main" javax.xml.ws.WebServiceException:
{http://s.mappoint.net/mappoint-30/}FindService is not a valid service. Valid
services are:
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source)
at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(Unknown
Source)
at javax.xml.ws.Service.<init>(Unknown Source)
at net.mappoint.s.mappoint_30.FindService.<init>(FindService.java:43)
at de.igd.fhg.a5.client.MapPointClient.testFind(MapPointClient.java:47)
at de.igd.fhg.a5.client.MapPointClient.main(MapPointClient.java:53)

What I am doing wrong? I have a developer account, but I don't know, how
should I authenticate me. Please help?
Derek Chan
2008-06-03 20:29:00 UTC
Permalink
Hi,

I'm not familiar with using JAXWS but in general the coding is different
when consuming web services using Java depending on what third party software
you're using to consume MWS. It might help to start here:
http://go.mappoint.net/mappointmpac/

As a side note, I'm currently using Axis which handles WSDL2Java for the
proxy classes and also can handle digest authentication required by MWS by
using an override on the configuration files.

Regards,
--
Infusion Development
http://www.infusion.com
Post by Wlad
Hi,
I am trying to develop a client application for the MWS. I have generated
all needed classes with the JAXWS, and now then I am trying to call the
FindService findService = new FindService();
FindServiceSoap serviceProxy = findService.getFindServiceSoap();
serviceProxy. ....
{http://s.mappoint.net/mappoint-30/}FindService is not a valid service. Valid
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source)
at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(Unknown Source)
at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(Unknown
Source)
at javax.xml.ws.Service.<init>(Unknown Source)
at net.mappoint.s.mappoint_30.FindService.<init>(FindService.java:43)
at de.igd.fhg.a5.client.MapPointClient.testFind(MapPointClient.java:47)
at de.igd.fhg.a5.client.MapPointClient.main(MapPointClient.java:53)
What I am doing wrong? I have a developer account, but I don't know, how
should I authenticate me. Please help?
Loading...