Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

how to access java6 web service

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i read the faq, but didnt find answer there. i created java6 web service and i want to use it from browser. Please tell me how to use in pure html.

here is what i get when i go to http://localhost:9090/MyServer?wsdl



and here what i get when i go to http://localhost:9090/MyServer?xsd=1




in java code i use method



[ August 19, 2007: Message edited by: rave man ]

[ UD: added line breaks for easier reading ]
[ August 19, 2007: Message edited by: Ulf Dittmer ]
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello "rave man"-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.

As to your question, web services are not generally consumed by browsers. Sometimes that's possible -especially for REST-style WS- but this example does not seem to fall into that category. Have a look at the section "A Simple JAX-WS Client" in this article for instructions on how to create a Java client application for your WS.
[ August 19, 2007: Message edited by: Ulf Dittmer ]
 
Mieczyslaw Rakowski
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wow, i didnt know that we have java-java only WS, but everyday we learn something new i will check out REST WS, thanks for reply


on the plus side those java6 WS are very hard to create, i hope axis will be easier to use
[ August 19, 2007: Message edited by: Mieczyslaw Rakowski ]
 
Ulf Dittmer
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

on the plus side those java6 WS are very hard to create



You really think so? It can be as easy as adding a single "@WebService" annotation to a Java class; I'm not sure how to make it much simpler that that.
 
expectation is the root of all heartache - shakespeare. tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic