Web service: parameter types

Hi,
We made an ABAP webservice with input parameters.
In the WSDL the type of the parameters is:
- <wsdl:message name="ZTestWebService2">
<wsdl:part name="Costcenter" type="n0:char10" />
The type ‘char10’ is defined like:
- <xsd:simpleType name="char10">
- <xsd:restriction base="xsd:string">
  <xsd:maxLength value="10" />
  </xsd:restriction>
  </xsd:simpleType>
Question is: is there a way to influence the creation of this types, so that the type is not referring to ‘n0:char10’ but to something like ‘char’ and that the length is also defined in the part name ? Something that is more Java friendly and will not create code for complex types on the client-side ?
Thanks,
Rolf.

HI,
No u cant change this parameter dynamically after the release of web service.
When u will release the webservice for a RFC,the WSDL file will be generated.That time it will generate the files for every parameter types which are used in the RFC.
If u want increase this value length,Then u hv to increase the lenght of the parameter in RFC and then release the web service.So that it will come here.
Bcause in webservice lenght will not allow more that the lenghth which u gave in RFC.
Regs
Manas Ranjan Panda

Similar Messages

  • Hard-coding complex type web service parameter

    Hi,
    I am trying to populate a drop-down list with data returned from a web service. The web service requires one parameter, but it is a complex type with many elements. I don't need any user input, I want to set the the parameter values programatically. Is this something that can be done with a web service data control?
    I know that I can edit the action binding and specify a parameter, but I'm not sure how to do this when the parameter is a complex type.
    I hope I am explaining this in a way that makes sense. I am fairly new to both Jdeveloper and web services.
    I am using JDeveloper 11.1.2.0.0
    Thanks.

    Thanks for the link. The article is from 2006 and I was under the impression that there was more support for complex types now. Maybe in my case I am better off using a web service proxy?

  • Web service client type

    Hi,
    I am new to web services. I need to write a web service client that invokes a web service method. The method takes complex types as parameter and returns a complex type.what kind of client(static stub, dynamic proxy or DII) should I use to invoke such kind of method from a standalone java application?
    Thanks in advance.

    yes, you are right. stubs must be regenerated when the service definition changes. But is it possible to write a standalone client using dynamic proxy to invoke a web service method that uses complex types as parameters?.

  • 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 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 Parameter error

    Please help me, I'm too much lost because I can not pass ParameterFields to the CrystallReportViewer, It always give me the error
    "Object reference not set to an instance of an object."
    Only simple report and only one ParameterFields . Nothing else:
    The code I pass parameter is copied from the MSDN help as the following:
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    private void Form1_Load(object sender, EventArgs e)
    crystalReportViewer1.ReportSource =
    "http://localhost/ec/reports/CrystalReport1Service.asmx";
    try
    SetParameterFieldInfo("x1", "xxxx");
    catch (Exception)
    throw;
    private void SetParameterFieldInfo(String fieldName, String fieldValue)
    CrystalDecisions.Shared.ParameterDiscreteValue parameterDiscreteValue = new CrystalDecisions.Shared.ParameterDiscreteValue();
    parameterDiscreteValue.Value = fieldValue;
    CrystalDecisions.Shared.ParameterValues currentParameterValues = new CrystalDecisions.Shared.ParameterValues();
    currentParameterValues.Add(parameterDiscreteValue);
    CrystalDecisions.Shared.ParameterField parameterField = new CrystalDecisions.Shared.ParameterField();
    parameterField.Name = fieldName;
    parameterField.CurrentValues = currentParameterValues;
    //if (parameterField.HasCurrentValue)
    // MessageBox.Show(parameterField.);
    CrystalDecisions.Shared.ParameterFields parameterFields = new CrystalDecisions.Shared.ParameterFields();
    parameterFields.Add(parameterField);
    crystalReportViewer1.ParameterFieldInfo = parameterFields;
    As you can see from the above code it is very straight. I always get the following exception:
    at CrystalDecisions.Windows.Forms.ParameterFieldInfo.get_isDCP()
    at CrystalDecisions.Windows.Forms.ParameterValueEditControl.Start()
    at CrystalDecisions.Windows.Forms.ParameterUnit.AddEditControl(ParameterValue pv)
    at CrystalDecisions.Windows.Forms.ParameterUnit.UpdateControls()
    at CrystalDecisions.Windows.Forms.ParameterUnit.set_ParameterFieldInfo(ParameterFieldInfo value)
    at CrystalDecisions.Windows.Forms.InteractiveParameterPanel.ShowParameters()
    at CrystalDecisions.Windows.Forms.CrystalReportViewer.ShowInteractiveParameters()
    at CrystalDecisions.Windows.Forms.CrystalReportViewer.ShowReport()
    at CrystalDecisions.Windows.Forms.CrystalReportViewer.OnPaint(PaintEventArgs evtArgs)
    at System.Windows.Forms.Control.PaintTransparentBackground(PaintEventArgs e, Rectangle rectangle, Region transparentRegion)
    at System.Windows.Forms.ToolStrip.EraseCorners(PaintEventArgs e, Region transparentRegion)
    at System.Windows.Forms.ToolStrip.OnPaintBackground(PaintEventArgs e)
    at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
    at System.Windows.Forms.Control.WmPaint(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    at System.Windows.Forms.ToolStrip.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    at System.Windows.Forms.SafeNativeMethods.UpdateWindow(HandleRef hWnd)
    at System.Windows.Forms.Control.Update()
    at System.Windows.Forms.ToolStrip.ClearAllSelectionsExcept(ToolStripItem item)
    at System.Windows.Forms.ToolStrip.NotifySelectionChange(ToolStripItem item)
    at System.Windows.Forms.ToolStripItem.Select()
    at System.Windows.Forms.ToolStrip.ChangeSelection(ToolStripItem nextItem)
    at System.Windows.Forms.ToolStrip.SelectNextToolStripItem(ToolStripItem start, Boolean forward)
    at System.Windows.Forms.ToolStrip.Select(Boolean directed, Boolean forward)
    at System.Windows.Forms.Control.SelectNextControl(Control ctl, Boolean forward, Boolean tabStopOnly, Boolean nested, Boolean wrap)
    at System.Windows.Forms.ContainerControl.Select(Boolean directed, Boolean forward)
    at System.Windows.Forms.Control.SelectNextControl(Control ctl, Boolean forward, Boolean tabStopOnly, Boolean nested, Boolean wrap)
    at System.Windows.Forms.Control.SelectNextControlInternal(Control ctl, Boolean forward, Boolean tabStopOnly, Boolean nested, Boolean wrap)
    at System.Windows.Forms.Form.set_Active(Boolean value)
    at System.Windows.Forms.Form.WmActivate(Message& m)
    at System.Windows.Forms.Form.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
    at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
    at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
    at System.Windows.Forms.Control.set_Visible(Boolean value)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run(Form mainForm)
    at testItemCard.Program.Main() in C:\Users\Tariq\Documents\Visual Studio 2008\Projects\testItemCard\testItemCard\Program.cs:line 18
    at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
    at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
    at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()
    Then the report is diplayed propably and the parameters is passed to it but I want to avoid this exception
    Please help me to figure out what is wrong, I can send parameters to ReportDocument but when the ReportSource is a Web Service (asmx) It always raise.
    For mor explaination:
    1- I create a report which has only one string field.
    2- The report has only one parameter string olso.
    3- I place the parameter in the page header.
    4- I create a new Crystal Reports Web Site from Visual Studio 2008.
    5- I add the report to the web site.
    6- I right click the report and choose "Publish as a web service"
    7- I create a windows forms application with CrystalReportViewer1
    8- In the form load I set the report source to the auto generated web service using this code only
    crystalReportViewer1.ReportSource = "http://localhost/ec/reports/CrystalReport1Service.asmx";
    Then I run the application.
    CR shows the parameters dialog then raises the exception.
    Also if i send the parameter using the crystal report viewer it gives the same exception!!!
    My question is If somebody try the steps above then tell me whether the exception is raised in his computer?
    Should I make special settings?
    Please help me. It is very simple steps. Just do it and tell me the results.
    Thanks in advance.

    I got the following with CR2008 SP2 .NET Runtime on Portuguese Windows 2003. It works fine on English OS though.  It seems to be the same issue. The reprot is still displayed, but the ToolBar has a red cross and is not usable. Is there an answer yet?
    EXCEPTION >>
    NullReferenceExceptionMessage: Referência de objeto não definida para uma instância de um objeto.
    Source: CrystalDecisions.Windows.Forms
    TargetSite: Boolean get_isDCP()
    StackTrace:
       em CrystalDecisions.Windows.Forms.ParameterFieldInfo.get_isDCP()
       em CrystalDecisions.Windows.Forms.ParameterValueEditControl.Start()
       em CrystalDecisions.Windows.Forms.ParameterUnit.AddEditControl(ParameterValue pv)
       em CrystalDecisions.Windows.Forms.ParameterUnit.UpdateControls()
       em CrystalDecisions.Windows.Forms.ParameterUnit.set_ParameterFieldInfo(ParameterFieldInfo value)
       em CrystalDecisions.Windows.Forms.InteractiveParameterPanel.ShowParameters()
       em CrystalDecisions.Windows.Forms.CrystalReportViewer.ShowInteractiveParameters()
       em CrystalDecisions.Windows.Forms.CrystalReportViewer.ShowReport()
       em CrystalDecisions.Windows.Forms.CrystalReportViewer.OnPaint(PaintEventArgs evtArgs)
       em System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
       em System.Windows.Forms.Control.WmPaint(Message& m)
       em System.Windows.Forms.Control.WndProc(Message& m)
       em System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       em System.Windows.Forms.ContainerControl.WndProc(Message& m)
       em System.Windows.Forms.UserControl.WndProc(Message& m)
       em CrystalDecisions.Windows.Forms.CrystalReportViewer.WndProc(Message& msg)
       em System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       em System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       em System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    Edited by: Frank88 on Oct 31, 2009 1:06 AM
    Edited by: Frank88 on Oct 31, 2009 1:16 AM

  • 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" />

  • 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)

  • Problem implementing web services with types generated by jdeveloper 10.1.3

    Hello,
    I have generated a web service using JDeveloper 10.1.3.3. from a WSDL. This WSDL includes a schema with some types defined. There is a element with the following definition:
    <xs:element name="OptionalInputs" type="AnyType"/>
    where:
    <xs:complexType name="AnyType">
    <xs:sequence>
    <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    The meaning of the element OptionalInputs is that it can include other elements, of any type, definied within the same schema.
    After generating the web service from the WSDL, I get the following:
    - A Class named 'AnyType' that consists of one element of type
    protected javax.xml.soap.SOAPElement[] _any;
    - Some classes which must be included in an object of type 'AnyType', and that implements java.io.Serializable.
    However, I do not know how to include successfully one of this (serializable) classes into an object of type 'AnyType' (SOAPElement[]).
    Could you be so kind as to help me, please?
    Thank you very much in advance.

    Hi there,
    10.1.3 is not production ready yet, and you will find this warning on the oracle page http://www.oracle.com/technology/tech/java/oc4j/1013/index.html
    "Under no circumstances should it be used in production environments."
    Does this mean that it's not possible to deploy a Doc/Lit webservice to production using JDeveloper? Is there any other way of getting it to work with 10.1.2?
    Thanks,
    Vid.

  • EJB Web service date type

    Hi,
    I have a web service implemented by session bean from CMP Entity Beans from table,this works, but a DATE type present in the field of database table not appear in WSDL definition, therefore I can't assign this value at object.
    Any idea?
    Thanks for your answers.
    Juan.

    Hello Juan,
    Could you please give me more information about the release and features you are using?
    - which version of OracleAS ?(10g R2-10.1.2 or 10g R3 - 10.1.3)
    - which kind/version of EJB? 2.0, 2.1 or 3.0
    I would expect to see a java.sql.Date that will be mapped to a xsd:dateTime in the WSDL.
    Regards
    Tugdual Grall

  • Populating ComboBox with CFC web service return type query

    I am just now learning Flex and am attempting my first app (I have been a CFer for years).
    Anyway, I am attempting to build an AIR app in Flex that simply has a login with a form to submit information into a database.
    Things are going ok, except I am stumped at something that I think should be simple...populating a combo box. I have a CFC (I am using CFCs as a web service to drive the app) that contains a method that simply returns a query. I want to use the results to populate the combo box display and value. I created the combo box and then dragged the method to the box to have FB create the code. It populates the list but with just [object Object]. This is a piece of cake in CF but I am not stumbling across the correct syntax in Flex. Any pointers would be appreciated.
    Here is my current code.
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                           xmlns:s="library://ns.adobe.com/flex/spark"
                           xmlns:mx="library://ns.adobe.com/flex/mx"
                           xmlns:users="services.users.*"
                           currentState="login"
                           xmlns:vinlookup="services.vinlookup.*"
                           xmlns:inventory="services.inventory.*"
                           creationComplete="init()">
        <fx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                import mx.controls.Alert;
                import mx.events.FlexEvent;
                import mx.rpc.events.FaultEvent;
                import mx.rpc.events.ResultEvent;
                import mx.utils.ObjectUtil;
                /*Login Code----------------------------------*/
                private var loginrs:Object;
                //Failed to connect to the wsdl service
                private function GeneralFailed_Handler(e:FaultEvent):void
                    Alert.show(e.fault.faultString, "Error connecting to the service");
                //Login Handler
                protected function submitBtn_clickHandler(event:MouseEvent):void
                    loginUserResult.token = users.loginUser(userName.text, password.text);
                //Result Handler for Account Authentication
                private function loginUserResult_resultHandler(e:ResultEvent):void
                    //check the result
                    //Alert.show(ObjectUtil.toString(e.result),"Login Results")
                    loginrs = new Object();
                    loginrs = e.result;
                    if(loginrs['loggedin'] == 'Y')
                        currentState = 'insertInventory';
                    }else{
                        Alert.show("Try Again Please.");
                /*VIN Lookup Code----------------------------------*/
                private var vinrs:Object;
                //VIN Lookup Handler
                protected function VINSubmitbtn_clickHandler(event:MouseEvent):void
                    getvinInfoResult.token = vinlookup.getvinInfo(vin.text, "BASIC");
                //Result Handler for Account Authentication
                private function vinLookupResult_resultHandler(e:ResultEvent):void
                    //check the result
                    Alert.show(ObjectUtil.toString(e.result),"Lookup Results")
                    vinrs = new Object();
                    vinrs = e.result;
                    if(vinrs == null)
                        Alert.show("The VIN did not decode. Try Again Please.");
                    else
                        bodyStyle.text = vinrs['VARBODYSTYLE'];
                        //Alert.show("Yes!");
                /*Item Type Combo Box Code----------------------------------*/   
                protected function comboBox_creationCompleteHandler(event:FlexEvent):void
                    getItemtypeResult.token = inventory.getItemtype();
            ]]>
        </fx:Script>
        <s:states>
            <s:State name="login"/>
            <s:State name="insertInventory"/>
        </s:states>
        <fx:Declarations>
            <s:CallResponder id="loginUserResult" result="loginUserResult_resultHandler(event)"/>
            <users:Users id="users" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
            <s:CallResponder id="getvinInfoResult" result="vinLookupResult_resultHandler(event)"/>
            <vinlookup:Vinlookup id="vinlookup" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
            <inventory:Inventory id="inventory" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
            <s:CallResponder id="getItemtypeResult"/>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <s:Panel width="250" height="150" title="Login" horizontalCenter="0" verticalCenter="0" includeIn="login">
            <mx:Form width="100%" height="100%" horizontalCenter="0" verticalCenter="0">
                <mx:FormItem label="User Name">
                    <s:TextInput id="userName"/>
                </mx:FormItem>
                <mx:FormItem label="Password">
                    <s:TextInput id="password" displayAsPassword="true"/>
                </mx:FormItem>
                <mx:FormItem>
                    <s:Button label="Login" id="submitBtn" click="submitBtn_clickHandler(event)"/>
                </mx:FormItem>
            </mx:Form>
        </s:Panel>
        <s:Panel includeIn="insertInventory" width="400" height="400" title="Insert Inventory" horizontalCenter="0" verticalCenter="0">
            <mx:Form width="100%" height="100%" horizontalCenter="0" verticalCenter="0">
                <mx:FormItem label="VIN">
                    <s:TextInput id="vin"/>
                </mx:FormItem>
                <mx:FormItem id="vinSubmitbtn">
                    <s:Button label="Decode VIN" id="VINSubmitbtn" click="VINSubmitbtn_clickHandler(event)"/>
                </mx:FormItem>
                <mx:FormItem label="Body Style">
                    <s:TextInput id="bodyStyle"/>
                </mx:FormItem>
                <mx:FormItem label="Item Type">
                    <s:ComboBox id="comboBox" creationComplete="comboBox_creationCompleteHandler(event)">
                        <s:AsyncListView list="{getItemtypeResult.lastResult}"/>
                    </s:ComboBox>
                </mx:FormItem>
            </mx:Form>
        </s:Panel>
    </s:WindowedApplication>

    I figured it out with the help of the AS help. I switched to using a DropDownList and the first example in the help.

  • MDM Web Services - Data Types Schema

    Hi,
    I am trying to call MDM Web Services from PI as per our requirement. I need to build a scenario in PI for that. The Web Service documentation only talks about the data types and their strucuture but never said where they are available for download.
    Can any one of you help me in finding them for download or do we have to create them manually? Please refer to the link below for documentation.
    http://help.sap.com/saphelp_mdm550/helpdata/en/45/0068130b0c0487e10000000a155369/content.htm
    Thanks and Regards,
    VJ

    See the thread for information
    Configuration of MDM Web Service
    You can download the webservices from SAP support portal
    Points are welcome if it is helpful
    Koti Reddy

  • External Web Services: parameter SY-CLIENT cannot be fixed

    Hi,
    I am configuring Web Service for Supplier Directory. At the standard call structure, I added parameter SY-CLIENT and fixed the value as 300. However, the setting fails to override the default value of client. How can I change the client?
    Best regards,
    ts

    Hi TS,
    Add parameter SAP-CLIENT with your client number and try.
    Best Regards,
    Anil

  • Web Service parameter conversion problem

    Hi,
       I have written a web service to provision a synchronization scope on a remote SQL Server 2008 database. The database will eventually sync with an SQL CE 3.5 database.
    [WebMethod]
    public bool ProvisionSQLRemoteScope(string remoteSQLConnStr, string scopeName, Microsoft.Synchronization.Data.DbSyncScopeDescription scopeDescCE)
    In my desktop application I call the web method as below.
    PEWebServiceReference.PEWebService ws = new PEWebServiceReference.PEWebService();
    //Create a connection to the desktop site database (SQL CE 3.5)
    SqlCeConnection desktopConnection = new SqlCeConnection(desktopConnStr);
    //Get the description from the desktop sdf site database
    Microsoft.Synchronization.Data.DbSyncScopeDescription scopeDescCE = SqlCeSyncDescriptionBuilder.GetDescriptionForScope(scopeName, desktopConnection);
    bool ProvisionRequired = ws.ProvisionSQLRemoteScope(remoteSQLConnStr, scopeName, scopeDescCE);
    But I get the below error?
    Cannot convert from 'Microsoft.Synchronization.Data.DbSyncScopeDescription' to 'PEWebServiceReference.DbSyncScopeDescription'
    Any help appreciated.
    Thanks
    Paul. 
    Paul Wainwright

    Michael,
               I edited my 'References.cs' file in my client app changing:
    public bool ProvisionSQLRemoteScope(string remoteSQLConnStr, string scopeName, PESQL.PEWebServiceReference.DbSyncScopeDescription scopeDescCE)
    to
    public bool ProvisionSQLRemoteScope(string remoteSQLConnStr, string scopeName, Microsoft.Synchronization.Data.DbSyncScopeDescription scopeDescCE)
    and also changed:
    PEWebServiceReference.PEWebService ws = new PEWebServiceReference.PEWebService();
    PEWebServiceReference.PEWebServiceSoapClient ws = new PEWebServiceReference.PEWebServiceSoapClient();
    and everything seems to work.
    Thanks for the help.
    Paul.
    Paul Wainwright

  • Error consuming Web service - content type text/xml;charset=utf-8 of the response message does not match the content type of the binding

    Hi all,
    We are trying to interact with Documentum server through DFS exposed WCF which communicates through port 9443 and we are provided with documentum issued Public Key certificates. We have successfully imported the certificates in client machine and configured
    the bindings as below in our .Net web application config file.
    <system.serviceModel>
    <bindings>
    <wsHttpBinding>       
    <binding
    name="ObjectServicePortBinding1">
    <security
    mode="Transport">
    <transport
    clientCredentialType="None"
    proxyCredentialType="None"
    realm=""
    />
    <message
    clientCredentialType="Certificate"
    algorithmSuite="Default"
    />
    </security>
    </binding>
    <binding
    name="QueryServicePortBinding">
    <security
    mode="Transport">
    <transport
    clientCredentialType="None"
    proxyCredentialType="None"
    realm=""
    />
    <message
    clientCredentialType="Certificate"
    algorithmSuite="Default"
    />
    </security>
    </binding>
    </wsHttpBinding>
    </bindings>
    Also, we set the message encoding as MTOM and the wcf client object initialization code snippet is as below,
    ObjectServicePortClient
    serviceClient = new
    ObjectServicePortClient(new
    WSHttpBinding("ObjectServicePortBinding1"),
    new
    EndpointAddress(UriUtil.ObjectServiceUri));
    if (serviceClient.Endpoint.Binding
    is
    WSHttpBinding)
       WSHttpBinding
    wsBinding = serviceClient.Endpoint.Binding as
    WSHttpBinding;
    wsBinding.MessageEncoding =
    "MTOM".Equals(transferMode) ?
    WSMessageEncoding.Mtom :
    WSMessageEncoding.Text;
    serviceClient.Endpoint.Behaviors.Add(new
    ServiceContextBehavior(Config.RepositoryName,
    Config.DocumentumUserName,
    Config.DocumentumPassword));
    When we execute the above code, we are getting error message as below,
    Exception: The content type text/xml;charset=utf-8 of the response message does not match the content type of the binding (multipart/related; type="application/xop+xml"). If using a custom encoder, be sure that the IsContentTypeSupported
    method is implemented properly. The first 407 bytes of the response were: '<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope"><faultcode>S:VersionMismatch</faultcode><faultstring>Couldn't
    create SOAP message. Expecting Envelope in namespace http://schemas.xmlsoap.org/soap/envelope/, but got http://www.w3.org/2003/05/soap-envelope </faultstring></S:Fault></S:Body></S:Envelope>'
    Then, we changed the bindings as below
    <system.serviceModel>
    <bindings>
    <wsHttpBinding>       
    <binding
    name="ObjectServicePortBinding1">
    <security
    mode="Transport">
    <transport
    clientCredentialType="Certificate"
    proxyCredentialType="None"
    realm=""
    />
    <message
    clientCredentialType="Certificate"
    algorithmSuite="Default"
    />
    </security>
    </binding>
    <binding
    name="QueryServicePortBinding">
    <security
    mode="Transport">
    <transport
    clientCredentialType="
    Certificate"
    proxyCredentialType="None"
    realm=""
    />
    <message
    clientCredentialType="Certificate"
    algorithmSuite="Default"
    />
    </security>
    </binding>
    </wsHttpBinding>
    </bindings>
    We are getting another error message,
    Exception: The client certificate is not provided. Specify a client certificate in ClientCredentials.
    Any pointers on resolving this issue would be highly helpful.
    Thanks

    Hi Dhanasegaran,
      As per your case, the corresponding details which may guide you to resolve this issue:
    1. First of all, you can try to call the wcf service directly from the browser & check where it will point out the correct location.
    2. In config file ,Set IncludeExceptionDetailInFaults to true to enable exception information to flow to clients for debugging purposes .
    Set this to true only during development to troubleshoot a service like below :
    <serviceBehaviors>
      <behavior name="metadataAndDebugEnabled">
        <serviceDebug
          includeExceptionDetailInFaults="true"   
    />
        <serviceMetadata
          httpGetEnabled="true"
          httpGetUrl=""   
    />
      </behavior>
    </serviceBehaviors>
    3. I suggest you to change that <security mode ="TransportWithMessageCredential"> instead of <security mode ="Transport">
     for more information, refer the following link :
    https://msdn.microsoft.com/en-us/library/aa354508(v=vs.110).aspx

Maybe you are looking for

  • Can Grow Vertical Alignment Error in Embedded Report View, but not in .PDF

    Hello, I have seen postings about this issue before, but have yet to find a solution.  I am using Visual Studio 2008 w/ the basic version of Crystal Reports that is included. I have a simple report that displays results of a stored procedure as rows

  • CFselect onchange doesn't work on flash Form

    Hello : I have looked for more than a week to find out answer  but couldn't fine anything. I have cform with tye="Flash" and cfselect with query to populate the values. I want use onchange="" after I select any value on cfselect to submit the pages a

  • Using css from another project

    I've been trying to create a "Theme" project in Flex 3 that can be included in my numerous other projects. Is there a way to do that currently? All it has in it right now is a styles.css file, but when I try to link that to a different project it doe

  • MD03- Run MRP for all the material

    Hi Expers, How to run the MRP for all the material in the Plant.In Transaction MD03 we can have the option for entering the only one material at one time.If we have 10000 material then do we have to run the MRP for 10000 time? Kindly guide me.... Reg

  • Doubt on compunding object

    Hi All, i have a account(ZACCT) infoobject which is a compounding infoobject of account status (ZACCSTA). i have both these objects in my ods. i have a custom table built which is the datasource for this ods. i have a field in the table which fills t