Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

JAX-WS jython

rimmer69rimmer69 Posts: 1Member
Hi,

I'm new to jython and stuck on what is probably a basic concept. This is the code snipet. The service.port is returning a class of type TimeServer.class.

from javax.xml.namespace import QName
from javax.xml.ws import Service
from java.net import URL
from ch01.ts import TimeServer
from java.lang import Object
from java.lang import Class


url1=URL("http://localhost:9876/ts?wsdl")
qname=QName("http://ts.ch01/", "TimeServerImplService")
service = Service.create(url1, qname)
eif = service.getPort(TimeServer.class)

The error:

c:jython2.5.1>jython webclient.py
Traceback (most recent call last):
File "webclient.py", line 12, in
eif = service.getPort(TimeServer.class)
AttributeError: instance attr: class


any ideas?

Thanks in advance
Sign In or Register to comment.