Hi !
I'm working on a new webservice in VFP9 to send claims to a clearinghouse. Done
webservices with insurance companies before and it was a piece of cake
using westwind connection since everything was adding parameters to the
oSoap, sending the request and receiving a response. But this time I need a Webservices/Webconnection
expert cause can't figure out a section which says AuthenticationHeader which goes at the
beginning of the request and I know is the username and password part but
haven't found a way to send this before the other parameters. They send me a
code sample as follows:
**********************************TEST*CODE****************************************
Dim proxy As New svcServiceReference.EdiFileTransferSoapClient()
Dim AuthenticationHeader As svcServiceReference.AuthenticationHeader
AuthenticationHeader = New svcServiceReference.AuthenticationHeader
AuthenticationHeader.Username = "Username1"
AuthenticationHeader.Password = "Password1"
'file
Dim file As New svcServiceReference.EdiFile
file.FileName = "testfile"
Dim strFilePath = "C:\yourfiles\yourfile.txt"
Dim strBody = ""
Dim rdr As New StreamReader(strFilePath)
strBody = rdr.ReadToEnd()
rdr.Close()
file.FileBody = New String() {strBody}
file.RowDelimiter = "~"
Dim response As New svcServiceReference.Result
'Dim liMsgIDs As New List(Of String)
'liMsgIDs.Add("1")
'liMsgIDs.Add("2")
'liMsgIDs.Add("3")
'Dim strMsgIDs As String()
'strMsgIDs = liMsgIDs.ToArray()
'response = proxy.MarkFilesAsDownloaded(AuthenticationHeader, strMsgIDs)
'file.FileType = "837FILE"
'response = proxy.SendCustomFile(AuthenticationHeader, file)
response = proxy.SendX12File(AuthenticationHeader, file.FileName, file.FileBody(0), file.FileDate, True)
Tried using the Header in oHTTP and all the techniques regarding complex parameters in the help files but receive the same response "Unable to Authenticate" and right now trying RawXML for this section as follows:
oHTTP = CREATE("wwHTTP")
oHTTP.nConnectTimeout = 360
oSOAP = CREATE("wwSOAP")
oSOAP.oHTTP = oHTTP
lcRequest = "<AuthenticationHeader>" + ;
lcUserPassword + ;
"</AuthenticationHeader>"
oSOAP.AddParameter("AuthenticationHeader", lcRequest, "RawXML")
oSOAP.AddParameter("Filename", lcFile)
oSOAP.AddParameter("Body", lcFileBody)
oSOAP.AddParameter("FileDate", lcFileDate)
lcStringXML = oSOAP.CallWSDLMethod("SendX12File", lcURL)
I ran out of ideas, Is there any guru out there that may help me figure out the Authentication Header section?
Regards,
AiR
Aida I. Rivera-Ben
Try posting on west-wind.com on the threads section.
John Harvey
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/015a01ca864a$3f2b61b0$bd822510$@harvey@shelbynet.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.
air@abac.com wrote:
> John:
>
> Thanks to the excellent suggestion!
>
> Just post it on the West-Wind Threads section and hope to
> find the answer soon since I know they did this extremely
> hard on purpose to have the competitive advantage and
> pirate our clients before we can figure it out.
Hi Aida,
"They"? The clearinghouse competes with you? Or their "security vendor"
does?
--
Regards,
Pete
http://elect-pete-theisen.com/
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/4B364FC2.6070205@verizon.net
** 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.
Pete:
Unfortunately this clearinghouse (which is the only one here now)
strangle and took off the market the other clearinghouses and
bought three of the largest medical software companies. So they now
compete directly with us the smaller software companies (less than
2000 hundred clients). Our clients must use their services (there is no
other option) the majority of the local insurance companies receive
exclusively through them.
They have a software marketing display in all the web pages with all the
features that our clients see each and every time we enter their website,
even though
they told us they won't do this in our last meeting, 8 months ago. I bet
you anything that
very soon they will display this particular feature on their software
marketing campaign,
and our clients will begin to ask us for this, right now we are sending
using a small communications software that they provide for free, but once
they
have sending directly from their programs running on their clients, they
could easily
pull the plug on the communications program and leave us behind. The only
thing that
keep us small companies going is to have the features and all new EDI
changes before them.
So what else could it be?
Regards,
AiR
Aida I. Rivera-Ben
oops, sorry, I have a typo here is less than 200 clients.
AiR
Aida I. Rivera-Ben
air@abac.com wrote:
> Pete:
>
> Unfortunately this clearinghouse (which is the only one here now)
> strangle and took off the market the other clearinghouses and
> bought three of the largest medical software companies.
Hi Aida,
Is Puerto Rico not subject to US law? This is anti-competitive behavior
which may violate the Sherman and Clayton acts.
--
Regards,
Pete
http://elect-pete-theisen.com/
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/4B3661E2.2040806@verizon.net
** 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.
Author: <kamcginnis@gmail.com>
Posted: 2009-12-26 14:41:19 Link
It looks like you are trying to use SOAP. Is that what they are using? I haven't seen SOAP used in new projects in a
while.
If you are sending ANSI X.12 transactions sets such as the 837 they may want something like the code below. It could be
used for sending text files of any size.
We did a credit card project with Global Payments that used a different authentication format than shown below.
What is the name of the clearinghouse? What is the name of the payer? (Medicare/medicaid?)
pcUsername = "username"
pcPassword = "password"
tcMessage = your file
pc_URL = https://www.clearinghouse.com
Try
Local loHTTP As MSXML3.ServerXMLHTTP
loHTTP = Createobject('MSXML2.ServerXMLHTTP.6.0')
loHTTP.SetTimeouts(600000,600000,600000,600000)
With loHTTP
.Open('POST', pc_URL, .F., pcUsername, pcPassword )
.setRequestHeader("Content-Type","text/xml")
.Send(tcMessage)
----- Original Message -----
From: <air@abac.com>
To: "Profox List" <profox@leafe.com>
Sent: Saturday, December 26, 2009 8:08 AM
Subject: Webservices Authentication Header
Hi !
I'm working on a new webservice in VFP9 to send claims to a clearinghouse. Done
webservices with insurance companies before and it was a piece of cake
using westwind connection since everything was adding parameters to the
oSoap, sending the request and receiving a response. But this time I need a Webservices/Webconnection
expert cause can't figure out a section which says AuthenticationHeader which goes at the
beginning of the request and I know is the username and password part but
haven't found a way to send this before the other parameters. They send me a
code sample as follows:
**********************************TEST*CODE****************************************
Dim proxy As New svcServiceReference.EdiFileTransferSoapClient()
Dim AuthenticationHeader As svcServiceReference.AuthenticationHeader
AuthenticationHeader = New svcServiceReference.AuthenticationHeader
AuthenticationHeader.Username = "Username1"
AuthenticationHeader.Password = "Password1"
'file
Dim file As New svcServiceReference.EdiFile
file.FileName = "testfile"
Dim strFilePath = "C:\yourfiles\yourfile.txt"
Dim strBody = ""
Dim rdr As New StreamReader(strFilePath)
strBody = rdr.ReadToEnd()
rdr.Close()
file.FileBody = New String() {strBody}
file.RowDelimiter = "~"
Dim response As New svcServiceReference.Result
'Dim liMsgIDs As New List(Of String)
'liMsgIDs.Add("1")
'liMsgIDs.Add("2")
'liMsgIDs.Add("3")
'Dim strMsgIDs As String()
'strMsgIDs = liMsgIDs.ToArray()
'response = proxy.MarkFilesAsDownloaded(AuthenticationHeader, strMsgIDs)
'file.FileType = "837FILE"
'response = proxy.SendCustomFile(AuthenticationHeader, file)
response = proxy.SendX12File(AuthenticationHeader, file.FileName, file.FileBody(0), file.FileDate, True)
Tried using the Header in oHTTP and all the techniques regarding complex parameters in the help files but receive the
same response "Unable to Authenticate" and right now trying RawXML for this section as follows:
oHTTP = CREATE("wwHTTP")
oHTTP.nConnectTimeout = 360
oSOAP = CREATE("wwSOAP")
oSOAP.oHTTP = oHTTP
lcRequest = "<AuthenticationHeader>" + ;
lcUserPassword + ;
"</AuthenticationHeader>"
oSOAP.AddParameter("AuthenticationHeader", lcRequest, "RawXML")
oSOAP.AddParameter("Filename", lcFile)
oSOAP.AddParameter("Body", lcFileBody)
oSOAP.AddParameter("FileDate", lcFileDate)
lcStringXML = oSOAP.CallWSDLMethod("SendX12File", lcURL)
I ran out of ideas, Is there any guru out there that may help me figure out the Authentication Header section?
Regards,
AiR
Aida I. Rivera-Ben
Author: <kamcginnis@gmail.com>
Posted: 2009-12-26 14:46:36 Link
The medical billing software market has thousands of players so buying 3 would not be a monopoly or anti-competitive. It
would simply be a way of getting into the business. This market is overdue for a wash out, but I have been saying that
for many years.
----- Original Message -----
From: "Pete Theisen" <petetheisen@verizon.net>
To: "ProFox Email List" <profox@leafe.com>
Sent: Saturday, December 26, 2009 11:20 AM
Subject: Re: Webservices Authentication Header
air@abac.com wrote:
> Pete:
>
> Unfortunately this clearinghouse (which is the only one here now)
> strangle and took off the market the other clearinghouses and
> bought three of the largest medical software companies.
Hi Aida,
Is Puerto Rico not subject to US law? This is anti-competitive behavior
which may violate the Sherman and Clayton acts.
--
Regards,
Pete
http://elect-pete-theisen.com/
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/0af801ca8664$24b08440$7a00a8c0@w2k3s02
** 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.
I've got a new project, working with the State of TN, which uses SOAP. I am
using an open source tool for testing http://www.soapui.org/ . It might help
in this situation too.
John Harvey
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/044701ca866c$1c3696d0$54a3c470$@harvey@shelbynet.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.
kamcginnis@gmail.com wrote:
> The medical billing software market has thousands of players so buying 3 would not be a monopoly or anti-competitive. It
> would simply be a way of getting into the business. This market is overdue for a wash out, but I have been saying that
> for many years.
Hi Kam,
The software companies are one thing, but the "one" clearinghouse for
all of Puerto Rico should be a concern. Now that the clearinghouse is
also trying to force out the software companies, - well, that is a
little too Micro$oft.
>> Unfortunately this clearinghouse (which is the only one here now)
>> strangle and took off the market the other clearinghouses and
>> bought three of the largest medical software companies.
> Is Puerto Rico not subject to US law? This is anti-competitive behavior
> which may violate the Sherman and Clayton acts.
--
Regards,
Pete
http://elect-pete-theisen.com/
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/4B3686B5.9030506@verizon.net
** 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.