SOAP Responce cannot be decoded after during a long web service exection

I have an AIR application.
I am using the spark web service and i have set up a fualt handler and set the requestTimeout to 0.
I call an opertaion that calls a .Net web service.
Inside that .Net web service i run a very heafty SQL using ADO and then i take the results from the SQL statment and I use those results to make an excel spreadseeht and saved on the machine running the webservice.
This web service ran by itself can easily take up to two minutes to run (which is very acceptable given the nature of the query), and I would like the AIR application to just continue to sit there and wait for it to complete (also acceptable).
Even with the request timeout set 0 i receive a "SOAP Responce cannot be decoded" fault from the webservice before the web service is even done running.  Why is this happening?
I've run several debuggers to make sure the info to the .Net web service is correct, I've stepped through the entire web service piece by piece and no exceptions are thrown during its execution.  It just takes a long time to perform and the fault occurs right in the middle of the execution of web service.
I've also had this happen when i'm debugging some of my other web serivces.  If a breakpoint is hit in visual studio in my webservice and i do my thing and step through stuff blah blah blah standard debugging stuff, the same thing will happen a fault will be hit before the webservice is done executing.
Please help.

I'm not sure what the deal is between Flex/AIR and Visusal Studios, but i descided to publish my webservices and point the wsdl there instead of using the visual studio generated one.
AND BEHOLD
I't worked and worked much much faster than i was anticipating.
So i'll just chalk it up to poor communication between FLEX and VS.  But if anybody knows a more complete answer I would still love to hear it.

