Web services - handling response type complex

I have to consume a web service that returns an array of complex type.
The wsdl looks like below:
Request: POST /UserManager/usermanager.asmx HTTP/1.1
< soap: Body >
"" < GetMargins xmlns = " http://tempuri.org/ ' / >
< / soap: Body >

Response: HTTP/1.1 200 OK
< soap: Body >
"< GetMarginsResponse xmlns =" http://tempuri.org/ "> "
< GetMarginsResult >
< String > < / string >
< String > < / string >
< / GetMarginsResult >
< / GetMarginsResponse >
< / soap: Body >
--------
The service is currently in my local network. If I call the service with the code below:
< cfinvoke
WebService = "" http://oecdevel/usermanager/usermanager.asmx?wsdl " "
method = "GetMargins.
returnVariable = "stGetMarginsResponse" >
< cfscript >
I get the answer: org.tempuri.ArrayOfString@465545dd
I tried to create a struct, etc, but I had no luck at all.
How can I read the answer? Help, please. Thanks in advance.

The answer is an instance of a java object - ArrayOfString. I suggest you start using cfdump on it. That lists the properties and methods of your response object. I suspect you will see 2 methods, writing and getString (int i). So, if you call stGetMarginsResponse.getString (), you should have an array of returned simple strings that you can run a loop through. Or you can call stGetMarginsResponse.getString (i), where i is 0 to arraylen to get a specific element in the table.

Let us know your results. Also, if you view the WSDL file I'll look in there far longer.

Tags: ColdFusion

Similar Questions

  • Fail to create the web service with the type of data defined by the user using the jwsc Ant task!

    Hello everyone!

    I used JAXWS to create WSDL from a file of Jehovah's witnesses.

    It's my TJ:
    -----------------------------------------------------------------------------------
    package ws;

    Import javax.jws.WebService;
    Import javax.jws.WebMethod;
    ws import. MyDataType;

    *@WebService*
    * public class MyWebService {*}
    public MyWebService()
    *{*
    *}*
    *@WebMethod*
    public MyDataType MyWebMethod (MyDataType mdt)
    *{*
    * / / mdt.setS ("I got it!"); *
    return mdt;
    *}*
    *}*
    -----------------------------------------------------------------------------------


    and this is my type of data:
    -----------------------------------------------------------------------------------
    package ws;

    * public class MyDataType {*}


    String ^ s;
    public MyDataType()
    *{*

    *}*
    * public String getS() {*}
    return s;
    *}*

    * Sets public Sub (String s) {*}
    This.s = s;
    *}*
    *}*
    -----------------------------------------------------------------------------------



    and that's my Ant build.xml
    -----------------------------------------------------------------------------------
    * < by default of the project = "all" > *.
    * < property name = "weblogic.jar.classpath" value="D:/Projects/bea103/wlserver_10.3/server/lib"/ > * "
    * < taskdef name = "jwsc" classname = "weblogic.wsee.tools.anttasks.JwscTask" > *.
    * < classpath > *.
    * < path id = "weblogic.classpath" > * "
    * < pathelement path = "WEBLOGIC_HOME" / >. *
    * < fileset dir = "${weblogic.jar.classpath}" > *.
    * < include name = "weblogic.jar" / > *.
    * < / fileset > *.
    * < / path > *.
    * < / classpath > *.
    * < / taskdef > *.
    * < target name = "all" depends = "clean, build-service" / > *.
    * < name target 'clean' = > *.
    * < delete dir = "output" / > *.
    * < / target > *.
    * < name target = 'build-service' > *.
    * <!-add jwsc and related tasks here - > *.
    * < jwsc srcdir = "" destdir = "wsoutput" > * "
    * < jws file = "MyWebService.java" type = "JAXWS" / > * "
    * < / jwsc > *.
    * < / target > *.
    * <!-< target name = "deploy" > - > <! - add wldeploy task here - > <!-< / target >-> *.
    * < / project > *.
    -----------------------------------------------------------------------------------

    I have run the Ant task, but I get this error:
    -----------------------------------------------------------------------------------
    BuildFile: build.xml

    clean:

    build service:
    [jwsc] TJ: processing module /MyWebService
    [jwsc] The analysis of source files
    [jwsc] The analysis of source files
    [jwsc] 1 TJS files processing for the module /MyWebService
    * [jwsc] [JAM] WARNING: could not resolve class MyDataType *.
    [jwsc] TJ: C:\Documents and Settings\samimi\IdeaProjects\SampleWebService\src\ws\MyWebService.java valid.
    [jwsc] Treatment of the web services JAX - WS 1...
    * [jwsc] error: couldn't get TypeDeclaration for: MyDataType apt tour: 1 *...
    ...................
    BUILD FAILED
    C:\Documents and Settings\samimi\IdeaProjects\SampleWebService\src\ws\build.xml:
    19: weblogic.wsee.tools.WsBuildException: JAX - WS web services processing error
    -----------------------------------------------------------------------------------

    Please help me solve this problem.
    Thank you
    Mojir

    I tried to compile your source code and received the same exception.
    However after compiling the MyDataType.java before running the jwsc task, I was successfully able to build the service.

    Please try the ant script below and let me know the result:

    **
    *     *
    *
    *



    <>
    srcdir = "${source.dir}" "

    DESTDIR = "${Build.dir} '"
    keepGenerated = 'true '.
    classpath = "${Class.Path} '"
    Debug = 'true '.
    verbose = "false" >

         


              

    Thank you
    Sandeep

  • Could not get the native web service response to Oracle using a PL/SQL &lt; Message &gt; function &lt;! [CDATA [component "WS_CALC" must be said]] &gt; &lt; / Message &gt;

    Hi, we have a problem with oracle native web service access using a PL/SQL function. We are running out of ideas how to solve the problem. Someone would be so nice to take a look at our case. Thank you much in advance. Best regards, Smiljana

    CREATE TABLE for_web_info (some_hello_text VARCHAR2 (150), when_inserted DATE, we_are_from VARCHAR2 (30));

    INSERT INTO for_web_info VALUES ('HI everyone :-) ', SYSDATE, 'Ljubljana, Slovenia');

    CREATE OR REPLACE

    PACKAGE ws_calc AUTHID CURRENT_USER AS

    FUNCTION CalcProduct (a NUMBER by DEFAULT 1,

    b in on NUMBER,

    g NUMBER of OUTPUT)

    RETURN NUMBER;

    END ws_calc;

    /

    CREATE OR REPLACE

    PACKAGE ws_calc AS BODY

    FUNCTION CalcProduct (a NUMBER by DEFAULT 1,

    b in on NUMBER,

    g NUMBER of OUTPUT)

    RETURN NUMBER IS

    product NUMBER;

    BEGIN

    SELECT SUM (1) IN the for_web_info OF g;

    product: = a * b;

    RETURN any product;

    END;

    END;

    /

    Our two DBA done all the steps described in the manual Oracle® XML DB's Guide Developer, 11 g Release 2 (11.2), E23094-04, February 2014, section using Oracle DB native XML Web Services.

    Access us two wsdl with browser without problem and get two of them. We also receive web serivce response which databese of query table.

    http://our_db:8080 / orawsv? WSDL

    http://our_db:8080 / orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT? WSDL

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

    | First WSDL.

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

    <? XML version = "1.0"? >

    " < name definitions = targetNamespace"orawsv"=" http://xmlns.Oracle.com/orawsv "" "

    " xmlns =" http://schemas.xmlsoap.org/wsdl/ "

    ' xmlns:tns = ' http://xmlns.Oracle.com/orawsv "" "

    ' xmlns:soap = ' http://schemas.xmlsoap.org/WSDL/SOAP/ "

    " container = ' http://www.w3.org/2001/XMLSchema "

    " xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "

    " xsi: schemaLocation =" http://schemas.xmlsoap.org/wsdl/ http://schemas.xmlsoap.org/wsdl/"> ".

    < types >

    < xsd: Schema

    " targetNamespace = ' http://xmlns.Oracle.com/orawsv "" "

    elementFormDefault = "qualified" >

    < xsd: element name = "query" >

    < xsd: complexType >

    < xsd: SEQUENCE >

    < xsd: element name = "DDL_text" type = "xsd: String".

    minOccurs = "0" maxOccurs = "unbounded" / >

    < xsd: element name = 'query_text' >

    < xsd: complexType >

    < xsd:simpleContent >

    < xsd:extension base = "XSD: String" >

    < xsd: attribute name = "type" >

    < xsd:simpleType >

    < xsd:restriction base = "xsd:NMTOKEN" >

    < value xsd: Enumeration = "SQL" / >

    < value xsd: Enumeration = "XQUERY" / >

    < / xsd:restriction >

    < / xsd:simpleType >

    < / xsd: attribute >

    < / xsd:extension >

    < / xsd:simpleContent >

    < / xsd: complexType >

    < / xsd: element >

    < xsd: Choice minOccurs = "0" maxOccurs = "unbounded" >

    < xsd: element name = "bind" >

    < xsd: complexType >

    < xsd:simpleContent >

    < xsd:extension base = "XSD: String" >

    < xsd: attribute name = "name" type = "xsd: String" / >

    < / xsd:extension >

    < / xsd:simpleContent >

    < / xsd: complexType >

    < / xsd: element >

    < xsd: element name = "bindXML" >

    < xsd: complexType >

    < xsd: SEQUENCE >

    < xsd: all / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: element >

    < / xsd: Choice >

    < xsd: element name = "null_handling" minOccurs = "0" >

    < xsd:simpleType >

    < xsd:restriction base = "xsd:NMTOKEN" >

    < value xsd: Enumeration = "DROP_NULLS" / >

    < value xsd: Enumeration = "NULL_ATTR" / >

    < value xsd: Enumeration = "EMPTY_TAG" / >

    < / xsd:restriction >

    < / xsd:simpleType >

    < / xsd: element >

    < xsd: element name = "max_rows" type = "positiveInteger" minOccurs = "0" / >

    < xsd: element name = "skip_rows" type = "positiveInteger" minOccurs = "0" / >

    < xsd: element name = "pretty_print" type = "xsd: Boolean" minOccurs = "0" / >

    < xsd: element name = "indentation_width" type = "positiveInteger" minOccurs = "0" / >

    < xsd: element name = "rowset_tag" type = "xsd: String" minOccurs = "0" / >

    < xsd: element name = "row_tag" type = "xsd: String" minOccurs = "0" / >

    < xsd: element name = "item_tags_for_coll" type = "xsd: Boolean" minOccurs = "0" / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: element >

    < xsd: element name = "queryOut" >

    < xsd: complexType >

    < xsd: SEQUENCE >

    < xsd: all / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: element >

    < / xsd: Schema >

    < / types >

    < name of message = "QueryInput" >

    < name of part = element "body" = "tns:query" / >

    < / message >

    < name of the message 'XMLOutput' = >

    < name of part = element "body" = "tns:queryOut" / >

    < / message >

    < portType name = "ORAWSVPortType" >

    < operation name = "XMLFromQuery" >

    < input message = "tns:QueryInput" / >

    < output message = "tns:XMLOutput" / >

    < / operation >

    < / portType >

    < connection name = "ORAWSVBinding" type = "tns:ORAWSVPortType" >

    " < style: soap = transport = 'document' binding ' http://schemas.xmlsoap.org/SOAP/HTTP "/>

    < operation name = "XMLFromQuery" >

    " < soap: operation soapAction = ' http://our_db:8080 / orawsv "/>

    < input >

    < use of soap: body = "literal" / >

    < / Entry >

    < output >

    < use of soap: body = "literal" / >

    < / output >

    < / operation >

    < / binding >

    < service name = "ORAWSVService" >

    < documentation > Oracle Web Service < / documentation >

    < name of port = "ORAWSVPort" binding = "tns:ORAWSVBinding" >

    " < soap: address location = ' http://our_db:8080 / orawsv "/>

    < / port >

    < / service >

    < / definitions >

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

    | Second WSDL.

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

    <? XML version = "1.0"? >

    < name of definitions = "CALCPRODUCT."

    " targetNamespace = ' http://xmlns.Oracle.com/orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT "" "

    " xmlns =" http://schemas.xmlsoap.org/wsdl/ "

    ' xmlns:tns = ' http://xmlns.Oracle.com/orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT "" "

    " container = ' http://www.w3.org/2001/XMLSchema "

    ' xmlns:soap = ' http://schemas.xmlsoap.org/WSDL/SOAP/ ">

    < types >

    " < xsd: Schema targetNamespace = ' http://xmlns.Oracle.com/orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT "" "

    elementFormDefault = "qualified" >

    < xsd: element name = "SNUMBER-CALCPRODUCTInput" >

    < xsd: complexType >

    < xsd: SEQUENCE >

    < xsd: element name = "G-NUMBER-OUT" >

    < xsd: complexType / >

    < / xsd: element >

    < xsd: element name = "B-NUMBER-INOUT" type = "xsd: double" / >

    < xsd: element name = "A-NUMBER-IN" minOccurs = "0" maxOccurs = "1" type = "xsd: double" / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: element >

    < xsd: element name = "CALCPRODUCTOutput" >

    < xsd: complexType >

    < xsd: SEQUENCE >

    < xsd: element name = "RETURN" type = "xsd: double" / >

    < xsd: element name = "G" type = "xsd: double" / >

    < xsd: element name = "B" type = "xsd: double" / >

    < / xsd: SEQUENCE >

    < / xsd: complexType >

    < / xsd: element >

    < / xsd: Schema >

    < / types >

    < name of message = "CALCPRODUCTInputMessage" >

    < name of part = "parameters" element = "tns:SNUMBER - CALCPRODUCTInput" / >

    < / message >

    < name of message = "CALCPRODUCTOutputMessage" >

    < name of part = "parameters" element = "tns:CALCPRODUCTOutput" / >

    < / message >

    < portType name = "CALCPRODUCTPortType" >

    < operation name = "CALCPRODUCT" >

    < input message = "tns:CALCPRODUCTInputMessage" / >

    < output message = "tns:CALCPRODUCTOutputMessage" / >

    < / operation >

    < / portType >

    < connection name = "CALCPRODUCTBinding".

    Type = "tns:CALCPRODUCTPortType" >

    " < style: soap = transport = 'document' binding ' http://schemas.xmlsoap.org/SOAP/HTTP "/>

    < operation name = "CALCPRODUCT" >

    < soap: operation

    soapAction = "CALCPRODUCT" / >

    < input >

    < soap body parts: = 'settings' use = "literal" / >

    < / Entry >

    < output >

    < soap body parts: = 'settings' use = "literal" / >

    < / output >

    < / operation >

    < / binding >

    < service name = "CALCPRODUCTService" >

    < documentation > Oracle Web Service < / documentation >

    < name of port = "CALCPRODUCTPort" binding = "tns:CALCPRODUCTBinding" >

    < address soap:

    " location = ' http://our_db:8080 / orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT "/>

    < / port >

    < / service >

    < / definitions >

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

    | SQL Developer |

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

    SET serveroutput ON

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

    | First WS.

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

    DECLARE

    V_SOAP_REQUEST XMLTYPE: = XMLTYPE (' <? xml version = "1.0"? > < env:Envelope xmlns:env = "http://www.w3.org/2002/06/soap-envelope " > < env:Body > < query xmlns = "http://xmlns.oracle.com/orawsv" > < type of the argument texte_requete = "SQL" > <!) ([CDATA [SELECT * FROM for_web_info WHERE the INSTR (UPPER (we_are_from),: e) > 0]] > < / query_text > < link name 'e' = > SLOVENIA < / bind > < false pretty_print > < / pretty_print > < / query > < / env:Body > < / env:Envelope > ');

    V_SOAP_REQUEST_TEXT CLOB: = V_SOAP_REQUEST.getClobVal ();

    V_REQUEST UTL_HTTP. REQ;

    V_RESPONSE UTL_HTTP. RESP;

    V_BUFFER VARCHAR2 (1024);

    URL VARCHAR2 (4000): = ' http://our_db:8080 / orawsv ';

    BEGIN

    V_REQUEST: = UTL_HTTP. BEGIN_REQUEST (URL = > URL, METHOD = > 'POST');

    UTL_HTTP. SET_AUTHENTICATION (R = > V_REQUEST, username = > 'OUR_U', PASSWORD = > 'OUR_P'); -not case-sensitive

    V_REQUEST. METHOD: = 'POST';

    UTL_HTTP. SET_HEADER (R = > V_REQUEST, NAME = > 'Content-Length', VALUE = > DBMS_LOB.) GETLENGTH (V_SOAP_REQUEST_TEXT));

    UTL_HTTP. WRITE_TEXT (R = > V_REQUEST, DATA = > V_SOAP_REQUEST_TEXT);

    V_RESPONSE: = UTL_HTTP. GET_RESPONSE (V_REQUEST);

    LOOP

    UTL_HTTP. READ_LINE (V_RESPONSE, V_BUFFER, TRUE);

    DBMS_OUTPUT. PUT_LINE (V_BUFFER);

    END LOOP;

    UTL_HTTP. END_RESPONSE (V_RESPONSE);

    EXCEPTION

    WHEN UTL_HTTP. END_OF_BODY THEN

    UTL_HTTP. END_RESPONSE (V_RESPONSE);

    END;

    anonymous block filled

    " <? xml version ="1.0"? > < envelope soap: xmlns:soap = ' http://www.w3.org/2002/06/SOAP-envelope ' > < soap: Body > < queryOut xmlns = " http://xmlns.Oracle.com/orawsv "> "

    < set of LINES > < ROW > < SOME_HELLO_TEXT > HI everybody :-) < / SOME_HELLO_TEXT > < WHEN_INSERTED > 03.10.14 < / WHEN_INSERTED > < WE_ARE_FROM > Ljubljana, Slovenia < / WE_ARE_FROM > < / ROW > < / rowset > < / queryOut > < / soap: Body > < / envelope soap: >

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

    | Second WS.

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

    DECLARE

    V_SOAP_REQUEST XMLTYPE: = XMLTYPE ("<?") XML version = "1.0"? > < soap envelope: xmlns:soap = "http://www.w3.org/2002/06/soap-envelope" > < soap: Body > < xmlns SNUMBER-CALCPRODUCTInput = ""http://xmlns.oracle.com/orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT"(> < A-NUMBER-IN > 2 < / A-NUMBER-IN > < B-NUMBER-INOUT > 3 < / B-NUMBER-INOUT > < R-NUMBER-OUT / > < / SNUMBER-CALCPRODUCTInput > < / soap: Body > < / SOAP: envelope > '); "

    V_SOAP_REQUEST_TEXT CLOB: = V_SOAP_REQUEST.getClobVal ();

    V_REQUEST UTL_HTTP. REQ;

    V_RESPONSE UTL_HTTP. RESP;

    V_BUFFER VARCHAR2 (1024);

    URL VARCHAR2 (4000): = ' http://our_db:8080 / orawsv/OUR_SCHEMA/WS_CALC/CALCPRODUCT ';

    BEGIN

    V_REQUEST: = UTL_HTTP. BEGIN_REQUEST (URL = > URL, METHOD = > 'POST');

    UTL_HTTP. SET_AUTHENTICATION (R = > V_REQUEST, username = > 'OUR_U', PASSWORD = > 'OUR_P'); -not case-sensitive

    V_REQUEST. METHOD: = 'POST';

    UTL_HTTP. SET_HEADER (R = > V_REQUEST, NAME = > 'Content-Length', VALUE = > DBMS_LOB.) GETLENGTH (V_SOAP_REQUEST_TEXT));

    UTL_HTTP. WRITE_TEXT (R = > V_REQUEST, DATA = > V_SOAP_REQUEST_TEXT);

    V_RESPONSE: = UTL_HTTP. GET_RESPONSE (V_REQUEST);

    LOOP

    UTL_HTTP. READ_LINE (V_RESPONSE, V_BUFFER, TRUE);

    DBMS_OUTPUT. PUT_LINE (V_BUFFER);

    END LOOP;

    UTL_HTTP. END_RESPONSE (V_RESPONSE);

    EXCEPTION

    WHEN UTL_HTTP. END_OF_BODY THEN

    UTL_HTTP. END_RESPONSE (V_RESPONSE);

    END;

    anonymous block filled

    <? XML version = "1.0"? >

    " < envelope soap: xmlns:soap = ' http://www.w3.org/2002/06/SOAP-envelope/ ">

    < soap: Body >

    < soap: Fault >

    < Code: soap >

    < soap: value > SOAP: sender < / SOAP: value >

    < / Code: soap >

    entry processing < soap: reason > error < / SOAP: reason >

    < soap: detail >

    " < OracleErrors xmlns =" http://xmlns.Oracle.com/orawsv/faults "> "

    So OracleError >

    < ErrorNumber > ORA-19202 < / ErrorNumber >

    < message > <! [CDATA [error has occurred in the processing of XML]] > < / Message >

    < / OracleError >

    So OracleError >

    < ErrorNumber > ORA-06550 < / ErrorNumber >

    < message > <! [CDATA [line 1, column 24:]] > < / Message >

    < / OracleError >

    So OracleError >

    < ErrorNumber > PLS-00302 < / ErrorNumber >

    < message > <! [CDATA [component "WS_CALC" must be said]] > < / Message >

    < / OracleError >

    So OracleError >

    < ErrorNumber > ORA-06550 < / ErrorNumber >

    < message > <! [CDATA [line 1, column 7:]]

    [[PL/SQL: statement ignored]] > < / Message >

    < / OracleError >

    < / OracleErrors >

    < / Details: soap >

    < / soap fault: >

    < / soap: Body >

    < / envelope soap: >

    With reference APEX web service, the response is exactly the same and apex_web_service.make_request also work.

    Thanks again.

    The SOAP request is not correct.

    must be:

    So again, it does not solve the problem:

    -Which user you are using to authenticate on the other side?

    If it's another user the owner of the package, then of course you must grant the execute privilege appropriate to this user (and possibly one explicit SELECT on the table referenced too privilege).

  • Web services and ADF 11 g - get result from backing bean

    I will carry out a backup action bean (Web service call that returns complex data types)

    BindingContainer links = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("unesiPonudu");
    Object result = operationBinding.execute ();

    instance of oracle.adf.model.adapter.dataformat.XMLHandler$ DataCollection result but DataCollection is not accessible.

    How to get the results of the method?

    TNX,

    Andreja

    Hello

    There should be a result iterator in the executable files of the article that cotnains the result. If this isn't the case, create from the result WS entry in the palette of DC. Once this iterator is updated, you get this iterator data as is the case of a table goes backwards

    Frank

  • How to use generated code of &amp; quot; Import Web Services &amp; quot; with Cairngorm framework

    I recently downloaded Flex Builder 3 beta 2 and try the wizard that allows you to import web services. The code that is automatically generated makes it so simple to consume web services using the types of objects defined in the WSDL file. Is no longer the developer don't need decode the XML load! The only problem I have is how you integrate the code automatically generated with the Cairngorm framework? This seems to be a huge issue for those who would exploit Cairngorm and code the proxy generated automatically in the same project (like me).

    Here are the problems I see so far.

    (1) how to configure the service generated class to work with the Cairngorm service locator? The service constructor only accepts a 'destination displays LCD chain' which means that you must use life cycle data services. Unfortunately, the project that I am in the process of renovation currently uses a Web service and does not use data services. All I really need to do is change the URL of the endpoint (that is, from the local level to a development server). This issue is noted in the bug https://bugs.adobe.com/jira/browse/FB-8456. I think there is a way to put the endpointURI in the Services.mxml file.
    (2) even if I come with a hack autour #1, I do not get a reminder for my same IResponder if I save it immediately after the method call. I can record and function of earphone within my business delegate and receive the reminder, but my command object that implements IResponder, did not call back even if it is registered. From what I've read in the ASDocs should be, but this isn't for me!

    These are the questions that I have observed in 3 hours to play with this. I hope this makes sense. I would like to integrate automatically generated in Cairngorm web service proxies, but I don't see a right lane to the front without redesign of Cairngorm. Has anyone else encountered this problem? If so, do you have any ideas on how to proceed? Any help is appreciated.

    Hi guys,.

    Now we focus on the generated code the right way and try to make it work for as many cases as possible. As soon as we receive some time we will try to see what is the best way to use Cairngrom.

    In the meantime, if you find a way or a great idea do not hesitate to post here.

    Thank you
    Cristian

  • Consume a web service from ASP which responds with complex data types...

    Here's my problem - I'm trying to consume a web service from a provider that uses complex data types.

    The starting of the WSDL part looks like this (I have not included all) - named have been changed to protect the innocent:

    " < wsdl:definitions targetNamespace = ' http://domain_name ">
    WSDL: < types >
    " < s:schema elementFormDefault ="qualified"targetNamespace =" http://domain_name ">
    < s:element name = "Authentication" >
    < s:complexType >
    < s:sequence >
    < s:element minOccurs = "0" maxOccurs = "1" name = "User name" type = "s:string" / >
    < s:element minOccurs = "0" maxOccurs = "1" name = "Password" type = "s:string" / >
    < s:element minOccurs = "0" maxOccurs = "1" name = "Token" / >
    < / s:sequence >
    < / s:complexType >
    < / s:element >
    < s:element name = "AuthenticateResponse" >
    < s:complexType >
    < s:sequence >
    < s:element minOccurs = "1" maxOccurs = "1" name = "AuthOK" type = "s:int" / >
    < s:element minOccurs = "0" maxOccurs = "1" name = "Token" / >
    < / s:sequence >
    < / s:complexType >
    < / s:element >

    Since it is a return, with a sequence of complexType, I expect an array or a structure returned, but instead I just get the value of "AuthOK" and no way to get something else.

    Here are the ways I tried to call it:

    < cfscript >

    WS = createObject ("WebService", "https://WSDL_URL");

    WS_ret = WS. Authentication (name of user = "username", password = "password", token = "");

    < / cfscript >

    < cfdump var = "" #WS_ret # "/ >"

    < cfinvoke webservice = "WSDL_URL" method = "Authentication" returnVariable = "WS_ret" >

    < name cfinvokeargument = "userID" value = "7253320" / >
    < cfinvokeargument name = "password" value = "ctpjxs3" / >
    < name cfinvokeargument = "SecurityToken" value = "" / > "

    < / cfinvoke >

    < cfdump var = "" #WS_ret # "/ >"

    Any ideas how I can get the other variables in the sequence? I have other calls after that have a greater amount of variables, and as such I can't use without being about to get more than the

    You can try using the function GetSOAPResponse to review the XML code you receive.

    'GetSOAPResponse '.

    http://livedocs.Adobe.com/ColdFusion/8/htmldocs/help.HTML?content=functions_e-g_59.html#50 54378

    "Troubleshooting SOAP requests and responses.

    http://livedocs.Adobe.com/ColdFusion/8/htmldocs/help.HTML?content=webservices_27.html#1222 070

    As for the question of docs, I suspect mediocre edition is at fault.  I assume that the web service is supposed to have an echoStruct method but this is unclear.

  • complex customer KSOAP of web service with the data type

    I had created my client to the web service using ksoap sample. This works very well in the Simulator.

    Now, I am creating the web service to the complex data type client. For the same thing, I want any heel KSOAP generator tool. Please suggest any tool. If this type of tool is not available then please guide me standard procedure for the management of complex data types in ksoap.

    help will be appreciated.

    Have you tried the SUN WTK stub generation tool?

  • Working with complex data types in web services...

    Hi all
    I have created a Web service and created an interface for this in the ADF. Now that my web service returns a complex data type, I followed the steps in this article "http://www.oracle.com/technology/products/jdev/howtos/1013/wsadf/adfcomplexwstypes.html" and it works very well, my results are also displayed. But the only problem is that I get a warning "Houston-25009: cannot create an object of type: java.util.calendar value: 2008-09 - 23 T 23: 51:30.000 + 05:30 ' and if I can replace all the java.util.Date oracle.jbo.domain.Date then I get a warning" Houston-25009: failed to create an object of type: oracle.jbo.domain.Date with the value: 2008-09 - 23 T 23: 51:30.000 + 05:30. Now I am unable to understand this, but I think it's a problem of data type mapping, but do not know how to remedy this.

    Everyone knows the wayout?

    Concerning
    Lokesh

    Hi Lokesh,
    I have been troubled by the same question in the past. The problem is that the entrants is a format for dateTime xml adf trying to analyze the underlying java object. Java.util.Calendar, java.util.Date, or oracle.jbo.domain.Date to get a date in adf when scanning automatically your incoming xml file. See this thread on the forum for more information jdeveloper Re: how to deal with xsd: DateTime to webservice in ADF? The answer that gives Frank Nimphius is correct but I used option 1 option 2 should also work.

    Kind regards
    André

  • The truncated Web Service response

    In my AIR application built with Flex Builder 3, I am correctly call a web service and return a response. The response contains an object that contains data of fifty-four of a mixture of chain, fields of number and Boolean types. No string field is outrageously long. The entire frequency is 4.5 k. I look at this frequency item get filled in the debugger, I see valid data until about halfway through the object. Then for each field later, I see a bunch of NULL and NaN values for fields that have data. There is nothing wrong with the service or the configuration of my computer/OS, because I am able to call in other ways and capture valid responses.

    Are there any ideas on what could be going on here and how I could fix this? It is an essential element of functionality in a demonstration of our products to potential customers. Any help would be greatly appreciated. Thank you.

    Thank you all for your help. We have control over the server that exposes web services, so what I'll do is drop it is a servlet that handles the operation. I can spend the minimum data in the fields of URL parm to the servlet. It is a cleaner well based, and it avoids the marshaling of Flex bugs and mess of raw XML data manipulation.

  • CI based Web Service error handling

    Hello

    I use a CI based web service to update my ps tables. Now, I have a requirement to capture the request and response messages in a table / how to get the request message?

    PeopleSoft already collects it for you.

    You can retrieve the request and response xml by using the method GetSyncLogData in the class IntBroker
    PeopleSoft also uses that you submit the request and response xml in services monitor.

    Line of code in the pageactivate of AMM_RAWXML4
    + & str = %IntBroker.GetSyncLogData (AMM_SYNCLIST. GUID, decodelogtype (AMM_DERIVED. LOGTYPE), False); +

    You can retrieve the TransactionID (first parameter) by running a select statement on PSIBLOGHDR where IB_OPERATIONNAME = 'YOUR_CI_SERVICE_OPERATION_NAME. '

    PeopleBooks on this method:
    http://docs.Oracle.com/CD/E28394_01/pt852pbh1/Eng/psbooks/TPCR/book.htm?file=TPCR/htm/tpcr27.htm#57248C9C_1355AB6F02A_6CF7

    Syntax
    GetSyncLogData (TransactionId, LogType % [, Archive])

    Description
    Use the GetSyncLogData method to return a log containing information about the specified synchronous message.
    You can use this information for debugging. Using this method, you can get the data request and response to a synchronous request, before and after the transformation.
    This function is used in PeopleCode for the Message monitor.

    Parameters
    TransactionId
    Specify the ID of the published message transaction.
    LogType
    Specify the type of log that must be returned, depending on the type of message. See below for valid values.
    Archives
    Specify whether to retrieve logs archived as well. This parameter takes a Boolean: true to return archived newspapers, false otherwise. The default value is false.

    For the LogType parameter, valid values are:
    Constant value
    Description
    % Sync_RequestOrig
    Gets the log for a data sync original request message.
    % Sync_RequestTrans
    Gets the log for a message of transformed data synchronization request.
    % Sync_ResponseOrig
    Gets the log for a data sync original response message.
    % Sync_ResponseTrans
    Gets the log for a message of transformed data from reply sync.

    Returns
    An XML string containing the log data.

  • Where should I place a SWC file that describes a complex structure for a web service?

    Hello!

    I am creating a web service in ColdFusion 9, which returns a complex structure or has a complex argument.  I'm placing the .cfc file that describes the structure in the same directory as the .cfc which uses the structure.  Right now just trying to get a wsdl.

    I have currently two functions in my .cfc, first returns a string.  The other ideally returns an array of strings.  Saying returntype = "String()" gives an error that ColdFusion could analyze no chain

    So I tried to make a type defined by the individual item being a string:

    < cfproperty >
    < cfcomponent name = "Info source" type = "string" >
    < cfproperty >

    ------------------------------------
    Is my code that uses this cfc:

    < cfproperty >
    < cffunction name = "getzips" returntype = "remote access" = "string" >
    < cfset #resultsCommaDelimtedZips # = "this is the result" >
    < cfreturn CommaDelimitedZips >
    < / cffunction >

    < cffunction name = "getInfoSources" access returntype = "at distance" = "InfoSources []" >
    < / cffunction >
    < / cfproperty >

    The error I get is:

    AXIS error

    Sorry, something seems to have gone wrong... Here are the details:

    Error - error trying to create the skeleton of Java for web service CFC. ; nested exception is:
    coldfusion.xml.rpc.CFCInvocationException: [coldfusion.compiler.ParseException: invalid CFML construct found on line 3 in column 1.] ColdFusion was looking at the following: < p > & lt; < /p > < p > the CFML compiler treated: < ul > & lt; marks the beginning of a ColdFusion tag. Did you mean LT or LTE? < /ul >]

    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/} Server.generalException
    faultSubcode:
    faultString: error trying to create the skeleton of Java for web service CFC. ; nested exception is:
    coldfusion.xml.rpc.CFCInvocationException: [coldfusion.compiler.ParseException: invalid CFML construct found on line 3 in column 1.] ColdFusion was looking at the following: < p > & lt; < /p > < p > the CFML compiler treated: < ul > & lt; marks the beginning of a ColdFusion tag. Did you mean LT or LTE? < /ul >]
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/} hostname:ntc15

    ----------------------------
    I have a similar problem if I use cfcomponent:

    < cfproperty >
    < cfcomponent name = "approved" type = "string" >
    < cfcomponent name = "total_charged" type = "string" >
    < cfcomponent name = "charge_error" type = "string" >
    < cfcomponent name = "renewed_until" type = "string" >
    < cfcomponent name = "reason" type = "string" >
    < cfproperty >

    http://livedocs.Adobe.com/ColdFusion/8/htmldocs/help.HTML?content=webservices_20.html said
    Note: If the files of the components are not in a directory under the web root, you must create a server web mapping to the directory that contains them. You cannot use ColdFusion mappings to access web services.

    So I tried putting the .cfc file in a directory under my folder wwwroot rather than inside.  That did not help.

    Any suggestions?  I feel that I did exactly what all the documents I can find tells me to do!

    Thank you!

    -Mabel :-)

    We work collaboratively with another company that makes the front-end server, by using the web service, so I need the wsdl show the kind of real data, not just "any", that is using what is 'array'.

    If I use your code (add a name for the echoStatus argument), I get

    How can I tell it a table of _strings_ specifically?

    ColdFusion is loosely typed, so I wonder if we can be so specific in the type of data, without resorting to Java for example. But then again, you will meet soon all sorts of complications. A ColdFusion array and an array of java are 2 totally different things. Run the following code and you'll see why


    #testArray.getClass () .getName () #.

    in any case, because the strings are is a subset of the type 'all', your service includes also the case where an array of strings is returned.

  • Handling of result for the Web Service

    I'm new to flex and was looking for the best way to show my web service result in AdvancedDataGrid.

    Could someone please take the time to spellout how to do this.

    I tried using the MXML approach and the code AS... I keep thinking I'm missing something.

    Basically, I went back an array of a custom object defined.  Everything in the object is a string, so it is not too complex.

    I am sure that my service returns a response that I checked with soapUI.

    So, how to map this result in an ArrayCollection collection?

    < mx:WebService id=" SRV "wsdl =" " wsDest "

    < mx:operation " name =" getGridData "

    Fault = "showErrorDialog (Event)" "

    result = "someFunction (Event)" "

    >

    < / mx:operation >

    < / mx:WebService >

    < mx:Script >

    <! [CDATA]

    Import mx.rpc.soap.SOAPFault;

    Import mx.rpc.events.ResultEvent;

    Import mx.rpc.events.FaultEvent;

    Import mx.controls.Alert;

    Import mx.collections.ArrayCollection;

    [

    Bindable ]

    public var myArray: ArrayCollection = collection new ArrayCollection();

    public function log(event:ResultEvent):void {}

    Managing for results.

    myArray = ArrayCollection (event.result);

    trace (event.result);

    }

    []] >

    < / mx:Script >

    My common error:

    Error #1088: The markup in the document following the root element must be well-formed.

    If I forget something?  Should I remove SOAP headers?  Any ideas?

    I tried the above approach among others... but would like someone to state a definitive approach to this.  Any help is greatly appreciated, thanks in advance.

    I'm sorry.

    I put a new Webservice usage example below.

    The first question and the problem is that creation collection ArrayCollection setting was wrong. You must specify is that this

    new ArrayCollection (e.result.toArray ());

    Example:


    http://www.Adobe.com/2006/mxml"layout ="vertical">
       
       
        Import mx.collections.ArrayCollection;
    Import mx.collections.ListCollectionView.
    Import mx.utils.ObjectUtil;
    Import mx.controls.Alert;
    Import mx.rpc.events.FaultEvent;
    Import mx.rpc.events.ResultEvent;

    [Bindable]
    private var categories: ListCollectionView = new ArrayCollection();
           
    private void search (): void
    {
    service.getCategories ();
    }
           
    private void result(e:ResultEvent):void
    {
    categories = e.result as ListCollectionView;
    }
           
    lack of private function (e:FaultEvent): void
    {
    Alert.Show (e.Fault.message);
    }
    ]]>
       
       
       
    WSDL ="http://feeds.adobe.com/webservices/mxna2.cfc?WSDL" >. "
            <>
    name = 'getCategories '.
    result = "result (Event)" "
    Fault = "Fault (Event)" / > "
       


       
       
           
           
               
               
               

               
           
           
       

  • Help: using customered for Web Services data type settings

    file answer.cfc
    < cfproperty >
    < cfcomponent name = "person" type = "name" >
    < name cfcomponent = "answerText" type = "string" >
    < / cfproperty >

    file name.cfc
    < cfproperty >
    < name cfcomponent = "FirstName" type = "string" >
    < name cfcomponent = "Name" type = "string" >
    < / cfproperty

    webServices of the myWebServices.cfc file
    < cfproperty >
    < cffunction = returnType = "echoAnswer" name "string" access = "remote" output = "false" >
    < name = "input" cfargument type = 'response' >
    < cfset returns = "" >
    < cfif arguments.input.person.FirstName eq 'Xinkun' >
    < cfset returns = "Xinkun replied:" > ""
    < cfset returns = arguments.input.answerText & returns >
    < cfelse >
    < cfset returns = "Xinkun failed" >
    < / cfif >
    < cfreturn returns >
    < / cffunction >
    < / cfproperty >

    file servicesClientTest.cfm client Web services
    < cftry >
    <!-< component cfobject = 'response' name = "respons" >-->
    < cfset respons = structNew () >

    <!-< component cfobject = 'name', name = "tempN" >-->
    < cfset tempN = StructNew () >
    < cfset tempN.Firstname = "Xinkun" >
    < cfset tempN.Lastname = "Yuan" >

    < cfset respons.person = tempN >
    < cfset respons.answerText = "test answer" >

    "" < cfinvoke webservice = " http://localhost/CF_Webservices/myWebServices.cfc?wsdl" method = "echoAnswer" returnvariable = "outputV" >
    < name cfinvokeargument = "input" value = "#respons #" >
    < / cfinvoke >
    < cfoutput >
    #outputV #.
    < / cfoutput >
    < cfcatch >
    < cfoutput >
    #cfcatch. Message #.
    < / cfoutput >
    < / cfcatch >
    < / cftry >

    There will be an error: "could not perform web service"echoAnswer"call" when I test the servicesClientTest.cfm.
    Help me please!

    Are you using Application.cfc?

    @Dan
    The return type does not matter for this error. The error occurs when the WSDL is generated. Return types are checked when executing when the method is called and return types as you can have customized no compiling errors will occur.

    I've recreated the files exactly as you said and it works just file when I remove my application.cfc.

    See this article http://corfield.org/blog/index.cfm/do/blog.entry/entry/Applicationcfc__onRequest_and_CFCs.

  • The response from the query web service

    Hello


    I would like to apply for assistance in creating an appropriate query to process the response from the web service.

    This is the outdated response from the web service and my unsuccessful attempt to treat.


    PROCEDURE PRIMER_4B AS
    XML_WS XMLTYPE.
    CLOB DONNEES_XML
    ': = ' < s: Envelope xmlns:S = 'http://schemas.xmlsoap.org/soap/envelope/' > '.
    < Body >
    "< ns2:getDataResponse xmlns:ns2 ="http://service.anyxxx.com/">."
    < return >
    < id > 124 / < ID >
    < name > Ana < / name >
    < / return >
    < / ns2:getDataResponse >
    < / Body >
    < / s: Envelope > ';

    CSR OF CURSOR IS
    SELECT C.
    FROM XMLTable)
    XMLNamespaces)
                 ' http://schemas.xmlsoap.org/SOAP/envelope/ ' LIKE 'SOAP'
    , by default ' http://service.anyxxx.com/
    )
    , ': soap envelope / soap: Body/getDataResponse/back '
    PASSAGE XML_WS
    path id varchar2 columns (20) "id."
    path of the varchar2 (30) name 'name '.
    ) C   ;
    rec_CSR CSR % ROWTYPE;

    BEGIN
    XML_WS: = xmltype (donnees_xml);
    Open the CSR;
    LOOP
    EXTRACT THE CSR IN REC_CSR;
    DBMS_OUTPUT. Put_line (' Output: ' |) REC_CSR.ID |'   '|| REC_CSR. (Name)
    When the exit CSR % notfound;
    end loop;
    DBMS_OUTPUT. Put_line('Total:'||) CSR % ROWCOUNT);
    close the CSR;
    END PRIMER_4B;

    The result is:
    Output:
    Total 0


    Thank you
    Kostadin

    Hello

    This part does not:

    default 'http://service.anyxxx.com/'.

    If you declare this uri as the default namespace uri, then 'return', 'id', 'name' nodes are supposed to be in this namespace, which is not correct, because they are in any workspace names.

    Solution: give a specific prefix of the namespace above and reference it accordingly in the XQuery expression:

    C. SELECT

    FROM XMLTable)

    XMLNamespaces)

    "http://schemas.xmlsoap.org/soap/envelope/" AS "SOAP."

    , 'http://service.anyxxx.com/' as 'ns2.

    )

    , ': soap envelope / soap: Body / ns2:getDataResponse / back '

    PASSAGE XML_WS

    Path id varchar2 COLUMNS (20) "id".

    , path of the varchar2 (30) name 'name '.

    ) c ;

  • How to connect to an Adobe Javascript(Folder Level Script) SAP Web Service and retrieve the response in a table of the Adobe Javascript/AcroJS. Could you please it explain with an example. I have two required input parameters that must be filled.

    How to connect to an Adobe Javascript(Folder Level Script) SAP Web Service and retrieve the response in a table of the Adobe Javascript/AcroJS. Could you please it explain with an example. I have two required input parameters that must be filled.

    I s generic SOAP example/tutorial on my blog: get a serial number in a form using SOAP - KHKonsulting LLC

    The web service uses only a single parameter, but you should be able to adapt the code to two arguments without problems.

Maybe you are looking for

  • I want to remove FIREFOX from my computer.

    I want to remove FIREFOX from computer. I prfer Internet Explorer, it gives me fewer problems.

  • Tecra R10 - how to remove the memory module?

    Hello! How to remove the memory module? Get the following message and for me, it means that one of the modules is broken: Out of memory errorAddress = H 00034000Read Date = H 28034000Write data = H 00034000 For my opinion, the computer should start u

  • Satellite A660 - what to do with the new driver LAN wireless?

    I received a message through TEMPRO to download a new driver - Wireless Lan Driver software 21/04/2011.However, when I enter the download I do not understand what to do. Please can you help me? He reads things or 4 possibilities: (and I don't want to

  • Lost sound on Satellite A200-27R

    Hi all I lost the sound of my laptop Satellite A200-27R. I checked with a computer engineer.Confirm me the problem comes from the hardware store and it probably the chipset. So, how such a problem can occur just three months after I bought?Now he tel

  • Starting slow/delayed after logging...

    I have a 9 year old, desktop pc Dell Dimension 4500, works under Windows XP.  Problem: When starting to shutdown or reboot pc, there is at least a delay time of 10-15 minutes until I can go online or open some programs.  By the Manager of Windows tas