• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to access java6 web service

 
Mieczyslaw Rakowski
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 ]
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • 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: 42970
73
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!