cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-5642) wrong targetNamespace in generated WSDL
Date Tue, 25 Mar 2014 13:28:16 GMT

    [ https://issues.apache.org/jira/browse/CXF-5642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13946505#comment-13946505
] 

Daniel Kulp commented on CXF-5642:
----------------------------------

You are using the simple frontend that woudn't know anything about the annotations.    Use
the JaxWsServerFactoryBean instead of the ServerFactoryBean so the annotation would be picked
up.


> 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.11, 2.6.13
>            Reporter: ankush
>             Fix For: Invalid
>
>
> 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)

Mime
View raw message