in

InfoPath Dev

newbie - submit to webservice-db error

Last post 09-13-2007 03:44 PM by davidair. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 09-12-2007 01:11 PM

    • Valesa
    • Not Ranked
      Female
    • Joined on 09-12-2007
    • NY, NY
    • Posts 2

    newbie - submit to webservice-db error

     Hi guys!

     I have a form that recieves and submits data using a web service. The form recieves the data from a MS SQL Server that is located on a different domain and that part works in preview mode. The form must be browser enabled. If I try to publish the form in Full Trust mode, I get a compatibiliy error "The following expression could not be parsed because of a syntax error or because it uses an undefined namespace prefix or unsupported function:  /dfs:myFields/dfs:dataFields/tns:SubmitForm/s1:newForm." If I try to publish it in Domain mode then I cannot populate my drop downs with the information from the other domain.  

    InfoPath 2007 - and the form must be browser enabled

    SharePoint 2007

    Visual Studio 2003

    Is there any work around? Let me know if I can provide any more information.

    Thank you ahead of time!

    Val

     http://picasaweb.google.com/darkhuntera/UntitledAlbum/photo#5109411562617468658 screen shot of the error.

     

     

  • 09-12-2007 10:51 PM In reply to

    Re: newbie - submit to webservice-db error

    The Forms Server seems to be confused with your xpath... to check if this is the case, try to see if you can re-write it without using the prefixes (start with s1 and keep going up). You can rewrite this without s1 as this:

    /dfs:myFields/dfs:dataFields/tns:SubmitForm/*[local-name()='newForm']

    I think what is happening is that you have a secondary data source with an open schema which does not define what goes under tns:SubmitForm (or maybe even dfs:DataFields). The server cannot analyze the schema and thus gives you the error. The regular client does not analyze the schema so it's not an issue.

    See if my suggestion fixes your problem.

    David Airapetyan / Software Services Architect
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 09-13-2007 01:10 PM In reply to

    • Valesa
    • Not Ranked
      Female
    • Joined on 09-12-2007
    • NY, NY
    • Posts 2

    Re: newbie - submit to webservice-db error

    Thank you so much for your response! 

    Something strange happened to me. I worked on something else all day today and besides an update install and reboot, did not touch the machine running my InfoPath services. Its working, I was able to publish it to SharePoint without a hitch.  :)

    Now I have an issue with submitting the data to the database but that never worked and I know its my code. I'm not totally sure how to get the fields to populate from the form.  

  • 09-13-2007 03:44 PM In reply to

    Re: newbie - submit to webservice-db error

    Hey, cool, good luck with your DB stuff, most of the issues I had with the Forms Server were related to permissions, I hope you get your stuff to work.

    David Airapetyan / Software Services Architect
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (4 items)
Copyright © 2003-2007 Qdabra Software. All rights reserved.
View our Terms of Use.