Results 1 to 2 of 2

Thread: arguments are not coming, problem with SimpleJaxWsServiceExporter

  1. #1
    Join Date
    Apr 2011
    Posts
    12

    Lightbulb arguments are not coming, problem with SimpleJaxWsServiceExporter

    I have a simple web service in my application. The problem is when I am hitting it from a client, the arguments are coming as null.Please tell me if there are any missing configurations. The configurations are

    IN MY spring-servlet.xml
    Code:
    <bean class="org.springframework.remoting.jaxws.SimpleJaxWsServiceExporter">
    	 <property name="baseAddress" value="http://172.17.215.23:8989/services/"></property>
    	 </bean>
    In my service class
    Code:
    package com.tcs.sbi.kycone.ws;
    
    
    
    import javax.jws.WebMethod;
    import javax.jws.WebService;
    
    import org.apache.log4j.Logger;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.stereotype.Component;
    
    import com.tcs.sbi.kycone.services.WSIntegrationService;
    
    @Component
    @WebService(serviceName="kycone")
    public class KYCONE_WS {
    	Logger logger = Logger.getLogger(KYCONE_WS.class);
    	
    	@Autowired
    	private WSIntegrationService bancs24IntegrationService;
    	
    	@WebMethod
    	public String validateCustomerAndGetDocumentsInfo(String kycId){
    		
    		logger.info("Incoming request for customer enquiry for KYC ID : "+kycId);
    		
    		if(kycId==null || kycId.equals("")) return "MESSAGE NOT ACCEPTED. AS THE KYC-ID PROVIDED IS = "+kycId;
    		
    		return this.bancs24IntegrationService.validateCustomerAndGetDocumentsInfo(kycId);
    		
    	}
    	
    	@WebMethod
    	public String getDocumentDetails(String kycId, String docType){
    		
    		logger.info("Incoming request for document details with KYC ID : "+kycId+" and document type : "+docType);
    		
    		if(kycId==null || kycId.equals("")) return "MESSAGE NOT ACCEPTED. AS THE KYC-ID PROVIDED IS = "+kycId;
    		if(docType==null || docType.equals("")) return "MESSAGE NOT ACCEPTED. AS THE DOC TYPE PROVIDED IS = "+docType;
    		
    		return this.bancs24IntegrationService.getDocumentDetails(kycId, docType);
    		
    	}
    	
    	@WebMethod	
    	public String registerNewCustomerAndGetKYCID(String message){
    		
    		logger.info("Incoming request for new customer registration : "+message);
    		
    		if(message==null || message.equals("")) return "MESSAGE NOT ACCEPTED. AS THE MESSAGE PROVIDED IS = "+message;
    		
    		return this.bancs24IntegrationService.registerNewCustomerAndGetKYCID(message);
    		
    	}
    
    }
    In my wsdl I am getting

    Code:
    
      <?xml version="1.0" encoding="UTF-8" ?> 
    - <!--  Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.6 in JDK 6. 
      --> 
    - <!--  Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.6 in JDK 6. 
      --> 
    - <definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://ws.kycone.sbi.tcs.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://ws.kycone.sbi.tcs.com/" name="kycone">
    - <types>
    - <xsd:schema>
      <xsd:import namespace="http://ws.kycone.sbi.tcs.com/" schemaLocation="http://172.17.215.23:8989/services/kycone?xsd=1" /> 
      </xsd:schema>
      </types>
    - <message name="validateCustomerAndGetDocumentsInfo">
      <part name="parameters" element="tns:validateCustomerAndGetDocumentsInfo" /> 
      </message>
    - <message name="validateCustomerAndGetDocumentsInfoResponse">
      <part name="parameters" element="tns:validateCustomerAndGetDocumentsInfoResponse" /> 
      </message>
    - <message name="getDocumentDetails">
      <part name="parameters" element="tns:getDocumentDetails" /> 
      </message>
    - <message name="getDocumentDetailsResponse">
      <part name="parameters" element="tns:getDocumentDetailsResponse" /> 
      </message>
    - <message name="registerNewCustomerAndGetKYCID">
      <part name="parameters" element="tns:registerNewCustomerAndGetKYCID" /> 
      </message>
    - <message name="registerNewCustomerAndGetKYCIDResponse">
      <part name="parameters" element="tns:registerNewCustomerAndGetKYCIDResponse" /> 
      </message>
    - <portType name="KYCONE_WS">
    - <operation name="validateCustomerAndGetDocumentsInfo">
      <input message="tns:validateCustomerAndGetDocumentsInfo" /> 
      <output message="tns:validateCustomerAndGetDocumentsInfoResponse" /> 
      </operation>
    - <operation name="getDocumentDetails">
      <input message="tns:getDocumentDetails" /> 
      <output message="tns:getDocumentDetailsResponse" /> 
      </operation>
    - <operation name="registerNewCustomerAndGetKYCID">
      <input message="tns:registerNewCustomerAndGetKYCID" /> 
      <output message="tns:registerNewCustomerAndGetKYCIDResponse" /> 
      </operation>
      </portType>
    - <binding name="KYCONE_WSPortBinding" type="tns:KYCONE_WS">
      <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> 
    - <operation name="validateCustomerAndGetDocumentsInfo">
      <soap:operation soapAction="" /> 
    - <input>
      <soap:body use="literal" /> 
      </input>
    - <output>
      <soap:body use="literal" /> 
      </output>
      </operation>
    - <operation name="getDocumentDetails">
      <soap:operation soapAction="" /> 
    - <input>
      <soap:body use="literal" /> 
      </input>
    - <output>
      <soap:body use="literal" /> 
      </output>
      </operation>
    - <operation name="registerNewCustomerAndGetKYCID">
      <soap:operation soapAction="" /> 
    - <input>
      <soap:body use="literal" /> 
      </input>
    - <output>
      <soap:body use="literal" /> 
      </output>
      </operation>
      </binding>
    - <service name="kycone">
    - <port name="KYCONE_WSPort" binding="tns:KYCONE_WSPortBinding">
      <soap:address location="http://172.17.215.23:8989/services/kycone" /> 
      </port>
      </service>
      </definitions>

  2. #2
    Join Date
    Apr 2011
    Posts
    12

    Default

    guys can you please tell me, why the wsdl is coming like that??? is there any configuration issue?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •