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/05/06 20:19:15 UTC
[jira] [Resolved] (CXF-5646) Need to remove ns1 from soapbody
[ https://issues.apache.org/jira/browse/CXF-5646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-5646.
------------------------------
Resolution: Not a Problem
Fix Version/s: Invalid
Assignee: Daniel Kulp
This isn't a bug. It's an information request which is suited for the mailing lists.
> Need to remove ns1 from soapbody
> ---------------------------------
>
> Key: CXF-5646
> URL: https://issues.apache.org/jira/browse/CXF-5646
> Project: CXF
> Issue Type: Bug
> Reporter: ankush
> Assignee: Daniel Kulp
> Fix For: Invalid
>
>
> Hello team,
> I am workign on CXF and want to have my response of my TestConnection like below :
> <?xml version="1.0" encoding="utf-8"?>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><TestConnectionResponse xmlns="http://tempuri.org/"><TestConnectionResult>Hello World</TestConnectionResult></TestConnectionResponse></soap:Body></soap:Envelope>
> But I am getting like below,
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <ns1:TestConnectionResponse xmlns:ns1="http://tempuri.org">
> <TestConnectionResult>Hello World</TestConnectionResult>
> </ns1:TestConnectionResponse>
> </soap:Body>
> </soap:Envelope>
> So how to add <?xml version="1.0" encoding="utf-8"?> in my response and Is it possible to remove ns1 from TestConnectionRespopnse element?
> I am using CXF without Spring.
> My Interface looks like :
> @WebService(targetNamespace="http://tempuri.org")
> public interface EFIRedirectConfig extends Remote
> {
> @WebResult(partName="TestConnectionResult")
> public String TestConnection() throws RemoteException;
> }
> And My server code :
> JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean ();
> svrFactory.setServiceClass(EFIRedirectConfig.class);
> svrFactory.setAddress("/EFIRedirectConfig");
> svrFactory.setServiceBean(new DefaultEFIRedirectConfig(m_webAppURLCreator,m_objectModel));
> svrFactory.getServiceFactory().setDataBinding(new XmlBeansDataBinding());
> svrFactory.create();
--
This message was sent by Atlassian JIRA
(v6.2#6252)