You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2014/03/25 14:28:16 UTC
[jira] [Commented] (CXF-5642) wrong targetNamespace in generated
WSDL
[ 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)