Conversion error in CFML arguments to the Java classes for the web service call.

Hi all.

I'm working on writing a small application that uses a web service that is provided by our IVR (Angel.com). I am able to connect, however, when I try to do something with complex objects, I get the error indicated in the title.

He seems to have a problem with the table because when I remove it, or it becomes a simple string, I get errors on the function could not be found. I'm relatively new to web services, and especially dealing with complex data types, so any help would be appreciated.

You can see my test page to

http://webservices.fpitesters.com/AngelCalls.cfm

I use the language WSDL can be found at

http://www.Angel.com/outbound/WSDL/OutboundCallService.WSDL

Some examples of code that does what I want to do in Java / Apache Axis

http://www.Socialtext.NET/ivrwiki/index.cgi?java_sample_code

Here is a description of the function that I have problems with

http://www.Socialtext.NET/ivrwiki/index.cgi?placecall

And my code is attached.

     <cfset email = "xxxxxxxxxxxxxxxxxx">
     <cfset pin = "xxxxxxxxxxxx">


     
     <cfinvoke webservice="http://www.angel.com/outbound/wsdl/OutboundCallService.wsdl" method="login" returnvariable="login">
          <cfinvokeargument name="email" value="#email#"/>
          <cfinvokeargument name="pin" value="#pin#"/>
     </cfinvoke>

     <cfdump var="#login#">
     
     <cfset Token = login.getToken()>
     
     <cfdump var="#token#">
     
     <cfset CallItem.maxWaitTime = 100>
     <cfset CallItem.phoneNumbers[1] = "7632344306">
     <cfset CallItem.siteNumber = 100041>
     
     <cfinvoke webservice="http://www.angel.com/outbound/wsdl/OutboundCallService.wsdl" method="placeCall" returnvariable="call">
          <cfinvokeargument name="Token" value="#Token#"/>
          <cfinvokeargument name="CallItem" value="#CallItem#"/>
     </cfinvoke>
     
     <cfdump var="#call#">

If you are not initializing phoneNumbers tabular before adjustment


It will be passed as a structure with a key of 1.  This could cause your conversion of argument error.

So:


Will result in

struct
MAXWAITTIME 100
PHONENUMBERS
struct
1 7632344306
SITENUMBER 100041
  

Will result in

struct
MAXWAITTIME 100
PHONENUMBERS
Table
1 7632344306
SITENUMBER 100041

-Jason Morgan

Tags: ColdFusion

