Re: [WebDNA] SOAP support

This WebDNA talk-list message is from

2014


It keeps the original formatting.
numero = 111779
interpreted = N
texte = --Apple-Mail=_8CC97FFE-4E49-4A2B-85AA-E1D88681CDCA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hey Ted I have been doing SOAP on Linux & Windows servers for many years. There are few tricks that I have come across that work depending on the = way the SOAP server is configured.. Firstly this is a great tool for getting your query correct http://www.soapui.org Secondly, quite often I have made these things work by putting in a = browser type and content-length. Your TCP is incorrect > POST http://wsf.cdyne.com/WeatherWS/Weather.asmx = Should be POST /WeatherWS/Weather.asmx = You also have a space after your text var name [text]SOAPRequest*you = have a space here*=3D[UnURL] Try using this: [tcpconnect host=3D[HO-HOSTURL]&port=3D[HO-HOSTPORT]&ssl=3DF][!] [/!][tcpsend skipheader=3DT]POST /[SERVICENAME]/[SERVICENAME].svc?wsdl = HTTP/1.0[UnURL]%0D%0A[/UnURL][!] [/!]Accept-Encoding: gzip,deflate[UnURL]%0D%0A[/UnURL][!] [/!]Content-Type: text/xml;charset=3DUTF-8[UnURL]%0D%0A[/UnURL][!] I used SOAP UI to get this next line, you may need to do the same [/!]SOAPAction: = http://tempuri.org/I[SERVICENAME]/GetData[UnURL]%0D%0A[/UnURL][!] [/!]User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT = 5.0)[UnURL]%0D%0A[/UnURL][!] [/!]Host: [HO-HOSTURL]:[HO-HOSTPORT][UnURL]%0D%0A[/UnURL][!] [/!]Content-Length: = [CountChars][SOAPRequest][/CountChars][UnURL]%0D%0A[/UnURL][!] [/!][UnURL]%0D%0A[/UnURL][!] [/!][SOAPRequest][UnURL]%0D%0A[/UnURL][!] [/!][UnURL]%0D%0A[/UnURL][!] [/!][/TCPSend][!] [/!][/tcpconnect] HO-HOSTURL=3Dwsf.cdyne.com HO-HOSTPORT=3D80 SERVICENAME=3DWeatherWS/Weather.asmx = Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au > On 17 Dec 2014, at 3:41 am, 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:xsd=3D"http://www.w3.org/2001/XMLSchema = " > 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 --Apple-Mail=_8CC97FFE-4E49-4A2B-85AA-E1D88681CDCA Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hey Ted

I = have been doing SOAP on Linux & Windows servers for many = years.

There = are  few tricks that I have come across that work depending on the = way the SOAP server is configured..

Firstly this is a great tool for = getting your query correct

Secondly, quite often I have made these = things work by putting in a browser type and content-length.

Your TCP is = incorrect
Should be POST /WeatherWS/Weather.asmx

You also have a space after your text = var name [text]SOAPRequest*you have a space here*=3D[UnURL]

Try using = this:

[tcpconnect = host=3D[HO-HOSTURL]&port=3D[HO-HOSTPORT]&ssl=3DF][!]
[/!][tcpsend skipheader=3DT]POST = /[SERVICENAME]/[SERVICENAME].svc?wsdl = HTTP/1.0[UnURL]%0D%0A[/UnURL][!]
[/!]Accept-Encoding:= gzip,deflate[UnURL]%0D%0A[/UnURL][!]
[/!]Content-Type: = text/xml;charset=3DUTF-8[UnURL]%0D%0A[/UnURL][!]

I used SOAP UI to get this next line, = you may need to do the same

[/!]User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows = NT 5.0)[UnURL]%0D%0A[/UnURL][!]
[/!]Host: = [HO-HOSTURL]:[HO-HOSTPORT][UnURL]%0D%0A[/UnURL][!]
[/!]Content-Length: = [CountChars][SOAPRequest][/CountChars][UnURL]%0D%0A[/UnURL][!]
[/!][UnURL]%0D%0A[/UnURL][!]
[/!][SOAPRequest][UnURL]%0D%0A[/UnURL][!]
[/!][UnURL]%0D%0A[/UnURL][!]
[/!][/TCPSend][!]
[/!][/tcpconnect]



HO-HOSTURL=3Dwsf.cdyne.com
HO-HOSTPORT=3D80
SERVICENAME=3DWeatherWS/Weather.asmx







Regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA
webdna@idfk.com.au




On 17 Dec 2014, at 3:41 am, mainlighting . <mainlighting@gmail.com> wrote:

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?
 
 [text]SOAPRequest = =3D[UnURL]%0D%0A[/UnURL][!]
[/!]<?xml version=3D"1.0" = encoding=3D"utf-8"?>[UnURL]%0D%0A[/UnURL][!]
[/!]<soap12:Envelope xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema"
xmlns:soap12=3D"http://schemas.xmlsoap.org/soap/envelope/">[UnURL]%0D%0A= [/UnURL][!]
[/!]<soap12:Body>[UnURL]%0D%0A[/UnURL][!]
[/!]<ns1:GetCityForecastByZIP xmlns:ns1=3D'http://ws.cdyne.com/WeatherWS/'>[!]
[/!]<ns1:ZIP>11743</ns1:ZIP>[!]
[/!]</ns1:GetCityForecastByZIP>[!]
[/!]</soap12:Body>[!]
[/!]</soap12:Envelope>[/text]
  
 [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][!]<= br class=3D""> [/!][/TCPSend]
 [/tcpconnect][/text]
 [!][showif = [p_returnVar]![raw][p_returnVar][/raw]]
  [text = scope=3Dglobal][p_returnVar]=3D[convertchars = table=3Dstrip][_SOAPResponse][/convertchars][/text]
 [/showif][/!]
 <br>[_SOAPResponse]
 
Ted
 

 
--------------------------------------------------------- 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

= --Apple-Mail=_8CC97FFE-4E49-4A2B-85AA-E1D88681CDCA-- 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)
--Apple-Mail=_8CC97FFE-4E49-4A2B-85AA-E1D88681CDCA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hey Ted I have been doing SOAP on Linux & Windows servers for many years. There are few tricks that I have come across that work depending on the = way the SOAP server is configured.. Firstly this is a great tool for getting your query correct http://www.soapui.org Secondly, quite often I have made these things work by putting in a = browser type and content-length. Your TCP is incorrect > POST http://wsf.cdyne.com/WeatherWS/Weather.asmx = Should be POST /WeatherWS/Weather.asmx = You also have a space after your text var name [text]SOAPRequest*you = have a space here*=3D[unurl] Try using this: [tcpconnect host=3D[HO-HOSTURL]&port=3D[HO-HOSTPORT]&ssl=3DF][!] [/!][tcpsend skipheader=3DT]POST /[SERVICENAME]/[SERVICENAME].svc?wsdl = HTTP/1.0[unurl]%0D%0A[/UnURL][!] [/!]Accept-Encoding: gzip,deflate[unurl]%0D%0A[/UnURL][!] [/!]Content-Type: text/xml;charset=3DUTF-8[unurl]%0D%0A[/UnURL][!] I used SOAP UI to get this next line, you may need to do the same [/!]SOAPAction: = http://tempuri.org/I[SERVICENAME]/GetData[unurl]%0D%0A[/UnURL][!] [/!]User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT = 5.0)[unurl]%0D%0A[/UnURL][!] [/!]Host: [HO-HOSTURL]:[HO-HOSTPORT][unurl]%0D%0A[/UnURL][!] [/!]Content-Length: = [countchars][SOAPRequest][/CountChars][unurl]%0D%0A[/UnURL][!] [/!][unurl]%0D%0A[/UnURL][!] [/!][SOAPRequest][unurl]%0D%0A[/UnURL][!] [/!][unurl]%0D%0A[/UnURL][!] [/!][/TCPSend][!] [/!][/tcpconnect] HO-HOSTURL=3Dwsf.cdyne.com HO-HOSTPORT=3D80 SERVICENAME=3DWeatherWS/Weather.asmx = Regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au > On 17 Dec 2014, at 3:41 am, 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:xsd=3D"http://www.w3.org/2001/XMLSchema = " > 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 --Apple-Mail=_8CC97FFE-4E49-4A2B-85AA-E1D88681CDCA Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hey Ted

I = have been doing SOAP on Linux & Windows servers for many = years.

There = are  few tricks that I have come across that work depending on the = way the SOAP server is configured..

