Current Position:Home > Accessing IRM Web Services with Coldfsuion

Accessing IRM Web Services with Coldfsuion

Update:11-30Source: network consolidation
Advertisement
We are looking to use the IRM web services with Coldfusion. Coldfusion abstracts Web Services calls through Java calls to the point of just setting up structures and calling the functions.
My question is about the process for building the correct parameters for the IRM services. I have the JDeveloper examples working but I can't make enough sense of what is goin on through all the calls to build the proper information.
What I don't understand yet are things like where do I get the server key and at what point do I authenticate? Do I need to do separate calls for these things.
I've captured a soap transaction for the update user example in JDeveloper and see there is a serverKey but no other authentication. Is this all I need?
The web services documentation mentions authentication needs to be basic authentication. Other than that there is not more info. Is there any other source of info?

The Best Answer

Advertisement
Hi
Sorry, things are a bit confused when it comes to Web Services (WS) documentation. At the moment (in 10g), it's mixed up with the older stuff in the Component API Help file. Also, apart from a few snippets and the JDeveloper examples, there is no WS sample code. We hope to address this in 11g.
The web services required HTTP basic authentication details to be set before the call is invoked. This will be the username and password of the sealing user, so that user will need to be configured to use Standard Auth, rather than NT Auth. How to set this depends on the web service stack used on the client, but with JAX-RPC there are APIs that allow the user name and password to be specified. e.g.
+// User name for authentication purposes+
contextServices._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY,args[1]);
+// Password for authentication purposes+
contextServices._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY,args[2]);
This snippet is in the Help file under the header "Authentication", or directly via:
mk:@MSITStore:C:\Program%20Files\SealedMedia\Enterprise%20APIs%20SDK\Components%20SDK\Docs\smcomponents.chm::/ws_documentation_authentication.htm
As for the Server Key, each IRM Server has a unique UUID value. The easiest way to get this is to call the following web service method on the “ServerServices” web service port.
LicenseServer_ref reference = serverServices.getLicenseServerReference();
System.out.println(reference.getServerKey());
One you’ve obtained this it will never change (for the server you are using) and can be cached or stored for all future web service calls.
I think you need to have the auth properties set, and the Server Key handy, for most WS methods to work, but I don't think it matters in which order you get them.
Hope this helps,
David
  • Accessing IRM Web Services with Coldfsuion Update:11-30

    We are looking to use the IRM web services with Coldfusion. Coldfusion abstracts Web Services calls through Java calls to the point of just setting up structures and calling the functions. My question is about the process for building the correct par

  • How to access .asmx Web Service using JAVA? Newbie Update:10-11

    Hello Experts, Currently, I have a project where in I have to access a ,NET web service. It is made of C#. I just want to ask how will I start the accessing process? I made this simple equation on how my project is. Java Project + C#.Net Web Service

  • How to access existing Web Service Update:10-11

    I want to access the web service (SOAP) from java classes. Can Any body help me by sending sample code providing that how to send my XML content to the existing web service and get the response from that. I want to further analyse that it is succedde

  • How to access the Web Service Browser Update:10-11

    Hi, I need to access the Web Service Browser to generate a Web Service Description. How can I do it? I use the follow url: http://<host_name>:<port_number>/sap/bc/bsp/sap/WebServiceBrowser/search.html?sap-client=<relevant_client> but I c

  • How to access a  web service(.wsdl) from portal component. Update:10-11

    Hi , Is there any document/tutorial available on how to access a webservice from portal component ? I have found this linkhttps://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/ep/g-i/how to access a web service.htm... but

  • How To Access HTTPS Web Service  in Application Module Update:10-11

    I need to know how to access HTTPS web service in application module. If you can provide the tutorial or guidance to achieve this really appreciate. Thanks SameeraUse the Web Service Proxy wizard in JDeveloper to create a class that calls your Web se

  • How to access a web service from a XLet Update:10-11

    Hello, I am new in software development to ITV and I dint find too many usefull information teaching how to access a web service from a XLet running in a STB. Are there anybody who can give me some help, maybe sample or tutorial? Gratefull Davidhi, y

  • How to use Axis to access a web service through Authentication  proxy Update:10-11

    Using axis access internat web service is success,but access a web service through Authentication proxy is failure.But other java classes connect through a proxy to the internet which works very well: please help me ,thank you!!! import org.apache.ax

  • Visual Studio 2012: Can't access Sharepoint Web Services because of Discovery Credentials Prompt Update:10-11

      Hi. I've exactly the same problem that is descripted here, so I'll add its description here. My SharePoint is 2010 I am trying to access the web services that are located in this url: http://<part_of_th_url_omitted>/_vti_bin/Lists.asmx. I have no

  • Not able to access SOAP web service data control from adf mobile Update:10-11

    Hi, I am trying to call web services from adf mobile.. I have created data control from external web service and it is perfectlly working on web browser.. But why it is showing an error on emulator?? Is there any .jar file missing in adf mobile so th