Thanks for response.
But i can't share the entire file, because its a third party one.
But i can share some imp parts of it.
anonymous wrote :
| <definitions
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
|
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
|
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| xmlns:zse="urn:mtr-co-in:zen.zse.v1"
| targetNamespace="urn:mtr-co-in:zen.zse.v1"
|
xmlns="http://schemas.xmlsoap.org/wsdl/">
| .
| .
| .
|
|
|
| <soap:address location="http://zenapp-dev.com:1687/"/>
|
|
|
|
using this wsdl, i generated client artifats.
please see below for service file
|
| 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;
|
| /**
| * This class was generated by the JAX-WS RI. JAX-WS RI 2.1.4-b01- Generated
| * source version: 2.0
| *
| */
| @WebServiceClient(name = "zseService", targetNamespace =
"urn:mtr-co-in:zen.zse.v1", wsdlLocation =
"http://zenapp-dev.com:1687/")
| public class ZseService extends Service {
|
| private final static URL ZSESERVICE_WSDL_LOCATION;
| private final static Logger logger = Logger
| .getLogger(v1.zse.zen.mtr_co_in.ZseService.class.getName());
|
| static {
| URL url = null;
| try {
| URL baseUrl;
| baseUrl = v1.zse.zen.mtr_co_in.ZseService.class.getResource(".");
| url = new URL(baseUrl,
| "http://zenapp-dev.com:1687/");
| } catch (MalformedURLException e) {
| logger
| .warning("Failed to create URL for the wsdl Location:
'http://zenapp-dev.com:1687/', retrying as a local file");
| logger.warning(e.getMessage());
| }
| ZSESERVICE_WSDL_LOCATION = url;
| }
|
| public ZseService(URL wsdlLocation, QName serviceName) {
| super(wsdlLocation, serviceName);
| }
|
| public ZseService() {
| super(ZSESERVICE_WSDL_LOCATION, new QName("urn:mtr-co-in:zen.zse.v1",
| "zseService"));
| }
|
| /**
| *
| * @return returns ZsePortType
| */
| @WebEndpoint(name = "zsePort")
| public ZsePortType getZsePort() {
| return super.getPort(
| new QName("urn:mtr-co-in:zen.zse.v1", "zsePort"),
| ZsePortType.class);
| }
|
| }
|
|
PLease let me know if anything else needed.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251964#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...