Hi,
I'm trying to consume a webservice, without success so far.
I'm using Websphere Studio Application Developer 5.1.2, and I successfully created a webservice, deployed it on a test server environment. I can see it's working, because I created a web project with a webservice client proxy, and I can successfully call the methods of the webservice.
But what I'm trying to do now, is to access it through a regular Java project. I created a new Java project, added a weservice client (it created a proxy from the wsdl provided through url), I also added a class and start coding on the "main". When I try to access the web the same way I do with the webproject (the way it works), I get the following error:
Don't know if I have to include any more classes, just need some helpl on understanding why it doesn't work ... google isn't helping much either ...
Thanks
I'm trying to consume a webservice, without success so far.
I'm using Websphere Studio Application Developer 5.1.2, and I successfully created a webservice, deployed it on a test server environment. I can see it's working, because I created a web project with a webservice client proxy, and I can successfully call the methods of the webservice.
But what I'm trying to do now, is to access it through a regular Java project. I created a new Java project, added a weservice client (it created a proxy from the wsdl provided through url), I also added a class and start coding on the "main". When I try to access the web the same way I do with the webproject (the way it works), I get the following error:
Exception in thread "main" java.lang.ExceptionInInitializerError
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:176)
at com.ibm.ws.webservices.engine.encoding.DefaultTypeMappingImpl.class$(DefaultTypeMappingImpl.java:128)
at com.ibm.ws.webservices.engine.encoding.DefaultTypeMappingImpl.<init>(DefaultTypeMappingImpl.java:311)
at com.ibm.ws.webservices.engine.encoding.DefaultTypeMappingImpl.getSingleton(DefaultTypeMappingImpl.java:138)
at com.ibm.ws.webservices.engine.encoding.TypeMappingRegistryImpl.<init>(TypeMappingRegistryImpl.java:206)
at com.ibm.ws.webservices.engine.configuration.SimpleEngineConfigurationProvider.getTypeMappingRegistry(SimpleEngineConfigurationProvider.java:201)
at com.ibm.ws.webservices.engine.configuration.SimpleEngineConfigurationProvider.getTypeMappingRegistry(SimpleEngineConfigurationProvider.java:197)
at com.ibm.ws.webservices.engine.WebServicesEngine.getTypeMappingRegistry(WebServicesEngine.java:426)
at com.ibm.ws.webservices.engine.client.Stub.getTypeMapping(Stub.java:617)
at pt.tap.webservice.ResourceBrokerSoapBindingStub.initTypeMapping(ResourceBrokerSoapBindingStub.java:27)
at pt.tap.webservice.ResourceBrokerSoapBindingStub.<init>(ResourceBrokerSoapBindingStub.java:20)
at pt.tap.webservice.ResourceBrokerServiceLocator.getResourceBroker(ResourceBrokerServiceLocator.java:44)
at pt.tap.webservice.ResourceBrokerServiceLocator.getResourceBroker(ResourceBrokerServiceLocator.java:39)
at pt.tap.webservice.ResourceBrokerProxy._initResourceBrokerProxy(ResourceBrokerProxy.java:24)
at pt.tap.webservice.ResourceBrokerProxy.<init>(ResourceBrokerProxy.java:9)
at RunAirportWeather.doResourceBroker(RunAirportWeather.java:30)
at RunAirportWeather.main(RunAirportWeather.java:42)
Caused by: java.lang.IllegalArgumentException: Unterminated quote
at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:712)
at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:511)
at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:460)
at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:441)
at at com.ibm.ws.webservices.engine.types.Time.<clinit>(Time.java:89).null(Unkn
wn Source)
... 18 more
Don't know if I have to include any more classes, just need some helpl on understanding why it doesn't work ... google isn't helping much either ...
Thanks