Web Service - Complex Parameters
Hi, I'm trying to get a specific Web Service working by
calling the appropriate parameters and I can't seem to get it
working properly in Flex.. I have this Web Service working just
fine in Microsoft's InfoPath product. When I call the Web Service
and trace I notice the parameters returned are in the wrong order
and the complex parameter doesn't show the sub tags (MS Infopath
does). Also, the parameters I leave empty return with "[Object
Object]" (MS Infopath doesn't do this). So it looks like flex isn't
doing something right with my Webservice. Here's what I am
passing.. If I'm doing something wrong please let me know.. Any
ideas or opinions are greatly appreciated!
<mx:request>
<Infoprovider></Infoprovider>
<Parameter>
<item>
<Name></Name>
<Value></Value>
</item>
</Parameter>
<Query>ZG_PUR_104E</Query>
<ViewId></ViewId>
</mx:request>
Me to, and i use Axis for web services (and WebSphere
WebServices).
And, if you use bind from text input you get [object Object]
in general case
<mx:request>
<value>{entry1.text}</value>
</mx:request>
<mx:TextInput x="23" y="101" text="" id="entry1"/>
if you enter any text at textinput and delete it you DONT get
"[object Object]" at web service....
if you dont enter text you get "[object Object]" at web
service...
if you use variable or other elements its the same.
Any help?
TIA
Similar Messages
-
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:23Thanks 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). -
Missing Web Service Input Parameters
Hi,
I am creating a form on web services. The source of the webservice is BEPL.
When I register the webservice, I see the in and the out parameters.
Operations
Operation Name process
Input Parameters
Operation Parameter Name Parameter Type
process Data_source string
Data_URI string
Token string
But when I continue to create a form on the service, the next screen shows this message:
* Item Finder
Web Service Input Parameters
no data found
Any idea what may be going on here?
Thanks
-SJHello,
Are you sure it's a public webservice or that you put in the right username/password?
Also if you call the webservice just from an url, does that work for you?
Regards,
Dimitri
http://dgielis.blogspot.com/
http://www.apex-evangelists.com/
http://www.apexblogs.info/ -
EJB Web Service Interface parameters name changed
Hi, all,
I create a simple Session EJB 3.0 with Web Service interface in Jdeveloper 10.1.3.4. and I deployed it into the embedded OC4J server.
The question is I found that the web service operator parameters is changed to "String_1" (actually the parameter in EJB method is String ss). And I found the WSDL file is also String_1.
How to create the real parameter name in WSDL from EJB Web Service interface? Any help on that?
Best Regards,
Billif you do a lookup for the name "java:comp/env/ejb/queryProc" in the servlet, the deployment descriptor of your web-archive must contain an ejb-reference with the ref-name 'ejb/queryProc'.
-
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,
TreyHi 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 -
PL/SQL Web Service Optional Parameters
I have created a PL/SQL web service and deployed successfully using Jdeveloper 10.1.3.5. The database is 9.2.0.8.
When the web service request is made, all is well if all parameters are passed.
I have been told that the request might come with some but not necessarily all of the parameters expected by the PL/SQL procedure.
Is it possible when deploying through JDeveloper to indicate that all parameters might not be present?
This is my first web service. Thanks in advance for your assistance.Parameters relate to procedures. Web Services require XML messages.
Where are the parameters coming from? You cannot pass a dynamic number of parameters into a procedure, but you can pass a structured type as a parameter which can contain multiple values, whether that is an array/collection type or an XML document itself.
Just package up the values into the XML and pass it to the web service.
If this doesn't answer your question, please post more information, with some example data and code. Read the FAQ: {message:id=9360002} -
Web Service Export Parameters missing when consumed by Visual Studio 2005
Hi,
I am using Visual Studio 2005 (2.0 framework) to consume bespoke SAP Web Services (SAP 4.7) however some of the export parameters are missing. I have tested the SAP web services with various XML tools and they all work perfectly.
Is there anything I can do to enable Visual Studio to genarate the correct proxy?
Many thanks for any tips.
BillyThis isn't going to work as well as I had thought.
That is correct that the Name and Value fields come back as XmlNode arrays. Each XmlNode array contains two XmlNode objects (or one if you received a null value from the db). One object contains the atrributes and one contains the value. I had planned on going into the ColumnValueType Value field and pulling the text of the 2nd XmlNode object.
Now here is the problem:
For every column you select you get a ColumnValueType object. Rather than being contained in some type of "Row" parent object, each column sits in the root of your results. For example, in the query I am using I am asking for the AlertingName and DnOrPattern columns of the NumPlan table. My results come back like this (simplified):
AlertingName
John Doe
DnOrPattern
1234
With the data in this format, I can't just do a foreach loop and iterate over the ColumnValueType objects. -
Hi,
just wondering is it possible to retrieve more info regarding report parameters using web service, I can only get following:
multiValuesAllowed
name
values
basically could a call register some other classes than call.setReturnClass(ReportDefinition.class) or call.setReturnClass(ParamNameValue [].class) which gives me the same info.
The reason why I'm asking is because I'd like to be able to get:
id / name
data type
label
default value
value set
and so on... so I can create my own prompt page in which user could set/select desired values and then run report with those values. Is this making any sense?
Looking at this document http://oraclebizint.wordpress.com/2007/10/25/oracle-bi-publisher-101331-web-services-first-impressions/ it looks like it is not possible, are there any workarounds.
At the moment I'm doing this by parsing xdo and that way I can get parameters, value sets and so on, then using api I'm generating reports, but I don't like this approach...
Any advices and help regarding this are welcome.
Thanks in advance,
Tomislav.Hi
I hope you have already found an answer for your question, if not, please check the post Re: Getting null bytes using PublicReportService_v11.wsdl
I've found and described an issue similar to the one you are facing.
IHTH
Please, let me know.
Marco -
Does ColdFusion support nested complex data types when building Web Services? See example CFCs below. I keep getting a ServiceMethodNotFoundException. In my SubmitNoticeOfAppt.cfc, the cfargument data type is NoticeOfAppointment.CFC which references other CFCs that define complex data types. The complex types are needed to support a really complex XML document that must be NIEM (National Information Exchange Model) compliant. Originally tried passing the NIEM XML doument as a string, but receive deserialization errors, encounter child element. Could get around the error by wrapping the XML string in <![CDATA[ ... ]]>, but this convention is not NIEM compliant.
DocumentIssueDate.cfc
<cfcomponent displayname="DocumentIssueDate" output="false">
<cfproperty name="Date" type="date" required="No">
</cfcomponent>
DocumentAugmentation.cfc
<cfcomponent displayname="DocumentAugmentation" output="false">
<cfproperty name="DocumentIssueDate" type="any" required="No">
</cfcomponent>
DocumentIdentification.cfc
<cfcomponent displayname="DocumentIdentification" output="false">
<cfproperty name="IdentificationID" type="numeric" required="Yes">
<cfproperty name="IdentificationCategoryDescriptionText" type="string" required="No">
</cfcomponent>
NoticeOfAppointment.cfc
<cfcomponent displayname="NoticeOfAppointment" output="false">
<cfproperty name="DocumentIdentification" type="any" required="Yes">
<cfproperty name="DocumentAugmentation" type="any" required="Yes">
</cfcomponent>
SubmitNoticeOfAppt.cfc
<cfcomponent style="document">
<cffunction name="SubmitNoticeOfAppt" returnType="string" output="false" access="remote">
<!---Arguments--->
<cfargument name="NoticeOfApptXml" type="NoticeOfAppointment" required="Yes">
<cfreturn "Notice of Appointment successfully received">
</cffunction>
</cfcomponent>
Sample NoticeOfAppointment.xml (Stripped down, actual message contains almost 200 elements with 20+ complex datatypes)
<NoticeOfAppointment>
<DocumentIdentification>
<IdentificationID>000021199</IdentificationID>
<IdentificationCategoryDescriptionText/>
</DocumentIdentification>
<DocumentAugmentation>
<DocumentIssueDate>
<Date>2011-04-07</Date>
</DocumentIssueDate>
</DocumentAugmentation>
</NoticeOfAppointment>Coldfusion should be able to nest complex data types in your web service (after all, that's what the cfproperty tag was designed for). Unfortunately, I have more experience consuming complex web services than designing them in CF. My Recommendation - inspect your web service WSDL using a tool that will generate the sample SOAP XML that will be needed to consume your web service. You should be able to tell from that XML what the issue is - could be a missing namespace in your XML or strange nesting, etc.
We use SOAPSonar from Crosscheck networks - they have a feww personal version that will allow you to inspect your web service interface and it will even generate the sample XML needed to call it via SOAP.
Hope that helps. -
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 MolHave 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 -
Oracle PL/SQL Web service - dynamic parameters... possible?
Oracle 11.2.0.3 - newbie on web services!
Currently we have a pl/sql web service taking in 2 static parameters and returning a varchar2 response.
I was asked today if it's possible for a web service to take in a dynamic set of parameters and return a corresponding set of results. It's as if I need to pass the web service a table with two columns and return a table of one column.
For example:
Input Output
1 2 3
3 4 7
5 6 11output being in XML of course. It is possible?
p.s. I posted this in OC4J also - no response hence the re-post !Parameters relate to procedures. Web Services require XML messages.
Where are the parameters coming from? You cannot pass a dynamic number of parameters into a procedure, but you can pass a structured type as a parameter which can contain multiple values, whether that is an array/collection type or an XML document itself.
Just package up the values into the XML and pass it to the web service.
If this doesn't answer your question, please post more information, with some example data and code. Read the FAQ: {message:id=9360002} -
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" /> -
Start GP Process from VC using Web Service with parameters
Hi,
II´m trying to instantiate a GP process from a Vc iView using a Web Service; I always used Instantiation via URL but using this method I don´t have any "return" data from GP saying "Ok - The process started succesfully".
The questions are:
1) Is possible to start a GP process via Web Services through a VC Flash iview? If so, is posible to send input parameters to the process via the web service?
2) Does the web service returns any message with the status of the process? ( something like: "the process started succesfully")
Best regards,
Marco.1) Is possible to start a GP process via Web Services through a VC Flash iview? If so, is posible to send input parameters to the process via the web service?
A: Yes. You can send input parameters to the service through WS.
2) Does the web service returns any message with the status of the process? ( something like: "the process started succesfully")
A: Yes. The return message can be added to the WS. It depends on how do designed the WS.
-Ashutosh -
Exporting to Microsoft Excel from a DataView Web Part consuming a Web Service with Parameters
In Sharepoint Designer, I've developed a page displaying a DataView Web Part which consumes an XML Web Service with three parameters. These parameters are passed in from a simple Form Web Part containing three input fields. I am able to provide default values for the web service so the dataview is initially populated, and when I enter in new parameters, the web service goes back, grabs the requested data and displays in the dataview nice and slick.
The problem I'm having is this: In Internet Explorer 7, when I right-click on the DataView Web Part and select Export to Microsoft Excel, Excel opens up, says "ExternalData_1: Getting Data..." and returns the data from the web service which applies to the default parameter values each and every time, regardless of whether I have changed the parameters on the web page, and contrary to what the DataView Web Part displays on the screen.
Has anyone else run into this, and is there a solution to the problem?
Best regards,
Mark ChristieHi Bullish35,
It's possible to provide single export button and export your 4 dataview webparts. Here's the modified code.
<Script Language="Javascript">
function isIE() // Function to Determine IE or Not
return /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent);
function exportToExcel() // Function to Export the Table Data to Excel.
var isIEBrowser = isIE();
if(isIEBrowser== false)
alert('Please use Internet Explorer for Excel Export Functionality.');
return false;
else
var strTableID1 = "detailsTable1", strTableID2 = "detailsTable2", strTableID3 = "detailsTable3", strTableID4 = "detailsTable4";
var objExcel = new ActiveXObject("Excel.Application");
var objWorkBook = objExcel.Workbooks.Add;
var objWorkSheet = objWorkBook.Worksheets(1);
var detailsTable = document.getElementById(strTableID1);
var intRowIndexGlobal= 0;
for (var intRowIndex=0;intRowIndex<detailsTable1.rows.length;intRowIndex++)
for (var intColumnIndex=0;intColumnIndex<detailsTable1.rows(intRowIndex).cells.length;intColumnIndex++)
if(intColumnIndex != 3)
objWorkSheet.Cells(intRowIndexGlobal+1,intColumnIndex+1) = detailsTable1.rows(intRowIndex).cells(intColumnIndex).innerText;
intRowIndexGlobal++;
for (var intRowIndex=0;intRowIndex<detailsTable2.rows.length;intRowIndex++)
for (var intColumnIndex=0;intColumnIndex<detailsTable2.rows(intRowIndex).cells.length;intColumnIndex++)
if(intColumnIndex != 3)
objWorkSheet.Cells(intRowIndexGlobal+1,intColumnIndex+1) = detailsTable2.rows(intRowIndex).cells(intColumnIndex).innerText;
intRowIndexGlobal++;
for (var intRowIndex=0;intRowIndex<detailsTable3.rows.length;intRowIndex++)
for (var intColumnIndex=0;intColumnIndex<detailsTable3.rows(intRowIndex).cells.length;intColumnIndex++)
if(intColumnIndex != 3)
objWorkSheet.Cells(intRowIndexGlobal+1,intColumnIndex+1) = detailsTable3.rows(intRowIndex).cells(intColumnIndex).innerText;
intRowIndexGlobal++;
for (var intRowIndex=0;intRowIndex<detailsTable4.rows.length;intRowIndex++)
for (var intColumnIndex=0;intColumnIndex<detailsTable4.rows(intRowIndex).cells.length;intColumnIndex++)
if(intColumnIndex != 3)
objWorkSheet.Cells(intRowIndexGlobal+1,intColumnIndex+1) = detailsTable4.rows(intRowIndex).cells(intColumnIndex).innerText;
intRowIndexGlobal++;
objExcel.Visible = true;
objExcel.UserControl = true;
</Script>
I haven't tested this. But it should work! :)Regards,
Venkatesh R
/* My Code Runs in Visual Studio 2010 */
http://geekswithblogs.net/venkatx5/ -
How to call web service with parameters?
Hi
I'm testing a distributed architecture where parameters are queried from an ODBC database, and a web service called with resulting parameters as input, returning a computed result to the integrated Crystal report. I'm unable to successfully associate the database fields with the web service parameters - the web service is always called with empty parameters. When I call the web service manually from CR by entering parameters, it works as expected. I'm using a sub-report with fields linked to the main report.
Has anyone done something like this / know how to correctly link database fields with web service parameters?
Help much appreciated,
LanceAn update - I solved this problem as follows:
In CR Design view, right-click on sub-report object, select 'Change Subreport Links'. In the links dialog, transfer database fields into 'Field(s) to link to' list. Select a field in 'Field(s) to link to' and in 'Subreport parameter field to use' below, map the field to the appropriate web service parameter field in the dropdown.
Tested with version 11.5.8.826.
- Lance
Maybe you are looking for
-
Deleting an image backup in Windows 8.1
How to safely delete an image backup under Windows 8.1 to free up disk space?
-
Can anyone please help
-
Hi, I have the following scenario, we are getting the file to sap and the file data needs to be updated in to sap. we had custom inbound idoc processing program which will load the data into sap. the problem is idoc should have status for each mai
-
Hi Gurus, I have created down payment document in F-48 and i created cheque for that document in tcode FCH5 but after that what i have to do to get print out of the check with payment advice note. Can any body explain? Thanks in Advance Ganesh
-
Relation between URL and content in JSF navigation
Hello, I've tried lots of JSF examples and there always occoured a strange kind of navigation to me: The URL you see in the browser's address bar has nothing to do with the actually displayed JSP. Instead of that, the URL is always pointing to the pr