Web service reference
Hi,
Our java application is alredy running on sap netviewer 6.4 sp 14. We want to refer to web service proxy client from our application without redeploying application.how can we do that?
Thanks
Hi,
My application is already using the web service. we have development, quality and production environment.To get the refernce of proxy client we redeployed the application with web-j2ee-engine.xml file which contains the refernce of proxy client at the time of deployment. Now we deployed proxy client in quality server but i donot want to redeploy the application in Quality and production environment? how i can i avoid redeploy?
thanks and regards,
Nitin Uikey
Similar Messages
-
Issue while adding WCF Web Service reference using Oracle APEX
Hi,
We have an issue with creating the Web Service Reference for the WCF web service:
http://dev.virtualearth.net/webservices/v1/metadata/geocodeservice/GeocodeService1.wsdl
The APEX gives the following error
“The WSDL document could not be understood by the rendering engine. Click Create Web Service Reference Manually to continue creating a reference for this service.”
Can you please tell me if creating the Web Service Reference for WCF is supported on the “out of the box“ APEX?
Environment information:
APEX 4.0.2.00.07
Database 11.2.0.3
Please note that we have tried it in APEX 4.1.1 from apex.oracle.com and the error there is different, it can connect even to ASMX wsdl.
Thank you.I don't think that is it specific to just .NET web services. I have tried with a web service created with TIBCO BusinessWorks (Middleware product) that did not work either. The wsdl validated correctly in soapUI, so I think it just must be the implementation of the parser which is looking for some specific format.
When in doubt, go with either the manual reference or with pl/sql using one of the api's. -
Error while creating web service reference
Hi,
I have very limited knowledge of web services. we have a BPEL implementation and I have been handed location to 3 wsdl files for which I am trying to create a web service reference(under shared component->logic) in apex(3.1.1). I am successfully able to create for 1 wsdl but for other two i get the below error.
"1 error has occurred
The WSDL document contains multiple SOAP bindings. Application Express only supports WSDL's with one SOAP binding. Click Create Web Service Reference Manually to continue creating a reference for this service."
looking at the working and not working wsdls, i see the following difference. i collapsed all the xml tags in the wsdl file and found that the one that is not working and giving above error has the below two tags twice with data in it.
<wsdl:portType name=
<wsdl:binding name=
any help to parse this wsdl in APEX be greatly appreciated.
thanks,
khanI have just read that " APEX does not support multiple binding web services currently" at http://oraclebizint.wordpress.com/category/apex/
..still reading it. though the post is dated back in 2008, I wonder why this functionality wasn't added to Apex. -
Error when test a web service reference
Hello,
After creating a web service reference and when i make a test of any method, i get the fowling error:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Server was unable to process request. ---> Object reference not set to an instance of an object.</faultstring><detail /></soap:Fault></soap:Body>
</soap:Envelope>
This is the WSDL definition:
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="urn:webservices.x-arq.mind.pt/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="urn:webservices.x-arq.mind.pt/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="urn:webservices.x-arq.mind.pt/">
<s:import namespace="urn:webservices.x-arq.mind.pt/ResultadosPesquisa.xsd" />
<s:import schemaLocation="http://arquivomunicipal.cm-lisboa.pt/X-arqCRMWebService/XarqCRMWebService.asmx?schema=ResultadosPesquisa" namespace="urn:webservices.x-arq.mind.pt/ResultadosPesquisa.xsd" />
<s:element name="ObterNumeroResultados">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Obra" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Processo" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Morada" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="ObterNumeroResultadosResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="ObterNumeroResultadosResult" type="s:int" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="ObterResultadosEmObjecto">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Obra" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Processo" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Morada" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="ObterResultadosEmObjectoResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ObterResultadosEmObjectoResult" type="tns:ArrayOfResultadoPesquisa" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="ArrayOfResultadoPesquisa">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded" name="ResultadoPesquisa" nillable="true" type="tns:ResultadoPesquisa" />
</s:sequence>
</s:complexType>
<s:complexType name="ResultadoPesquisa">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Obra" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Processo" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Morada" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="ContemFicheirosDigitalizados" type="s:boolean" />
<s:element minOccurs="0" maxOccurs="1" name="UrlFicheirosDigitalizados" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="EstadoCiarq" type="s:string" />
</s:sequence>
</s:complexType>
<s:element name="ObterResultados">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Obra" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Processo" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Morada" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="ObterResultadosResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ObterResultadosResult">
<s:complexType>
<s:sequence>
<s:any namespace="urn:webservices.x-arq.mind.pt/ResultadosPesquisa.xsd" />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="ObterResultadosPaginadosEmObjecto">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Obra" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Processo" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Morada" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="NumeroResultados" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="IndicePrimeiroResultadoDevolver" type="s:int" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="ObterResultadosPaginadosEmObjectoResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ObterResultadosPaginadosEmObjectoResult" type="tns:ArrayOfResultadoPesquisa" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="ObterResultadosPaginados">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Obra" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Processo" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="Morada" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="NumeroResultados" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="IndicePrimeiroResultadoDevolver" type="s:int" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="ObterResultadosPaginadosResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ObterResultadosPaginadosResult">
<s:complexType>
<s:sequence>
<s:any namespace="urn:webservices.x-arq.mind.pt/ResultadosPesquisa.xsd" />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</wsdl:types>
<wsdl:message name="ObterNumeroResultadosSoapIn">
<wsdl:part name="parameters" element="tns:ObterNumeroResultados" />
</wsdl:message>
<wsdl:message name="ObterNumeroResultadosSoapOut">
<wsdl:part name="parameters" element="tns:ObterNumeroResultadosResponse" />
</wsdl:message>
<wsdl:message name="ObterResultadosEmObjectoSoapIn">
<wsdl:part name="parameters" element="tns:ObterResultadosEmObjecto" />
</wsdl:message>
<wsdl:message name="ObterResultadosEmObjectoSoapOut">
<wsdl:part name="parameters" element="tns:ObterResultadosEmObjectoResponse" />
</wsdl:message>
<wsdl:message name="ObterResultadosSoapIn">
<wsdl:part name="parameters" element="tns:ObterResultados" />
</wsdl:message>
<wsdl:message name="ObterResultadosSoapOut">
<wsdl:part name="parameters" element="tns:ObterResultadosResponse" />
</wsdl:message>
<wsdl:message name="ObterResultadosPaginadosEmObjectoSoapIn">
<wsdl:part name="parameters" element="tns:ObterResultadosPaginadosEmObjecto" />
</wsdl:message>
<wsdl:message name="ObterResultadosPaginadosEmObjectoSoapOut">
<wsdl:part name="parameters" element="tns:ObterResultadosPaginadosEmObjectoResponse" />
</wsdl:message>
<wsdl:message name="ObterResultadosPaginadosSoapIn">
<wsdl:part name="parameters" element="tns:ObterResultadosPaginados" />
</wsdl:message>
<wsdl:message name="ObterResultadosPaginadosSoapOut">
<wsdl:part name="parameters" element="tns:ObterResultadosPaginadosResponse" />
</wsdl:message>
<wsdl:portType name="XarqCRMWebServiceSoap">
<wsdl:operation name="ObterNumeroResultados">
<wsdl:input message="tns:ObterNumeroResultadosSoapIn" />
<wsdl:output message="tns:ObterNumeroResultadosSoapOut" />
</wsdl:operation>
<wsdl:operation name="ObterResultadosEmObjecto">
<wsdl:input message="tns:ObterResultadosEmObjectoSoapIn" />
<wsdl:output message="tns:ObterResultadosEmObjectoSoapOut" />
</wsdl:operation>
<wsdl:operation name="ObterResultados">
<wsdl:input message="tns:ObterResultadosSoapIn" />
<wsdl:output message="tns:ObterResultadosSoapOut" />
</wsdl:operation>
<wsdl:operation name="ObterResultadosPaginadosEmObjecto">
<wsdl:input message="tns:ObterResultadosPaginadosEmObjectoSoapIn" />
<wsdl:output message="tns:ObterResultadosPaginadosEmObjectoSoapOut" />
</wsdl:operation>
<wsdl:operation name="ObterResultadosPaginados">
<wsdl:input message="tns:ObterResultadosPaginadosSoapIn" />
<wsdl:output message="tns:ObterResultadosPaginadosSoapOut" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="XarqCRMWebServiceSoap" type="tns:XarqCRMWebServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="ObterNumeroResultados">
<soap:operation soapAction="urn:webservices.x-arq.mind.pt/ObterNumeroResultados" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="ObterResultadosEmObjecto">
<soap:operation soapAction="urn:webservices.x-arq.mind.pt/ObterResultadosEmObjecto" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="ObterResultados">
<soap:operation soapAction="urn:webservices.x-arq.mind.pt/ObterResultados" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="ObterResultadosPaginadosEmObjecto">
<soap:operation soapAction="urn:webservices.x-arq.mind.pt/ObterResultadosPaginadosEmObjecto" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="ObterResultadosPaginados">
<soap:operation soapAction="urn:webservices.x-arq.mind.pt/ObterResultadosPaginados" style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="XarqCRMWebServiceSoap12" type="tns:XarqCRMWebServiceSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="ObterNumeroResultados">
<soap12:operation soapAction="urn:webservices.x-arq.mind.pt/ObterNumeroResultados" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="ObterResultadosEmObjecto">
<soap12:operation soapAction="urn:webservices.x-arq.mind.pt/ObterResultadosEmObjecto" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="ObterResultados">
<soap12:operation soapAction="urn:webservices.x-arq.mind.pt/ObterResultados" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="ObterResultadosPaginadosEmObjecto">
<soap12:operation soapAction="urn:webservices.x-arq.mind.pt/ObterResultadosPaginadosEmObjecto" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="ObterResultadosPaginados">
<soap12:operation soapAction="urn:webservices.x-arq.mind.pt/ObterResultadosPaginados" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="XarqCRMWebService">
<wsdl:port name="XarqCRMWebServiceSoap" binding="tns:XarqCRMWebServiceSoap">
<soap:address location="http://arquivomunicipal.cm-lisboa.pt/X-arqCRMWebService/XarqCRMWebService.asmx" />
</wsdl:port>
<wsdl:port name="XarqCRMWebServiceSoap12" binding="tns:XarqCRMWebServiceSoap12">
<soap12:address location="http://arquivomunicipal.cm-lisboa.pt/X-arqCRMWebService/XarqCRMWebService.asmx" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Thanks for your help!
From Portugal,
Helder Dinis
Edited by: Helder Dinis on Oct 22, 2009 5:52 PMHello,
First, I would like to thank you for your help.
Below is the SOAP envelope (request) that was created by the Application Express engine based on the Web service reference definition.
Input parameters:
Obra: 35078
Processo: 2073/DCEOD/I/1960
Morada: BECO BUGIO
<?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body><ns1:ObterResultadosEmObjecto xmlns:ns1="urn:webservices.x-arq.mind.pt/urn:webservices.x-arq.mind.pt/ResultadosPesquisa.xsd"><ns1:Obra>35078</ns1:Obra><ns1:Processo>2073/DCEOD/I/1960</ns1:Processo><ns1:Morada>BECO BUGIO</ns1:Morada></ns1:ObterResultadosEmObjecto></SOAP-ENV:Body>
</SOAP-ENV:Envelope>
From Portugal,
Helder Dinis -
Problem when WSDL changes for a Web Service Reference
Hi
I have a Web Service Reference that is accessed by several reports and processes within APEX.
The problem that I am experiencing is that, when the Web Service changes, as it has been doing quite often due to development, I can find no way of updating the Web Service Reference in order that the additional input and output parameters become available to the associated reports and processes. The only solution that I have found is to recreate the Web Service Reference going through the same wizard process and giving the Web Service Reference the same name as previously.
However when the Web Service Reference has been recreated all reports and processes that accessed the old web service have blank values for source, input and output parameters. This means that I have to build the reports and processes again from scratch.
Does anyone know of a better method of “refreshing” a web service in order to expose any new inputs or outputs defined with the WSDL without breaking existing functionality?
Regards
IanHi,
My solution is simple: add new service reference, then new methods can be atached to the old service refernce with the followind block
begin
update WWV_FLOW_WS_OPERATIONS fo
set
FO.WS_ID = (select ws.ID from WWV_FLOW_SHARED_WEB_SERVICES ws where ws.FLOW_ID = 117 and ws.NAME= 'WebHINSSvc')
where
FO.NAME not in
(select
FOO.NAME
from WWV_FLOW_WS_OPERATIONS foo
where FOO.WS_ID = (select ws.ID from WWV_FLOW_SHARED_WEB_SERVICES ws where ws.FLOW_ID = 117 and ws.NAME= 'WebHINSSvc')
and FO.WS_ID = (select ws.ID from WWV_FLOW_SHARED_WEB_SERVICES ws where ws.FLOW_ID = 117 and ws.NAME= 'WebHINSSvcNEW')
delete from WWV_FLOW_SHARED_WEB_SERVICES ws where ws.FLOW_ID = 117 and ws.NAME= 'WebHINSSvcNEW';
end;
If you change only params it wont help. Ypu have to recreate the code that breaks again.
I hope this helps. -
Substitution strings not working in URLs for web service references (bug?)
We have an environment where the url for our BPEL server is read from a variable. I've created an application item and a corresponding application-level computation. I'm using the ampersand-followed-by-dot (&BPEL_SERVER.) syntax as well as the hashmark syntax (#BPEL_SERVER#) and am unable to get this working.
Is there a way for me to debug web service reference calls other than whether a call was successful? Is this a bug?
edit:
Here is the error message I get when I try to use a substitution:
ORA-20001: The webservice was unreachable because either the URL you supplied was invalid, your environment requires a valid proxy server address for HTTP requests, or a wallet needs to be configured for HTTPS requests.No problem - let me try to lay this out a little differently, perhaps I'm just missing something.
problem:
* we have separate development, test, and production servers for our database and bpel servers.
* The hostnames for these servers are stored in a table of key/value pairs
* This means that (by policy) the hostnames in URLs calling BPEL web services should be the value corresponding to BPEL_SERVER so that the appropriate bpel server is used to call the web service
attempted solution:
1) I created an application item named BPEL_SERVER
2) I have a before-header computation that sets BPEL_SERVER to 'http://bpeldev' using a static value assignment
3) I have a web service reference whose URL is either &BPEL_SERVER./orabpel/default/callNotification/1.0 or #BPEL_SERVER#/orabpel/default/callNotification/1.0
4) The web service reference is called in an after-submit process.
5) An invalid URL exception is thrown for this process.when submitting on the page containing this process
observations:
* for (3) - I can set the URL to http://bpeldev/orabpel/default/callNotification/1.0 and everything occurs successfully
* for (3) - If I use http://bpeldev/&BPEL_SERVER. then when I execute (4), I see a request for the exact string http://bpeldev/&BPEL_SERVER. in bpeldev's access logs
* for (3) - If I use http://bpeldev/#BPEL_SERVER# then when I execute (4), I see a request for the exact string http://bpeldev/#BPEL_SERVER# in bpeldev's access logs
* for (2) I've also used a function call RETURN get_const_value('BPEL_SERVER'); - same results for (5)
* the item value has ben verified before (5)
* for (1) and (2) I've tried defining substitution strings in the application definition instead - same results for (5) -
REST Web Service References: Can't run Google APIS
Hello Everyone!
I am learning on how to integrate REST web service reference in APEX application. I found a tutorial video at YouTube on 'Creating and Using a RESTful Web Service in Application Express 4.2', which found to be very helpful and easy to do on my sample app. The REST Web Service URL:
http://maps.googleapis.com/maps/api/geocode/xml?address=san%20fancisco&sensor=false
But my application throws an error as below:
1 error has occurred
ORA-29273: HTTP request failed ORA-06512: at "SYS.UTL_HTTP", line 1130 ORA-24247: network access denied by access control list (ACL)
After going through some of the posts here at OTN, I have granted access as follows:
GRANT EXECUTE ON SYS.UTL_HTTP TO ETI;
GRANT EXECUTE ON SYS.UTL_INADDR TO ETI;
GRANT EXECUTE ON SYS.UTL_TCP TO ETI;
GRANT EXECUTE ON SYS.UTL_SMTP TO ETI;
GRANT EXECUTE ON SYS.UTL_URL to ETI;
GRANT EXECUTE ON SYS.UTL_XML to ETI;
Second thing I did was, created and assigned ACL:
begin
dbms_network_acl_admin.create_acl (
acl => 'googleapis.xml',
description => 'Google Translate API',
principal => 'CONNECT',
is_grant => true,
privilege => 'connect',
start_date => null,
end_date => null
dbms_network_acl_admin.add_privilege (
acl => 'googleapis.xml',
principal => 'CONNECT',
is_grant => true,
privilege => 'connect'
dbms_network_acl_admin.assign_acl (
acl => 'googleapis.xml',
host => 'ajax.googleapis.com'
dbms_network_acl_admin.assign_acl (
acl => 'googleapis.xml',
host => 'maps.googleapis.com'
end;
All these statements were executed on my database with out any error, even though not helping my web service reference to work.
Any idea how can I get my Google API REST Web service working, what is the thing I'm missing here?I apologize for the lack of information.
I thought I had included a list of schemas for you to try out.
At first, (due to the GRANT ___ TO ETI;) I thought you were writing your own Web Service parser in PL/SQL.
(If that was the case, than ETI would need be part with the ACL)
Then, I realized,you were using the built in APEX functionality.
In this case, try adding your APEX_{version} schema as part of the ACL.
I'm not sure if this will work (I haven't tried it).
However, I do know you need to add the APEX_{version} to the ACL if you use the LDAP Authentication.
finding APEX_{version}
select comp_id, version, status, schema
from dba_registry
where comp_id='APEX'
MK -
Hi, I am trying to create a web service reference from Windows Dynamic CRM web services. CRM uses windows authentication. I can open WSDL file with IE and firefox. But the same username and password don't work with APEX.
Does anyone have a clue? Many thanks!
Crystal
Edited by: user8991541 on Aug 4, 2010 8:40 AMI was able to resolve the problem -- in the latest version of the RESTful web service that I created, I had left out the creation of the Header Parameter bind variable. Once I did that everything works fine!! I was able to test in the application and got the record of an individual student.
Thanks,
PM -
Problem getting RESTful web service reference working with header value
Hi,
I posted this on Apex Listener forum but since I am not sure problem is with my Application RESTful web service reference or a Listener issue, I am posting here as well:
I am on Apex 4.2.2 and Listener 2.1 and the listener is on WEblogic.
I succeeded to get a RESTful web service working in an application with no header to obtain a full set of data. The data set is very large, so I am now just trying to set up a web service to get a set of data based on a student ID.
I followed the examples shown in the RESTful web service module of SQL Workshop and set up a handler of this type:
https://ourweblogicserver/apex/bnr/ace/students/course_grades/{stid}
The test for this handler succeeded both for JSON output and CSV output in the Workshop test environment.
However, when I try it from a Web Service Reference that I created for my application following what looked like the same approach used on the example video, I get NO data back. If I put a 'stid' directly into a URL of a web browser and do the basic authentication I get the data!!
This is what I have for the Web service reference:
https://ourweblogicserver/apex/bnr/ace/students/course_grades/{stid}
Basic auth set to Yes -- and this is working -- I am able to authenticate
HTTP method Get
output format Text
no response Xpath
no response namespace
defaults for new record and parameter delimiter
NO REST input parameters
Output set for all the fields in the data set queried (same set of data as in my rest service which does not have any http header)
REST HTTP Header : Name stid
I there something I am missing. I am not sure how to troubleshoot this further.
I also tried exactly following the example shown on the Oracle Video for RESTFul web services at
http://www.youtube.com/watch?v=gkCvd6P8_OU
and I can't get the 2nd example to work either-- where the header has the bind variable parameter.
PatI was able to resolve the problem -- in the latest version of the RESTful web service that I created, I had left out the creation of the Header Parameter bind variable. Once I did that everything works fine!! I was able to test in the application and got the record of an individual student.
Thanks,
PM -
Calling a web service reference from PL/SQL
Hello,
could anyone give me a hint how to call a web service that is defined as web service reference from a PL/SQL page process (PL/SQL anonymous block).
Many thanks in advance
Lukasz>
The problem is that I have a PL/SQL page process that processes the result that was returned by a web service (triggered by web-service page process (-; ) and <b>need to call it again transparently for the user</b>. If there is a way to execute a page process from this PL/SQL block the question would be answered as well.
>
Same parameters and repeating at pre-defined time intervals? If yes, use Javascript as described here.
Regards, -
Trouble shooting apex application calling web-service reference
Hi,
I am developing an APEX application which calls a web-service reference. i am looking for ideas as to how to log necessary information for trouble shooting.
i already thought about this -
1. the response from the web-service is displayed to the user (via a collection object).
but the issue is i want the administrator (who logs in at a later time) to see that an error occurred or what was the response from the web-service.
Is there any in-built way of accessing this information (is it first of all stored somewhere automatically ?). the one possible solution i see is to create a table and log the info into this table along with user and session id.
any ideas / pointers will greatly help me.
Regards,
RamakrishnanIt looks like you won't be able to test web service calls on apex.oracle.com. see this WebService on apex.oracle.com
Edited by: tfa on Mar 18, 2013 9:59 AM -
Basic auth with RESTful WEb service and Web Service reference
Hi, All,
We have made much progress on getting an application working wtih RESTful web services but now are trying to figure out how to lock down a RESTful Web service while making it available for a particular application.
We are using one of the sample 'emp' table web services that come with Apex 4.2 and are trying to apply Basic Auth to the WEb Service via Weblogic filter defined in the web.xml file. That works fine. I now get challenged when I try to go to :
https://wlogic.edu/apex/bnr/ace/hr/empinfo/
And when I authenticate to that challenge I am able to get the data. (we are usiing LDAP authentication at the Weblogic level)
However, I am not sure how to get same basic authentication to work with the Web Service reference in my application. I see the error message in the application when I try to call that Web Service:
401--Unauthorized<
And I see:
"The request requires user authentication. The response MUST include a WWW-Authenticate header field (section 14.46) containing a challenge applicable to the requested resource. The client MAY repeat the request with a suitable Authorization header field (section 14.8). If the request already included Authorization credentials"
How do I provide the credentials in the Web REference or do I provide credentials in the Application?
Web service works fine if I remove the RESTful web service basic auth from the Web.xml file.
Should we NOT use Weblogic basic auth and instead use basic auth from Workspace RESTful web service definition. If so, how do we implement THAT basic auth in the Web Service definition and in the Web SErvice Reference on the application?
Thanks,
PatWhat I mean is diid you try to use the PL/SQL package for APEX webservice. Here is an example I use (modified and shortened, just to show how much better this is than to use it from the application).
CREATE OR REPLACE PACKAGE webservice_pkg
IS
PROCEDURE create_webservice (
p_id IN NUMBER,
p_message OUT VARCHAR2,
p_workspace IN VARCHAR2 DEFAULT 'MY_WORKSPACE',
p_app_id IN NUMBER DEFAULT v ('APP_ID'),
p_app_session IN VARCHAR2 DEFAULT v ('SESSION'),
p_app_user IN VARCHAR2 DEFAULT v ('APP_USER')
END webservice_pkg;
CREATE OR REPLACE PACKAGE BODY webservice_pkg
IS
PROCEDURE set_credentials (
p_workspace IN VARCHAR2,
p_app_id IN NUMBER,
p_app_session IN VARCHAR2,
p_app_user IN VARCHAR2
IS
v_workspace_id NUMBER;
BEGIN
SELECT workspace_id
INTO v_workspace_id
FROM apex_workspaces
WHERE workspace = p_workspace;
apex_util.set_security_group_id (v_workspace_id);
apex_application.g_flow_id := p_app_id;
apex_application.g_instance := p_app_session;
apex_application.g_user := p_app_user;
END set_credentials;
PROCEDURE create_webservice (
p_id IN NUMBER,
p_message OUT VARCHAR2,
p_workspace IN VARCHAR2 DEFAULT 'MY_WORKSPACE',
p_app_id IN NUMBER DEFAULT v ('APP_ID'),
p_app_session IN VARCHAR2 DEFAULT v ('SESSION'),
p_app_user IN VARCHAR2 DEFAULT v ('APP_USER')
IS
v_envelope VARCHAR2 (32000);
v_server VARCHAR2 (400);
v_url VARCHAR2 (4000);
v_result_url VARCHAR2 (1000);
v_collection_name VARCHAR2 (40) := 'PDF_CARD';
v_message VARCHAR2 (4000);
v_xmltype001 XMLTYPE;
BEGIN
v_url := v_server || '.myserver.net/services/VisitCardCreator?wsdl';
FOR c IN (SELECT *
FROM DUAL)
LOOP
v_envelope :=
'<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" '
|| 'xmlns:bran="http://www.myaddress.com">'
|| CHR (10)
|| '<soapenv:Header/><soapenv:Body>'
|| CHR (10)
|| '<parameter:'
|| 'some_value'
|| '>'
|| CHR (10)
|| '<bran:templateID>'
|| p_id
|| '</bran:templateID>'
|| '</soapenv:Body>'
|| CHR (10)
|| '</soapenv:Envelope>';
END LOOP;
set_credentials (p_workspace, p_app_id, p_app_session, p_app_user);
BEGIN
apex_web_service.make_request
(p_url => v_url,
p_collection_name => v_collection_name,
p_envelope => v_envelope
p_message := 'Some message.';
EXCEPTION
WHEN OTHERS
THEN
v_message :=
v_message
|| '</br>'
|| 'Error running Webservice Request. '
|| SQLERRM;
END;
BEGIN
SELECT v_result_url
|| EXTRACTVALUE (VALUE (t),
'/*/' || 'Return',
'xmlns="http://www.myaddress.com"'
xmltype001
INTO v_result_url,
v_xmltype001
FROM wwv_flow_collections c,
TABLE
(XMLSEQUENCE (EXTRACT (c.xmltype001,
'//' || 'Response',
'xmlns="http://www.myaddress.com"'
) t
WHERE c.collection_name = v_collection_name;
EXCEPTION
WHEN OTHERS
THEN
v_message := v_message || '</br>' || 'Error reading Collection.';
END;
EXCEPTION
WHEN OTHERS
THEN
p_message := v_message || '</br>' || SQLERRM;
END create_webservice;
END webservice_pkg;
/If you use it this way, you will find out what the problem is much faster.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.apress.com/9781430235125
http://apex.oracle.com/pls/apex/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
------------------------------------------------------------------- -
Trouble creating Web Service Reference
I am using Apex 3.0 and trying to create a new web service reference from the Shared Components page.
Clicking the 'Web Service Refernces' link however takes me back to the login screen ! The Url shown in the browser is as below
http://localhost:7777/pls/apex30/f?p=4550:1:393172515481281::::FSP_AFTER_LOGIN_URL:\f?p=4000|170|1940120004338053||NO|||\
Any idea why this may be happening ?Totally Weird !
I cleaned out the contents of the FLOW_PAGE_CACHE table and all is fine now ! -
Creating Web Service Reference
I have no experience whatsoever with web services/soap/etc.
I am testing PayPal's Website Payments Pro to see if I can integrate it easily with HTML DB.
I click on my application, then go to Shared Components --> Web Service Reference --> Create
I select "No" for "Do you want to search a UDDI registry to find the WSDL?"
For WSDL Location, I enter:
http://www.sandbox.paypal.com/wsdl/PayPalSvc.wsdl
and click Next.
1 error has occurred
The WSDL document could not be understood by the HTML DB engine. I found no references in the forum to either "soap" or "wsdl."
Is there any documentation on this?
HTML DB version 1.6, DB 10.1
Thanks
chetApparently the search utility was broken the night/morning I posted this. I did find a few posts on others problems with WSDL. One in particular, Misunderstood WSDL file. suggested it might be Oracle's parsing or something like that.
I have read that there is not a W3C standard yet.
I really, really don't want to have to write java ever again. Please tell me there is a workaround...
chet
Message was edited by:
Chet Justice
Message was edited by:
Chet Justice -
Error creating web service reference
I am getting an error below when creating a web service reference from apex 4.2. Any idea on how to resolve it.
•The WSDL document could not be understood by the rendering engine. Click Create Web Service Reference Manually to continue creating a reference for this serviceI have just read that " APEX does not support multiple binding web services currently" at http://oraclebizint.wordpress.com/category/apex/
..still reading it. though the post is dated back in 2008, I wonder why this functionality wasn't added to Apex. -
Web Service Reference - 'ns1' is an undeclared namespace
Hi,
I successfully created a Web Service Reference,
but when I am trying to test it,
I am getting an error:
Server was unable to read request. --> 'ns1' is an undeclared namespace. Line 2, position 20
What it means and what I must to do ?
Thanks,
Vitalijusok,
i created a wallet and stored in the location sysman/config/monwallet and also emabled auto login within the OWM.
from sqlplus i tried,
select utl_http.request('https://www.mywebsite.net/',null, 'file:/data3/app/oracle/product/920/admin/DEVi/wallet', null) from dual;
and it works ;)
Now in APEX I am still not able to access the WSDL. because APEX doenot know of this wallet.
when i try the below in SQLPLUS without wallet
select utl_http.request('https://www.mywebsite.net/') from dual;
I get the same error.
I figured out that setting
utl_http.set_wallet(path => 'file:/data3/app/oracle/product/920/admin/DEVi/wallet',password => 'welcome');
will enable to use the utl_http.request without passing the file path for wallet.
Is there a way i can make the database to utilize a default path for wallet path ?
APEX has option to input the proxy server name in the "Application Attributes" --> "Definition". Similarly is there a place where i can enter the wallet file path and password ?
thanks in advance,
Arun
Message was edited by:
user509053
Maybe you are looking for
-
ATV doesn't show all photos in slideshow
My ATV3 doesn't show all my photos in slideshow. It seems to repeat the same, say 50, over and over, even though I have about 400 in the folder on my windows7 PC. Whats the fix? Thanks Andy
-
Error message in Selection Screen
Hi reference no (p_ref) is in my selection screen. If this field contains special characters (\ / : * ? " |, ) system must prompt error message in selection screen. How to do this. Pls help me Regards Anbu
-
Older Clear 23" Display and Aluminum 23" use same LCD Panel??
I have an Al 23" that will only produce exactly half a picture. The other half is blank. My question is: if I was to swap the LCD with one from and older clear-style 23", would the two panels be compatible? Also, any suggestions on why the screen wil
-
Order array by object variable
Hello ! I have an array which I'm looping through to get variables(as text) to display in dynamic text fields.. If possible I would like to sort the array into numeric order using "sTabArray[i].sHour". A variable of each of the array items.. Is there
-
'Cordova / CDVViewController.h' file not found
Good afternoon, I'm having trouble compiling a project using XCode Cordova. The following message is displayed: /Users/clicksoftclicksoft/Documents/projetos/40st-Ios/App40st/Classes/AppDelegat e.h:30:9: fatal error: 'Cordova / CDVViewControlle