Re: [WebDNA] SOAP support

This WebDNA talk-list message is from

2014


It keeps the original formatting.
numero = 111771
interpreted = N
texte = try this [function name=3Dget_XML] = [text]SOAPAction=3Dhttp://ws.cdyne.com/WeatherWS/GetCityForecastByZIP[/tex= t] [text scope=3Dglobal]soap_request=3D 11743 [/text] [text]tempresponse=3D[shell]curl -X POST -H 'Content-type: text/xml; = SOAPAction: "[SOAPAction]"' -H 'Content-length: = [CountChars][soap_request][/CountChars]' -d '[soap_request]' = 'http://wsf.cdyne.com/WeatherWS/Weather.asmx'[/shell][/text] [return][tempresponse][/return] [/function][get_XML] > On 16 Dec 2014, at 16:41, mainlighting . = wrote: >=20 > Has anyone been able to do SOAP requests successfully from WebDNA? = Below is an attempt with WebDNA to a weather web service that fails = (message: 'Data at the root level is invalid. Line 1, position 1'). Is = there something I am missing? > =20 > [text]SOAPRequest =3D[UnURL]%0D%0A[/UnURL][!] > [/!][UnURL]%0D%0A[/UnURL][!] > [/!] = xmlns:soap12=3D"http://schemas.xmlsoap.org/soap/envelope/">[UnURL]%0D%0A[/= UnURL][!] > [/!][UnURL]%0D%0A[/UnURL][!] > [/!][!] > [/!]11743[!] > [/!][!] > [/!][!] > [/!][/text] > =20 > [text]_SOAPResponse=3D[tcpconnect host=3Dwsf.cdyne.com&port=3D80] > [tcpsend]POST http://wsf.cdyne.com/WeatherWS/Weather.asmx = HTTP/1.1[UnURL]%0D%0A[/UnURL][!] > [/!]Host: wsf.cdyne.com [UnURL]%0D%0A[/UnURL][!] > [/!]Content-type: application/soap+xml; = charset=3D"utf-8"[UnURL]%0D%0A[/UnURL][!] > [/!]Content-length: = [CountChars][SOAPRequest][/CountChars][UnURL]%0D%0A[/UnURL][!] > [/!][UnURL]%0D%0A[/UnURL][!] > [/!][unurl][SOAPRequest][/unurl][UnURL]%0D%0A[/UnURL][!] > [/!][/TCPSend] > [/tcpconnect][/text] > [!][showif [p_returnVar]![raw][p_returnVar][/raw]] > [text scope=3Dglobal][p_returnVar]=3D[convertchars = table=3Dstrip][_SOAPResponse][/convertchars][/text] > [/showif][/!] >
[_SOAPResponse] > =20 > Ted > =20 >=20 > =20 > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] SOAP support (Stuart Tremain 2014)
  2. [WebDNA] SOAP support ("mainlighting ." 2014)
  3. Re: [WebDNA] SOAP support (Stuart Tremain 2014)
  4. Re: [WebDNA] SOAP support (Donovan Brooke 2014)
  5. Re: [WebDNA] SOAP support (Stuart Tremain 2014)
  6. [WebDNA] SOAP support ("mainlighting ." 2014)
  7. [WebDNA] SOAP support ("mainlighting ." 2014)
  8. Re: [WebDNA] SOAP support (Stuart Tremain 2014)
  9. Re: [WebDNA] SOAP support (Stuart Tremain 2014)
  10. Re: [WebDNA] SOAP support (Donovan Brooke 2014)
  11. [WebDNA] SOAP support ("mainlighting ." 2014)
  12. [WebDNA] SOAP support ("mainlighting ." 2014)
  13. Re: [WebDNA] SOAP support (Toby Cox 2014)
  14. [WebDNA] SOAP support ("mainlighting ." 2014)
  15. [WebDNA] SOAP support ("mainlighting ." 2014)
  16. Re: [WebDNA] SOAP support (Toby Cox 2014)
  17. Re: [WebDNA] SOAP support (Tom Duke 2014)
  18. Re: [WebDNA] SOAP support (Donovan Brooke 2014)
  19. [WebDNA] SOAP support ("mainlighting ." 2014)
try this [function name=3Dget_XML] = [text]SOAPAction=3Dhttp://ws.cdyne.com/WeatherWS/GetCityForecastByZIP[/tex= t] [text scope=3Dglobal]soap_request=3D 11743 [/text] [text]tempresponse=3D[shell]curl -X POST -H 'Content-type: text/xml; = SOAPAction: "[SOAPAction]"' -H 'Content-length: = [countchars][soap_request][/CountChars]' -d '[soap_request]' = 'http://wsf.cdyne.com/WeatherWS/Weather.asmx'[/shell][/text] [return][tempresponse][/return] [/function][get_XML] > On 16 Dec 2014, at 16:41, mainlighting . = wrote: >=20 > Has anyone been able to do SOAP requests successfully from WebDNA? = Below is an attempt with WebDNA to a weather web service that fails = (message: 'Data at the root level is invalid. Line 1, position 1'). Is = there something I am missing? > =20 > [text]SOAPRequest =3D[unurl]%0D%0A[/UnURL][!] > [/!][unurl]%0D%0A[/UnURL][!] > [/!] = xmlns:soap12=3D"http://schemas.xmlsoap.org/soap/envelope/">[unurl]%0D%0A[/= UnURL][!] > [/!][unurl]%0D%0A[/UnURL][!] > [/!][!] > [/!]11743[!] > [/!][!] > [/!][!] > [/!][/text] > =20 > [text]_SOAPResponse=3D[tcpconnect host=3Dwsf.cdyne.com&port=3D80] > [tcpsend]POST http://wsf.cdyne.com/WeatherWS/Weather.asmx = HTTP/1.1[unurl]%0D%0A[/UnURL][!] > [/!]Host: wsf.cdyne.com [unurl]%0D%0A[/UnURL][!] > [/!]Content-type: application/soap+xml; = charset=3D"utf-8"[unurl]%0D%0A[/UnURL][!] > [/!]Content-length: = [countchars][SOAPRequest][/CountChars][unurl]%0D%0A[/UnURL][!] > [/!][unurl]%0D%0A[/UnURL][!] > [/!][unurl][SOAPRequest][/unurl][unurl]%0D%0A[/UnURL][!] > [/!][/TCPSend] > [/tcpconnect][/text] > [!][showif [p_returnVar]![raw][p_returnVar][/raw]] > [text scope=3Dglobal][p_returnVar]=3D[convertchars = table=3Dstrip][_SOAPResponse][/convertchars][/text] > [/showif][/!] >
[_SOAPResponse] > =20 > Ted > =20 >=20 > =20 > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list . To = unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us Toby Cox

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Price override - solved (2004) Help with ShowNext (1998) no global [username] or [password] displayed ... (1997) RE: type 2 errors with ssl server (1997) Supressing Error Messages (1998) Webmerch Error (1998) [isfile] ? (1997) shipcost (1997) Beta5??? (2000) Vs: Open Source (2000) Search design (1997) Extended [ConvertChars] (1997) [WebDNA] Apple nixes Mac OS Server ("websites") and other (2018) [SearchString] usage (1997) Nesting format tags (1997) [format xs] freeze (1997) Urgent WebCatalog problem (2000) Code database (1998) [shipCost] math formula? (1997) [foundItems] context problem (2000)