-
1. Re:
nehring Sep 23, 2005 5:42 PM (in response to ppollard)You should probably use wscompile instead of WSDL2Java.
Have you looked at: http://wiki.jboss.org/wiki/Wiki.jsp?page=WSDOCClientStepByStep
and: http://wiki.jboss.org/wiki/Wiki.jsp?page=WSDOCServiceStepByStep
I would imagine that wscompile can be configured to generate the server files from a WSDL....although I admit that I have not done that myself.
r,
Lance -
2. Re:
anil.saldhana Sep 24, 2005 6:28 PM (in response to ppollard)Use wscompile and look for client side generation.
http://docs.sun.com/source/817-6092/hman1m/wscompile.1m.html
Look for the WSDL element in the above url. -
3. Re:
pure Sep 25, 2005 1:56 PM (in response to ppollard)I havent done it but im going to do it soon on all our services. I think it is:
wscompile -import -keep
-
4. Re:
ppollard Sep 26, 2005 9:48 AM (in response to ppollard)I tried using the -import and -keep options but I receive these errors when trying to run the build script.
[wscompile] error: class javax.xml.rpc.holders.Holder not found.
[wscompile] error: -import requires a WSDL-based configuration file
My config files looks like<configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config"> <wsdl location="C:\partnerService.docliteral.wsdl" packageName="com.test.ejb.partnerService"/> </configuration>
And here is the target in the build file.<target name="client"> <wscompile keep="true" import="true" config="${src.dir}/com/test/ejb/abstractbean/config/abstractBean-config.xml"> </wscompile> </target>
-
5. Re:
pure Sep 27, 2005 1:42 PM (in response to ppollard)Hi!
Did a test run. Dont know if it is usable yet but somethings are generated
using jwsdp 1.6
Commandline:[pure@localhost wsdltest]$ wscompile.sh -import -keep config.xml [pure@localhost wsdltest]$ ls test MovieServiceAPI.class MovieService.class MovieService_Impl.java MovieService_Rent_RequestStruct.class MovieService_Rent_ResponseStruct.class MovieServiceAPI.java MovieService_Impl.class MovieService.java MovieService_Rent_RequestStruct.java MovieService_Rent_ResponseStruct.java
config.xml:<?xml version="1.0" encoding="UTF-8"?> <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config"> <wsdl location="Test.wsdl" packageName="test" /> </configuration>
The WSDL file:<?xml version="1.0" ?> <definitions name="OrganizationServiceEJB" targetNamespace="http://com.underworld.crimeportal" xmlns:tns="http://com.underworld.crimeportal" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> <types/> <message name="RentRequest"> <part name="MovieName" type="xsd:string"/> </message> <message name="RentResponse"> <part name="result" type="xsd:boolean"/> </message> <portType name="MovieService"> <operation name="Rent" parameterOrder="MovieName"> <input message="tns:RentRequest"/> <output message="tns:RentResponse"/> </operation> </portType> <binding name="MovieServiceBinding" type="tns:MovieService"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/> <operation name="Rent"> <soap:operation soapAction=""/> <input> <soap:body use="literal" namespace="http://com.underworld.crimeportal"/> </input> <output> <soap:body use="literal" namespace="http://com.underworld.crimeportal"/> </output> </operation> </binding> <service name="MovieServiceAPI"> <port name="MoviePort" binding="tns:MovieServiceBinding"> <soap:address location="REPLACE_WITH_ACTUAL_URL"/> </port> </service> </definitions>
-