Hi,
I'm new to Axis & webservices and ran into some problem trying to consume
the dailyDilbert webservice advertised at
http://esynaps.com/eSynaps_home.aspx
I generated the stubs etc. classes using the WSDL2Java util provided by axis
and used those classes to talk to the webservices.
It seems like the Service class constructor is verifying the HTML at the
SoapAddress?!!
Can someone please provide a few pointers on this? I might be using the
stubs classes the wrong way.
Thanks much!
Here's my client code:
DailyDilbertLocator ddl = new DailyDilbertLocator();
String endpoint = ddl.getDailyDilbertSoapAddress();
Service service = new Service(new URL(endpoint),
ddl.getServiceName());
DailyDilbertSoapStub ds = new DailyDilbertSoapStub(service);
String result = ds.dailyDilbertImagePath();
System.out.println("Image: " + result)
Here's the exception when I run it:
javax.xml.rpc.ServiceException: Error processing WSDL document:
java.lang.NullPointerException
at org.apache.axis.client.Service.initService(Service.java:269)
at org.apache.axis.client.Service.<init>(Service.java:194)
at com.wng.ws.dilbert.Client.main(Client.java:25)
- Exception:
org.xml.sax.SAXException: Fatal Error:
URI=http://www.esynaps.com/WebServices/DailyDiblert.asmx Line=68: The
element type "p" must be terminated by the matching end-tag "</p>".
at
org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(XMLUtils.java:556)
....
....
Kell
_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail.
http://www.hotmail.com