- This topic has 2 replies, 2 voices, and was last updated 15 years, 2 months ago by
support-chakri.
-
AuthorPosts
-
Stephen CuppettMemberMyEclipse 8.5. I have added the @Addressing annotation to my web service client:
@WebServiceClient(name = “ciIntegration”, targetNamespace = “http://www.cuppett.com/xml/schema/svcs/ci/integration”, wsdlLocation = “file:/C:/Users/stcupp/Desktop/ciIntegration-1.1.wsdl”)
@Addressing(enabled=true, required=true)
public class CiIntegration extends Service {
…However, I’m pretty sure this is using a much more recent version of the Addressing specification than the 200408 (submission specification). Later versions of the specification do not work with this web service.
Am I enabling the addressing headers correctly? Is there a way to get different versions passed?
May 6, 2010 at 2:47 pm #308192
Stephen CuppettMemberMy original annotation was wrong. That is for the server. For the client you need to change the getPort call to look something like this:
import com.sun.xml.ws.developer.MemberSubmissionAddressingFeature;
public CIMarketingIntegrationServiceSoap getCIMarketingIntegrationServiceSoapPort() {
return super.getPort(new QName(
“http://www.cuppett.com/xml/schema/svcs/ci/integration”,
“CIMarketingIntegrationServiceSoapPort”),
CIMarketingIntegrationServiceSoap.class, new MemberSubmissionAddressingFeature(true, true));
}For v200408. For v1.0 (200508), you’d use something like this:
import javax.xml.ws.soap.AddressingFeature;
public CIMarketingIntegrationServiceSoap getCIMarketingIntegrationServiceSoapPort() {
return super.getPort(new QName(
“http://www.cuppett.com/xml/schema/svcs/ci/integration”,
“CIMarketingIntegrationServiceSoapPort”),
CIMarketingIntegrationServiceSoap.class, new AddressingFeature(true, true));
}May 7, 2010 at 4:45 am #308210
support-chakriMemberHi cuppett,
I have escalated this to the dev team member, they will get back to you on this.
Thanks,
Chakri Vedula. -
AuthorPosts