Skip to Main Content

Application Development Software

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!

How Can I call a UCM service from SOAP request

Santanu.WCCApr 8 2015 — edited Apr 8 2015

Hi,

I have created one custom service and I would like to call that service from 3rd Party system via SOAP call. The 3rd Party system does not have the capability to call through RIDC.

Now I have exposed my service and tried to call but authentication exception was coming status code 401.

So I created one sample ADF application and tried to call the DocInfo service for testing (I thought let's try DocInfo then I will check my custom service). I downloaded the DocInfo service from UCM and  uploaded the WSDL into the project and got the client DocInfoSoapClient.java file.

public class DocInfoSoapClient

{

  @WebServiceRef

  private static DocInfo docInfo;

  public static void main(String [] args)

  {

    docInfo = new DocInfo();

    DocInfoSoap docInfoSoap = docInfo.getDocInfoSoap();

    DocInfoByNameResult res = docInfoSoap.docInfoByName("TEST_001603", null);

    System.out.println(res.getContentInfo());

    // Add your code to call the desired methods.

  }  

}

The error is coming like:

Exception in thread "main" com.sun.xml.ws.client.ClientTransportAccessException: The server sent HTTP status code 401: Unauthorized: http://xxxxxxxx:16200/_dav/cs/idcplg

  at com.sun.xml.ws.transport.http.client.HttpTransportPipe.getClientTransportException(HttpTransportPipe.java:340)

I tried a lot but same error. There should be some process by which I can send the userid and password but failed. Even I tried to send the properties as key value pair in IdcPropertyList but I know that is wrong.

I checked the Issue: https://community.oracle.com/thread/2424460

But there was no answer.

Can anyone help on it?

Regards,

Santanu

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 6 2015
Added on Apr 8 2015
2 comments
1,874 views