Similar Messages

  • SOAP Response cannot be decoded.

    Hello Everybody,
    I created a simple web service in asp.net using the c# sharp language. The web service extracts data from an MS SQL Database, translates that data in to xml, assigns the xml to a string varible and returns  the string varible to what ever called the service. I know the web service works becuase if you call it in a web browser at the following address http://www.jmmortimer.com/dataaccess/sqlhelper.asmx?wsdl, it will show you the xml that represents web service. Plus, I tested it by calling it in an asp.net application. However when I call it from a Flex 3 application it gives me the following error message. SOAP Response cannot be decoded. Raw response: " faultCode="DecodingError" faultDetail="null" The code that I have in Flex 3 is below. If anyone knows how to solve this problem, please let me know. Thanks in advance.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application 
    xmlns:mx=http://www.adobe.com/2006/mxml layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.rpc.soap.LoadEvent;
    import mx.rpc.events.ResultEvent;
    private function getData(evt:LoadEvent):void
    var connString:String = "Data Source=Family\SQLExpress;Initial Catalog=SDJames;User ID=sa;Password=Password1";
    var storedProc:String = "GetAuxiliaries";
    myService.GetDataTable(connString, storedProc)
    private function resultHandler(evt:ResultEvent):void
    test.text = String(evt.result);
    ]]> 
    </mx:Script>
    <mx:WebService id="myService" wsdl="http://jmmortimer.com/dataaccess/sqlhelper.asmx?WSDL"
    load="getData(event)" result="resultHandler(event)" />
    <mx:TextArea id="test" x="10" y="10" width="452" height="348"/>
    </mx:Application>

    Hello Again Everybody,
    I have found the answer to my problem. The Problem was that I had the wrong value assigned the variable "connString" insted of  "Data Source=Family\SQLExpress;Initial Catalog=SDJames;User ID=sa;Password=Password1", it should have been "Data Source=Family\\SQLExpress;Initial Catalog=SDJames;User ID=sa;Password=Password1". Don't you just hate how just  messing up with one character can mess up you entire application. Thanks to everybody who took time to look over my problem.
    God Bless

  • Error During Activation of Web services

    When I try to create a web services using RFC and try to complete the steps in the wizard. I am getting error message as "Error during Activation of web services". and also when configure service in wizard, im getting only two profiles as "Basic Authorization: SOAP PROFILE" and "Secure SOAP PROFILE". Kindly do the needful.
    Moderator message: please do more research before asking, show what you have done yourself when asking.
    Edited by: Thomas Zloch on Aug 8, 2011 1:33 PM

    Olivier, thank you so much
    SOAMANAGER does not exist in my system (sp level 8), so node "/sap/bc/soap/rfc" should be active. Actually, it is active.
    I think the problem is related to user rights/profiles.
    I have tried to create another WS after assigning role SAP_BC_WEBSERVICE_ADMIN. The same error when trying to activate it, but now, I can see this WS in SE80 (under "Enterprise Services->Service Definition"). It is not active there and if I try to activate it, a success message appears indicating that user "is not authorized to use function netzwerkadministration". I cannot see any new services in SICF...
    Probably the new entry in SICF will be created after activating WS in SE80...
    Do u know what user profile should I add in order to properly activate the WS in SE80?
    Thank you very much!
    Vicente

  • "Error while parsing SOAP XML payload: no element found" received when invoking Web Service

    Running PB 12.1 Build 7000.  Using Easysoap.  Error ""Error while parsing SOAP XML payload: no element found" received when invoking Web Service".  This error does not appear to be coming from the application code.  Noticed that there were some erroneous characters showing up within the header portion of the XML ("&Quot;").  Not sure where these are coming from.  When I do a find within the PB code for ""&quot;" it gets located within two objects, whereas they both reference a "temp_xml_letter".  Not sure where or what temp_xml_letter resides???   The developer of this is no longer with us and my exposure to WSDL and Web Services is rather limited.  Need to get this resolved...please.
    This is the result of the search.  Notice the extraneous characters ("&quot;"):
    dar1main.pbl(d_as400_mq_xml)
    darlettr.pbl(d_email_xml)
    ---------- Search: Searching Target darwin for 'temp_xml'    (9:52:41 AM)
    ---------- 2 Matches Found On "temp_xml":
    dar1main.pbl(d_as400_mq_xml).d_as400_mq_xml:  export.xml(usetemplate="temp_xml_letter" headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0  template=(comment="" encoding="UTF-8" name="temp_xml_letter" xml="<?xml version=~"1.0~" encoding=~"UTF-16LE~" standalone=~"yes~"?><EmailServiceTransaction xmlns=~"http://xml.xxnamespace.com/Utility/Email/EmailService" ~" xmlns:imc=~"http://xml.xxnamespace.com/IMC~" xmlns:xsi=~"http://www.w3.org/2001/XMLSchema-instance~" xmlns:root=~"http://xml.xxnamespace.com/RootTypes~" xmlns:email=~"http://xml.xxnamespace.com/Utility/Email~" xsi:schemaLocation=~"http://xml.xxnamespace.com/Utility/Email/EmailService http://dev.xxnamespace.com/Utility/Email/EmailService/V10-TRX-EmailService.xsd~"><EmailServiceInformation><EmailServiceDetail __pbband=~"detail~"><ApplicationIdentifier> applicationidentifier </ApplicationIdentifier><AddresseeInformation><AddresseeDetail><Number> number </Number></AddresseeDetail></AddresseeInformation><EmailMessageInformation><Ema
    darlettr.pbl(d_email_xml).d_email_xml:  export.xml(usetemplate="temp_xml_letter" headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0  template=(comment="" encoding="UTF-8" name="temp_xml_letter" xml="<?xml version=~"1.0~" encoding=~"UTF-16LE~" standalone=~"yes~"?><EmailServiceTransaction xmlns=~"http://xml.xxnamespace.com/Utility/Email/EmailService" ~" xmlns:imc=~"http://xml.xxnamespace.com/IMC~" xmlns:xsi=~"http://www.w3.org/2001/XMLSchema-instance~" xmlns:root=~"http://xml.xxnamespace.com/RootTypes~" xmlns:email=~"http://xml.xxnamespace.com/Utility/Email~" xsi:schemaLocation=~"http://xml.xxnamespace.com/Utility/Email/EmailService http://dev.xxnamespace.com/Utility/Email/EmailService/V10-TRX-EmailService.xsd~"><EmailServiceInformation><EmailServiceDetail __pbband=~"detail~"><ApplicationIdentifier> applicationidentifier </ApplicationIdentifier><AddresseeInformation><AddresseeDetail><Number> imcnumber </Number></AddresseeDetail></AddresseeInformation><EmailMessageInformation><Ema
    ---------- Done 2 Matches Found On "temp_xml":
    ---------- Finished Searching Target darwin for 'temp_xml'    (9:52:41 AM)

    Maybe "extraneous" is an incorrect term.  Apparantly, based upon the writeup within Wiki, the parser I am using does not interpret the "&quot;"?  How do I find which parser is being utilized and how to control it?
    <<<
    If the document is read by an XML parser that does not or cannot read external entities, then only the five built-in XML character entities (see above) can safely be used, although other entities may be used if they are declared in the internal DTD subset.
    If the document is read by an XML parser that does read external entities, then the five built-in XML character entities can safely be used. The other 248 HTML character entities can be used as long as the XHTML DTD is accessible to the parser at the time the document is read. Other entities may also be used if they are declared in the internal DTD subset.
    >>>

  • Error during invoking the web service

    hi,
    i am using axis 1.2.1 & tomcat-5.0.28
    when i am trying to invoke the web service i am getting the error.
    i am passing all the parameters..then also it is giving the error.i have used the wsdl file to generate the stubs (using wsdl2java tool).the web service is in remote system.
    anybody knows Please let me know the soln.
    thanks in advance
    the error:
    Exception in thread "main" AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
    faultSubcode:
    faultString: JAXRPCTIE01: caught exception while handling request: deserialization error: java.lang.NumberFormatException: For input string: ""
    faultActor:
    faultNode:
    faultDetail:
    {http://xml.apache.org/axis/}stackTrace:JAXRPCTIE01: caught exception while handling request: deserialization error: java.lang.NumberFormatException: For input string: ""

    1. Does your network have a proxy ? - if so, configure the proxy details in the SOAP adapter.
    2. Does the WS expect any credentials? - if so configure the same in the adapter.
    More: /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009

  • Cannot seem to register any of my web services in OWSM, v10.1.3.1

    Hi All -
    I am using Oracle Web Services Manager, v10.1.3.1 build [2006.10.06.06.37]
    Whenever I try to use OWSM management console to register a web service with my gateway I get the following error:
    "Service information cannot be added because of the following reason(s):
    Cannot read WSDL: Failed to retrieve the Service WSDL from WSDL URL with HTTP Status 401"
    I have verified the service's WSDL is accessible by navigating to its URL. The web service is hosted in weblogic and is on the same machine as OWSM.
    Any suggestions?
    Thanks.
    -greg

    Hi,
    I had the same problem, but using HTTP. Check if the gateway ID that exist in your gateway settings is the same that exist in gateway configuration file (gateway.component.id argument): <ORACLE_HOME>/owsm/config/gateway/gateway-config-installer.properties.
    If isn't, you must enter the gateway ID from OWSM settings in gateway.component.id argument into this file and redeploy de gateway application.
    Let me know if it will work. because I tried do set my OWSM do accept HTTPS requests from my client application and it didn't work.
    Thanks,
    Rodrigo

  • Cannot get envy 110 to connect to web services, although when first plugged in no probs

    as above, product worked perfectly out of the box but now will not connect to web services, on my home network everything else works fine, any ideas???

    Let's set a static IP address for the printer:
    - Print a Network Config Page from the front of the printer. Note the printer's IP address.
    - Type that IP address into a browser to reveal the printer's internal settings.
    - Choose the Networking tab, then Wireless along the left side, then the IPv4 tab.
    - On this screen you want to set a Manual IP. You need to set an IP address outside the range that the router automatically sets (called the DHCP range). You can find the DHCP range of the router using its internal settings page or in its manual. Use the CD that came with your router or type the router's IP address (ends in .1) into a browser.
    - Use 255.255.255.0 for the subnet (unless you know it is different, if so, use that)
    - Enter your router's IP (on the Network Config Page) for the gateway.
    - Enter 8.8.8.8 for the first DNS and 8.8.4.4 for the second DNS.
    - Click 'Apply'.
    Now, shut down the router and printer, start the router, wait, then start the printer.
    After this you may need to redo 'Add a Printer' using the new IP address.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • What shall I do after generate .dll from web services

    Hi,
    After I have successfully generate the .net classes from the web services, I proceed to generate the .dll from the .net. After which, what shall I do?? How shall I uses those classes?? Can someone advises me (newbie)??
    Thanks alot!!

    A .dll is in the .NET world like a .jar in Java Land, a packaging unit (or assembly). It does have very little to do with Web Services.
    If you are starting with .NET and C# (or any other langague from the # collection), you should start by following some HowTo from Microsoft online documentation. The MSDN site seams a good place to start.
    To call a Web Service hosted on the .NET framework from Java, you will need to locate the Web Service interface definition; the WSDL resource. Once you have this information, the easiest way to get started would be to build a Web Service proxy from JDeveloper, if you are planning on using the Oracle tech stack.
    Hope it helps,
    -Eric

  • Can´t reset my SE K700i after syncing whith O2-Web-Service

    I synced my SE K700i whith O2-Web-Phonebook and calender, known that it would bring some problems later with iSync, but to use the adresse within O2.
    after that syncing whith iSync wasn't possible anymore because of an unknown Error.
    So i tried to reset the Phone, removed the phone from iSync and from Bluetooth-devices an conected ist again. - Still the same Error.
    Conacts from the phone were synced to Adressbook but not to phone.
    Can anyone help me?

    That record represents either a specific contact record in the Address Book or an event or task entry in iCal. You can identify it using the AB FInder utility written by John Morgan. Send a message to the electronic mail address in my Public Profile and I will reply with a copy.
    Or, you can first backup your contact records in the Address Book and event and task records in iCal, then reset the synchronization framework. To do that…
    • launch iSync
    • open the Preferences… dialg
    • press the Reset Sync History… button and follow the directions which appear.
    That will leave your data intact and your clients registrered, but force a slow, first-time synchronization of your data when you next synchronize.

  • Error during creation of web service from abap rfc

    Hi,
    I'm creating a web service from abap rfc (SE37), but at the end  of Creation Wizard I have this error:
    "web service object already exist".
    This is my first web service creation. Into WSADMIN there are not web services with the same name.
    How can I solve this problem?
    Thanks!

    Hi,
    What system/release/SP do you use ?
    Beginning with Netweaver 7.0 SP14, you configure Web services with SOAMANAGER and you don't see them with WSADMIN...
    Regards,
    Olivier

  • Exception during calling SAP Web service

    Hi,
    I have exposed BAPI as a web service and trying to access that web service using
    SAP Netweaver by creating CAF application service.
    I have successfully get output from web service.
    To get output for specific structure i have to provide empty structure of that in input.
    This is working fine.
    But for one particular structure when i am providing empty structure i am getting
    "java.lang.IllegalArgumentException".
    I have started BAPI in Debug mode and tested but from BAPI result is successfully delivered but when it received at
    SAP Netweaver side it throws above error.
    Please suggest how to find out exact problem.
    I have checked log viewer also. I found only one entry about getting exception. no extra information is provided.
    Thanks in Advance...

    Hi,
    I have exposed BAPI as a web service and trying to access that web service using
    SAP Netweaver by creating CAF application service.
    I have successfully get output from web service.
    To get output for specific structure i have to provide empty structure of that in input.
    This is working fine.
    But for one particular structure when i am providing empty structure i am getting
    "java.lang.IllegalArgumentException".
    I have started BAPI in Debug mode and tested but from BAPI result is successfully delivered but when it received at
    SAP Netweaver side it throws above error.
    Please suggest how to find out exact problem.
    I have checked log viewer also. I found only one entry about getting exception. no extra information is provided.
    Thanks in Advance...

  • Cannot run "Publish PL/SQL as a Web Service" example

    Hello!
    I have Oracle 8.1.7 AS and 9i JDeveloper running on Windows 2000. I'm trying to run the "Publish PL/SQL as a Web Service" example, but am encountering errors I believe are related to my hostname/IP address/DNS entry. Of course, I could be wrong.
    Here is some information:
    ==========================================================
    1. I was able to successfully initialize Containers for J2EE. However, when I was trying to deploy the PL/SQL example, it inserted this information:
    C:\oracle\jdev9i\j2ee\home>C:\oracle\jdev9i\jdk\bin\java.exe -jar C:\oracle\jdev9i\j2ee\home\oc4j.jar
    Node started with id=-1753996682
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    Error updating application PLSQL-PLSQL-WS: Error loading web-app 'WebServices' at
    C:\oracle\jdev9i\j2ee\home\applications\PLSQL-PLSQL-WS\WebServices:
    resource-ref 'jdbc/testCoreDS' referenced from resource-ref-mapping not found
    ==========================================================
    2. I went through the instructions from the website, and when I began the deployment process it generated this information:
    ---- Deployment started. ---- Jan 17, 2003 1:20:27 PM
    Wrote WAR file to C:\oracle\jdev9i\jdev\plsql-webexample\Project1\WebSe[i]Long postings are being truncated to ~1 kB at this time.

    Couple of suggestions despite your post being cut off with what might be useful information (please post the rest if these suggestions don't help):
    1. There are some bugs with Personal Oracle and Web services, notably Oracle9i Personal that may apply also to 8.1.7. If you have a MetaLink account it is logged as bug 2591731.
    2. As you are using your local machine, make sure your proxies are turned off (Tools-Preferences Web Browser/Proxy)
    3. I've noticed problems when folks use a JDK with a version lower than 1.3.1_02 to run OC4J - it is certified only with 1.3.1_02 or higher. If you are using the built-in JDeveloper JDK to start up OC4J (e.g. <Jdev_home>\jdk\bin\java.exe) you should be fine. But if you are just typing in java -jar oc4j.jar it is worth checking. Check the your default JDK version by typing in: java -version. If it is lower, then download a new version from http://java.sun.com/j2se/1.3/download.html.
    4. For level setting it is best to be using build 1035 of JDeveloper, the current production release and either the OC4J embedded in it or the stand-alone version here on OTN.
    Hope these point in the right direction.
    Mike.

  • Cannot change the default directory for the web services

    When I change the default directory the drive letter always changes back to the drive letter the project was loaded from.
    Software version Labview 2009.

    Did you change the default page within your code?  Everytime you start the vi, it will revert to that page.
    When you change the default directory (if it is a control on the Front Panel), did you right click the control and select save as default?
    Otherwise, each time you re-open the VI, it will revert to the actual default value, which was the previous directory.

  • How to send the SOAP Fault Message to the Web Service Consumer

    Hi,
    I have configured SAOP  to Proxy Syncronous Scenario in PI 7.1 and using XML Validation  in Adapter Engine to Validate the Structure of the Message Payload.The scenario is working fine.When some of the Filed's Length  increses the maxLength specified in the Data Type . We are getting the Following error.
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
       <SOAP:Body>
          <SOAP:Fault>
             <faultcode>SOAP:Server</faultcode>
             <faultstring>Server Error</faultstring>
             <detail>
                <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
                   <context>XIAdapter</context>
                   <code>ADAPTER.JAVA_EXCEPTION</code>
                   <text>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessageFormatException: XML Validation for payload with root element name MT_Out_CustomerMaster_FPMReq , target namespace http://Pegasystems.com/I06_Customers Failed!Errors Encountered During Parsing
    1.cvc-maxLength-valid: Value '123456789' with length = '9' is not facet-valid with respect to maxLength '8' for type 'null'.
    2.cvc-type.3.1.3: The value '123456789' of element 'CompanyCode' is not valid.
    3.cvc-maxLength-valid: Value 'asdf' with length = '4' is not facet-valid with respect to maxLength '1' for type 'null'.
    4.cvc-type.3.1.3: The value 'asdf' of element 'OperationType' is not valid.
         at com.sap.aii.adapter.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:1164)
    My question is How does the Web Service Consumer can handle this Soap Server Error in the SOAP Fault.Or How can we provide a specific information like  'The value '123456789' of element 'CompanyCode' is not valid.It exceeds the Maximum Length'.
    I read this /people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client blog .Where it is mentioned that the Web Service Consumer can handle while calling the Web Service.Is there any other solution?
    Kindly appreciate your help.

    Thank You Stefan for your kind reply.
    So  you mean to say if we use the XML Validation .we cannot provide proper error information to the calling Web Service Consumer .And While calling a Web Service they cannot Extract the Exact Message in the Text Filed(<text>) present under the Detail Element (<detail>) in the <SOAP:Fault> node. as
    <text>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessageFormatException: XML Validation for payload with root element name MT_Out_CustomerMaster_FPMReq , target namespace http://Pegasystems.com/I06_Customers Failed!Errors Encountered During Parsing
    1.cvc-maxLength-valid: Value '123456789' with length = '9' is not facet-valid with respect to maxLength '8' for type 'null'.
    2.cvc-type.3.1.3: The value '123456789' of element 'CompanyCode' is not valid.**
    3.cvc-maxLength-valid: Value 'asdf' with length = '4' is not facet-valid with respect to maxLength '1' for type 'null'.
    4.cvc-type.3.1.3: The value 'asdf' of element 'OperationType' is not valid.
    That is why we have to use the Fault messages and  Field Lengths has to be Validated  in the Server proxy.
    Please Correct me If I am wrong.

  • Web service: Cannot remove WSS security setting

    Hi,
    i have a problem about developing web service with jdeveloper 10.1.3.1
    The problem is that ---> once i have add the security to the web service
    (through the web service wizard .. i,e, right click the web service and
    select "Secure Web Service'), i CANNOT REMOVE the security setting using
    the web service wizard...
    call the web service always say missing wsse:Security SOAP header..
    do anybody have the solution?
    thank you...

    Hi,
    the issue is still there in 10.1.3.3, and it must be somewhere on JDeveloper or OC4J side. Moreover, it's not limited to removing security settings, as the situation (old settings remembered) is the same when editing security settings.
    lsp,
    before regenerating a web service and its xml files (editing security properties), make sure you have cleaned the project and then you can try deleting the oracle-webservices.xml file from your project directory, because JDeveloper does not seem to be willing to overwrite it during regeneration.
    If this does not help and you are using embedded OC4J, you can try the following steps before running the web service again:
    - delete the embedded-oc4j/application-deployments/current-workspace-app directory, because it contains an oracle-webservices.xml file which may be outdated,
    - empty the contents of embedded-oc4j/config/wsmgmt.xml, because it contains security settings for web services you have deployed so far, which also may be outdated,
    - restart JDeveloper :)
    Note that these are just guesses to solve the problem. Unfortunately doing all of these did not solve it for me.
    So if anybody has some more ideas, we'll be happy to hear them.
    Thanks,
    Patrik

Maybe you are looking for