Index
2015-02-22 13:57Jeff Johnson : Problem with web service
2015-02-22 14:58Jeff Johnson : Re: Problem with web service
2015-02-23 08:50Tracy Pearson : RE: Problem with web service
2015-02-23 13:18Jeff Johnson : Re: Problem with web service
2015-02-23 13:44Tracy Pearson : RE: Problem with web service
2015-02-23 15:03Jeff Johnson : Re: Problem with web service
2015-02-23 15:17Tracy Pearson : RE: Problem with web service
2015-02-23 15:22Jeff Johnson : Re: Problem with web service
Back to top
Problem with web service

Author: Jeff Johnson

Posted: 2015-02-22 13:57:54   Link

Tracy: you helped me with this. Here is your code that works:

LOCAL oHttp as MSXML2.ServerXMLHTTP30

oHttp = CREATEOBJECT('msxml2.serverxmlhttp.3.0')

oHttp.open("post",

"http://support.itsonboarding.com/OnBoarding.svc", .F.)

oHttp.setRequestHeader("Accept", "text/xml")

oHttp.setRequestHeader("Content-Type", "text/xml;charset=UTF-8")

oHttp.setRequestHeader("SOAPAction",

"http://tempuri.org/IOnBoarding/GetInsurance")

TEXT TO postText NOSHOW

<soapenv:Envelope

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:tem="" target="_blank">http://tempuri.org/">

<soapenv:Header/>

<soapenv:Body>

<tem:GetInsurance>

<tem:UserName>JS</tem:UserName>

<tem:Password>pa</tem:Password>

<tem:Token>hIzPN7YwfAsPpSQQ1HV2uGAU2IJTgigbn0R6yJuW959Ck6Yst4z3hg==</tem:Token>

</tem:GetInsurance>

</soapenv:Body>

</soapenv:Envelope>

ENDTEXT

oHttp.send(postText)

x = oHttp.responsexml.xml

I need to change the token each time so

Here is my code that does not work:

LOCAL oHttp as MSXML2.ServerXMLHTTP30

oHttp = CREATEOBJECT('msxml2.serverxmlhttp.3.0')

oHttp.open("post",

"http://support.itsonboarding.com/OnBoarding.svc", .F.)

oHttp.setRequestHeader("Accept", "text/xml")

oHttp.setRequestHeader("Content-Type", "text/xml;charset=UTF-8")

oHttp.setRequestHeader("SOAPAction",

"http://tempuri.org/IOnBoarding/GetInsurance")

postText = ''

postText = postText + '<soapenv:Envelope

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:tem="'" target="_blank">http://tempuri.org/">' + crlf

postText = postText + ' <soapenv:Header/>' + crlf

postText = postText + ' <soapenv:Body>' + crlf

postText = postText + ' <tem:GetInsurance>' + crlf

postText = postText + ' <tem:UserName>JS</tem:UserName>' + crlf

postText = postText + ' <tem:Password>pa</tem:Password>' + crlf

postText = postText + ' <tem:Token>' + lctoken +

'</tem:Token>' + crlf

postText = postText + ' </tem:GetInsurance>' + crlf

postText = postText + ' </soapenv:Body>' + crlf

postText = postText + '</soapenv:Envelope>'

oHttp.send(postText)

x = oHttp.responsexml.xml

I tried it with crlf = chr(13) + chr(10) and also crlf = ''

Is the line delimiter wrong or what am I missing. I need to put that

token in each call.

--

Jeff

Jeff Johnson

jeff@san-dc.com

SanDC, Inc.

(623) 582-0323

SMS (602) 717-5476

Fax 623-869-0675

www.san-dc.com

www.cremationtracker.com

www.agentrelationshipmanager.com

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/54EA34C2.9080502@san-dc.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2015 Jeff Johnson
Back to top
Re: Problem with web service

Author: Jeff Johnson

Posted: 2015-02-22 14:58:23   Link

Never mind. I was not allowing enough space for the token.

On 2/22/2015 12:57 PM, Jeff Johnson wrote:

> Tracy: you helped me with this. Here is your code that works:

>

> LOCAL oHttp as MSXML2.ServerXMLHTTP30

> oHttp = CREATEOBJECT('msxml2.serverxmlhttp.3.0')

> oHttp.open("post",

> "http://support.itsonboarding.com/OnBoarding.svc", .F.)

> oHttp.setRequestHeader("Accept", "text/xml")

> oHttp.setRequestHeader("Content-Type", "text/xml;charset=UTF-8")

> oHttp.setRequestHeader("SOAPAction",

> "http://tempuri.org/IOnBoarding/GetInsurance")

>

> TEXT TO postText NOSHOW

> <soapenv:Envelope

> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

> xmlns:tem="" target="_blank">http://tempuri.org/">

