Help with Consuming a Webservice with the compact framework

Hi all,
i want to consume a SAP WebService within .NET in a smart device application. When I create the proxy, I get the following procedure in the .cs class:
<i>[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.sap.com/_-ICO_-CM_XML_CREATE", RequestElementName="_-ICO_-CM_XML_CREATE", RequestNamespace="urn:sap-com:document:sap:rfc:functions", ResponseElementName="_-ICO_-CM_XML_CREATE.Response", ResponseNamespace="urn:sap-com:document:sap:rfc:functions", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)][return: System.Xml.Serialization.XmlElementAttribute("SUBRC", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]public string ICOCM_XML_CREATE([System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] string ORDERNR, [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] string ROUTE, [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] string TESTRUN, [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] string TOURNO, [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] string XML_FILE_LOCAL, [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] string XML_FILE_SERVER, [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] out string XML_STRING) {object[] results = this.Invoke("_ICO_CM_XML_CREATE", new object[] {ORDERNR,ROUTE,TESTRUN,TOURNO,XML_FILE_LOCAL,XML_FILE_SERVER});XML_STRING = ((string)(results[1]));return ((string)(results[0]));}</i>
When I compile the project I get the follwing error for each occurance of the "Form" Attribute :
"<b>'System.Xml.Serialization.XmlElementAttribute' does not contain a definition for 'Form'" </b>
When I try to consume this webservice with a "normal" kind of application, such as a windows-application, everything is ok.
But when trying to use it with the compact framework, the error occurs.
Is anyone outhere who can help me?
Thank you
Regardings

It seems that the "Form" property of the XmlElementAttribute was missing in Compact Framework 1.1. It does exist in Compact Framework 2.0.
You can try removing the "Form=System.Xml.Schema.XmlSchemaForm.Unqualified" entries from the proxy, but I'm not sure of it will still correctly work: For in-parameter it should be Ok to skip "Form=", but for out-paramters and result it could have the effect that no data is received.
In this case the best option may be to upgrade to Compact Framework 2.0.

Similar Messages

  • 9iLite and the compact framework for PPC

    Does oracle plan to support development for Pocket PC under the compact framework ie. using MS Visual Studio.net. If so, how soon can we except an oracle data adapter for the pocket pc.

    If your application is complex you'll undoubtedly have
    to extend whichever framework you choose. Struts is
    very flexible and allows you to incorporate custom
    functionality easily. As it was pointed out, Struts works only with the web tier. If you're writing complex apps, you'll need a more 'complete' framework to manage your middle-tier as well.
    If you're not using EJB, lightweight containers like Spring or Pico can help.
    BTW, you can use Spring with Struts if you wish. Personally, I'm less than impressed by Struts, but that's just my opinion.

  • Possible to consume a webservice with no usable operations defined?

    Hi all,
    I'm .NET programmer, I wanted to consume an AXIS web service on .NET.
    My problem is this:
    The webservice I'm consuming appears to have no usable operations defined. (I checked this out using Visual Studio). To be certain that the webservice indeed has no usable operations exposed, i downloaded J2EE and Netbeans and tested the webservice. Again, Netbeans (like .NET) reported that there are no usable operations defined in the webservice.
    Once more, I wrote sample web services with .net and java and both work perfectly on Visual Studio and Netbeans and there are completely interoparable.
    My question is:
    Is it possible to consume a webservice that has no usable operations defined? The webservice company is telling me that it is possible, but I can't figure it out how.
    Its very urgent, so please help
    Tnx in advance

    I have never been able to get CFINVOKE to work without a
    WSDL. It looks like CFINVOKE uses the WSDL to create the request:
    without a WSDL it does not know to to communicate with it.
    Alternatively you could just using CFHTTP to communicate manually,
    or make a Java app to talk to it.

  • Start Runbook with Parameter over Webservice with JSON / Jquery / Javascript

    Hi i try to figure out to add a Job to the Webservice with JQuery/Json to the Webservice
    The follow i have:
    I tryed it with Various things, but i cannot get it to work, there must be something special about the Parameter Node, someone got an Idea or an working sample?
    var paramJson = {
    "Data": {
    "Parameter":{
    "ID": "8665b6e6-acea-498f-ac35-5c239a0c1023", "Value": "Test"
    var paramJsonWithoutData = {
    "Parameter": {
    "ID": "8665b6e6-acea-498f-ac35-5c239a0c1023", "Value": "Test"
    var paramString = "&lt;Data&gt;&lt;Parameter&gt;&lt;Name&gt;Username&lt;/Name&gt;&lt;ID&gt;{8665b6e6-acea-498f-ac35-5c239a0c1023}&lt;/ID&gt;&lt;Value&gt;tester&lt;/Value&gt;&lt;/Parameter&gt;&lt;/Data&gt;";
    var paramXML = "<Data><Parameter><ID>8665b6e6-acea-498f-ac35-5c239a0c1023</ID><Value>Tester</Value></Parameter></Data>";
    //var stringParamData = JSON.stringify(jsonRBID);
    var jsonData = { "RunbookId": runbookId, "Parameters": paramXML };
    //var jsonData = { "RunbookId": runbookId, "Parameters": "<![CDATA['&lt;Data&gt;&lt;Parameter&gt;&lt;Name&gt;Username&lt;/Name&gt;&lt;ID&gt;{8665b6e6-acea-498f-ac35-5c239a0c1023}&lt;/ID&gt;&lt;Value&gt;tester&lt;/Value&gt;&lt;/Parameter&gt;&lt;/Data&gt;]]>" };
    var datastring = JSON.stringify(paramJsonWithoutData);
    var orchurl = GetOrchURL(server) + "Jobs";
    $.ajax({
    url: orchurl,
    async: false,
    contentType: "application/json; charset=utf-8",
    type: "POST",
    data: datastring,
    dataType: 'json',
    success: function (json) {
    JobID = json.d.results[0].Value;
    error: function (json) {
    alert(datastring + " || " + json.responseText);
    Its the ghost in the machine how dont let me go in vadication :-)

    Here is my new Test Script but still not working
    I writed the Response for Each Parameter in Comment Above.
    Maybe we can Check this out and i write a jquery  ODATA wrapper class then :-)
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <script src="script/jquery-1.4.4.js" type="text/javascript"></script>
    <script src="script/date.js" type="text/javascript"></script>
    <title></title>
    <script type="text/javascript">
    $(document).ready(function () {
    //Response An Error occured while processing this request
    var paramXML = "<Data><Parameter><ID>8665b6e6-acea-498f-ac35-5c239a0c1023</ID><Name>Username</Name><Value>Tester</Value></Parameter></Data>";
    //Response An Error occured while processing this request
    var paramXML2 = "<Data><Parameter><ID>8665b6e6-acea-498f-ac35-5c239a0c1023</ID><Value>Tester</Value></Parameter></Data>";
    //Job parameter not in expected format. <Data><Parameter><ID></ID><Value><Value></Parameter><Parameter><ID></ID><Value></Value></Parameter></Data>
    //So Somethings Works here with the CDATA Tag or it not Works and it is invalid Datan and the other 2 XML requests look good
    var paramXML3 = "<![CDATA[<Data><Parameter><ID>8665b6e6-acea-498f-ac35-5c239a0c1023</ID><Value>Tester</Value></Parameter></Data>]]>";
    //Job parameter not in expected format. <Data><Parameter><ID></ID><Value><Value></Parameter><Parameter><ID></ID><Value></Value></Parameter></Data>
    var paramString = "&lt;Data&gt;&lt;Parameter&gt;&lt;Name&gt;Username&lt;/Name&gt;&lt;ID&gt;8665b6e6-acea-498f-ac35-5c239a0c1023&lt;/ID&gt;&lt;Value&gt;tester&lt;/Value&gt;&lt;/Parameter&gt;&lt;/Data&gt;";
    //Job parameter not in expected format. <Data><Parameter><ID></ID><Value><Value></Parameter><Parameter><ID></ID><Value></Value></Parameter></Data>
    var paramString2 = "&lt;Data&gt;&lt;Parameter&gt;&lt;ID&gt;{8665b6e6-acea-498f-ac35-5c239a0c1023}&lt;/ID&gt;&lt;Value&gt;tester&lt;/Value&gt;&lt;/Parameter&gt;&lt;/Data&gt;";
    //Job parameter not in expected format. <Data><Parameter><ID></ID><Value><Value></Parameter><Parameter><ID></ID><Value></Value></Parameter></Data>
    var paramString3 = "<![CDATA[&lt;Data&gt;&lt;Parameter&gt;&lt;ID&gt;{8665b6e6-acea-498f-ac35-5c239a0c1023}&lt;/ID&gt;&lt;Value&gt;tester&lt;/Value&gt;&lt;/Parameter&gt;&lt;/Data&gt;]]>";
    var paramJsonShort = {
    "RunbookId": "c979eb39-3b00-481c-881b-20ab1ba1e081",
    "RunbookServerId": "76bac998-57ec-4246-8efa-a4aac43ae3b2",
    "Parameters": paramString3
    var JobID;
    var datastring = JSON.stringify(paramJsonShort);
    var orchurl = "http://<enter_server_here>:81/Orchestrator2012/Orchestrator.svc/Jobs";
    $.ajax({
    url: orchurl,
    async: false,
    contentType: "application/json; charset=utf-8",
    type: "POST",
    data: datastring,
    dataType: 'json',
    success: function (json) {
    JobID = json.d.results[0].Value;
    alert(JobID);
    error: function (json) {
    alert(datastring + " || " + json.responseText);
    </script>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    Nothing to see Here
    </div>
    </form>
    </body>
    </html>
    Its the ghost in the machine how dont let me go in vadication :-)

  • Consume SharePoint Webservice with Coldfusion

    Has anyone been able to consume a SharePoint web service with
    Coldfusion? Any examples, resources or tips? A basic example would
    be to pull in a list.
    Thanks
    Dwight

    My group is also having trouble with this. The problems seems
    to be related to CF not being able to use NTLM authentication.
    Thanks,
    Tom

  • Problem consuming a webservice with Adobe Interactive Form

    Hello
    everyone
    I make a Web Service based on a function in ABAP (RFC) when I try to create the data connection in Adobe form, an error is displayed. "there is no associated SOAP binding"
    Can anyone tell me how can I modify the WSDL so that it can be read by Adobe
    Best Regards
    Leonardo Vásquez

    You need to use SOAMANAGER transaction , search for your Web Service and then download the WSDL from there.
    Chintan

  • While Consuming a WebService in JSP Dyn Page - There is an Error

    Hi Friends,
    I have a web service created in ASP.NET web Service.
    And I have Consumed the Web Service using WSDL URL.
    I need to write a code to refer that class in the JSP DynPage
    I have created like this in DoIntialization
    MyServiceName obj=(MyServiceName) PortalRuntime.getRuntimeResources().getService(MyServiceName.KEY);
    int a = 10;
    int b = 20;
    obj.Add1(a,b);
    but it shows an error
    "The method Add1 Method(Add1 Method) is the type. MySErviceName is not Applicable for the arguements(int,int)"
    Please Help me in this regard.
    Thanks in Advance
    Thanks & Regards,
    Palani

    Hi Andy,
    I will let u know the sequence which i followed to consume the Webservice.
    NWDS --> File --> New --> Project --> Portal Application --> Create New Portal App Project.
    The Project is created.....
    After that i want to consume the Webservice for the same project...
    for that...
    NWDS --> File --> New --> Other --> Portal Application --> Create New Portal Application Object --> Selecting My Project?(intended prjct) --> Portal Webservice --> Portal Service from WSDL file - Client Side --> My WSDL URL --> Selecting the methods which i need to expose from the Webservice --> I gave unique name for my 1) Service 2) Alias 3) Package....and that was done....(other way is to add from portalapp.xml ??)
    After that i created a new JSPDyn page for my application in DoInitialization() method i tried to access the method from that webservice using the following code...
    MyServiceName obj=(MyServiceName) PortalRuntime.getRuntimeResources().getService(MyServiceName.KEY);
    I am successfully able to access the method from the webservice using the object which i have created but i am not able to pass arguments to that method...???
    I tried consuming same webservice created in .NET in .NET itself and i am able to pass arguments successfully.
    I tried to consume webservice created in ABAP in .NET and able to implement successfully...
    but the same ABAP webservice when  i tried to consume its not working with this NWDS.
    Is there any thing else i need to follow while consuming a webservice in the EP Perspectice of NWDS ???
    Deployable Proxy is required for that ?? if required how to create and use that ??
    Thanks in Advance,
    Palani

  • Create SAPUI5 application consuming Gateway service with the help of SAP NW Gateway Plug-in for Eclipse

    Hi,
    I followed the amazing SAPUI5 blog :
    How to create SAPUI5 application consuming Gateway service with the help of SAP NW Gateway Plug-in for Eclipse
    I was able to resolve all errors mentioned in this blog but then i get another error :
    Uncaught TypeError: Cannot read property 'dataServices' of undefined
    Any idea what is the problem.
    Thanks a lot!
    Amina

    Hi,
    I followed the amazing SAPUI5 blog :
    How to create SAPUI5 application consuming Gateway service with the help of SAP NW Gateway Plug-in for Eclipse
    I was able to resolve all errors mentioned in this blog but then i get another error :
    Uncaught TypeError: Cannot read property 'dataServices' of undefined
    Any idea what is the problem.
    Thanks a lot!
    Amina

  • [Help Wanted] soap1.1 webservice, filling a tree with the result of calls...

    Hi,
    I'm having trouble with filling a tree with the result to
    calls to a document/wrapped soap 1.1 webservice.
    I first declared the webservice in the mxml file as it was in
    the examples and tried to call it with no luck. The fault was it
    wasn't finding the document type for the call's unique parameter. I
    figured out the solution to this, I added a method in the
    webservice declaration having a single element named the same as
    the required parameter, and inside it, the "actual" parameters,
    bound to variables defined elsewhere.
    The reason for wanting the tree to be filled programatically,
    is the potential whole contents of the tree can be about 1.000.000
    nodes. Huge.
    quote:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" applicationComplete="initM()">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.controls.Alert;
    import mx.controls.treeClasses.TreeListData;
    [Bindable] public var aParentId:String = null;
    [Bindable] public var aLevel:Number = 0;
    ]]>
    </mx:Script>
    <mx:WebService id="lws" wsdl="
    http://myServer/myContext/myPortURI?WSDL"
    useProxy="false" makeObjectsBindable="true">
    <mx:operation name="getNodes" resultFormat="object">
    <mx:request>
    <getNodesElement>
    <parentId>{aParentId}</parentId>
    <level>{aLevel}</level>
    </getNodesElement>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    <mx:Tree x="0" y="0" width="326" height="100%"
    id="layoutTree" enabled="true" labelField="nodeName">
    <mx:dataProvider>{lws.getNodes.lastResult}</mx:dataProvider>
    </mx:Tree>
    <mx:Script>
    <![CDATA[
    public function initM():void {
    lws.getNodes.send();
    return;
    ]]>
    </mx:Script>
    </mx:Application>
    So, here's the problem:
    1.- In both Java2 and .NET, I've been able to produce sets of
    proxy classes from the webservice wsdl, these include a proxy class
    for the service port and a set of classes for both the call
    parameter types and the call result types. I have not found yet a
    way to do the same with flex2, so I wonder, can I produce the
    required classes for dealing with such a webservice in an automatic
    way with flex2?
    2.- The second problem, is I haven't found a way to make a
    webservice call in sychronous mode, and I can't seem to find a way
    to set the parameters for the subsequent calls to the webservice.
    Is there a way to make a call to such webservice programatically? I
    mean, I've been able to make the first call I need programatically,
    but what if I end up making 2 or more simultaneous calls? I can't
    rely on setting the `variables defined elsewhere` before each call,
    because of possible concurrency issues (calls will be long after
    the 2nd level of the tree), so I wonder if there's a way to make a
    call to such webservice (document/wrapped, soap1.1) passing it the
    parameters programatically. If so, can I just put the parameters or
    do I have to produce the complete enclosure? If I have to produce
    also the enclosure, any hint on how to do so? I will need to pass
    different parentId, level pairs probably triggered by tree events.
    3.- the other problem, finally, is Tree looks quite different
    to me than the Java2 one. In java2, I can easily produce a changing
    model for the tree wich will even handle the calls to the
    webservice as needed (triggered by the tree itself), making it a
    `live model`. If there is a way to produce the same behaviour in
    flex2, I haven't found it yet. Sure, I've only downloaded the trial
    version yesterday, so I may have overlooked some docs or blogs.
    Any hints would be appreciated, specially on programatically
    modifying the tree, and making calls to the webservice changing the
    parameters every time.

    1. Not yet, but we're looking into supporting this in an
    upcomming release.
    2. All RPC requests must be made asynchronously... this is a
    restriction of the way the Flash Player makes network requests
    (otherwise movies, which are single threaded, would hang waiting
    for results). You should be able to use the ActionScript API to
    programmatically call web services with normal parameters.
    3. If you leave makeObjectsBindable="true" (which it is by
    default) the Objects and Arrays will be wrapped in ObjectProxies
    and ArrayCollections automatically and will report change events,
    however I don't believe that we have an example that links these
    change events up to subsequent web service calls, but it would be
    possible (but not automatic). A feature that does do this sort of
    thing automatically is the Data Service, although this does not use
    WSDL/SOAP to describe/communicate with remote services and you have
    to setup a Java assembler to work with our adapters on the
    server.

  • ASMX webservice with Complex type argument consuming in Biztalk

    There is a requirement to consume asmx webservice in biztalk orch.The asmx webservice ,webmethod is having complex type as a argument
    For Ex:CalculateFDR(Invoice as invoice) Here Invoice is a class.now consumed an asmx webservice using WCF consume wizard in BizTalk.
    In orchestration , when I create the Requestmessage and bind to messagetype with MyFin.CalculateFDRSoapIn.
    Now In expression shape when I want pass invoice values as argument  to Request message i am getting like below
    Msg_ServiceRequest.Parameters. instaed
    Msg_ServiceRequest.Invoice.InvoiceNo etc.
    Even When I check the multi-partmessage type i found that CalculateFDRSoapIn-Parameters and description of multi-part message type is <wsdl:message name="WriteDBEntrySoapIn"/> messagepart description is  <wsdl:part name="parameters"/> 
    Could you please let me know how to pass Invoice values as a argument for this webservice in Orchestration
    Note: We are palnning to use wcf-basichttp adapter.due to this not using webreference option
    Regards BizTalkWorship

    When you consume WCF/Web service using WCF/Web service wizard, it creates multi-part message type representing the contract’s of the parameters exchanged. This multi-part message will have
    message part names as “parameters”. This parameter can be of primitive .NET Types type like System.String, System.Int32 etc or it could be of a schema type.
    If multipart message’s message part type of Primitive .NET Types, then you can construct the message as you say something like..
    Msg_ServiceRequest.InvoiceNo
    Here if InvoiceNo could be of any primitive .NET Types.
    If it’s of any schema type then you got to construct the schema first either using map (Transform) or in message-assignment. In your case it seems to be the multipart message’s message part
    type is that of a schema. So you have to construct the schema using either map (Transform) or in message-assignment.
    Regards,
    M.R.Ashwin Prabhu
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Help with consuming a web service

    Hi guys,
    I'm trying to consume a web service but I have the following problem when I consume it:
    javax.xml.rpc.soap.SOAPFaultException: Internal Error
    at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.ja
    va:491)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:307
    at qtel.tibco.transferAsset.AssetPort_Stub.transferAsset(AssetPort_Stub.
    java:67)
    at transferasset.Main.main(Main.java:34)
    I'm using NetBeans 5.0 with JDK 1.4 and the JAX-RPC 1.6
    here is my Code:
    package transferasset;
    import java.io.*;
    import javax.xml.rpc.*;
    import java.rmi.*;
    * @author Administrator
    public class Main {
        /** Creates a new instance of Main */
        public Main() {
         * @param args the command line arguments
        public static void main(String[] args) {
           try{
             System.out.println(args[0] + " " + args[1] + " " + args[2] );
             qtel.tibco.transferAsset.AssetManagementServiceServiceagent service = new qtel.tibco.transferAsset.AssetManagementServiceServiceagent_Impl();
             qtel.tibco.transferAsset.AssetPort port = service.getAssetPortEndpoint1();
             qtel.tibco.transferAsset.TransferAssetRequest req = new  qtel.tibco.transferAsset.TransferAssetRequest(args[0].toString(),args[1].toString(),args[2].toString());
             qtel.tibco.transferAsset.TransferAssetResponse result = port.transferAsset(req);
             System.out.print(result.getData().getReturnStatus());
           }catch(javax.xml.rpc.soap.SOAPFaultException e){
               //System.out.print(e.getFaultString());
               //System.out.print(e.getFaultActor());
               e.printStackTrace();
        }catch(Exception e){
                e.printStackTrace();
               System.out.println(e.getMessage());
               //System.out.println("exception");
           //return result.getData().getReturnStatus();
    }the problem is as folowwing in the command prompt when I run the following command I will have no error and the web service work fine:
    java -jar "C:\updateassetinfo\dist\updateassetinfo.jar" 1 1 1
    but the problem will appear if I send a character in the parametars like this:
    java -jar "C:\updateassetinfo\dist\updateassetinfo.jar" 12367 3456 HC-098
    So any help will be Appreciated
    thanks in advance.

    Hi guys,
    I'm trying to consume a web service but I have the following problem when I consume it:
    javax.xml.rpc.soap.SOAPFaultException: Internal Error
    at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.ja
    va:491)
    at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:307
    at qtel.tibco.transferAsset.AssetPort_Stub.transferAsset(AssetPort_Stub.
    java:67)
    at transferasset.Main.main(Main.java:34)
    I'm using NetBeans 5.0 with JDK 1.4 and the JAX-RPC 1.6
    here is my Code:
    package transferasset;
    import java.io.*;
    import javax.xml.rpc.*;
    import java.rmi.*;
    * @author Administrator
    public class Main {
        /** Creates a new instance of Main */
        public Main() {
         * @param args the command line arguments
        public static void main(String[] args) {
           try{
             System.out.println(args[0] + " " + args[1] + " " + args[2] );
             qtel.tibco.transferAsset.AssetManagementServiceServiceagent service = new qtel.tibco.transferAsset.AssetManagementServiceServiceagent_Impl();
             qtel.tibco.transferAsset.AssetPort port = service.getAssetPortEndpoint1();
             qtel.tibco.transferAsset.TransferAssetRequest req = new  qtel.tibco.transferAsset.TransferAssetRequest(args[0].toString(),args[1].toString(),args[2].toString());
             qtel.tibco.transferAsset.TransferAssetResponse result = port.transferAsset(req);
             System.out.print(result.getData().getReturnStatus());
           }catch(javax.xml.rpc.soap.SOAPFaultException e){
               //System.out.print(e.getFaultString());
               //System.out.print(e.getFaultActor());
               e.printStackTrace();
        }catch(Exception e){
                e.printStackTrace();
               System.out.println(e.getMessage());
               //System.out.println("exception");
           //return result.getData().getReturnStatus();
    }the problem is as folowwing in the command prompt when I run the following command I will have no error and the web service work fine:
    java -jar "C:\updateassetinfo\dist\updateassetinfo.jar" 1 1 1
    but the problem will appear if I send a character in the parametars like this:
    java -jar "C:\updateassetinfo\dist\updateassetinfo.jar" 12367 3456 HC-098
    So any help will be Appreciated
    thanks in advance.

  • Producer Consumer with a state machine within the consumer

        Hi All,
    I have been trying to develop a data acquisition system with the producer consumer architecture.  To the left of the two main loops I initialize the serial port and any constants and variables im using.  I also have an obtain queue VI needed for enqueue and dequeue. Then in the producer loop i have a state machine.  The first state is where I wait for a button press on the front panel to write a GO signal on the serial line which will tell the device connected to the serial port to begin sampling data.  After this button press I go into the next state which is called my read state.
    In the read state I use a property node to read all of the available bytes at the serial port and then enqueue this collected data into a queue.  The state machine then is directed to continously go to the read state again and collect more data.
    Now this is where my dilemma is......  The consumer loop has the dequeue VI inside it and after this VI i have a state machine (while loop and case structure) which contains the following states
    1.  Build Array - build an array from the dequeue element and if there is any left over data from the parsing states it will build an array with the left over data and the dequeued data
    2.  Determine packet type - this state looks for the packet type byte(not necessarily the first byte in the message) and also check the next byte (packet length) to ensure that I am at the begininng of this chunk of data.  This state may be a little slow because there can be three different packet types and based on this byte and the packet length it may have to search the array several time to find the valid starting point.  This state also determine the next state to go to based on the packet type.
    3 packet type 1 parsing - parse data and store the remaining data it leftOver array.  Go to exit state.
    4 packet type 2 parsing - "" ""
    5 packet type 3 parsing - "" ""
    6 exit - leave this state machine and fall back to the consumer while loop.
    After it exit I think it should fall back to the consumer while loop and dequeue more data and enter the state machine again to build a new array with the dequeued data and leftover data.  It seems to work when I trace the execution using the Highlight execution feature, however when I run this all at full speed, it seems to go into the consumers 1st and 2nd states back and forth and not completely go through the state machine.
    I tried adding in a delay in the producer loop to give the consumer loop time, but I didnt notice any difference.  Is it possible that my dequeue element is retreiving more data while im still in the state machine, causing the execution to leave the state machine before it finished all states?
    Is there a better approach to take to solve this problem. Basically I need to read data at a 1,000,000 baudrate and parse it as quickly as possible so that I can break it up into 3 different packet types, write the data to a file, and graph the actual data (header info removed) in realtime.  I need to also ensure that I am not losing any of the collected data.  Data loss cannnot occur.

    A couple of things more to go along with Ben's pointers:
    You convert your data from a string, to a U8 array, to a Hex string array in the producer loop, then convert back to a integer to determine what to do with it.  In the process, you create two or three copies of your data, slowing yourself down quite a bit.  The code would be quite a bit more efficient if you left the data as a U8 array.  You can change the format of the controls and indicators to show hex values instead of integer by right clicking on them and selecting Format and Precision...
    Your search code is fairly inefficient.  I made a whack at making it a bit better.  See attachment below.
    If you continue to run into race conditions, you can debug them using a calls to the Windows debug write sprinkled liberally about your code.  Check out the post here for more information.
    Don't let your lack of format LabVIEW training stop you.  The biggest thing to get is the data flow paradigm (aka data is wires, not registers).  Once you get past that and learn how to pass data around using shift registers, queues, events, etc, you are most of the way to mastering LabVIEW.  The rest is just learning the plethora of functionality LabVIEW gives you (yes, I have reimplemented LabVIEW native code more than once in the process of learning).
    Let us know if you need more help.
    This account is no longer active. Contact ShadesOfGray for current posts and information.
    Attachments:
    serialUtil_V3_DFG.zip ‏137 KB

  • Consume WebService with Assertion Ticket in CE 7.2

    Hi masters
    I am using netweaver ce 7.2 and the problem is that I just can consume webservices with User ID/Password (Basic), but I need to do that with something like Assertion Ticked (like RFC connections)
    Does anybody could say me how to configure a WS connection with assertion ticked ?

    I solved by myself

  • How do I Help Apple Care Stop Warring with Each Other and Fix the Problem with My iPhone that They Acknowledge Creating?

    How Do I Help Apple US & Apple Europe Stop Warring With Each Other And Fix The Problem They Created?
    PROBLEM
    Apple will not replace, as promised, the iPhone 5 (A1429 GSM model) that they gave me in London, UK, with an iPhone 5 (A1429 CDMA model).
    BACKGROUND
    My iPhone 5 (A1429 CDMA model) was purchased this year in September on an existing Verizon Wireless (VZW) line using an upgrade. The purchase took place in California and the product was picked up using Apple Personal Pickup through the Cerritos Apple Retail Store. I will refer to this phone at my "original" phone.
    The original phone was taken into the Apple Store Regent Street in London, England, UK on November 15, 2012. The reason for this visit was that my original phone's camera would not focus.
    The Apple Store Regent Street verified there was a hardware problem but was unable to replace the part.
    The Apple Store Regent Street had me call the US AppleCare. At first they denied support, but then a supervisor, name can be provided upon request, approved the replacement of my original phone with an iPhone 5 (A1429 GSM model) as a temporary solution until I got back in the US. And approved that the GSM model would be replaced with a CDMA model when I came back to the US. I will refer to the GSM model as the "replacement". They gave me the case number --------.
    The Apple Store Regent Street gave me the replacement and took the original. The first replacement did not work for reasons I do not understand. They switched out the replacement several times until they got one that worked on the T-Mobile nano SIM card that I had purchased in England, UK. Please refer to the repair IDs below to track the progression of phones given to me at the Apple Store Regent Street:
    Repair ID ----------- (Nov 15)
    Repair ID ----------- (Nov 16)
    Repair ID ----------- (Nov 16)
    The following case number was either created in the UK or France between November 15 to November 24. Case number -----------
    On November 19, 2012, I went to France and purchased an Orange nano SIM card. The phone would not activate like the first two repair IDs above.
    On November 24, 2012, I went to the Apple Store Les Quatre Temps. The Genius told me that my CDMA phone should not have been replaced with a GSM model in the UK and that this was clearly Apple's fault. They had me call the AppleCare UK.
    My issue was escalated to a tier 2 UK AppleCare agent. His contact information can be provided upon request. He gave me the case number -----------.
    The UK tier 2 agent became upset when he heard that I was calling from France and that the France Apple Store or France AppleCare were not helping me. He told me that my CDMA phone should not have been replaced with a GSM model in the UK and that this was clearly Apple's fault.
    The UK tier 2 agent said he was working with engineers to resolve my problem and would call me back the next day on November 25, 2012.
    While at the Apple Store Les Quatre Temps, a Genius switched the phone given to from repair ID ----------- with a new one that worked with the French nano SIM card.
    Also, while at the Apple Store Les Quatre Temps, I initiated a call with AppleCare US to get assistance because it seems that AppleCare UK was more upset that France was not addressing the issue rather than helping me. I have email correspondance with the AppleCare US representative.
    A Genius at the Apple Store Les Quatre Temps switched the replacement with a new GSM model that worked on the French SIM card but would not work if restored, received a software update, or had the SIM card changed. This is the same temporary solution I received from the Apple Store Regent Street in the UK.
    By this point, I had spent between 12-14 hours in Apple Store or on the phone with an AppleCare representative.
    Upon arriving in the US, I went to my local Apple Store Brea Mall to have the replacement switched with a CDMA model. They could not support me. He told me that my CDMA phone should not have been replaced with a GSM model in the UK and that this was clearly Apple's fault. My instructions were to call AppleCare US again.
    My call with AppleCare US was escalated to a Senior Advisor, name can be provided upon request, and they gave me the case number -----------. After being on the phone with him for over an hour, his instructions were to call the Apple Store Regent Street and tell them to review my latest notes. They were to process a refund for a full retail priced iPhone 5 64BG black onto my credit card so that I could use that money to buy a new iPhone 5 64GB black at the Apple Store Brea Mall to reoslve the problem.
    The Apple Store Regent Street did not process my refund. He, name can be provided upon request, told me that the AppleCare US did not do a good job reviewing my case, that they were incapable of getting to the bottom of it like they were, and instructed me to call AppleCare US and tell them to review this case number and this repair id. I asked if he read the notes from the AppleCare US Senior Advisor and he would not confirm nor deny. When I offered to give him the case number he accepted but it seemed like would do no good. Our call was disconnected. When I tried calling back the stores automated system was turned on and I could not get back through.
    Now I have the full retail price of an iPhone 5 64GB black CDMA on my credit card and Apple will not process the refund as they said they would.
    I've, at this point, spent between 14-16 hours at Apple Stores or on the phone with AppleCare representatives, and still do not have the problem resolved.
    SOLUTION
    AppleCare US and AppleCare Europe need to resolve their internal family issues without further impacting their customers.
    Apple is to process a refund to my credit card for the cost of a full retail priced iPhone 5 64GB black.
    DESIRED OUTCOMES
    I have an iPhone 5 (A1429 CDMA model) that works in the US on VZW as it did before I received the replacement phone in the UK.
    Apple covers the cost of the solution because I did not create the problem.
    Apple resolves their internal issue without costing me more time, energy, or money.
    This becomes a case study for AppleCare so that future customers are not impacted like I have been by their support system.
    Does anyone have recommendations for me?
    Thank you!
    <Edited by Host>

    Thanks, but I've been on the phone with AppleCare US (where I am and live) and AppleCare UK. They continue bouncing me back and forth without helping resolve the problem.
    Perhaps someones knows how to further escalate the issue at Apple?

  • My iPhone 4 will not sync my new voice memos from the "Voice Memos" app to my computer. This is frustrating, should not be so hard, can someone please help. I use PC with windows 7 with iPhone version 6.1.3 and iTunes most recent. Thanks.

    My iPhone 4 will not sync my new voice memos from the "Voice Memos" app to my computer. This is frustrating, should not be so hard, can someone please help. I use PC with windows 7 with iPhone version 6.1.3 and iTunes most recent. Thanks.

    In the Music tab of iTunes, do you have 'Include Voice Memos' checked?

Maybe you are looking for

  • Saving data in a database and publishing data to multiple clients

    Hi there.  I'm using a bunch of Compact FieldPoint modules to read out a few hundred voltages, temperatures, currents, etc.  I acquire this data at about 1 Hz (pretty slow).  I would like to record this data to some sort of database on a cpu (running

  • How to view pdf, xls files generated by using JasperExport

    I am using Weblogic Server 8.1 to deploy my project. I have some pdf, xls files that generated by JasperExport. Code: <br> Map parameters = new HashMap(); <br>parameters.put("donvi",DVi); String ConnectionURL ="jdbc:oracle:thin:@localhost:1521:qltb";

  • Problem switching from AP-specific to Group-specific VLAN mapping

    Hello. Some days ago, I updated our 5508 WLC to software version 7.5.102.0. With that version, it should be possible to have a VLAN mapping specific for a Flexconnect group that is set within Flexconnect Group settings. I did that for all my Flexconn

  • Please help I need info badly!

    I have just ordered myself an iPod video, 30gb. I currently own an iPod photo 30gb with around 6gb of music on it. Most of the music on it is only on the iPod, ie I copied the mp3's directly to the Pod to save hard drive space on my G5. How can I go

  • Where has my Muse site gone?

    I'm having an issue with an Adobe Muse site i've created and made live on BC: http://wwwthesoulbirdiscallingcouk.businesscatalyst.com When I open it up in Muse, it's opening a previous version from way back when I was building it. I'm also having an