We all know that after you have deployed a web service archive (typically webservices.war) to OC4J, the WSDL of the web service and the client side stubs can be generated on demand.
To access the WSDL of the web service you have deployed, just point your browser to
http://host:port//?wsdl.
To access the client side proxy stubs, point your browser to
http://host:port//?proxy_jar (proxy_source for source code).
There is proxy jar file which contains a Java class to serve as a proxy of the web service implementation reside in the server, it must be included in the CLASSPATH of your client application. The OC4J web services proxy jar file handles the construction of the soap request, marshal and unmarshal the parameters,etc . For each method exposed on the web service, there is a correspondent method in this proxy class, all you need to do is creating a client proxy and invoke the methods as follows:
MyWebServiceProxy proxy = new MyWebServiceProxy();
proxy.myMethod();
No comments:
Post a Comment