Python

Moderators: None (Apply to moderate this forum)
Number of threads: 400
Number of posts: 1055

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
JAX-WS jython Posted by rimmer69 on 12 Jan 2010 at 6:43 AM
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 <module>
eif = service.getPort(TimeServer.class)
AttributeError: instance attr: class


any ideas?

Thanks in advance



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.