Re: [WebDNA] SOAP support

This WebDNA talk-list message is from

2014


It keeps the original formatting.
numero = 111778
interpreted = N
texte = Hi, Can you let us know what [platform] [version] [product] OS you are on? Some older version of WebDNA did not support the XML content-type. Donovan On Dec 16, 2014, at 11:21 AM, Toby Cox wrote: > try this >=20 > [function name=3Dget_XML] >=20 >=20 > = [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] >=20 > [/function][get_XML] >=20 >=20 >=20 >> 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 >=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)
Hi, Can you let us know what [platform] [version] [product] OS you are on? Some older version of WebDNA did not support the XML content-type. Donovan On Dec 16, 2014, at 11:21 AM, Toby Cox wrote: > try this >=20 > [function name=3Dget_XML] >=20 >=20 > = [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] >=20 > [/function][get_XML] >=20 >=20 >=20 >> 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 >=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 Donovan Brooke

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:

WebSTAR 2.1 freezes my Mac (1997) Uh...can someone help me out with the b10? (1997) cart limit (2002) Re:Emailer problem....still (1997) Show if time tags (1997) Re2: AAgghh!! Help, please. SSL strikes again. (1997) [table] tag (2003) [WebDNA] Searching Possible Bug (2009) [WebDNA] HMAC-SHA1 Encryption (2013) Interfacing WebMerchant to www.fedex.com (1997) MasterCounter Weirdness -Resolved! (1997) Duplicates (1998) webcat license???? (1997) Frustration with formulas.db (1999) International Orders (1998) Document Contains No Data msg (1997) Trouble starting WC under OSX (2001) WebCat2.0b15-to many nested [xx] tags (1997) Re:multiple digests, please stop (1997) populating a [table] (2004)