Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Web Services
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams
this week in the
Agile and Other Processes
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Devaka Cooray
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Jeanne Boyarsky
Tim Cooke
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Mikalai Zaikin
Carey Brown
Bartenders:
Forum:
Web Services
Cant convert from accessType to XmlAccessType + JAXWS
Jigar Naik
Ranch Hand
Posts: 763
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Can anybody tell me the Route cause of this error ?
HelloClient.java
package com.india; import javax.xml.ws.WebServiceRef; public class HelloClient { @WebServiceRef(wsdlLocation="http://localhost:8080/HelloService/HelloService.wsdl") static HelloService service = new HelloService(); public static void main(String[] args) { System.out.println("Service : " + service); System.out.println(service.getServiceName()); Hello port = service.getHelloPort(); System.out.println("port : " + port); String response = port.sayHello("Jigar"); System.out.println("Response : " + response); } }
Full Stack Trace
Service : com.india.HelloService@b2a2d8 {http://india.com/}HelloService port : JAX-WS RI 2.1.1 in JDK 6: Stub for REPLACE_WITH_ACTUAL_URL Exception in thread "main" java.lang.Error: Unresolved compilation problem: Type mismatch: cannot convert from AccessType to XmlAccessType at com.india.SayHello.<init>(SayHello.java:29) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at com.sun.xml.internal.ws.client.sei.BodyBuilder$DocLit.build(BodyBuilder.java:200) at com.sun.xml.internal.ws.client.sei.BodyBuilder$JAXB.createMessage(BodyBuilder.java:85) at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.createRequestMessage(SyncMethodHandler.java:256) at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:223) at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210) at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:103) at $Proxy23.sayHello(Unknown Source) at com.india.HelloClient.main(HelloClient.java:13)
Jigar Naik
Jigar Naik
Ranch Hand
Posts: 763
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Problem solved.
previously i was running wsimport with jdk 1.5, I tried with jdk 1.6 and it worked fine.
but came up with another exception
*** Start *** Service : com.india.HelloService@b2a2d8 Exception in thread "main" javax.xml.ws.WebServiceException: Unsupported endpoint address: REPLACE_WITH_ACTUAL_URL at com.sun.xml.internal.ws.api.pipe.TransportTubeFactory.create(TransportTubeFactory.java:130) at com.sun.xml.internal.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:98) at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:581) at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:540) at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:525) at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:422) at com.sun.xml.internal.ws.client.Stub.process(Stub.java:235) at com.sun.xml.internal.ws.client.sei.SEIStub.doProcess(SEIStub.java:120) at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:230) at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210) at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:103) at $Proxy29.sayHello(Unknown Source) at com.india.HelloClient.main(HelloClient.java:12)
Jigar Naik
Cob is sand, clay and sometimes straw. This tiny ad is made of cob:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Compilation of a Dynamic Proxy Client
Java EE 5 Tutorial - Problem with Web Services
Type mismatch: cannot convert from AccessType to XmlAccessType
just firt web service is working
Nondescript "Unsupported Content-Type" error when connecting to https Sharepoint web services
More...