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