From: <breadfan_at_gmx.de>
Date: Thu, 11 May 2006 14:07:52 +0200 (MEST) >>From reading the thread, it sounds like you had a WSDL which you
>imported that WSDL and then implemented
>the client and the server. You then tried to publish your endpoint
>using the EndPoint apis but you did not
>include the original WSDL in the metadata. You then tried to invoke the
>published endpoint with the
>client created from the original WSDL. If this is what you did then
>you have made some mistakes
>that may be causing the problems.
PortalEaiPortBugRepImpl portalEaiPortImpl = new
PortalEaiPortBugRepImpl();
Endpoint portalEaiEndpoint = Endpoint.create(portalEaiPortImpl);
// use original wsdl
List<Source> metadata = new ArrayList<Source>();
String wsdlLoc =
"E:/prj/o2/o2-sg/sd_area51_3/OcToPuS/modules/fss-connector/test/res/wsdl/proposed-bugrep/portal-eai.wsdl";
InputStream origWsdl = new FileInputStream(wsdlLoc);
Source source = new StreamSource(origWsdl);
source.setSystemId(new URL("file://" + wsdlLoc).toExternalForm());
metadata.add(source);
>I believe you have two options, 1)
>include the original wsdl as meta-data when
>publishing your endpoint, or 2) generate the client from the JAX-WS
>generated WSDL. I believe your best
>option in #1.
In one of our use case scenarios we get the WSDL delivered from the service
implementor and use Jaxws-Server as a (unit/integration) testing and
stubbing possibility, so option 1 is our only option.