ankush created CXF-5642:
---------------------------

             Summary: wrong targetNamespace in generated WSDL
                 Key: CXF-5642
                 URL: https://issues.apache.org/jira/browse/CXF-5642
             Project: CXF
          Issue Type: Bug
          Components: JAX-WS Runtime
    Affects Versions: 2.6.13, 2.6.11
            Reporter: ankush


The target namepsace returned by by calling ChangeStudentDetails ?wsdl is 
always "http://rpc.services.appbox.pace2020.com/";

<wsdl:definitions xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; 
xmlns:tns="http://rpc.services.appbox.pace2020.com/"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:ns1="http://schemas.xmlsoap.org/soap/http"; name="ChangeStudentDetails" 
targetNamespace="http://rpc.services.appbox.pace2020.com/";>

My Interface looks like :

package com.pace2020.appbox.services.rpc;
import javax.jws.WebMethod;
import javax.jws.WebService;

import com.pace2020.epace.blocks.rpc.efi.ObjectTest;

@WebService(targetNamespace="http://student.org";)
public interface ChangeStudentDetails {
  String changeName(String str);
  @WebMethod
  ObjectTest changeSecondName(String str);
}

and below how i am putting my service :

ServerFactoryBean svrFactory = new ServerFactoryBean();
                svrFactory.setServiceClass(ChangeStudentDetails.class);
                svrFactory.setAddress("/ChangeStudentDetails");
                svrFactory.setServiceBean(new ChangeStudentDetailsImpl());
svrFactory.create();
        

So Even setting targetNamespace ="http://student.org"; it is generating my 
package structure like "http://rpc.services.appbox.pace2020.com/";.

Can any one help me on this? i am not using Spring.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to