none
Contract First WSDL Generator Tool for CSharp using Visual Studio 2008 SP1 RRS feed

  • Question

  • Dear All,

    I am looking for Contract First WSDL Generator Tool for CSharp using Visual Studio 2008 SP1.

    I used it WSCF.blue which can generate proxy and stubs for implementation and interfaces but some are missing compare to Jax-WS using same WSDL.

    The missing file implemnetaiton shown in below as Java

    package Test;
    
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.util.logging.Logger;
    import javax.xml.namespace.QName;
    import javax.xml.ws.Service;
    import javax.xml.ws.WebEndpoint;
    import javax.xml.ws.WebServiceClient;
    import javax.xml.ws.WebServiceFeature;
    
    
    /**
     * This class was generated by the JAX-WS RI.
     * JAX-WS RI 2.1.6 in JDK 6
     * Generated source version: 2.1
     * 
     */
    @WebServiceClient(name = "Service", targetNamespace = "Service", wsdlLocation = "file:/E:/java/Service/resources/Services.wsdl")
    public class Service_Ser
        extends Service
    {
    
        private final static URL SERVICE_WSDL_LOCATION;
        private final static Logger logger = Logger.getLogger(Service_Service.class.getName());
    
        static {
            URL url = null;
            try {
                URL baseUrl;
                baseUrl = Service_Service.class.getResource(".");
                url = new URL(baseUrl, "file:/E:/java/Service/resources/Services.wsdl");
            } catch (MalformedURLException e) {
                logger.warning("Failed to create URL for the wsdl Location: 'file:/E:/java/Service/resources/Services.wsdl', retrying as a local file");
                logger.warning(e.getMessage());
            }
            SERVICE_WSDL_LOCATION = url;
        }
    
        public AService_Service(URL wsdlLocation, QName serviceName) {
            super(wsdlLocation, serviceName);
        }
    
        public AService_Service() {
            super(ASERVICE_WSDL_LOCATION, new QName("http://services", "AService"));
        }
    
        /**
         * 
         * @return
         *     returns AService
         */
        @WebEndpoint(name = "AService_SOAPBinding")
        public AService getAServiceSOAPBinding() {
            return super.getPort(new QName("http://services", "AService_SOAPBinding"), AService.class);
        }
    
        /**
         * 
         * @param features
         *     A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy.  Supported features not in the <code>features</code> parameter will have their default values.
         * @return
         *     returns AService
         */
        @WebEndpoint(name = "AService_SOAPBinding")
        public AService getAServiceSOAPBinding(WebServiceFeature... features) {
            return super.getPort(new QName("http://services", "AService_SOAPBinding"), AService.class, features);
        }
    
    }

    Above is out of WSCF.blue Contract First Tool.

    package Test;
    
    import javax.jws.WebMethod;
    import javax.jws.WebParam;
    import javax.jws.WebResult;
    import javax.jws.WebService;
    import javax.jws.soap.SOAPBinding;
    import javax.xml.bind.annotation.XmlSeeAlso;
    
    
    /**
     * This class was generated by the JAX-WS RI.
     * JAX-WS RI 2.1.6 in JDK 6
     * Generated source version: 2.1
     * 
     */
    @WebService(name = "AService", targetNamespace = "http://services")
    @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
    @XmlSeeAlso({
        ObjectFactory.class
    })
    public interface AService {
    
    
        /**
         * 
         * @param addDataRequest
         * @return
         *     returns services.AddDataResponse
         */
        @WebMethod(operationName = "AddData", action = "http://services/AddData")
        @WebResult(name = "AddDataResponse", targetNamespace = "http://services/Data", partName = "AddDataResponse")
        public AddDataResponse addData(
            @WebParam(name = "AddDataRequest", targetNamespace = "http://services/Data", partName = "AddDataRequest")
            AddDataRequest addDataRequest);
        
    }
    

    Above seem like interfaces generated by WSCF.blue tool.

    I hope some one will advise me to get the right tools for me or make it some modification to that.

    Thanks and best regards

    Thursday, May 30, 2013 6:30 AM

Answers

All replies