K
KWenstrup
I need to submit to two different functions on my webservice from a form. I think this would all be well and good if they were being submitted at the same time - doesn't seem to be a limit on the submits attached to an XDocument. However, I need to call them at different times.
Specifically, I have individual contacts, which are the primary purpose/datasource of my sheet. They can be attached to companies - I need to be able to update companies and add them from this same form. I need to call the SubmitCompany separate from the SubmitIndividual, because when adding the company, I get back the ID (or ID's - an individual can belong to multiple companies) which I then put on the individual record.
At first, I tried to make them both submits, but firing XDocument.Submit seems to fire all or none. Then, I made the SubmitCompany a secondary "retrieve" datasource which actually takes the company structure as the parameter. The problem is that when it calls the webservice, it seems to be stripping off the upper level XML tag and submitting only the first subelement - in my case, just the ID. This seems to be the same issue which used to exist before SP1 with submits. Is there any way to tell the secondary retrieve data sources not to strip the top tag from parameters. It seems like the schema built from the secondary datasource isn't compatible with the way parameters are sent.
Or is there a better way to handle multiple submits? Thanks - Ken
Specifically, I have individual contacts, which are the primary purpose/datasource of my sheet. They can be attached to companies - I need to be able to update companies and add them from this same form. I need to call the SubmitCompany separate from the SubmitIndividual, because when adding the company, I get back the ID (or ID's - an individual can belong to multiple companies) which I then put on the individual record.
At first, I tried to make them both submits, but firing XDocument.Submit seems to fire all or none. Then, I made the SubmitCompany a secondary "retrieve" datasource which actually takes the company structure as the parameter. The problem is that when it calls the webservice, it seems to be stripping off the upper level XML tag and submitting only the first subelement - in my case, just the ID. This seems to be the same issue which used to exist before SP1 with submits. Is there any way to tell the secondary retrieve data sources not to strip the top tag from parameters. It seems like the schema built from the secondary datasource isn't compatible with the way parameters are sent.
Or is there a better way to handle multiple submits? Thanks - Ken