11/22/2024 9:55:45 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss building external web applications for SalesLogix. View the code of conduct for posting guidelines.
|
|
|
|
WebService Consumer LAN SLX 7.2 /.NET 2.0
Posted: 02 Feb 09 1:48 PM
|
I was following Timmus' example to call a Web Service from LAN Client, I tried 'Hello World' in LAN 7.2 and .NET 2.0 and it works fine if both my WS and SLX Client are on the same machine, local. Once I deploy the WS to a test server it is not working anymore. I get following Error for oXMLHTTP
call oXMLHTTP.open("POST", "http://pmt-test1:8006/PDFConverter/Service1.asmx/HelloWorld", false) call oXMLHTTP.open("POST", "http://localhost:3077/Service1.asmx/HelloWorld", false)
Status: 500 ResponseText: ...Request format is unrecognized for URL unexpectedly ending in '/HelloWorld
Couple of more differences:
1) http://localhost:8006/PDFConverter/Service1.asmx?op=HelloWorld VS http://pmt-test1:8006/PDFConverter/Service1.asmx?op=HelloWorld
They look different. The localhost one exposes HTTP POST protocol, the pmt-test1 does not. ...so I think I did not deploy correctly the WS on the test server?
2) http://localhost:3077/Service1.asmx/HelloWorld - returns the correct xml file http://pmt-test1:8006/PDFConverter/Service1.asmx/HelloWorld - InvalidOperationException: Request format is unrecognized for URL unexpectedly ending in '/HelloWorld'.]
Any help please? |
|
|
|
Re: WebService Consumer LAN SLX 7.2 /.NET 2.0
Posted: 02 Jun 09 2:47 PM
|
I am calling my WS different way and it is working
dim c set c = CreateObject("MSSOAP.SOAPClient30") c.mssoapinit("http://pmt-s-logix:8006/PDFConverter/SvcContracts.asmx?WSDL")
c.ConnectorProperty("AuthUser") = "user" c.ConnectorProperty("AuthPassword") = "pwd"
dim XMLNode if Err = 0 then set XMLNode = c.ProcessBatch(arrBatch, strUserID, intCount, strDBName) else 'raise error end if
...then parse the XML doc
|
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|