User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the RSS, Web Services and SOAP section within the Web Development category of DaniWeb, a massive community of 427,195 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,161 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our RSS, Web Services and SOAP advertiser: Programming Forums

Accessing a Web Service

Join Date: Aug 2006
Location: South Africa, Durban
Posts: 107
Reputation: PoovenM is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 8
PoovenM PoovenM is offline Offline
Junior Poster

Question Accessing a Web Service

  #1  
Jan 7th, 2008
Hey guys, I'm really new to this I've managed to setup a Web Service and a Client to access the service within Eclipse. However, I want to access a Web Service that already exists. From what I understand, that service must have a WSDL (Web Services Description Language) for it to be used by Eclipse. The Web Service that I want to interact with does not have a WSDL or at the very least it doesn't have a .wsdl file. Um I'm hoping that's possible or perhaps I've confused the application I'm trying to access for a Web Service?

I'm using a pre-defined platform that can process SOAP requests. Just to confirm the following is a SOAP request hey?
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <GetObservation service="SOS" version="0.0.31"
  3. xmlns="http://www.opengeospatial.net/sos"
  4. xmlns:gml="http://www.opengis.net/gml"
  5. xmlns:ogc="http://www.opengis.net/ogc"
  6. xmlns:ows="http://www.opengeospatial.net/ows"
  7. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  8. xmlns:swe="http://www.opengis.net/swe">
  9. <offering>TAG_READING</offering>
  10. <eventTime>
  11. <ogc:During>
  12. <gml:TimePeriod>
  13. <gml:beginPosition>2007-12-10T08:00:00</gml:beginPosition>
  14. <gml:endPosition>2007-12-13T12:00:00</gml:endPosition>
  15. </gml:TimePeriod>
  16. </ogc:During>
  17. </eventTime>
  18. <procedure>urn:ogc:def:procedure:wavertrend_rx201_sensory_web</procedure>
  19. <observedProperty>urn:ogc:def:phenomenon:OGC:1.0.30:temperature</observedProperty>
  20. <featureOfInterest>
  21. <ObjectID>COR01</ObjectID>
  22. </featureOfInterest>
  23. <resultFormat>text/xml;subtype="OM"</resultFormat>
  24. </GetObservation>

I want to be able to send requests via a Java program and interpret these results within the program. Can anyone please tell me how this is done? I'd need the appropriate .jar files hey? I'm not sure what they are or if they even come with Eclipse. The version of Eclipse that I have is the JaveEE one. Please advise
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 10:27 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC