Jump to content

Posting to /soap.xml redirects to login.html

Markus O'Reilly

Recommended Posts

I'm trying to perform actions on the DB through the SOAP interface, but am having no luck. Here's what's happening:

  • The computer I'm sending the requests from is not on the same network as the PBXnSIP server.
  • All of my attempts to send SOAP requests to our PBXnSIP server result the server trying to redirect me to the login page.
  • I've tried it on two different servers, but both give me the same result.
  • I've also added my IP to the trusted IPs list on both servers, but still, no go.
  • The requests I'm sending look identical to the ones in the samples.

I'm really not sure what else to try. Maybe I'm missing some crucial step. I guess I don't know what I don't know.


Has anyone run into this before/know what's going on?




This is the exact content being sent over to the PBXnSIP server:


POST /soap.xml HTTP/1.1

Content-Type: text/xml; charset=utf-8

Host: the host

Content-Length: 364


<?xml version="1.0" standalone="yes"?>

<env:Envelope xmlns:env="



<Domain>some domain</Domain>








And this is the reply I get. I even get this reply when trying to follow the redirect to /login.htm:


HTTP/1.1 302 Moved Temporarily

Location: login.htm

Content-Type: text/html

Cache-Control: no-cache

Cache-Control: no-store

Set-Cookie: session=rnoyfd1id5s5fnemqf7l

Content-Length: 156





If you don't get redirected automatically, please click <a href="login.htm">here</a>



I've tried sending requests with content-type text/xml, application/xml, and each with/without charset utf-8. (Note - the Host header doesn't actually say "the host", it has the ip address the request is being sent to). I've also tried it with HTTP/1.1 and HTTP/1.0. I doubt the problem is in what's being sent though.



Link to comment
Share on other sites

Yea sorry, stupid.


I guess the problem is that you need a license key that allows you to do that!


The log probably contains something line "SOAP: Need a professional license", right? Log level 5.


Also, remember to add this computer's IP address in the 'SOAP trusted IP" list. (Under Admin->Settings page)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...