Friedom-Tech Posted January 15, 2009 Report Share Posted January 15, 2009 Hi; i am opening this string on the forum to document every step of my attempts to use SOAP to update the system in every way. i will post comments suggestions and questions here so please stay tuned so that we can get this working together. thank you; Quote Link to comment Share on other sites More sharing options...
Friedom-Tech Posted January 18, 2009 Author Report Share Posted January 18, 2009 I’m writing in ASP.NET and sending a simple XML file to set up a basic trunk: strXML &= "POST /soap.xml HTTP/1.0" strXML &= "Content-Type:application/xml" strXML &= "Content-Length: 400" strXML &= "<?xml version='1.0' standalone='yes'?>" strXML &= "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/' xmlns:sns='http://www.pbxnsip.com/soap/pbx'>" strXML &= "<env:Body>" strXML &= "<sns:CreateTrunk>" strXML &= "<Domain>sip.jivetel.com</Domain>" strXML &= "<Name>WinnerTest1</Name>" strXML &= "<Type>register</Type>" strXML &= "</sns:CreateTrunk>" strXML &= "</env:Body>" strXML &= "</env:Envelope>" but i am getting a response "The given path's format is not supported" can anyone help me and tell me what i am doing wrong? thank you; Quote Link to comment Share on other sites More sharing options...
pbx support Posted January 19, 2009 Report Share Posted January 19, 2009 I am not sure this error is coming from PBX. You can turn on the SOAP logging on the PBX and to see the message is reaching the PBX I’m writing in ASP.NET and sending a simple XML file to set up a basic trunk:.... .... thank you; Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted January 19, 2009 Report Share Posted January 19, 2009 strXML &= "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/' xmlns:sns='http://www.pbxnsip.com/soap/pbx'>" Maybe it really checks the www.pbxnsip.com URL. There is no document and maybe that is a problem for ASP.NET. Quote Link to comment Share on other sites More sharing options...
Friedom-Tech Posted January 20, 2009 Author Report Share Posted January 20, 2009 Maybe it really checks the www.pbxnsip.com URL. There is no document and maybe that is a problem for ASP.NET. so what is the resolution? Quote Link to comment Share on other sites More sharing options...
pbx support Posted January 20, 2009 Report Share Posted January 20, 2009 so what is the resolution? Take 'xmlns:sns='http://www.pbxnsip.com/soap/pbx' out and try. Quote Link to comment Share on other sites More sharing options...
Friedom-Tech Posted January 21, 2009 Author Report Share Posted January 21, 2009 Take 'xmlns:sns='http://www.pbxnsip.com/soap/pbx' out and try. The given path's format is not supported If it makes it easier, I’m including the code that I’m using to connect. I’ve connected with SOAP using similar coding, but ever server is different: -- Dim strXML As String = "" strXML &= "POST /soap.xml HTTP/1.0" strXML &= "Content-Type:application/xml" strXML &= "Content-Length: 400" strXML &= "<?xml version='1.0' standalone='yes'?>" strXML &= "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>" strXML &= "<env:Body>" strXML &= "<sns:CreateTrunk>" strXML &= "<Domain>sip.jivetel.com</Domain>" strXML &= "<Name>WinnerTest1</Name>" strXML &= "</sns:CreateTrunk>" strXML &= "</env:Body>" strXML &= "</env:Envelope>" 'Send Dim Xml_Returned As String Try Dim myWebClient As System.Net.WebClient = New System.Net.WebClient Dim bytes() As Byte = myWebClient.UploadData("XX.XX.XXX.XXX:8080", "POST", System.Text.Encoding.UTF8.GetBytes(strXML)) myWebClient = Nothing Xml_Returned = System.Text.Encoding.ASCII.GetString(bytes) bytes = Nothing Catch ex As Exception Xml_Returned = ("<strong>Error returning xml:</strong> " + ex.Message) End Try please advise. Quote Link to comment Share on other sites More sharing options...
pbx support Posted January 22, 2009 Report Share Posted January 22, 2009 Looks like the SOAP message is not even reaching the PBX. Just to verify, try IP address instead of sip.jivetel.com. Also, I am assuming PBX is running at XX.XX.XXX.XXX:8080 (fyi... port 80 is the default port) Is there any detailed error on the The given path's format is not supported If it makes it easier, I’m including the code that I’m using to connect. I’ve connected with SOAP using similar coding, but ever server is different: -- Dim strXML As String = "" strXML &= "POST /soap.xml HTTP/1.0" strXML &= "Content-Type:application/xml" strXML &= "Content-Length: 400" strXML &= "<?xml version='1.0' standalone='yes'?>" strXML &= "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>" strXML &= "<env:Body>" strXML &= "<sns:CreateTrunk>" strXML &= "<Domain>sip.jivetel.com</Domain>" strXML &= "<Name>WinnerTest1</Name>" strXML &= "</sns:CreateTrunk>" strXML &= "</env:Body>" strXML &= "</env:Envelope>" 'Send Dim Xml_Returned As String Try Dim myWebClient As System.Net.WebClient = New System.Net.WebClient Dim bytes() As Byte = myWebClient.UploadData("XX.XX.XXX.XXX:8080", "POST", System.Text.Encoding.UTF8.GetBytes(strXML)) myWebClient = Nothing Xml_Returned = System.Text.Encoding.ASCII.GetString(bytes) bytes = Nothing Catch ex As Exception Xml_Returned = ("<strong>Error returning xml:</strong> " + ex.Message) End Try please advise. Quote Link to comment Share on other sites More sharing options...
Friedom-Tech Posted January 22, 2009 Author Report Share Posted January 22, 2009 Looks like the SOAP message is not even reaching the PBX. Just to verify, try IP address instead of sip.jivetel.com. Also, I am assuming PBX is running at XX.XX.XXX.XXX:8080 (fyi... port 80 is the default port) Is there any detailed error on the HI; i tried that but still get the same error message. Quote Link to comment Share on other sites More sharing options...
Bill H Posted January 28, 2009 Report Share Posted January 28, 2009 I’m writing in ASP.NET and sending a simple XML file to set up a basic trunk: strXML &= "POST /soap.xml HTTP/1.0" strXML &= "Content-Type:application/xml" strXML &= "Content-Length: 400" strXML &= "<?xml version='1.0' standalone='yes'?>" strXML &= "<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/' xmlns:sns='http://www.pbxnsip.com/soap/pbx'>" strXML &= "<env:Body>" strXML &= "<sns:CreateTrunk>" strXML &= "<Domain>sip.jivetel.com</Domain>" strXML &= "<Name>WinnerTest1</Name>" strXML &= "<Type>register</Type>" strXML &= "</sns:CreateTrunk>" strXML &= "</env:Body>" strXML &= "</env:Envelope>" but i am getting a response "The given path's format is not supported" can anyone help me and tell me what i am doing wrong? Try adding a SPACE (CR LF) between these two lines. Before: strXML &= "Content-Length: 400" strXML &= "<?xml version='1.0' standalone='yes'?>" After: strXML &= "Content-Length: 400" strXML &= What ever equals CR LF in your program strXML &= "<?xml version='1.0' standalone='yes'?>" In VB6 I use vbCRLF ---------------------------------------------------------- At the end of the entire message add a CR LF or maybe 2 of them Before: strXML &= "</env:Body>" strXML &= "</env:Envelope>" After: strXML &= "</env:Body>" strXML &= "</env:Envelope>" strXML &= What ever equals CR LF in your program Bill H Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.