Submit connection - object reference not set error - newbie question - InfoPath Dev
in

InfoPath Dev

Submit connection - object reference not set error - newbie question

Last post 02-08-2011 01:04 AM by OWLRDF. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-01-2011 07:34 AM

    • OWLRDF
    • Not Ranked
      Male
    • Joined on 01-28-2011
    • Denmark
    • Posts 2

    Submit connection - object reference not set error - newbie question

    Hi all

    This is driving me nuts :). I've created a new Infopath form based on a web service with a submit connection and everything is OK - the form works and I'm able to submit data. However if I for some reason uses Tools -> Submit Options and reconfigures the submit connection I will recieve an "object reference not set" error no matter which combination of parameter options I choose. Having examined the manifest files between a working and not working form it looks like the only difference is in the lines below:

    Working:

      <xsf:submit caption="&amp;Send">
      <xsf:webServiceAdapter wsdlUrl="http://info-ws.hedeselskabet.dk/service.asmx?WSDL" queryAllowed="no" submitAllowed="yes" name="Primær afsendelse">
       <xsf:operation name="create_Opgave" soapAction="http://info-ws.hedeselskabet.dk/AdhocIT/create_Opgave" serviceUrl="http://info-ws.hedeselskabet.dk/service.asmx"></xsf:operation>
      </xsf:webServiceAdapter>
     </xsf:submit>

    Not Working: 


     <xsf:submit caption="&amp;Send" disableMenuItem="no" onAfterSubmit="keepOpen" showStatusDialog="yes">
      <xsf:webServiceAdapter wsdlUrl="http://info-ws.hedeselskabet.dk/service.asmx?WSDL" queryAllowed="no" submitAllowed="yes" name="Primær afsendelse">
       <xsf:operation name="create_Opgave" soapAction="http://info-ws.hedeselskabet.dk/AdhocIT/create_Opgave" serviceUrl="http://info-ws.hedeselskabet.dk/service.asmx">
        <xsf:input source="Submit.xml">
         <xsf:partFragment match="/dfs:myFields/dfs:dataFields/tns:create_Opgave/s1:opg" replaceWith="/dfs:myFields" filter="."></xsf:partFragment>
        </xsf:input>
       </xsf:operation>
      </xsf:webServiceAdapter>
     </xsf:submit>

    - see below for content of submit.xml

    Questions:

    • Can anyone see why the form gets corrupted - shouldn't allways be possible to edit the connection??
    • Is it possible to revert to working from by using the GUI, or do I have to edit the manifest files?

    best regards, Steen

    Submit.xml

    - <dfs:myFields xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution" xmlns:tns="http://info-ws.hedeselskabet.dk/AdhocIT" xmlns:s1="http://schemas.microsoft.com/office/infopath/2003/myXSD/2011-01-31T13:02:48">

    - <dfs:dataFields>

    - <tns:create_Opgave>

    - <s1:opg>

    <s1:Id />

    <s1:Hovedopgave />

    <s1:Repetition />

    <s1:Vist>false</s1:Vist>

    - <s1:Opgave_Beskrivelse>

    <s1:Betegnelse />

    <s1:Kategori />

    <s1:OpgaveType />

    <s1:Rekvirent />

    <s1:Enhed />

    <s1:Ansvarlig />

    <s1:Problem />

    <s1:Losning />

    <s1:Fakturerbar>false</s1:Fakturerbar>

    </s1:Opgave_Beskrivelse>

    - <s1:Opgave_Styring>

    <s1:AktuelSLA />

    <s1:Prioritet />

    <s1:Status />

    <s1:ForventetStart />

    <s1:Deadline />

    <s1:Tidsestimat />

    <s1:Registrant />

    <s1:Registreret />

    <s1:AktiveretDato />

    <s1:Pabegyndt>false</s1:Pabegyndt>

    <s1:PabegyndtDato />

    <s1:Afsluttet />

    <s1:Slutdato />

    <s1:Forbrugttid />

    </s1:Opgave_Styring>

    </s1:opg>

    </tns:create_Opgave>

    </dfs:dataFields>

    </dfs:myFields>

     

  • 02-08-2011 01:04 AM In reply to

    • OWLRDF
    • Not Ranked
      Male
    • Joined on 01-28-2011
    • Denmark
    • Posts 2

    Re: Submit connection - object reference not set error - newbie question

    Hi all

    Solved my own problem - chosing the right element and then - especially - sending "text and child elements only" instead of "XML subtree, including selected elements" did the the trick :)

     Regards, Steen

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.