SharePoint Call Web Service

I'm using Nintex workflow to create an action that will create site columns and I must have the XML messed up because it keeps coming back with "Error returned from server: The remote server returned an error: (400) Bad Request."

This is what I have.

<method ID="1">
<Fields>
   <Field Type="Choice" Name="Test" DisplayName="Test" >
      <CHOICES>
         <CHOICE>Controled</CHOICE>
         <CHOICE>Personal</CHOICE>
         <CHOICE>Business</CHOICE>
      </CHOICES>
      <Default>Personal</Default>
   </Field>
</method>

Thanks,
Mark
exonedgeAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

exonedgeAuthor Commented:
Found some issues with my XML. Fixed those and the error went away, but still not showing up in my site columns list.

<method ID="1">
<Fields>
   <Field Type="Choice" Name="Test" DisplayName="Test" >
      <CHOICES>
         <CHOICE>Controled</CHOICE>
         <CHOICE>Personal</CHOICE>
         <CHOICE>Business</CHOICE>
      </CHOICES>
      <Default>Personal</Default>
   </Field>
</Fields>

</method>
0
jessc7Commented:
You might reference this post for an example SOAP message:

http://pinoytech.org/question/4465617/webs-updatecolumns-web-service

Note however they are updating, and not creating new site columns.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
exonedgeAuthor Commented:
It wasn't straignt forward, but it helped me figure out what I needed. Thanks for the link and below is the XML that worked. I needed single quotes and <method> tag within the <Fields> tag
<Fields>
<Method ID="1">

   <Field Type='Choice' Name='Test' DisplayName='Test' Group='Reports'>
      <CHOICES>
         <CHOICE>Controled</CHOICE>
         <CHOICE>Personal</CHOICE>
         <CHOICE>Business</CHOICE>
      </CHOICES>
      <Default>Personal</Default>
   </Field>
</Method>
</Fields>
0
exonedgeAuthor Commented:
figured out based on link proved.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.