soap error
working with sharepoint and im getting errors returned but, its just a generic soap error, is there a way to get something a little more useful?   $proxy = New-WebServiceProxy 'http://localhost/_vti_bin/lists.asmx' -UseDefaultCredential $proxy.AddWikiPage("mywiki",'./newtesta.aspx',"new test page")   Exception calling "AddWikiPage" with "3" argument(s): "Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown." At line:1 char:1 + $proxy.AddWikiPage("mywiki",'./newtesta.aspx',"new test page") + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException    + FullyQualifiedErrorId : SoapException  the really weird part is it creates the page just fine, so the sharepoint part isnt really the question, the question is, how can I get something more that "SoapServerException"   Thanks    
November 15th, 2011 10:50pm

working with sharepoint and im getting errors returned but, its just a generic soap error, is there a way to get something a little more useful?   $proxy = New-WebServiceProxy 'http://localhost/_vti_bin/lists.asmx' -UseDefaultCredential $proxy.AddWikiPage("mywiki",'./newtesta.aspx',"new test page")   Exception calling "AddWikiPage" with "3" argument(s): "Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown." At line:1 char:1 + $proxy.AddWikiPage("mywiki",'./newtesta.aspx',"new test page") + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~    + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException    + FullyQualifiedErrorId : SoapException  the really weird part is it creates the page just fine, so the sharepoint part isnt really the question, the question is, how can I get something more that "SoapServerException"   Thanks    
Free Windows Admin Tool Kit Click here and download it now
November 16th, 2011 4:04am

its foundation and yes, the pages create ok, just not sure why im getting the error.   mostly I wanted to know if there was a way to get the error details. something that had to do with the actual problem and not just a generic soap exception.    
November 16th, 2011 4:03pm

Hi Justin,

might already be to late to answer, but I've found a tool called SOAC (SOA Cleaner), which actually displays the SOAP response, with a bit more detailed answer:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body>
    <soap:Fault>
      <faultcode>soap:Server</faultcode>
      <faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.</faultstring>
      <detail>
        <errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/">The 'Values' start tag on line 1 does not match the end tag of 'Where'. Line 1, position 81.</errorstring>
      </detail>
    </soap:Fault>
  </soap:Body>
</soap:Envelope>

I've put the whole SOAP call into one line and would therefore assume, that this error has something to do with the namespace. But since there is no 'Value' tag existing, I still cannot verify, what is actually causing this error...

Best regards,
Malte

Free Windows Admin Tool Kit Click here and download it now
September 11th, 2013 10:08am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics