Howdy, Stranger!

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


JAX-WS jython

rimmer69rimmer69 Member Posts: 1

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 import Service
from import URL
from ch01.ts import TimeServer
from java.lang import Object
from java.lang import Class

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

The error:

Traceback (most recent call last):
File "", line 12, in
eif = service.getPort(TimeServer.class)
AttributeError: instance attr: class

any ideas?

Thanks in advance
Sign In or Register to comment.