We are trying to use UMS webservice in our custom code. We are using UMS Webservice API for that. We are getting error when we try to call the UMS Webservice using the API. Following is the error description. UMS webservice endpoint works fine when we test using Soap UI. Following is the error that we are seeing. Following is the code that I am trying to use.
javax.xml.ws.WebServiceException: Could not determine wsdl ports.
at oracle.j2ee.ws.common.jaxws.WSDLMetadata.initPorts(WSDLMetadata.java:174)
Caused by: java.io.IOException: Could not find schema from URL source, file source, classpath or application context at this lcoation: "zip:/META-INF/wsdl/usermessaging.wsdl"
at oracle.j2ee.ws.common.schema.SchemaLocator.getDocument(SchemaLocator.java:79)
at oracle.j2ee.ws.common.schema.SchemaHelper.getDocument(SchemaHelper.java:180)
Sample Code
public static oracle.ucs.messaging.ws.MessagingClient initializeProxy() {
MessagingClient mClient=null;
String endpoint="http://mytestserver.com:8001/ucs/messaging/webservice";
HashMap<String, Object> config = new HashMap<String, Object>();
config.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpoint);
config.put(ClientConstants.POLICIES, new String[] {"oracle/no_authentication_service_policy"});
config.put(MessagingConstants.APPLICATION_NAME, "selfreg-ws");
mClient = new oracle.ucs.messaging.ws.MessagingClient(config);
return mClient;
}