> <soapenv:Header/>

> <soapenv:Body>

> <tem:GetInsurance>

> <tem:UserName>JS</tem:UserName>

> <tem:Password>pa</tem:Password>

> <tem:Token>hIzPN7YwfAsPpSQQ1HV2uGAU2IJTgigbn0R6yJuW959Ck6Yst4z3hg==</tem:Token>

>

> </tem:GetInsurance>

> </soapenv:Body>

> </soapenv:Envelope>

> ENDTEXT

>

> oHttp.send(postText)

> x = oHttp.responsexml.xml

>

> I need to change the token each time so

> Here is my code that does not work:

>

> LOCAL oHttp as MSXML2.ServerXMLHTTP30

> oHttp = CREATEOBJECT('msxml2.serverxmlhttp.3.0')

> oHttp.open("post",

> "http://support.itsonboarding.com/OnBoarding.svc", .F.)

> oHttp.setRequestHeader("Accept", "text/xml")

> oHttp.setRequestHeader("Content-Type", "text/xml;charset=UTF-8")

> oHttp.setRequestHeader("SOAPAction",

> "http://tempuri.org/IOnBoarding/GetInsurance")

>

> postText = ''

> postText = postText + '<soapenv:Envelope

> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

> xmlns:tem="'" target="_blank">http://tempuri.org/">' + crlf

> postText = postText + ' <soapenv:Header/>' + crlf

> postText = postText + ' <soapenv:Body>' + crlf

> postText = postText + ' <tem:GetInsurance>' + crlf

> postText = postText + ' <tem:UserName>JS</tem:UserName>' + crlf

> postText = postText + ' <tem:Password>pa</tem:Password>' + crlf

> postText = postText + ' <tem:Token>' + lctoken +

> '</tem:Token>' + crlf

> postText = postText + ' </tem:GetInsurance>' + crlf

> postText = postText + ' </soapenv:Body>' + crlf

> postText = postText + '</soapenv:Envelope>'

>

> oHttp.send(postText)

> x = oHttp.responsexml.xml

>

> I tried it with crlf = chr(13) + chr(10) and also crlf = ''

>

> Is the line delimiter wrong or what am I missing. I need to put that

> token in each call.

>

--

Jeff

Jeff Johnson

jeff@san-dc.com

SanDC, Inc.

(623) 582-0323

SMS (602) 717-5476

Fax 623-869-0675

www.san-dc.com

www.cremationtracker.com

www.agentrelationshipmanager.com

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/54EA42EF.10109@san-dc.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2015 Jeff Johnson
Back to top
RE: Problem with web service

Author: Tracy Pearson

Posted: 2015-02-23 08:50:19   Link

Jeff Johnson wrote on 2015-02-22:

> Never mind. I was not allowing enough space for the token.

>

> On 2/22/2015 12:57 PM, Jeff Johnson wrote:

> Tracy: you helped me with this. Here is your code that works:

>

Jeff,

Glad to see you find the problem.

Tracy Pearson

PowerChurch Software

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/000601d04f78$0b32c1d0$21984570$@powerchurch.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2015 Tracy Pearson
Back to top
Re: Problem with web service

Author: Jeff Johnson

Posted: 2015-02-23 13:18:48   Link

On 2/23/2015 7:50 AM, Tracy Pearson wrote:

> Jeff Johnson wrote on 2015-02-22:

>> Never mind. I was not allowing enough space for the token.

>>

>> On 2/22/2015 12:57 PM, Jeff Johnson wrote:

>> Tracy: you helped me with this. Here is your code that works:

>>

> Jeff,

>

> Glad to see you find the problem.

>

> Tracy Pearson

> PowerChurch Software

Tracy: A very weird thing is happening:

LOCAL oHttp as MSXML2.ServerXMLHTTP30

oHttp = CREATEOBJECT('msxml2.serverxmlhttp.3.0')

oHttp.open("post",

"http://support.itsonboarding.com/OnBoarding.svc", .F.)

oHttp.setRequestHeader("Accept", "text/xml")

oHttp.setRequestHeader("Content-Type", "text/xml;charset=UTF-8")

oHttp.setRequestHeader("SOAPAction",

"http://tempuri.org/IOnBoarding/GetInsurance")

postText = ''

postText = postText + '<soapenv:Envelope

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:tem="'" target="_blank">http://tempuri.org/">' + crlf

postText = postText + ' <soapenv:Header/>' + crlf

postText = postText + ' <soapenv:Body>' + crlf

postText = postText + ' <tem:GetInsurance>' + crlf

postText = postText + ' <tem:UserName>JS</tem:UserName>' + crlf

postText = postText + ' <tem:Password>pa</tem:Password>' + crlf

postText = postText + ' <tem:Token>' + lctoken +

'</tem:Token>' + crlf

