• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sun webservices tutorial

 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have some doubts in the tutorial (JX-RPC)
1. what is the purpose of config-interface.xml and jaxrpc-ri.xml files? I havent understood their differences?
2.The WSDL namespace is urn:Foo.
What does the above mean in config-interface.xml file? Is the namespace defined in WSDl schema?
3. What is service port? Does it refer to the exposed mehod ?

[ December 02, 2003: Message edited by: Pradeep Bhat ]
[ December 02, 2003: Message edited by: Pradeep Bhat ]
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without knowing in what context "urn:Foo" was used, I would guess that it's a sample namespace for the web service being deployed. In practice, that namespace would be named "urn:com-mycompany-webservices" or "http://mycompany.com/webservices" etc. It could be enlightening to just leave it as it is and see where it ends up in the resulting WSDL document...
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I did not find the mention of urn:Foo in the generated WSDL file. Am
I missing something ? I am new to Webservices.
[ December 02, 2003: Message edited by: Pradeep Bhat ]
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am getting the following error when I build the static client
[echo] Compiling the client source code....
[javac] Compiling 1 source file to D:\jwsdp-1.2\tutorial\jwstutorial13\examp
les\jaxrpc\staticstub\build
[javac] D:\jwsdp-1.2\tutorial\jwstutorial13\examples\jaxrpc\staticstub\src\H
elloClient.java:45: cannot resolve symbol
[javac] symbol : method sayHello (java.lang.String)
[javac] location: interface staticstub.HelloIF
[javac] System.out.println(hello.sayHello("Duke!"));
[javac] ^
[javac] D:\jwsdp-1.2\tutorial\jwstutorial13\examples\jaxrpc\staticstub\src\H
elloClient.java:53: cannot resolve symbol
[javac] symbol : class MyHelloService_Impl
[javac] location: class staticstub.HelloClient
[javac] return (Stub)(new MyHelloService_Impl().getHelloIFPort());
[javac] ^
[javac] 2 errors

Looks like it is not able to find MyHelloService_Impl class. The class is not generated by the build. Can some one help me?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradeep Bhat:
3. What is service port? Does it refer to the exposed mehod ?

A portType is like an interface specifying any number of operations (which map to methods in the Java implementation class). Then there's a port which exposes the portType using some particular binding (usually HTTP GET, HTTP POST or SOAP).
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between service name and service port ? Service name consists of number of servive port, right?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradeep Bhat:
The class is not generated by the build.
Perhaps you forgot to generate it using wsdl2java?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradeep Bhat:
What is the difference between service name and service port ? Service name consists of number of servive port, right?
A service is just a container for the provided interfaces (ports).
In fact, here's an interesting attempt to describe the WSDL element relationships in UML.
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps you forgot to generate it using wsdl2java?

Lasse, I am using Sun's tutorial and running the application using JWSDP.
The build script is provided in the tutorial and I havent modified it. I am just following the instructions in the tutorial.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic