Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Could not find schema from URL source, file source, classpath or application context at this lcoatio

User_BAAXBJul 19 2017 — edited Jul 20 2017

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;

    }

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 17 2017
Added on Jul 19 2017
3 comments
606 views