Working with WSDL's

137 views
Skip to first unread message

B. West

unread,
Mar 7, 2013, 1:05:27 AM3/7/13
to gosu...@googlegroups.com
Greetings, 

I'm new to GOSU and am playing with some of the features.  I've downloaded and created a WSDL file from the referenced WebService:  (http://wsf.cdyne.com/WeatherWS/Weather.asmx?wsdl)

Where the problem is occurring is when trying to reference that wsdl in the gosu code, intellij is telling me there is no such type.    

here is my code:  

var ws = new ws.test.myservice()      (compilation error : no type myservice found in package ws.test)
var r = ws.GetCityWeatherByZIP(94114)
print( r.Description )

here is the program structure: 

gosutest
  -src
      -ws
           -test
                -MyService.wsdl
      -main.gsp


Am I doing something wrong?  Thanks for any / all suggestions.  

Thanks 

Dana Lank

unread,
Mar 7, 2013, 1:07:24 AM3/7/13
to gosu...@googlegroups.com
It would be something like new ws.test.myservice.Weather()

Also, make sure you have the xml and webservices libraries downloaded and installed, as detailed in the docs.

Dana


--
You received this message because you are subscribed to the Google Groups "gosu-lang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gosu-lang+...@googlegroups.com.
To post to this group, send email to gosu...@googlegroups.com.
Visit this group at http://groups.google.com/group/gosu-lang?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

B. West

unread,
Mar 7, 2013, 12:09:08 PM3/7/13
to gosu...@googlegroups.com
Dana, 

I made the changes you suggested, and verified that i had the XML and WS jar's listed as dependencies.  Feel like i'm missing something here.  Not entirely familier with IntelliJ, not sure if this is the issue.   I'll i've done is placed my wsdl in the src structure, am I missing a step?  

B. West

unread,
Mar 7, 2013, 3:55:26 PM3/7/13
to gosu...@googlegroups.com
I've made some progress - i've gotten the WSDL type picked up.  However, when executing the code.  I received the following message: 

WARNING cannot load methods of gw.internal.xml.ws.server.WebservicesRequest. null

This feels like some sort of jar problem.   I have these jar's in the project:  

gosu-process-0.10.1.jar
gosu-servlet-0.10.1.jar
gosu-webservices-0.10.1.jar
gosu-xml-0.10.1.jar

along with the intelliJ canned default GOSU SDK.  

Anyone have any ideas?  

Vyktur with a Y

unread,
Mar 7, 2013, 11:25:10 PM3/7/13
to gosu-lang
I had to add javax-servlet-api, available via maven using "javax.servlet:javax.servlet-api:3.0.1" but you can download anywhere.


--

Vyktur with a Y

unread,
Mar 10, 2013, 6:07:25 PM3/10/13
to gosu-lang
Didn't hear back if that solved your problem. But here: why not keep it concrete with an example? https://github.com/roxchkplusony/gosu-webservices-example.

Cheers,
Y

B. West

unread,
Mar 10, 2013, 10:47:04 PM3/10/13
to gosu...@googlegroups.com
Y,

Got it!  javax.servlet.api did the trick.  I will also check out the example as well!  Thanks so my for your help.  Excited to try out some of these features.  

Thanks again, 

Vyktur with a Y

unread,
Mar 11, 2013, 12:34:07 AM3/11/13
to gosu-lang
:)
Reply all
Reply to author
Forward
0 new messages