This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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 ]
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...
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?
Joined: Jan 23, 2002
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).