Similar Questions

  • Problem with the web service call

    I use ajax with json to call webservice but its not working with the localhost url in the emulator of the ripple. If I use an ip address or external url does not call the webservice.

    I also tried with BlackBerry, webservice does not.

    can someone guide me how to call the Web service?

    Thank you

    Sundaram

    Your file config.xml needs the ip address or the url in the "whitelist".  Use the access for that tag.  for example:

    
    

    The piece above is not secure because it whitelists ALL------* areas.  You can put your url in the uri.

  • Results of long-term with the web service call process

    I'm starting a long-lived process that dragged out variables using a .net web service call. I would like to be able to get these output variables. I find all of the features in the JobManager service to do this... y at - it another way to do this? I am not above querying the Livecycle database...

    Thank you

    Mike

    It will work only after that the process is 'complete'.. then you need to check the status... .and when that is complete, then you can check the results.

    Paul

  • UTL_HTTP: ORA-29259: end-of-input reaches the web service call error

    Hi gurus,

    I'm calling the DB using UTL_HTTP webservice, but I keep getting the following error.  Please note that I am calling only HTTP and HTTPS.

    ORA-29273: HTTP request failed

    ORA-06512: at "SYS." UTL_HTTP", line 1369

    ORA-29259: end-of-input reached

    ORA-06512: at "APL_GLOGEXTN. APL_INT_BEM', line 20

    ORA-06512: at "APL_GLOGEXTN. APL_INT_BEM', line 50

    ORA-06512: at line 1

    29273 00000 - "the HTTP request failed.

    * Cause: The UTL_HTTP package cannot run the HTTP request.

    * Action: Use get_detailed_sqlerrm to check the detailed error message.

    Correct the error and restart the HTTP request.

    Status code: 1

    I call a Web service using the code below

    exec utl_http.set_proxy ("172.10.0.00:1524");

    SET SERVEROUTPUT ON

    EXE DTS_INT_BEM. CALL_BEM();

    and the details of the PL/SQL package is expected at the point.

    create or replace

    package body 'DTS_INT_BEM' as

    PROCEDURE INVOKE_BPEL_WS)

    P_ENDPOINT_URL IN VARCHAR2,

    P_SOAP_REQUEST IN VARCHAR2,

    P_RETURN_STS OUT VARCHAR2)

    IS

    REQUEST_ENVELOPE VARCHAR2 (30000): = P_SOAP_REQUEST;

    RESPONSE_ENVELOPE VARCHAR2 (30000);

    HTTP_REQUEST UTL_HTTP. REQ;

    HTTP_RESPONSE UTL_HTTP. RESP;

    BEGIN

    HTTP_REQUEST: = UTL_HTTP. BEGIN_REQUEST (P_ENDPOINT_URL, 'POST', ' HTTP / 1.1 ');

    UTL_HTTP. SET_HEADER (R = > HTTP_REQUEST, name = > 'Content-Type' ', value = > ' text/xml; charset = utf-8 ');

    UTL_HTTP. SET_HEADER (r = > http_request, name = > 'Content-Length', value = > LENGTH (REQUEST_ENVELOPE));

    UTL_HTTP. SET_HEADER (R = > HTTP_REQUEST, name = > 'SOAPAction', value = > 'Start');

    UTL_HTTP. WRITE_TEXT (R = > HTTP_REQUEST, data = > REQUEST_ENVELOPE);

    dbms_output.put_line (' status code: 1');

    HTTP_RESPONSE: = UTL_HTTP. GET_RESPONSE (r = > HTTP_REQUEST);

    UTL_HTTP. END_RESPONSE (HTTP_RESPONSE);

    P_RETURN_STS: = HTTP_RESPONSE.reason_phrase;

    / * EXCEPTION

    WHEN UTL_HTTP. END_OF_BODY THEN

    UTL_HTTP. END_RESPONSE (HTTP_RESPONSE);

    WHEN UTL_HTTP. REQUEST_FAILED THEN

    P_RETURN_STS: = ' request failed: ' | UTL_HTTP. GET_DETAILED_SQLERRM;

    WHEN UTL_HTTP. HTTP_SERVER_ERROR THEN

    P_RETURN_STS: = ' Server error: ' | UTL_HTTP. GET_DETAILED_SQLERRM;

    WHEN UTL_HTTP. HTTP_CLIENT_ERROR THEN

    P_RETURN_STS: = ' Client error: ' | UTL_HTTP. GET_DETAILED_SQLERRM;

    WHILE OTHERS THEN

    P_RETURN_STS: = ' Client error: ' | UTL_HTTP. GET_DETAILED_SQLERRM; * /

    END INVOKE_BPEL_WS;

    --------------------------------

    Procedure CALL_BEM / * (-type_objet_p IN VARCHAR2)

    -p_process_name in varchar2,

    -p_response out varchar2

    )

    */

    IS

    l_endpoint_url VARCHAR2 (200): =' http://172.10.0.00:10101/soa-infra/services/default/ShipmentBusinessRule/BusinessRuleProcess.service?WSDL ';

    l_soap_request VARCHAR2 (30000): = NULL;

    l_bpel_return_sts VARCHAR2 (3000);

    BEGIN

    " l_soap_request: = ' < soapenv:Envelope xmlns:soapenv = ' http://schemas.xmlsoap.org/SOAP/envelope/ "xmlns:bus =" " http://xmlns.Oracle.com/BPMN/bpmnProcess/BusinessRuleProcess ' > < soapenv:Header / > < soapenv:Body > < bus: departure > < Transmission xmlns = " http://xmlns.Oracle.com/apps/OTM " "targetNamespace =" http://xmlns.Oracle.com/apps/OTM "> < TransmissionBody > < GLogXMLElement > < PlannedShipment xmlns =" http://xmlns.Oracle.com/apps/OTM "> < delivery > < ShipmentHeader > < ShipmentGid > < Gid > < domain_name > DTS/EXE < / domain_name > < Xid > 01409 < / Xid > < / Gid > < / ShipmentGid > < ShipmentRefnum > < ShipmentRefnumQualifierGid > < Gid > < Xid > GLOG < / Xid > < / Gid > < / ShipmentRefnumQualifierGid > < ShipmentRefnumValue > DTS/EXE.01409 < / ShipmentRefnumValue > < / ShipmentRefnum > < ShipmentRefnum > < ShipmentRefnumQualifierGid > < Gid '" > < Xid > BM < / Xid > < / Gid > < / ShipmentRefnumQualifierGid > < ShipmentRefnumValue > RIAD-000235 < / ShipmentRefnumValue > < / ShipmentRefnum > < TransactionCode > NP < / TransactionCode > < ServiceProviderGid > < Gid > < domain_name > DTS/DATA < / domain_name > < Xid > RIAD < / Xid > < / Gid > < / ServiceProviderGid > < ServiceProviderAlias > < ServiceProviderAliasQualifierGid > < Gid > < Xid > GLOG < / Xid > < / Gid > < /. ServiceProviderAliasQualifierGid > < ServiceProviderAliasValue > DTS/DATA. RIAD < / ServiceProviderAliasValue > < / ServiceProviderAlias > < RateServiceGid > < Gid > < domain_name > DTS/PCM < / domain_name > < Xid > VESSEL_SERVICE < / Xid > < / Gid > < / RateServiceGid > < TransportModeGid > < Gid > < Xid > BOAT-CO < / Xid > < / Gid > < / TransportModeGid > < TotalWeightVolume > < WeightVolume > < weight > < WeightValue > 57.0 < / WeightValue > < WeightUOMGid > < Gid > < Xid > KG < / Xid > < / Gid > < / WeightUOMGid > < / weight > < Volume > < VolumeValue > 0.3 < / VolumeValue > < VolumeUOMGid > < Gid > < Xid > CUMTR < / Xid > < / Gid > < / VolumeUOMGid > < / Volume > < / WeightVolume > < / TotalWeightVolume > < TotalShipUnitCount > 8 < / TotalShipUnitCount > < StartDt > < GLogDate > 20140217124300 < / GLogDate > < TZId > Asia/Hong_Kong < / TZId > < TZOffset > + 08:00 < / TZOffset > < / StartDt > < EndDt > < GLogDate > 20140311234300 < / GLogDate > < TZId > America/Chicago < / TZId > < TZOffset > - 05:00 < / TZOffset > < / EndDt > < SourceLocationRef > < LocationRef > < LocationGid > < Gid > < domain_name > DTS/DATA < / domain_name > < Xid > HKHKG < / Xid > < / Gid > < / LocationGid > < / LocationRef > < / SourceLocationRef > < / ShipmentHeader > < / shipping > < / PlannedShipment > < / GLogXMLElement > < / TransmissionBody > < / Transmission > < / bus: start > < / soapenv:Body > < / soapenv:Envelope > ';

    invoke_bpel_ws (l_endpoint_url, l_soap_request, l_bpel_return_sts);

    dbms_output.put_line ('-' | l_bpel_return_sts);

    end CALL_BEM;

    end DTS_INT_BEM;

    Thanks in advance for the help.

    Shobz

    Hi Billy,

    Thanks for the reply. It was with the proxy setting.

    Once UTL_HTTP. SET_PROXY has been set properly, I no longer get the error of end-of-input.

    Thanks for the help...

    Kind regards

    Shobz

  • best practices for the web service call

    Can I add a web service by using the standard data connection Wizard - works fine. I can also do it in Javascript which give me a little more flexibility. Is there a guideline or wisdom for which is better?

    Everything depends on your condition...

    For example, if you know your address Web service at the time of the design itself, then it would be better to put in the tab of data connection.

    But if your webservice address changes at runtime based on the environment in that your application is deployed, then you can use the java script code to change the webservice dynamically address.

    Thank you

    Srini

  • missing namespace for the parameters in the web service call

    We try to call a web service developed by Java & XFire. The WSDL is valid for WS - I Basic Profile and it works very well with SoapUI. The query generated automatically by SoapUI is the following:

    "" "" "< soapenv:Envelope xmlns:soapenv = ' http://schemas.xmlsoap.org/soap/envelope/ ' xmlns: your =" http://www.example.org/test8/ " xmlns:tes1 =" http://www.example.org/test8 "> "
    < soapenv:Header / >
    < soapenv:Body >
    < your: parameters >
    < a >
    < tes1:id > 44444444444445 < / tes1:id >
    < tes1:b >
    < tes1:id >? < / tes1:id >
    < / tes1:b >
    < /a >
    < id >? < /ID >
    < / your: parameters >
    < / soapenv:Body >
    < / soapenv:Envelope >

    When we put this in Flex, what we are seeing is that the namespace for the parameters element is missing. We see it in the proxy logs. The server receives this message and parameters is not in namespace, so the server complains that the parameters is missing. We can reproduce this exact behavior by removing namespace in the query with SoapUI.

    The question is why flex removes namespace for the element parameters?

    We use the literal to the WSDL document, and I paste below. We have been stuck on this for over a week, so if anyone has any suggestions I would be eternally grateful. Thank you

    <? XML version = "1.0" encoding = "UTF-8"? >
    < wsdl:definitions
    ' xmlns:SOAP =' http://schemas.xmlsoap.org/wsdl/soap/ "
    ' xmlns:TNS =' http://www.example.org/test8/ '
    ' xmlns:WSDL =' http://schemas.xmlsoap.org/wsdl/ '
    "container =" http://www.w3.org/2001/XMLSchema "
    name = "test8".
    targetNamespace =" http://www.example.org/test8/" > "
    WSDL: < types >
    < xsd: Schema
    "targetNamespace =" http://www.example.org/test8/ "
    xmlns:Q1 =" http://www.example.org/test8" > "
    < xsd: import
    schemaLocation = "Test8.xsd."
    namespace =" http://www.example.org/test8" > "
    < / xsd: import >

    < xsd: complexType name = "fooRequestType" >
    < xsd: SEQUENCE >
    < xsd: ELEMENT
    name = "a".
    Type = "Q1:A" >
    < / xsd: element >
    < xsd: ELEMENT
    name = "id".
    Type = "xsd: String" >
    < / xsd: element >
    < / xsd: SEQUENCE >
    < / xsd: complexType >
    < xsd: complexType name = "fooResponseType" >
    < xsd: SEQUENCE >
    < xsd: ELEMENT
    name = "b".
    Type = "Q1:B" >
    < / xsd: element >
    < xsd: ELEMENT
    name = "id".
    Type = "xsd: String" >
    < / xsd: element >
    < / xsd: SEQUENCE >
    < / xsd: complexType >
    < / xsd: Schema >
    < / wsdl: types >
    < name of the WSDL: message = "fooRequest" >
    < wsdl: part
    name = "parameters".
    Type = "tns:fooRequestType" / >
    < / wsdl: message >
    < name of the WSDL: message = "fooResponse" >
    < wsdl: part
    name = "parameters".
    Type = "tns:fooResponseType" / >
    < / wsdl: message >
    < name of wsdl: portType = "Test8" >
    < name of wsdl: Operation = "foo" >
    < message wsdl: Input = "tns:fooRequest" / >
    < message wsdl: output = "tns:fooResponse" / >
    < / wsdl: Operation >
    < / wsdl: portType >
    < wsdl: Binding
    name = "Test8SOAP".
    Type = "tns:Test8" >
    < soap binding:
    style = "document".
    "transport =" http://schemas.xmlsoap.org/soap/http " / >
    < name of wsdl: Operation = "foo" >
    WSDL: input >
    < use of soap: body = "literal" / >
    < / wsdl: Input >
    < wsdl: output >
    < use of soap: body = "literal" / >
    < / wsdl: output >
    < / wsdl: Operation >
    < / wsdl: Binding >
    < wsdl:service name = "Test8" >
    < wsdl: port
    Binding = "tns:Test8SOAP."
    name = "Test8SOAP" >
    "" < soap: address location = ' http://www.example.org/test8 ' / >
    < / wsdl: port >
    < / wsdl:service >
    < / wsdl:definitions >

    the XSD containing A and B:

    <? XML version = "1.0" encoding = "UTF-8"? >
    "" "" "" < scheme xmlns = " http://www.w3.org/2001/XMLSchema" targetNamespace = ' http://www.example.org/test8 ' xmlns:tns = ' http://www.example.org/test8 ' elementFormDefault = "qualified" >

    < name complexType = 'A' >
    <>sequence
    < element
    name = "id".
    Type = "string" >
    < / item >
    < element
    name = "b".
    Type = "tns:B" >
    < / item >
    < / sequence >
    < / complexType >

    < complexType name = "B" >
    <>sequence
    < element
    name = "id".
    Type = "string" >
    < / item >
    < / sequence >
    < / complexType >
    < / schema >

    The solution seems to be that Flex doesn't support unwrapped no literal document. Flex only supports rpc literal or literal wrapped document. This seems to be because flex adds the name of the xml message method and in the unpacked literal document there is no message name in the soap message.

    It took a lot of time to understand this, partly because we did not know exactly what is wrapped meant (there is no option in Eclipse WTP for her, no way to verify no wrapped with a tool, etc.). If Flex said that she did not support unpacking literal document we would have saved ourselves a week or two.

  • Dump of the results of the Web Service call in the container

    Hi, I was not able to get my webservice call to work yet, but I'm curious as to what I can dump results in inspection? Rich text editor, text or other area?

    Thank you!

    OK, I'm a newbie at this and I find it really useful and easy to use. Shows all the different types of traffic generated in an easy to use/display format. Very well designed tool! I'm going to buy a license shortly... Thanks for the tip!

  • The Web Service of LabVIEW error on restores model ESP

    Hello

    I was hoping that people would be able to help with the following problem:

    I'm currently on the Page Embedded Server (ESP), functionality of the LabVIEW webservices script and keep receiveing an error when you try to view a page.

    I think I put in place the Manager HTTP queries properly - buffered stream with headers

    The correct model is located and used as the page reaches the insertion point variable esp.

    I find that the AddressBook example works fine, unless I try and add an additional variable to the model, then the same error occurs.

    I have attached a sample project which shows the same behavior, and the error is less.

    Tested on LabVIEW 2014 (14.0.1 SP1) 32-bit on 64-bit Windows 7.

    See you soon

    John

    *****************************************************************************************************

    Error-67035 occurred at .vi NI_WebServices.lvlib:Error Converter (ErrCode or status)

    Possible reasons:

    LabVIEW: The Services Web of LabVIEW (Hex 0xFFFEFA25): error in the ESP.

    «"" "String of full appeal:»»"»
    NI_WebServices.lvlib:Error Converter (ErrCode or status) .vi
    NI_WebServices.lvlib:Web Request.lvclass:Render ESP Template.vi
    Test.VI
    Test.vi.ProxyCaller

    *****************************************************************************************************

    Hi John_Neutron,

    I worked on your code today and we managed to reproduce and to fix the error you saw.

    The Web service name ESP file and rendering the page, but it throws the error because the variable you are trying to set was not properly declared. We managed to make the error go away by changing the file text with Notepad like this ESP.

    --------------------------
    <%
    //This is a server side comment
    // Variables:
    var myvariable;
    //
    %>


    This is the test pattern



    It's the body:

    Here's the varaiable


    Variable: @@myvariable


    ---------------------------

    Before, you had / / in front of the variable (making a comment) and you don't have "var" to tell him you have said anything (it's all in the 4th line). Without the appropriate statement, the code generates an error when it is called.

    Vsenior

  • problem connecting to the web services server

    I tried to download the latest updates of software/firmware for my all-in-one HP Photosmart Prem C310a.

    I can't get updates or activate Web Services because it still gives me the error message "problem connect to the web services server.

    I tried everything in the section of the Web of HPs site including connection via WPS - unsucessfully problems.

    I understand that you have found impossible to connect to the server error message on your printer. I would first disconnect the router and the printer for about 1 minute. I would plug the router first then the printer. I would then try to enable web services. If not successful, and you get the same error message. I'd follow these steps.

    1 obtain the IP address of your printer
    a. This can be done by pressing the icon on the printer wireless.
    2. Enter the printer's IP address in a browser.
    3. Select the tab network at the top of the page.
    4. on the left, select network.
    5. Select Network (IP) address
    6. select manual DNS server
    a. manual Preferred DNS should read 8.8.8.8
    b. alternate DNS server should read. 8.8.4.4
    7. Select apply you could get a fair warning select OK.

  • APEX 4.2.3 consume the web service returning a PDF problem

    Using APEX 4.2.3 on a database of Oracle 11 g R2, Firefox 31.7, we ask a service web restful one before the process of page header, to download a PDF Code file used:

    declare

    CLOB l_clob;

    l_blob blob.

    l_sql_delimiter varchar2 (30);

    l_lang_context integer: = DBMS_LOB. DEFAULT_LANG_CTX;

    l_warning integer: = DBMS_LOB. WARN_INCONVERTIBLE_CHAR;

    l_dest_offset integer: = 1;

    l_source_offset integer: = 1;

    l_Json VARCHAR2 (4000);

    Start

    l_clob: = null;

    DBMS_LOB.CREATETEMPORARY (l_blob, true);

    -Generate here the content of your file in l_clob.

    hr_Pkg.Security_Termination_Form(:P4200_PERSON_HR_ID,l_Json);

    hr_Pkg.call_rest_webservice (l_Json, 'TestME.Pdf', l_Clob);

    Logger.log ('CLOB SIZE IN PAGE: ' | sys.) DBMS_LOB. GetLength (l_clob));

    sys. HTP.init;

    sys.owa_util.mime_header (' application/pdf', FALSE, 'UTF-8');

    sys. HTP.p ("Content-length: ' |") sys.DBMS_LOB.GetLength (l_clob));

    sys. HTP.p ('Content-Disposition: attachment; filename = "TestME.Pdf" ');

    sys.owa_util.http_header_close;

    () DBMS_LOB.converttoblob

    dest_lob = > l_blob,

    src_clob = > l_clob,

    amount = > DBMS_LOB. LOBMAXSIZE,

    dest_offset = > l_dest_offset,

    offset = > l_source_offset,

    blob_csid = > DBMS_LOB. DEFAULT_CSID,

    lang_context = > l_lang_context,

    WARNING = > l_warning

    );

    Logger.log ("SIZE of BLOB: ' |") sys. DBMS_LOB. GetLength (l_blob));

    sys.wpg_docload.download_file (l_blob);

    apex_application.stop_apex_engine;

    exception when others then

    sys. HTP. PRN (' error: ' |) SQLERRM);

    apex_application.stop_apex_engine;

    end;

    We run in the question, that the PDF file is empty with the exception of a few fill-able fields that must be completed in advance by the call to the web service.

    When you run the web service directly from the browser, the PDF that is generated is very well and seems to be complete. And the size of the file that is created as the clob from the web service call is exactly the same size it as the pdf file received directly from the web service.

    When we compare the size of the clob to the size of the blob, we see that the blob is slightly larger in size than the clob.

    Any suggestions? (Sample code for posting to the hosted site for Oracle will not work because you can not call the hosted instance web services and web service is hosted BEHIND our firewall).

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

    Problem is resolved... As opposed to the use of the APEX apex_web_service.make_rest_request must use the utl_http.begin_request and then treats the query returned through utl_http. READ_RAW and who then saving it in a temporary BLOB.

    Maybe when we update to the APEX 5, I'll see if I can deal with it using standard APEX packages...

    Thank you

    Tony Miller
    Software LuvMuffin
    Salt Lake City, UT

  • How to consume the web service using PLSQL in 11g

    Hello

    I created a site using jDeveloper, web services which when I put in the web browser and press enter, it will display the settings screen and when I pass the value for the parameter, and then it displays the output of the XML returned by the PL/SQL (called in the Web Service) package. Now, I want to call this webservice in PL/SQL and read XML data and fill in the staging table. Can anyone suggest me how to achieve this functionality by using Oracle PL/SQL

    I use the database 11g and jDeveloper Version :-Studio Edition version 10.1.3.0

    Thank you very much in advance.

    Vijay

    The WSDL file describes the web service.

    To obtain the WSDL, you enter the URL of the web service and add some ? WSDL to the URL. This indicates the web service to return to its definition.

    For example

    URL of the Web Service: http://wsf.cdyne.com/WeatherWS/Weather.asmx

    WSDL URL: http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL

    When you read (using 'web browser' UTL_HTTPpackage) the XML response from the web service, read as strings (PL/SQL varchar2, size 32 K max).

    You should read the answer as the strings, then writing/writeappend these channels in a CLOB (using the DBMS_LOB package). If you are VERY sure that the web service call ALWAYS returns an XML of less than 32 k, you can skip using a CLOB.

    Whatever it is, read you the response from the web service in the form of text (such as plain text, it is what is sent). The next step on your part is to parse text into an XML DOM (document object model) - and storing the DOM in an Oracle XmlType variable.

    When in a DOM, you can use Oracle XML functions to extract the attributes and values of the key element of the response from the web service.

  • Make a REST Web service call. Error code: 401 Access to the requested resource is not allowed

    Hi all

    I'm having a hard time finding ways to Rest Web service calls.

    I tried this runs directly through the browser and I get an error.

    http:localhost:8080/r EST/bean/atg/userprofiling/ProfileServices/loginUser? [email protected] & arg2 = password

    13:18:20, 613 [RestSecurityServlet] error code: 401

    Access to the requested resource is not allowed: / atg/userprofiling/ProfileServices

    1. atg.rest.RestException: access to the requested resource is not allowed: / atg/userprofiling/ProfileServices

    at atg.rest.processor.RestSecurityProcessor.checkAccess(RestSecurityProcessor.java:546)

    at atg.rest.processor.RestSecurityProcessor.handleGetRequest(RestSecurityProcessor.java:313)

    at atg.rest.processor.RestSecurityProcessor.doRESTGet(RestSecurityProcessor.java:199)

    at atg.rest.servlet.RestPipelineServlet.serviceRESTRequest(RestPipelineServlet.java:417)

    at atg.rest.servlet.RestPipelineServlet.service(RestPipelineServlet.java:260)

    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)

    at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:320)

    at atg.rest.servlet.RestPipelineServlet.service(RestPipelineServlet.java:264)

    at atg.rest.servlet.HeadRestServlet.service(HeadRestServlet.java:130)

    at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:267)

    Documentation, I understand that I need to create a session, the session is needed to access the secure components since this

    method specific 'ProfileServices.loginUser' was declared as non-secure, restSecurityConfiguration.xml

    In addition, there are two different ways in which I can connect

    1. 1. with the help of RestSession.createSession providing the user name and password.
    2. 2. or by using ProfileServices.loginUser or ProfileFormHandler

    Can someone please clarify

    If you call the REST web service from a Java client, you can create a RestSession object using the createSession method. But in your case you seem to be invoking it with an HTTP request, which, by default, would be considered a GET request by application of the REST of the ATG. So either a GET, he would try to get a property "loginUser" of the component/atg/userprofiling/ProfileServices (based on your URL) that would always fail.

    To call the method ProfileServices loginUser() with your argument, you need to tell the system to the REST of the ATG to process your incoming request not GET, but as a demand that you can do to atg-rest-http-method of the parameter control in your application like this

    http:localhost:8080/rEST/bean/atg/userprofiling/ProfileServices/loginUser? [email protected]& arg2 = password & atg-rest-http-method = POST

    It should work in this way, your restSecurityConfiguration.xml is correct.

  • Error when testing the web service

    Hello

    I use weblogic 11.1.2.4, I create the java class and call SOAP SSL with success of this class, I create Web service of this class, but when I test this website for services of (right click-> test web service) its give me error below (according to me, this error pops up when start web logic server because when trying to launch the old class without isn't web service until I have remove the certificate of) jks file and add it back)

    Error:

    Certificate chain from localhost127.0.0.1-> xxxx.com wasn't reliable causing SSL handshake failure

    It's certificate

    keytool-import-trustcacerts-alias file TEST C:\Oracle\Middleware11124\wlserver_10.3\server\lib\xxx.crt - keystore C:\Oracle\Middleware11124\wlserver_10.3\server\lib\DemoTrust - storepass changeit

    Any suggestion

    How did you generate the certificate... you use a self-signed certificate... ?

    Could you take a look at this article and check your configuration--> http://weblogic-wonders.com/weblogic/2011/05/25/ssl-configuration-for-weblogic-server/

    Kind regards

    White

  • Problem of DH handshake with the web service using ColdFusion 7 and 8 after java update 8

    ColdFusion 7 and 8 are provided with a variant of JRE1.6.

    I have a script that has consumed a web service for years with success.  Last week, the web service provider updated their version of Apache and Java on the server java 1.8 (or java-8).

    I could no longer consume the web service once the web service provider updated to Apache and Java and would be the following error DH keypair every time that I try to consume the service:

    -----------------

    AxisFault

    faultCode: {http://schemas.xmlsoap.org/soap/envelope/} Server.userException

    faultSubcode:

    faultString: javax.net.ssl.SSLException: java.lang.RuntimeException: could not generate keypairs DH

    faultActor:

    faultNode:

    faultDetail:

    {}http://xml.apache.org/axis/} stackTrace:javax .net .ssl .SSLException: java.lang.RuntimeException: could not generate keypairs DH

    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1591)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1554)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1537)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1130)

    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1107)

    at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)

    to org.apache.axis.transport.http.HTTPSender.getSocket (HTT... ''

    -----------------

    I asked the service provider web, why it would stop working and how we can solve this problem.  They suggested that upgrade to the latest version of Java on my server running ColdFusion.  I did some research and found the problem to be with the amount of memory allocated to the variable containing the encryption key.

    The big problem is when I tried to update java on this particular server (Windows Server 2003), the installation has returned a messaged stating that he could not run on the older operating system and I need to update my OS to install java.

    Does anyone have a workaround in ColdFusion 7 or 8 that you can establish the DH handshake using Java 1.6 on your local server while consuming a web service on a server using Java 1.8?

    Hi, frank000000,

    I know that we had a serious problem with any Java 7 after update 25.  They are off a lot of network permissions and other things, for safety, that used to be available in versions prior to the update 25.  But it's while we were in CF Server 9.

    Since we switched to CF Server 10 (making sure that we got the CF Installer provided with Java 8), we had very few issues related to Java.

    It seems strange to me that the upgrade to 1.8 host while your server is 1.6 would cause problems.  It could very well be something else.  I would like to ask the host for documentation describing exactly how/why their 1.8 may cause interference with your 1.6.

    HTH,

    ^_^

  • Error in creation of Control (SOAP) data to the Web Service in the ADF Mobile app

    Hi, I tried to create a Control (SOAP) Web Service data in a Mobile application of ADF in JDeveloper 11.1.2.4.0 under Mac OS X 10.8.5

    The application has been newly created (no features) and I tried to create a Web Service data control directly.

    In the 'Create Web Service data-> step 1 control', when I entered the URL of the WSDL and left the text box, the window "WSDL Document for reading" came and I got an error message saying "invalid WSDL URL.

    The error description is given below:

    Houston-29114 ADFContext is not configured to process this exception messages. Use the code of exception stack trace and error to investigate the root cause of this exception. Root cause error code is DCA-29000. Are parameters of error message ({0 = oracle.webservices.mdds.MddsException, 1 = java.io.InterruptedIOException: connection timed out})

    I have JDeveloper put 11.1.2.4.0 in place on a Windows 8 and follow the same steps with the same WSDL URL and he accepted the URL.

    Can anyone help on how to fix this problem as I want to develop on Mac.

    Hello

    We have solved the problem by asking the dev team to provide the file for the web service's .wsdl. We copied the file in the file system on the mac and then instead of provide the URL, inviting us to the wsdl file. Who does the work on the mac.

    We were able to put a URL as http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL (a non-secure web service) and the wizard to create the Web Service data control accepted the URL on the mac. Can be to secure web services, we have the .wsdl himself file. (the web service that we were trying to access was on EBS and was a secure web service)

Maybe you are looking for