postText = postText + ' </tem:GetInsurance>' + crlf

postText = postText + ' </soapenv:Body>' + crlf

postText = postText + '</soapenv:Envelope>'

oHttp.send(postText)

lcxml = oHttp.responsexml.xml

if the lctoken has a "/" in it this code never runs!

Any ideas?

>

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/54EB7D18.5090508@san-dc.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2015 Jeff Johnson
Back to top
RE: Problem with web service

Author: Tracy Pearson

Posted: 2015-02-23 13:44:52   Link

Jeff Johnson wrote on 2015-02-23:

>

> if the lctoken has a "/" in it this code never runs!

>

> Any ideas?

>

Jeff,

What are the results of these I added after the send?

oHttp.send(postText)

?oHttp.readyState

?oHttp.status

?oHttp.statusText

lcxml = oHttp.responsexml.xml

Tracy Pearson

PowerChurch Software

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/000c01d04fa1$31d4c120$957e4360$@powerchurch.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2015 Tracy Pearson
Back to top
Re: Problem with web service

Author: Jeff Johnson

Posted: 2015-02-23 15:03:11   Link

On 2/23/2015 12:44 PM, Tracy Pearson wrote:

> Jeff Johnson wrote on 2015-02-23:

>> if the lctoken has a "/" in it this code never runs!

>>

>> Any ideas?

>>

> Jeff,

>

> What are the results of these I added after the send?

>

> oHttp.send(postText)

> ?oHttp.readyState

> ?oHttp.status

> ?oHttp.statusText

> lcxml = oHttp.responsexml.xml

>

> Tracy Pearson

> PowerChurch Software

>

>

They all say the same thing. readyState = 4, status = 200, and

statusText = 'OK'

I still get no response on the ones with slashes in them.

--

Jeff

Jeff Johnson

jeff@san-dc.com

SanDC, Inc.

(623) 582-0323

SMS (602) 717-5476

Fax 623-869-0675

www.san-dc.com

www.cremationtracker.com

www.agentrelationshipmanager.com

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/54EB958F.60602@san-dc.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2015 Jeff Johnson
Back to top
RE: Problem with web service

Author: Tracy Pearson

Posted: 2015-02-23 15:17:37   Link

Jeff Johnson wrote on 2015-02-23:

>

> On 2/23/2015 12:44 PM, Tracy Pearson wrote:

> Jeff Johnson wrote on 2015-02-23:

>>> if the lctoken has a "/" in it this code never runs!

>>>

>>> Any ideas?

>> Jeff,

>>

>> What are the results of these I added after the send?

>>

>> oHttp.send(postText)

>> ?oHttp.readyState

>> ?oHttp.status

>> ?oHttp.statusText

>> lcxml = oHttp.responsexml.xml

>> Tracy Pearson

>> PowerChurch Software

>>

>>

>>

> They all say the same thing. readyState = 4, status = 200, and

> statusText = 'OK'

>

> I still get no response on the ones with slashes in them.

Jeff,

Check the responseText value to see if there is something other than XML.

Tracy Pearson

PowerChurch Software

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/000d01d04fae$26837e80$738a7b80$@powerchurch.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2015 Tracy Pearson
Back to top
Re: Problem with web service

Author: Jeff Johnson

Posted: 2015-02-23 15:22:19   Link

On 2/23/2015 2:17 PM, Tracy Pearson wrote:

> Jeff Johnson wrote on 2015-02-23:

>> On 2/23/2015 12:44 PM, Tracy Pearson wrote:

>> Jeff Johnson wrote on 2015-02-23:

>>>> if the lctoken has a "/" in it this code never runs!

>>>>

>>>> Any ideas?

>>> Jeff,

>>>

>>> What are the results of these I added after the send?

>>>

>>> oHttp.send(postText)

>>> ?oHttp.readyState

>>> ?oHttp.status

>>> ?oHttp.statusText

>>> lcxml = oHttp.responsexml.xml

>>> Tracy Pearson

>>> PowerChurch Software

>>>

>>>

>>>

>> They all say the same thing. readyState = 4, status = 200, and

>> statusText = 'OK'

>>

>> I still get no response on the ones with slashes in them.

> Jeff,

>

> Check the responseText value to see if there is something other than XML.

>

> Tracy Pearson

> PowerChurch Software

>

>

Tracy, I will check that but I noticed that the tokens return false when

I '/' $ token. It does not see the slash in the token but it shows

everywhere else

--

Jeff

Jeff Johnson

jeff@san-dc.com

SanDC, Inc.

(623) 582-0323

SMS (602) 717-5476

Fax 623-869-0675

www.san-dc.com

www.cremationtracker.com

www.agentrelationshipmanager.com

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox

OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/54EB9A0B.9020405@san-dc.com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2015 Jeff Johnson