SOAP/postman: unknown document: AuthRequest

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
ksy
Posts: 1
Joined: Wed May 09, 2018 9:20 am

SOAP/postman: unknown document: AuthRequest

Postby ksy » Wed May 09, 2018 9:35 am

hi,
I'd like to use SOAP to retrieve/manage my soap account from code.
best results i get from code is error 400.
I tried to send xml message via postman, and I get a bit more detailed "unknown document: AuthRequest" error:

message

Code: Select all

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header>
        <context xmlns="urn:zimbra">
        </context>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <AuthRequest xmlns="urn:zimbraAdmin">
         <account by="name">dev@myPage.com</account>
         <password>abc123</password>
         <prefs></prefs>
         <attrs></attrs>
      </AuthRequest>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

response

Code: Select all

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
        <context xmlns="urn:zimbra"/>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Client</faultcode>
            <faultstring>unknown document: AuthRequest</faultstring>
            <detail>
                <Error xmlns="urn:zimbra">
                    <Code>service.UNKNOWN_DOCUMENT</Code>
                    <Trace>someTrace</Trace>
                </Error>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>


can anyone tell me what's wrong with my soap request ?


Return to “Developers”

Who is online

Users browsing this forum: Google [Bot] and 1 guest