Web Service Utilisation

103 views
Skip to first unread message

JackT

unread,
Feb 22, 2012, 9:35:56 AM2/22/12
to pulp...@googlegroups.com
I have just began using PulpCore to implement a simple educational game for some university project work and I have to admit the results are brilliant so far. I have however came across an issue which I am wondering if anyone can assist with.

Overview:

The educational game integrates a chat bot to assist with further learning throughout the game experienced. This chat bot is implemented with a C# Web Service which has various functions exposed over SOAP. 
I am using Netbeans 7.0.1 as my IDE utilising the .nbm template (Netbeans Module).

Error Stack:

[pulpcore-player] com.sun.xml.internal.ws.model.RuntimeModelerException: A WebService annotation is not present on class: webservice.ChatBotServiceSoap
[pulpcore-player]  at com.sun.xml.internal.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:192)
[pulpcore-player]  at com.sun.xml.internal.ws.client.WSServiceDelegate.createSEIPortInfo(WSServiceDelegate.java:652)
[pulpcore-player]  at com.sun.xml.internal.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:640)
[pulpcore-player]  at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:332)
[pulpcore-player]  at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:315)
[pulpcore-player]  at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:297)
[pulpcore-player]  at javax.xml.ws.Service.getPort(Service.java:119)
[pulpcore-player]  at webservice.ChatBotService.getChatBotServiceSoap(ChatBotService.java:72)
[pulpcore-player]  at ChatBotConnector.getResponce(ChatBotConnector.java:18)
[pulpcore-player]  at MainScene.printChat(MainScene.java:60)
[pulpcore-player]  at MainScene.update(MainScene.java:53)
[pulpcore-player]  at pulpcore.scene.Scene2D.updateScene(Scene2D.java:700)
[pulpcore-player]  at pulpcore.Stage.animationLoop(Stage.java:691)
[pulpcore-player]  at pulpcore.Stage.run(Stage.java:517)
[pulpcore-player]  at java.lang.Thread.run(Thread.java:722)

I am aware that the ANT build xml is almost entirely bespoke, which i believe causes and issue when trying to include this Web Service. As of yet I have attempted several things to try to integrate Web Service Capability within the Build.xml, Importing new web service Jar files and using wsimport to create Web Service implementation files - none have which worked. 

Apologies if my knowledge of Java and what i've explained above is either incorrect or not in enough detail as my background is primarily in C++. If you require to have any more information then i will be more than happy to supply this.

Thanks in advance! 

Sisso

unread,
Feb 22, 2012, 10:23:10 AM2/22/12
to pulp...@googlegroups.com
I don't know how to help you with this build problem. But I would like to suggest another if everything fail. You could abstract this SOAP api in something more simple like rest, then you can call it directly by java or through javascript.

[]s,
Sisso

2012/2/22 JackT <jackth...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "PulpCore" group.
To view this discussion on the web visit https://groups.google.com/d/msg/pulpcore/-/G3y-ccFBGnEJ.
To post to this group, send email to pulp...@googlegroups.com.
To unsubscribe from this group, send email to pulpcore+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pulpcore?hl=en.

Reply all
Reply to author
Forward
0 new messages