sexta-feira, 6 de agosto de 2010

Usando os WebServices do UCM 11g como no 10g

Esse post eu vi no blog do Kyle[http://blogs.oracle.com/kyle/2010/08/using_wsdls_in_ucm_11g_like_yo.html].

Background:
O UCM10g utiliza Basic Authentication para se autenticar via SOAP. O 11g utiliza a infra do weblogic para configurar, que é um pouco diferente.

Então para termos no UCM11g o mesmo comportamento de autenticação do UCM 10g, o Kyle sugere usar webdav, adicionando o _dav antes do nome da instância do UCM.


Bom, por hora é isso.

Post original:

Using WSDLs in UCM 11g like you did in 10g

But if you want to use WSDLs and call the services with Basic Authentication like you did in the 10g version, you can do that as well. But there is a bit of a trick to get it to work.

When you install 11g, the WsdlGenerator component will be installed automatically. You can then go to Administration -> Soap Wsdls to create and modify the Wsdls. But if you try to access them through the browser, you'll get a 403 Forbidden error. You need to access the WSDLs directly from the file system in the \groups\secure\wsdl\custom\ directory.

Once you have the WSDL, you need to make a small change to the server URL to use Basic Authentication. At the bottom of the WSDLs, you'll find a section that looks like:

<service name="Workflow"></service>


<port name="WorkflowSoap" binding="s0:WorkflowSoap">

<soap:address location="http://server:16200/cs/idcplg" />

</port>

</service>




You'll want to change the path and include _dav.






<service name="Workflow">

<port name="WorkflowSoap" binding="s0:WorkflowSoap">

<soap:address location="http://server:16200/_dav/cs/idcplg" />

</port>

</service>


That is the URL you want to call over web services.



Nenhum comentário:

Postar um comentário