users@jax-ws.java.net

Q: EndpointReference in service.createDispatch(EndpointReference, ...)?

From: Andreas Loew <Andreas.Loew_at_Sun.COM>
Date: Thu, 21 Jun 2007 12:25:49 +0200

All,

can someone please provide (or point to) an example of passing a proper
W3CEndpointReference into the

        service.createDispatch(EndpointReference, ...)

method?

I cannot figure out how the EPR must look like in order NOT to receive
the following stack trace:

Caused by: javax.xml.ws.WebServiceException: EPR does nt have
EndpointName in the Metadata
         at
com.sun.xml.ws.client.WSServiceDelegate.getPortNameFromEPR(WSServiceDelegate.java:527)
         at
com.sun.xml.ws.client.WSServiceDelegate.addPortEpr(WSServiceDelegate.java:468)
         at
com.sun.xml.ws.client.WSServiceDelegate.createDispatch(WSServiceDelegate.java:372)
         at javax.xml.ws.Service.createDispatch(Service.java:437)

Thanks in advance & best regards,

Andreas

-- 
Andreas Loew
Java Architect
Sun Microsystems (Germany)