MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
cuppett
Post subject: JAX-WS Client, Enable Addressing, Submission specification  PostPosted: Apr 09, 2010 - 05:06 PM



Joined: May 15, 2007
Posts: 4

MyEclipse 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?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
cuppett
Post subject: [RESOLVED]  PostPosted: May 06, 2010 - 08:47 PM



Joined: May 15, 2007
Posts: 4

My 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));
}
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-chakri
Post subject: RE: [RESOLVED]  PostPosted: May 07, 2010 - 10:45 AM
Registered Member
Registered Member


Joined: Apr 05, 2010
Posts: 68

Hi cuppett,

I have escalated this to the dev team member, they will get back to you on this.

Thanks,
Chakri Vedula.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits