Formatting CF data for a web service complex type

I am trying to call a web service with the following definition in the WSDL
<s:element name="CreateDataList">
     <s:complexType>
          <s:sequence>
               <s:element minOccurs="0" maxOccurs="1" name="client_app_id" type="s:string"/>
               <s:element minOccurs="0" maxOccurs="1" name="client_app_pwd" type="s:string"/>
               <s:element minOccurs="1" maxOccurs="1" name="data_template_id" type="s:int"/>
               <s:element minOccurs="1" maxOccurs="1" name="calculate_persistent_values" type="s:int"/>
               <s:element minOccurs="0" maxOccurs="1" name="data" type="tns:ArrayOfArrayOfName_value"/>
          </s:sequence>
     </s:complexType>
</s:element>
<s:complexType name="ArrayOfArrayOfName_value">
     <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="record" type="tns:ArrayOfName_value"/>
     </s:sequence>
</s:complexType>
<s:complexType name="ArrayOfName_value">
     <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="variable" type="tns:name_value"/>
     </s:sequence>
</s:complexType>
<s:complexType name="name_value">
     <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" name="name" type="s:string"/>
          <s:element minOccurs="0" maxOccurs="1" name="value" type="s:string"/>
     </s:sequence>
</s:complexType>
I am trying to format the ArrayOfArrayOfName_value data and getting an "argument type mismatch" error. The sample PHP code for the data looks like this:
$data = array(0 => array(
    array('name' => 'FIRST_NAME', 'value' => 'First'),
    array('name' => 'LAST_NAME', 'value' => 'Last'),
    array('name' => 'ADDRESS', 'value' => 'Address'),
    array('name' => 'CITY', 'value' => 'City'),
    array('name' => 'STATE', 'value' => 'State'),
    array('name' => 'ZIP', 'value' => '55555')
1 => array(
    array('name' => 'FIRST_NAME', 'value' => 'First'),
    array('name' => 'LAST_NAME', 'value' => 'Last'),
    array('name' => 'ADDRESS', 'value' => 'Address'),
    array('name' => 'CITY', 'value' => 'City'),
    array('name' => 'STATE', 'value' => 'State'),
    array('name' => 'ZIP', 'value' => '55555')
My CF code looks like this:
<cfset data = ArrayNew(1) />
<cfset data[1] = ArrayNew(1) />
<cfset data[1][1] = StructNew() />
<cfset data[1][1]["name"] = "NAME" />
<cfset data[1][1]["value"] = "JOhn Doe" />
<cfset data[1][2] = StructNew() />
<cfset data[1][2]["name"] = "ADDRESS1" />
<cfset data[1][2]["value"] = "123 Test St" />
<cfset data[1][3] = StructNew() />
<cfset data[1][3]["name"] = "ADDRESS2" />
<cfset data[1][3]["value"] = "" />
<cfset data[1][4] = StructNew() />
<cfset data[1][4]["name"] = "CITY" />
<cfset data[1][4]["value"] = "Austin" />
<cfset data[1][5] = StructNew() />
<cfset data[1][5]["name"] = "STATE" />
<cfset data[1][5]["value"] = "TX" />
<cfset data[1][6] = StructNew() />
<cfset data[1][6]["name"] = "ZIP" />
<cfset data[1][6]["value"] = "78704" />
<cfset data[2] = ArrayNew(1) />
<cfset data[2][1] = StructNew() />
<cfset data[2][1]["name"] = "NAME" />
<cfset data[2][1]["value"] = "Jane Doe" />
<cfset data[2][2] = StructNew() />
<cfset data[2][2]["name"] = "ADDRESS1" />
<cfset data[2][2]["value"] = "987 Test St" />
<cfset data[2][3] = StructNew() />
<cfset data[2][3]["name"] = "ADDRESS2" />
<cfset data[2][3]["value"] = "" />
<cfset data[2][4] = StructNew() />
<cfset data[2][4]["name"] = "CITY" />
<cfset data[2][4]["value"] = "Austin" />
<cfset data[2][5] = StructNew() />
<cfset data[2][5]["name"] = "STATE" />
<cfset data[2][5]["value"] = "TX" />
<cfset data[2][6] = StructNew() />
<cfset data[2][6]["name"] = "ZIP" />
<cfset data[2][6]["value"] = "78704" />
Any suggestions for where I am going wrong would be greatly appreciated.

If anyone is interested here is the correct CF format for this WSDL complex type definition
<cfset data = StructNew() />
<cfset data["record"] = ArrayNew(1) />
<cfset data["record"][1] = StructNew() />
<cfset data["record"][1]["variable"] = ArrayNew(1) />
<cfset data["record"][1]["variable"][1] = StructNew() />
<cfset data["record"][1]["variable"][1]["name"] = "NAME" />
<cfset data["record"][1]["variable"][1]["value"] = "John Doe" />
<cfset data["record"][1]["variable"][2] = StructNew() />
<cfset data["record"][1]["variable"][2]["name"] = "ADDRESS1" />
<cfset data["record"][1]["variable"][2]["value"] = "123 Test St" />
<cfset data["record"][1]["variable"][3] = StructNew() />
<cfset data["record"][1]["variable"][3]["name"] = "ADDRESS2" />
<cfset data["record"][1]["variable"][3]["value"] = "" />
<cfset data["record"][1]["variable"][4] = StructNew() />
<cfset data["record"][1]["variable"][4]["name"] = "CITY" />
<cfset data["record"][1]["variable"][4]["value"] = "Austin" />
<cfset data["record"][1]["variable"][5] = StructNew() />
<cfset data["record"][1]["variable"][5]["name"] = "STATE" />
<cfset data["record"][1]["variable"][5]["value"] = "TX" />
<cfset data["record"][1]["variable"][6] = StructNew() />
<cfset data["record"][1]["variable"][6]["name"] = "ZIP" />
<cfset data["record"][1]["variable"][6]["value"] = "78704" />
<cfset data["record"][2] = StructNew() />
<cfset data["record"][2]["variable"] = ArrayNew(1) />
<cfset data["record"][2]["variable"][1] = StructNew() />
<cfset data["record"][2]["variable"][1]["name"] = "NAME" />
<cfset data["record"][2]["variable"][1]["value"] = "Jane Doe" />
<cfset data["record"][2]["variable"][2] = StructNew() />
<cfset data["record"][2]["variable"][2]["name"] = "ADDRESS1" />
<cfset data["record"][2]["variable"][2]["value"] = "987 Test St" />
<cfset data["record"][2]["variable"][3] = StructNew() />
<cfset data["record"][2]["variable"][3]["name"] = "ADDRESS2" />
<cfset data["record"][2]["variable"][3]["value"] = "" />
<cfset data["record"][2]["variable"][4] = StructNew() />
<cfset data["record"][2]["variable"][4]["name"] = "CITY" />
<cfset data["record"][2]["variable"][4]["value"] = "Austin" />
<cfset data["record"][2]["variable"][5] = StructNew() />
<cfset data["record"][2]["variable"][5]["name"] = "STATE" />
<cfset data["record"][2]["variable"][5]["value"] = "TX" />
<cfset data["record"][2]["variable"][6] = StructNew() />
<cfset data["record"][2]["variable"][6]["name"] = "ZIP" />
<cfset data["record"][2]["variable"][6]["value"] = "78704" />

Similar Messages

  • SSIS Web Service Complex Type Inputs

    Hi,
    I am trying to make a call to a third-party web service in my SSIS package.  The request has custom complex data type as the parameter.  As has been pointed out in this forum before, the Web Service Task only lets you assign the outside parameter from a variable, not the internal parameters needed to create the complex data type. 
    To be more specific, the web service input wants a 'ContactSearchRequest' parameter.  I can assign this from a variable.  If I click on the 'value' field under the 'Input' section for the web service task, it shows me that the 'ContactSearchRequest' data type is made up of the following:
    contactId - long
    numResults - int
    offset - int
    passKey - string
    searchParam - string
    sortType - int
    Unfortunately, I can't assign these internal parameters from a variable, at least not through the web service task interface.
    My next thought was to create a variable of type 'object' and then set it in a script task prior to calling the web service task.  However, I'm not sure exactly how to do this.  How will my script know about the class definition of 'ContactSearchRequest'?  Do I just create a class called 'ContactSearchRequest'?
    I've used this same web service in a .NET C# project and after I imported the web service, visual studio knew all about the custom data types.  How do I do something similar in SSIS?
    Of course, the easiest solution would for Integration Service to allow me to set those internal parameters via variables, but we're apparently not there yet.
    Any suggestions?
    Thanks,
    Trey

    Hi All,
    I am trying to pull the data from a webservice. The method expects 5 parameters out of which one is a complex type. And it is fine to pass Null value for this parameter.
    The method expects a complex data type UrlReportFilter
    as follows:
    <simpleType name="UrlReportFilterOperatorEnum">
     <restriction base="xsd:string">
    <enumeration value="contains"/>
    <enumeration value="starts_with"/>
    <enumeration value="ends_with"/>
    <enumeration value="not_contains"/>
    <enumeration value="not_starts_with"/>
    <enumeration value="not_ends_with"/>
    <enumeration value="match_regular_expression"/>
    <enumeration value="not_match_regular_expression"/>
    <enumeration value="exact_match"/>
    </restriction>
    </simpleType>
    <complexType name="UrlReportFilter">
    <sequence>
    <element name="caseSensitive" type="xsd:boolean"/>
    <element name="operand" nillable="true" type="xsd:string"/>
    <element name="operator" nillable="true" type="akaaimsdt:UrlReportFilterOperatorEnum"/>
    </sequence>
    </complexType>
    How to assign values and use this in VB.NET code? 
    I am using following code to assign the values to the properties in VB.NET code in Script task but it is throwing the error below:
     Dim vUrlFilter As New Akamine.UrlReportFilter With {.caseSensitive = False, .operand = ""}
    Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Web.Services.Protocols.SoapException: AWSFault:Error in processing:(com..aws.services.exceptions.InvalidColumnException: Invalid column:
    for report:H
    Any help on this would be appreciated!!
    Thanks,
    Ruby
    Thanks & Regards

  • Web Services Complex Types

    I am developing a Web Service in Netbeans 5.5 running on Sun Application Server 9.0UR1. The web service and client work fine if I use simple types like "String" as a return type. However, I need to return complex types, such as a user defined class. I setup the web service to define a user defined class, SimpleBean, and I setup my client to accept it. The client successfully connects and gets back the object but I do not have access to the any of the getters/setters in the object. How do I setup it up so that I get access to the returned object's getters/setters?
    Luke Mauldin

    JAXB can be used to solve your problem. Rather than trying return your own types directly use JAXB to explain your return types in a schema;
    Example:
    public class MyType {
    int id=-1;
    int noOfObjects=0;
    String something;
    @XmlElement(nillable = true) //Java annotation to return list
    List<String> participant;
    public Interaction() {
    participant= new ArrayList<String>();
    something=�hi�;
    public List<String> get() { return participant; }
    public void set(String newpart) {participant.add(newpart);}
    public String getCrux() { return �OK�; }
    public void setCrux(String something) { this. something = something; }
    @XmlAttribute
    public int getId() { return 0; }
    public void setId(int id) {  }
    @XmlAttribute
    public int getNoOfObjects() { return noOfObjects; }
    public void setNoOfObjects(int id) { this.noOfObjects =noOfObjects; }
    @WebService()
    public class MyService {
    @WebMethod
    public Results MyType (@WebParam(name = "id") String id) {
    return new MyType();
    When defining your own class make sure you have "get" and "set" methods for all types.(JAXB needs this)

  • Web Service + Complex Type + Java Studio Creator

    Hy all!!
    I am using Ubuntu 7.04 + Java Studio Creator 2 and i'm trying to use a webservice.
    This webservice uses a Complex Type and was made in PHP.
    I guarantee that this webservice is working with complex type because i've tested using a PHP client.
    I have already worked with others webservices in Java Studio Creator using simple types!
    So I went to Add Web Service, put the wsdl link, Get Web Service Information and then Test Method that uses Complex Type.
    Then I gave a input value and when I submit i got this error:
    InvocationTargetException com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:459) com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031) java.lang.Thread.run(Thread.java:595) null sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450) com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031) java.lang.Thread.run(Thread.java:595) Runtime exception; nested exception is:
    [failed to localize] nestedDeserializationError([failed to localize] xmlreader.unexpectedState(END, START: nome))
    com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(StreamingSender.java:318) com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:300) webservice.Grs_PortType_Stub.buscarCompleto(Grs_PortType_Stub.java:122) webservice.grs.grsClient.buscarCompleto(grsClient.java:36) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450) com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031) java.lang.Thread.run(Thread.java:595)
    [failed to localize] nestedDeserializationError([failed to localize] xmlreader.unexpectedState(END, START: nome))
    com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:233) com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerImpl.java:155) webservice.Grs_buscarCompleto_ResponseStruct2_SOAPSerializer.doDeserialize(Grs_buscarCompleto_ResponseStruct2_SOAPSerializer.java:43) com.sun.xml.rpc.encoding.ObjectSerializerBase.deserialize(ObjectSerializerBase.java:192) com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.deserialize(ReferenceableSerializerImpl.java:155) webservice.Grs_PortType_Stub._deserialize_buscarCompleto(Grs_PortType_Stub.java:186) webservice.Grs_PortType_Stub._readFirstBodyElement(Grs_PortType_Stub.java:160) com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:215) webservice.Grs_PortType_Stub.buscarCompleto(Grs_PortType_Stub.java:122) webservice.grs.grsClient.buscarCompleto(grsClient.java:36) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450) com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031) java.lang.Thread.run(Thread.java:595)
    Any help would be appreciated!
    Thanks a lot!
    Mario Mol

    Have you seen this?
    http://developers.sun.com/jscreator/reference/techart/2/create_consume_web_services.html
    Also have you tried the latest and coolest IDE Netbeans 6?
    It includes all the features of Creator plus lots more.
    Thanks
    K

  • Web service Complex type

    hello i want to ask if i can make a complex type that is composed of many other classes and witch databinding framework should i use to do do the mapping from xml to my one classes not the auto generated classes thanks for your help.

    Hi Ray,
    I just had you set your "per" object to its constructor out of habit. Don't know about you, but I spend too much time chasing null pointer exceptions.
    Try this. It's easy and quick.
    1) Hold your mouse over the ObtenerPersonaActivaDadoCI() method in the Project Navigator tab. By doing this, I'm guessing you'll see it's not returning a Persona object.
    or
    2) Simply drag the ObtenerPersonaActivaDadoCI() method from the Project Navigator tab into your logic. By doing this, you'll notice that it has a value in front of the "=" sign. Again, I'm guessing you'll see it's not returning a Persona object.
    Even though the Persona object and the object that ObtenerPersonaActivaDadoCI() returns both have the same list of attributes, I believe that you'll continue to get the error you're seeing if you try to set per (since it's an Persona object) to the value returned form ObtenerPersonaActivaDadoCI().
    To get around the problem, let's say you instead have the ObtenerPersonaActivaDadoCI() method return it's value to an "opadCI" object (the type of object you found out that the method returns by doing 1 or 2 above). You might want to fix your problem by doing something like this:
    per.firstAttr = opadCI.firstAttr
    per.sedondAttr = opadCI.sedondAttr
    per.thirdAttr = opadCI.thirdAttr
    Hope this helps,
    Dan

  • Maximum data for calling web service

    Hi all,
    I try to trigger a C# webservice via XI.
    If I transfer more than 65000 bytes then I get a "Bad request error".
    When I transfer less than 65000 bytes everything works fine.
    Is that a configuration in XI or a limit in the service itself?
    Any ideas?
    regards

    Hi,
    In theory there is no limitation on data can be called using webservice but as you know webservice use HTTP for transferring data hence it is limitation of HTTP regarding un-interrupt transfer of data.
    This limit of http can be vary from landscape to landscape, over LAN you may get 64MB but over internet you may get similar error for few MBs or less.
    Suggestion is to breakup data into smaller part for reliable transfer of information otherwise you will see this error often.
    Webservices are not recommended for high volume data transfer.
    Regards,
    Gourav

  • Can "SPML Web Service Complex Data Type field" take multiple values ?

    In Generic Technology Connector's -SPML design parameters section, Can we give multiple values in SPML Web Service Complex Data Type field?
    If not, how can i call methods directly instead of calling them through a values of the "name" attribute of the "complexType" element in SPML Web Service Complex Data Type?
    I need 'SPML Web Service Complex Data Type' to hold multiple values.And based on the request it has to initiate appropriate method of action.
    Presently i have three methods add,modify and delete which i am calling through a single value of the "name" attribute of the "complexType" element in SPML Web Service Complex Data Type.
    I want to replace this single value with multiple menthods , so that a direct interaction between the method,OIM and target can be established.
    Edited by: 821054 on 16/02/2011 04:23

    Thanks Robert.
    You'll need to create your own interface to the webapp database for those kind of data operations
    by this, are you speaking of the internal BC database which stores web app schema data? That would be great if it were possible to update that programmatically because I need to use the List (Checkbox List) field type (for the search functionality), but I need to supply the checkbox options from a web app rather than by manually updating the list entered in the Fields view of the web app settings (shown below).
    I'm curious if anyone else has tried this?
    Again, my reason for needing to use the List (Checkbox List) field type is that the page which processes searches knows to expect a comma separated list for this field type and then appears to be parsing out the individual values for searching out web app items with 1 or more matching values. You're right that text fields (string and multiline) just check for 'string contains' matches, and this would be ok if I was only ever needing to search just one value at a time. Here's an example of what I might do:
    Web App item field value (as recorded against the List (Checkbox List) field type:
    8294877,8294878
    Web App Search value (for this same field):
    8294879,8294877,8294885
    The search would return this web app item because the field contains 2 (1 or more) individual values even though they were entered into the search field in a different order. If this web app item were just a Text (string or multiline) field, the searched value is not a substring of the web app item's stored value, so it would not find a match. Hence the need to use Checkbox List field type.
    The web app will have thousands if not 10s of thousands of records, so dumping them all into one big array or object and searching on the front-end won't be practical (though it works great on smaller datasets).

  • Mapping input values for a web service connection to a range of cells

    I've created a web service connection in Xcelsius data manager. My web service requires an array of integer as input parameter. How do I map input values for a web service connection to read from a range of cells in the spreadsheet, e.g. $A$2:$A$20, in similar way of mapping output values to write to a range of cells in the spreadsheet?
    For output values of the web service, I can specify to map the output values to write to a range of cells. However, it doesn't seem to work for reading the input values.
    I can map input values for each node to a single cell, e.g. $A$2, in the spreadsheet. However, when I set the "Read From" field to a range of cells, e.g. $A$2:$A$20, it only reads in the first value in the range.
    Is there any way that we can do this mapping for input values as we do for output values?
    Your assistance is very much appreciated.
    Regards,
    Van

    Van,
    There is a workaround for that...
    Example:
    My Webservice accepts input data range in a specific format with " :" symbol, i.e. 072008:082008
    Now what i do is
    A1 = 072008
    A2 = 082008
    A3 = CONCATENATE(A1,":",A2)
    so A3 = 072008:082008
    Now i map the input value in web service to cell A3
    P.S have 2 input box components and map it to cells A1 and A2, i.e you are giving users an  option to enter the range of values...then web service will capture the range and refreshes data with the range of values user entered.
    hope this helps..
    -Anil

  • Dates coming from web service

    Hi,
    I'm currently trying to consume in VC a CAF Application Service exposed as a Web Service. I'm able to retrieve what I want but I have a problem with dates format.
    The web service returns dates in the following format: YYYY-MM-DDTHH:NN:SS
    When I test my data service in VC it works fine. When I run my iview, VC swap the month and the day and compute the new date...
    It's not just a problem of formatting with DVAL and DSTR because the date is already computed.
    Example:
    Date returned from web service: 2007-09-21T00:00:01
    Date returned from test data service in VC: 21.09.2007
    Date returned at runtime: 09.09.2008
    VC understand 21.09.2007 not like DD.MM.YYYY but like MM.DD.YYYY so 21.09.2007 becomes 09.09.2008
    I also tried to check on the server Regional and Language option but it doesn't come from there.
    Have you ever faced this problem?
    Thx

    Hi,
    It is a Web Service generated by NWDS (to expose my CAF Application Service)and deployed on the server.
    The url si like http://<hostname>:<port>/mywebservice/Config1?wsdl
    The Web Service runs correctly.
    When I call a method of my web service to retrieve a list of objects (CAF Entity Services) and their attributes, it returns attributes of type String and Dates of type 'java.util.GregorianCalendar'.
    It seems that VC doesn't correctly understand this type of Date at runtime
    Regards,
    Thomas

  • Deliver data to external web service possible in OBIEE 11g?

    Hi all,
    I'm looking into the possibility of "pushing" data from OBIEE and out to an external web service, e.g. through executing a scheduled report that instead of delivering the result on screen, it would call an external web service that would consume the generated data for storage in an external system.
    Does anyone know if this is possible to implement in OBIEE 11g? (So far, all I've found is how to display data in OBIEE through consumation of web service(s), but I'd like to "push out" data to a web service from OBIEE).
    Regards,
    -Haakon-

    Action Links 11g - Invoke webservice you can try out..... I never tried... Just sharing my views.
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/bi/bi1113/actionframework/actionframework.htm

  • Is it possible to extract essbase data as a web service

    Hi All,
    I would like to know if it is possible to extract essbase data as a web service. What are the things to look for to achieve this functionality. Also request you to help me with a simple example.
    Thanks for your help in advance.
    Thanks,
    Praveen

    1)http://docs.oracle.com/cd/E26232_01/doc.11122/aps_admin.pdf
    2)http://code.google.com/p/essbase-plsql-interface/downloads/list?deleted=1&ts=1331485947
    3)http://essbase.ru/archives/category/performance/essbase-api/xmla

  • Retrieve data from a web service.

    Hi,
    I need to retrieve the data from Oracle CRM On Demand therefore I downloaded the web service "CustomObject15" from Oracle CRM On Demand then used the netbeans Tool to generate XML files then call Web Service "CustomObject15" then I created small java code to retrieve the data through a web service but the data did not retrieved.
    Only retrieved "CustomObject15Data.CustomObject15Data@1be0799a"
    Kindly, Can you help me and provide me small java code to the data through a web service "CustomObject15".
    Best Regards.

    Hi,
    just create a skeleton for the Web Service. In JDeveloper, create a new project and then use the "NEW" context menu option.
    Navigate to "Business Tier" --> Web Services and select "Web Service Proxy"
    In teh following, provide the WSDL reference to create the Java proxy. This gives you accss to the WS without having to parse the XML yourself
    Frank

  • How to retrieve data from a web service

    Hi
    i am at very beginner level about web services.
    I am searching for a simple example of retrieving data from a web services, but cant find.
    How can i get xml data from a web service. i dont need to develop the web service it is already ready, i just need how could i fetch data from it.
    Can somebody point out or give an example?
    Thanks in advance

    Hi,
    just create a skeleton for the Web Service. In JDeveloper, create a new project and then use the "NEW" context menu option.
    Navigate to "Business Tier" --> Web Services and select "Web Service Proxy"
    In teh following, provide the WSDL reference to create the Java proxy. This gives you accss to the WS without having to parse the XML yourself
    Frank

  • How to update data from a web service

    Hi all,
    I have a webservice that returns some data as e4x type. I
    pull the data i need and put it into an object. I manipulate that
    data, then I want to write it back with another webservice. I get
    serialization errors when I call the update method. I must be doing
    something wrong here. Can anyone help?
    Webservice Methods:
    <mx:operation name="FetchfrmContact" resultFormat="e4x"
    result = "fetchfrmContactResultHandler()">
    <mx:request/>
    </mx:operation>
    <mx:operation name="updatefrmContactCampaigns"
    resultFormat="e4x"
    result="updatefrmContactCampaignsResultHandler()">
    <mx:request/>
    </mx:operation>
    Below is what .lastResult looks like from the fetch method of
    the webservice. I update the different campaign fields by adding or
    removing them in an object called contactData.
    <FetchfrmContactResponse xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns:soapenv="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns="urn:DefaultNamespace" xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance">
    <FetchfrmContactReturn>
    <campaignsOptedOut>
    "BP - 411"
    </campaignsOptedOut>
    <campaignsOptedOut>
    "200700 - Avnet Leads"
    </campaignsOptedOut>
    <campaignsOptedOut>
    "200700 - BP-AdHoc"
    </campaignsOptedOut>
    <campaignsReceived>
    "BP - 411"
    </campaignsReceived>
    <campaignsSubscribed>
    "200700 - Avnet Leads"
    </campaignsSubscribed>
    <campaignsSubscribed>
    "200700 - BP-AdHoc"
    </campaignsSubscribed>
    <campaignsSubscribed>
    "200700 - BP - BCS"
    </campaignsSubscribed>
    <campaignsSubscribed>
    "200700 - BP - Extracomm"
    </campaignsSubscribed>
    <campaignsSubscribed>
    "200700 - BP - IBM"
    </campaignsSubscribed>
    <campaignsSubscribed>
    "BP - 411"
    </campaignsSubscribed>
    <companyDocID>
    "CMDPDN-65HTAK"
    </companyDocID>
    <companyName>
    "Provena Hospitals"
    </companyName>
    <contactDocID>
    "CTGSCG-6AHLWW"
    </contactDocID>
    <contactEmail>
    "[email protected]"
    </contactEmail>
    <contactFirst>
    "Steve"
    </contactFirst>
    <contactLast>
    "Rieger"
    </contactLast>
    <docID xsi:nil="true"/>
    <fetchBy>
    "email"
    </fetchBy>
    <form xsi:nil="true"/>
    <locationDocID/>
    </FetchfrmContactReturn>
    </FetchfrmContactResponse>
    The fetch method returns an object of type FrmContactType and
    the update method takes an object of type FrmContactType as it's
    parameter
    package com.psc.components
    import mx.collections.ArrayCollection;
    import mx.collections.XMLListCollection;
    [Bindable]
    public class FrmContactType
    // field variables
    public var contactDocID : String;
    public var companyDocID : String;
    public var locationDocID : String;
    public var campaignsOptedOut : XMLListCollection; //
    SFProfileField_70
    public var campaignsReceived : XMLListCollection; //
    SFProfileField_68
    public var campaignsSubscribed : XMLListCollection; //
    SFProfileField_69
    public var contactEmail : String = "";
    public var fetchBy : String;
    public var docID : String;
    public var form : String;
    public var contactFirst : String = "";
    public var contactLast : String = "";
    public var companyName : String = "";
    Here is the result handler of the fetch method
    private function fetchfrmContactResultHandler() : void
    contactData.contactFirst =
    wsfrmContactLookup.FetchfrmContact.lastResult..contactFirst;
    contactData.contactLast =
    wsfrmContactLookup.FetchfrmContact.lastResult..contactLast;
    contactData.companyName =
    wsfrmContactLookup.FetchfrmContact.lastResult..companyName;
    contactData.contactDocID =
    wsfrmContactLookup.FetchfrmContact.lastResult..contactDocID;
    if( wsfrmContactLookup.FetchfrmContact.lastResult )
    contactData.campaignsReceived = new XMLListCollection(
    wsfrmContactLookup.FetchfrmContact.lastResult..campaignsReceived );
    contactData.campaignsSubscribed = new XMLListCollection(
    wsfrmContactLookup.FetchfrmContact.lastResult..campaignsSubscribed
    contactData.campaignsOptedOut = new XMLListCollection(
    wsfrmContactLookup.FetchfrmContact.lastResult..campaignsOptedOut );
    if( contactData.campaignsSubscribed.length > 0 )
    for( var index : int = 0; index <
    checkBoxSubscribed.length; index++ )
    checkBoxSubscribed[index].selected = true;
    if( contactData.campaignsOptedOut.length > 0 )
    for( index = 0; index < checkBoxOptedOut.length; index++
    checkBoxOptedOut[index].selected = true;
    In my code I update the contactData object, then call the
    update method passing contactData as it's parameter and it barks at
    me. Any ideas why I'd be getting the error message shown below?
    <soapenv:Fault xmlns:soapenv="
    http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance">
    <faultcode>
    "soapenv:Server.generalException"
    </faultcode>
    <faultstring>
    "org.xml.sax.SAXException: SimpleDeserializer encountered a
    child element, which is NOT expected, in something it was trying to
    deserialize."
    </faultstring>
    <detail/>
    </soapenv:Fault>

    Hi,
    just create a skeleton for the Web Service. In JDeveloper, create a new project and then use the "NEW" context menu option.
    Navigate to "Business Tier" --> Web Services and select "Web Service Proxy"
    In teh following, provide the WSDL reference to create the Java proxy. This gives you accss to the WS without having to parse the XML yourself
    Frank

  • Using Identity Management for Securing Web Services

    My goal is to associate my services with an Oracle Internet Directory. I made some attempts to set up SAML authentication for the web services, but it didn't have the right outcome.
    (My identity management server and OID is up and running and I have successfully made authentication modules for other web applications)
    Here is what I did:
    1. I wrote a simple java file, used jdeveloper tools to create and deploy it as a web service to OC4J. I associated an identity management server with this service through OC4J web tools as security provider.
    2. I made a data control for the web service and put it in an ADF application . (client)
    3. I deployed the client project(2) to OC4J.
    I could use the web service through the page.
    Then
    I secured the webservice to expect SAML for authentication.
    Surprisingly, the client could still communicate with the webservice, Why? Shouldn't it have rejected the request because of the problem in SAML token? (The proxy and the data control were not secured, and didn't provide any SAML tokens)
    4.
    I added login page to my client project (through ADF security wizard). It used idenity management for authentication successfully. login process completes and web service data control is displayed.
    5. I want the authentication information to be propagated through the page so that the web service receives the data and uses Identity Management.
    I know I should add <property name="oracle.security.wss.propagate.identity" value ="true"/>
    to one of the configuration files, but don't know where exactly.
    Best Regards,
    Farbod

    It doesnt matter whether the service is invoked as part of your larger process or not, if it is performing any business critical operation then it should be secured.
    The idea of SOA / designing services is to have the services available so that it can be orchestrated as part of any other business process.
    Today you may have secured your parent services and tomorrow you could come up with a new service which may use one of the existing lower level services.
    If all the services are in one Application server you can make the configuration/development environment lot easier by securing them using the Gateway.
    Typical probelm with any gateway architecture is that the service is available without any security enforcement when accessed directly.
    You can enforce rules at your network layer to allow access to the App server only from Gateway.
    When you have the liberty to use OWSM or any other WS-Security products, i would stay away from any extensions. Two things to consider
    The next BPEL developer in your project may not be aware of Security extensions
    Centralizing Security enforcement will make your development and security operations as loosely coupled and addresses scalability.
    Thanks
    Ram

Maybe you are looking for

  • Digital Signature in Purchasing Documents

    We are using the ECC 6 version is there any provision in system which enable digital singature in Purchasing doucments.. Thanks in advance Vikrant

  • Cs6 extended as an add-on

    Hi, go easy I'm new to this, but is it possible to buy ps cs6 extended as an add on as I already have ps cs6???

  • Doubts: Freinds Share your Views !!

    1.How do you tell what your machine name is and what is its IP address? (in Solaris) 2.Other than making use of the statspack utility, what would you check when you are monitoring or running a health check on an Oracle 8i or 9i database? 3.How would

  • New nvidia driver!

    Hope this fixes the xgl problem with nvidia! Release Highlights:     * Added support for GeForce 8600 GTS, GeForce 8600 GT, GeForce 8500 GT, GeForce 8400 GS, and GeForce 8300 GS.     * Improved Notebook support.     * Fixed assorted minor bugs. The 1

  • PHP Insert

    I have been working on this function – the idea is to read the meta tags – find the description – then insert the description in a db table. I got the first two parts working – but cannot get the description to insert.  I think I might need to do som