>The java code of the testcase:
>
> // Server
> PortalEaiPortBugRepImpl portalEaiPortImpl = new
>PortalEaiPortBugRepImpl();
> Endpoint portalEaiEndpoint =
>Endpoint.publish("http://localhost:8080/jaxws-test/portalEai",
> portalEaiPortImpl);
>
>
In the above case, a new WSDL is generated. Can you verify the generated
WSDL at
http://localhost:8080/jaxws-test/portalEai?wsdl. Check the binding section for the namespace.
You could also make endpoint to publish your original WSDL by using
endpoint.setMetadata(). This forum thread would help you on setting WSDL
& schema documents as metadata.
http://forums.java.net/jive/thread.jspa?forumID=46&threadID=1753&messageID=27692#27692
If you include the original WSDL and schema documents as metadata, it
will be used to find some binding information. Hopefully, that would
solve your problem.
> // Client Start
> PortalEaiService portalEaiService = new PortalEaiService();
> PortalEaiPortType portalEaiPortType =
>portalEaiService.getPortalEaiHttpPort();
>
> Map requestContext = ((BindingProvider)
>portalEaiPortType).getRequestContext();
> requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
> "http://localhost:82/jaxws-test/portalEai");
>
>
Isn't the server started above on port 8080 ? So why are you using 82 ?
Are you using the server at 8080 for some other purpose ?
Jitu
> String checkAddressResult =
>portalEaiPortType.checkAddress("TestRequestString");
>
> assertEquals("checkAddressResult.getOverallRemark()", "OverallRemark
>response",
> checkAddressResult);
>
> // Client end
>
> // Server stop
> portalEaiEndpoint.stop();
>
>
>The dummy server implementation:
>
>@WebService(endpointInterface =
>"com.o2.portal.fss.connector.jaxws.PortalEaiPortType")
>public class PortalEaiPortBugRepImpl implements PortalEaiPortType
>{
> public String checkAddress(String checkAddressRequest)
> {
> return "Response test string";
> }
>}
>
>Thanks in advance,
>Chris Wewerka
>
>
>