Firstly this is a great tool for = getting your query correct

Secondly, quite often I have made these = things work by putting in a browser type and content-length.

Your TCP is = incorrect
Should be POST /WeatherWS/Weather.asmx

You also have a space after your text = var name [text]SOAPRequest*you have a space here*=3D[unurl]

Try using = this:

[tcpconnect = host=3D[HO-HOSTURL]&port=3D[HO-HOSTPORT]&ssl=3DF][!]
[/!][tcpsend skipheader=3DT]POST = /[SERVICENAME]/[SERVICENAME].svc?wsdl = HTTP/1.0[unurl]%0D%0A[/UnURL][!]
[/!]Accept-Encoding:= gzip,deflate[unurl]%0D%0A[/UnURL][!]
[/!]Content-Type: = text/xml;charset=3DUTF-8[unurl]%0D%0A[/UnURL][!]

I used SOAP UI to get this next line, = you may need to do the same
[/!]SOAPAction: [unurl]%0D%0A[/UnURL][" = class=3D"">http://tempuri.org/I[SERVICENAME]/GetData[unurl]%0D%0A[/UnURL][= !]

[/!]User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows = NT 5.0)[unurl]%0D%0A[/UnURL][!]
[/!]Host: = [HO-HOSTURL]:[HO-HOSTPORT][unurl]%0D%0A[/UnURL][!]
[/!]Content-Length: = [countchars][SOAPRequest][/CountChars][unurl]%0D%0A[/UnURL][!]
[/!][unurl]%0D%0A[/UnURL][!]
[/!][SOAPRequest][unurl]%0D%0A[/UnURL][!]
[/!][unurl]%0D%0A[/UnURL][!]
[/!][/TCPSend][!]
[/!][/tcpconnect]



HO-HOSTURL=3Dwsf.cdyne.com
HO-HOSTPORT=3D80
SERVICENAME=3DWeatherWS/Weather.asmx







Regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA




On 17 Dec 2014, at 3:41 am, mainlighting . <mainlighting@gmail.com> wrote:

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?
 
 [text]SOAPRequest = =3D[unurl]%0D%0A[/UnURL][!]
[/!]<?xml version=3D"1.0" = encoding=3D"utf-8"?>[unurl]%0D%0A[/UnURL][!]
[/!]<soap12:Envelope xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd=3D"http://www.w3.org/2001/XMLSchema"
xmlns:soap12=3D"http://schemas.xmlsoap.org/soap/envelope/">[unurl]%0D%0A= [/UnURL][!]
[/!]<soap12:Body>[unurl]%0D%0A[/UnURL][!]
[/!]<ns1:GetCityForecastByZIP xmlns:ns1=3D'http://ws.cdyne.com/WeatherWS/'>[!]
[/!]<ns1:ZIP>11743</ns1:ZIP>[!]
[/!]</ns1:GetCityForecastByZIP>[!]
[/!]</soap12:Body>[!]
[/!]</soap12:Envelope>[/text]
  
 [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][!]<= br class=3D""> [/!][/TCPSend]
 [/tcpconnect][/text]
 [!][showif = [p_returnVar]![raw][p_returnVar][/raw]]
  [text = scope=3Dglobal][p_returnVar]=3D[convertchars = table=3Dstrip][_SOAPResponse][/convertchars][/text]
 [/showif][/!]
 <br>[_SOAPResponse]
 
Ted
 

 
--------------------------------------------------------- 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

= --Apple-Mail=_8CC97FFE-4E49-4A2B-85AA-E1D88681CDCA-- Stuart Tremain

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:

Calculating a total (2000) webcat2b12 CGI -- Date comparisons (1997) webcat and webkitty votes needed (1997) Add to Cart & List of Products (1997) Introduction/Tutorial/QuickStart (1997) Listfiles and nothing found (2001) Pull Down Search (2000) unable to launch acgi in WebCat (1997) OT: javascript help (2003) WebCat2b13MacPlugin - nested [xxx] contexts (1997) webcat & permissions (1999) Exclamation point (1997) UPDATE PROBLEM (1997) 2.0 Beta (1997) Country & Ship-to address & other fields ? (1997) ACGI processing for .html (1997) Help name our technology! (1997) Credit Card Number checking (1997) more trouble with [showif] in [search] = busted [shownext] (2000) Quick Question (1997)