Quantcast
Channel: West Wind Message Board Messages
Viewing all 10393 articles
Browse latest View live

Re: Problem calling a form with parameters

$
0
0
Re: Problem calling a form with parameters
FoxInCloud
Re: Problem calling a form with parameters
Jan. 22, 2013
08:27 am
3P50I4YWGShow this entire thread in new window
With RecordSource = "" it works...

Thanks



Please try
.RecordSource = ""
before
SELECT ... into Tab

As the form is already instantiated, with
.RecordSource = "Tab"
SELECT ... into Tab
makes the grid loose its columns
(VFP behavior)

LPARAMETERS nButton, nShift, nXcoord, nYcoordIF (Type('m.thisForm.wlHTMLgen') == 'L' AND m.thisForm.wlHTMLgen)RETURN .T.ELSELocal cValue, cTipoTabLocal cObject cObject = "This.Parent." + This.ControlName + ".Value" cValue = &cObject cObject = "This.Parent." + This.ControlName + ".TipoTab" cTipo = &cObjectexternalform FormTagen FormTaGen = thisform.wForm('_form_tagen',"wFormCallBack",cTipo,cValue)ENDIF



can you post the instruction b which you call this form?
thanks


I have one class (form's based) that receive as parameter the table i have to opend and show in a grid......or better i receive the kind of a table and on that table i have to make a Select ....From...Where... and show in the grid the resulting cursor...

I put all the code in the Init method, but the second time i call the form the grid is empty......

In the Init my code is this:

Lparameters cTipoTab, cValue, cOrderIfPcount()>0DoDefault()This.TipoTab = cTipoTab Use wdfPath + "TaGen" In 0Select Code, Des1 From TaGen Where Tipo = This.TipoTab Order By Code Into Cursor Tab ReadWrite Use In TaGenWith .Grid1 .RecordSource = "Tab" .Column1.ControlSource = "Tab.Code" .Column2.ControlSource = "Tab.Des1" .SetFocusEndWithEndif





Problem with close button...

$
0
0
Problem with close button...
FoxInCloud
Problem with close button...
Jan. 22, 2013
08:55 am
3P50J4OVEShow this entire thread in new window
Gratar Image based on email address
From:Michele
To:thn@foxincloud.com
I have paste the button for close the forms....In every form i use it there are no problems. In the last i'm working the button is shown like in this image: it has an anomalous caption and if i click on it nothing happens...


Re: Problem with close button...

$
0
0
Re: Problem with close button...
FoxInCloud
Re: Problem with close button...
Jan. 22, 2013
08:58 am
3P50J928GShow this entire thread in new window
Gratar Image based on email address
From:Thierry Nivelet (FoxInCloud)
To:Michele
please post HTML for this form


I have paste the button for close the forms....In every form i use it there are no problems. In the last i'm working the button is shown like in this image: it has an anomalous caption and if i click on it nothing happens...


Thierry Nivelet (FoxInCloud)
Never explain, never complain (Queen Elizabeth II)

Re: Problem with close button...

$
0
0
Re: Problem with close button...
FoxInCloud
Re: Problem with close button...
Jan. 22, 2013
09:05 am
3P50JHV64Show this entire thread in new window
<!-- Generated on 22/01/2013 18:04:15 by FoxInCloud version 1.26 -->><!-- Rendered in 128 ms -->><divid="_form_tagen"class="form awfrm mobfrm _form _form_tagen"tabindex="200"><!-- Rendered in 010 ms -->><imgid="_form_tagen-waitpic"class="image awimg"src="Images/indicator_remembermilk_orange.gif"alt="indicator_remembermilk_orange"style="display:none;" /><!-- Rendered in 058 ms -->><divid="_form_tagen-grid1"class="grid awgrd mobgrd _grid"style="display:block;"onblur="FoxInCloud.DOMEvent(event)" readonly="readonly"</div><!-- Rendered in 021 ms -->>


please post HTML for this form


I have paste the button for close the forms....In every form i use it there are no problems. In the last i'm working the button is shown like in this image: it has an anomalous caption and if i click on it nothing happens...


Re: Problem with close button...

$
0
0
Re: Problem with close button...
FoxInCloud
Re: Problem with close button...
Jan. 22, 2013
09:20 am
3P50K1ECLShow this entire thread in new window
Gratar Image based on email address
From:Thierry Nivelet (FoxInCloud)
To:Michele
Can't be read in HTML format ... can you post it inside 'pre' tags?
example


<!-- Generated on 22/01/2013 18:04:15 by FoxInCloud version 1.26 -->><!-- Rendered in 128 ms -->><divid="_form_tagen"class="form awfrm mobfrm _form _form_tagen"tabindex="200"><!-- Rendered in 010 ms -->><imgid="_form_tagen-waitpic"class="image awimg"src="Images/indicator_remembermilk_orange.gif"alt="indicator_remembermilk_orange"style="display:none;" /><!-- Rendered in 058 ms -->><divid="_form_tagen-grid1"class="grid awgrd mobgrd _grid"style="display:block;"onblur="FoxInCloud.DOMEvent(event)" readonly="readonly"</div><!-- Rendered in 021 ms -->>


please post HTML for this form


I have paste the button for close the forms....In every form i use it there are no problems. In the last i'm working the button is shown like in this image: it has an anomalous caption and if i click on it nothing happens...




Thierry Nivelet (FoxInCloud)
Never explain, never complain (Queen Elizabeth II)

Re: Problem with close button...

$
0
0
Re: Problem with close button...
FoxInCloud
Re: Problem with close button...
Jan. 22, 2013
09:25 am
3P50K76BVShow this entire thread in new window
Gratar Image based on email address
From:Thierry Nivelet (FoxInCloud)
To:Michele
this might be the clue
MODIFY COMMAND awPublic

Replace
RETURN["] + Strtran(Strtran(Iif(Vartype(m.tlTrim) == 'L' AND m.tlTrim, Trim(m.tuData), m.tuData), '\', '\\'), ["], [\"]) + ["]

by
RETURN['] + Strtran(Strtran(Iif(Vartype(m.tlTrim) == 'L' AND m.tlTrim, Trim(m.tuData), m.tuData), '\', '\\'), ['], [\']) + [']



<!-- Generated on 22/01/2013 18:04:15 by FoxInCloud version 1.26 -->><!-- Rendered in 128 ms -->><divid="_form_tagen"class="form awfrm mobfrm _form _form_tagen"tabindex="200"><!-- Rendered in 010 ms -->><imgid="_form_tagen-waitpic"class="image awimg"src="Images/indicator_remembermilk_orange.gif"alt="indicator_remembermilk_orange"style="display:none;" /><!-- Rendered in 058 ms -->><divid="_form_tagen-grid1"class="grid awgrd mobgrd _grid"style="display:block;"onblur="FoxInCloud.DOMEvent(event)" readonly="readonly"</div><!-- Rendered in 021 ms -->>


please post HTML for this form


I have paste the button for close the forms....In every form i use it there are no problems. In the last i'm working the button is shown like in this image: it has an anomalous caption and if i click on it nothing happens...




Thierry Nivelet (FoxInCloud)
Never explain, never complain (Queen Elizabeth II)

Re: Server Unloading After Every Hit

$
0
0
Re: Server Unloading After Every Hit
Web Connection
Re: Server Unloading After Every Hit
Jan. 22, 2013
01:10 pm
3P50S9AKAShow this entire thread in new window
Gratar Image based on email address
From:Kirk Allen
To:Rick Strahl
Yeah, I don't get the dual loading either. And unfortunately I broke the cardinal rule of troubleshooting.... I changed several things at once so I'm not even sure how I fixed it.

It's stable now, and working as expected, so thanks!

Kirk



If you are using both isapi and .net handlers you will get two sets of com objects running one for each messaging mechanism. So, no you should never mix isapi and .net modules in your script maps - use one or the other.

That doesn't explain the dual loading on load server though... But it would definitely account for extra instances when running admin and app links.

+++ Rick ---


...And now it works!

So, I think I figured out part of the problem. In my web.config file I was using the ISAPI script mapping for my server, and the Managed Handler for the Admin (.wc) functions:

<handlers><addname="mi wc script map" path="*.mi" verb="*" modules="IsapiModule" scriptProcessor="d:\Merchinfo\bin\wc.dll" resourceType="Unspecified" /><addname="wc web connection handler" path="*.wc" verb="*" type="Westwind.WebConnection.WebConnectionHandler" resourceType="Unspecified" preCondition="integratedMode" /></handlers>


Is it possible that the two different methods weren't "talking" to each other? In other words, the Admin page never "saw" the servers started from a hit to the site (which invoked the ISAPI script mapping) and so would try to load it's own servers, and vice versa.


I changed the .wc to a script map and now it works:

<handlers><addname="mi admin script main" path="*.wc" verb="*" modules="IsapiModule" scriptProcessor="d:\merchinfo\bin\wc.dll" resourceType="Unspecified" /><addname="mi wc script map" path="*.mi" verb="*" modules="IsapiModule" scriptProcessor="d:\merchinfo\bin\wc.dll" resourceType="Unspecified" /></handlers>


So, is it safe to say that you can't use ISAPI script mapping and the managed handler in the same site?



Kirk,

I've seen the unload/reload behavior myself, and I think I know why that's happening. But I've never seen the unloading then reloading after the initial servers have been loaded...

The load/unload twice scenario happens because IIS effectively sends a 401 Authorization request server followed by an automatic logon request - resulting in two consecutive requests that actually succeed and go through the pipeline. Because Load first unloads, then reloads servers you see the servers flickering up and down as you describe. There's not much I can do about that unfortunately because the check atually goes through in the initial 401 authentication request and then fires again. I think this is made worse when you use Windows authentication - with basic authentication this problem is not as pronounced (although I've seen it happen there too).

In any case this double loading shouldn't really have any adverse effects - once the servers load up processing should be just fine... if your servers were running invisibly (ie. not using INTERACTIVE COM impersonation) you'd never know :-)

+++ Rick ---


No, I never called the DLL directly. I was referring to the Web Connection .Net Handler. I was trying to use that at first, and the weird loading and unloading was happening. Then I switched to the "old" ISAPI method of script maps, which appeared to work at first, but now even that's not working.

There must be some corruption, because now when I load the servers from the Admin page, they load, unload and then re-load. I then have 2 copies of my server running (which is what is specified in my web.config file). Then, on my first hit to the actual site both servers UNLOAD, then only one copy re-loads. So now there's only ONE server running. Then, on the next hit, a SECOND server loads and stays loaded. After that, I have two servers running, and the site works as expected.

Maybe my IIS is hosed?

Here's my web.config file, in case it helps.

<?xmlversion="1.0" encoding="UTF-8"?><configuration><configSections><sectionname="webConnectionConfiguration" type="System.Configuration.NameValueSectionHandler,System,Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /><sectionname="webConnectionErrorPages" type="System.Configuration.NameValueSectionHandler,System,Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /></configSections><system.webServer><handlers><addname="mi wc script map" path="*.mi" verb="*" modules="IsapiModule" scriptProcessor="d:\Merchinfo\bin\wc.dll" resourceType="Unspecified" /><addname="wc web connection handler" path="*.wc" verb="*" type="Westwind.WebConnection.WebConnectionHandler" resourceType="Unspecified" preCondition="integratedMode" /></handlers><defaultDocument><files><clear /><addvalue="index.html" /><addvalue="Default.htm" /><addvalue="Default.asp" /><addvalue="index.htm" /><addvalue="iisstart.htm" /><addvalue="default.aspx" /></files></defaultDocument></system.webServer><webConnectionConfiguration><addkey="Timeout" value="60" /><addkey="PostBufferLimit" value="0" /><addkey="TempPath" value="c:\temp\wc\" /><addkey="TempFilePrefix" value="WC_" /><addkey="MessagingMechanism" value="Com" /><addkey="UseCustomManifestLoading" value="False" /><addkey="AdminAccount" value="ANY" /><addkey="AuthenticationMode" value="Default" /><addkey="AdminPage" value="~/admin/admin.asp" /><addkey="ExeFile" value="d:\merchinfo\bin\merchinfo.exe" /><addkey="UpdateFile" value="d:\temp\wc\merchinfo.exe" /><addkey="LogDetail" value="True" /><addkey="ValidateRequest" value="False" /><addkey="ComServerProgId" value="merchinfo.merchinfoServer" /><addkey="ServerCount" value="2" /><addkey="AutoStartServers" value="False" /><addkey="ComServerLoadingMode" value="RoundRobin" /><addkey="PassAspNetContext" value="False" /><addkey="MessageDisplayFooter" value="Page generated by Web Connection IIS Connector Module" /></webConnectionConfiguration><webConnectionErrorPages><addkey="Exception" value="" /><addkey="OleError" value="" /><addkey="Timeout" value="" /><addkey="NoOutput" value="" /><addkey="Busy" value="" /><addkey="Maintenance" value="" /><addkey="InvalidRequestId" value="" /><addkey="TranmitFileFailure" value="" /><addkey="PostBufferSize" value="" /></webConnectionErrorPages></configuration>

Thanks!


Hi Kirk,

When you say handler mapping - what were you doing before? You were calling the DLL directly? If that's the case - yes that's not recommended on IIS 7 because .dll is not allowed in the bin folder by default and restricted. But if it worked at all I'm not sure why it would have forced reloading of servers - functionally the code executing is identical unless IIS is doing something strange.

We strongly recommend script map use (ie. NOT using wc.dll calls) for a variety of reasons. It's fairly straight forward to switch to scriptmaps if nothing else than switching all wc.dll urls to wc.wc wholesale. So if that works that's the best solution anyway.


+++ Rick ---



I checked and the COM server is SingleUse, and I was able to keep it alive by instantiating from VFP. I'm at a loss...

Just for fun, I re-defined the handler mappings and used script maps instead of the Handler, and now it works. The servers load and stay loaded. So it looks like a problem with the Handler or my configuration of it.

Does that help diagnose? The site is up and running, but I really wanted to get away from script maps and use the new Handler, so any help would be great!

Thanks,
Kirk


Are you sure your COM server is compiled as SingleUse not MultiUse in the COM properties of the project?

Otherwise I'm not sure. Make sure you can instantiate the server from FoxPro or VBScript as shown in the manual and that it does stay alive as long as you hold a reference to it. I don't see why that wouldn't happen but it always helps to confirm.

+++ Rick ---


Hello.
I'm in the process of migrating an application from 4.xx to 5.65 and from Win2003 to Win2008, and I've run into a snag. I have the app running in COM mode, but on each hit the servers load and then unload. So, in other words, there are no servers loaded, a hit comes in, the servers load (I have 2 copies running), they process the hit, and then they unload. This happens on every hit.

And, I don't think it's a problem with my COM exe specifically, because the same weird behavior happens when i try to load the servers from the admin console. I click "Load Servers", The servers load, then they unload, and then they load and stay loaded (until the next hit).

I've searched this site and the help file and can't find any reference to a problem like this...

Here's my setup info:

Windows 2008, 32-bit
Web Connection 5.65
Managed Handler


Thanks!
Kirk










Re: Problem with close button...

$
0
0
Re: Problem with close button...
FoxInCloud
Re: Problem with close button...
Jan. 23, 2013
12:07 am
3P600A2IXShow this entire thread in new window
Now it works fine.
Thanks


this might be the clue
MODIFY COMMAND awPublic

Replace
RETURN["] + Strtran(Strtran(Iif(Vartype(m.tlTrim) == 'L' AND m.tlTrim, Trim(m.tuData), m.tuData), '\', '\\'), ["], [\"]) + ["]

by
RETURN['] + Strtran(Strtran(Iif(Vartype(m.tlTrim) == 'L' AND m.tlTrim, Trim(m.tuData), m.tuData), '\', '\\'), ['], [\']) + [']



<!-- Generated on 22/01/2013 18:04:15 by FoxInCloud version 1.26 -->><!-- Rendered in 128 ms -->><divid="_form_tagen"class="form awfrm mobfrm _form _form_tagen"tabindex="200"><!-- Rendered in 010 ms -->><imgid="_form_tagen-waitpic"class="image awimg"src="Images/indicator_remembermilk_orange.gif"alt="indicator_remembermilk_orange"style="display:none;" /><!-- Rendered in 058 ms -->><divid="_form_tagen-grid1"class="grid awgrd mobgrd _grid"style="display:block;"onblur="FoxInCloud.DOMEvent(event)" readonly="readonly"</div><!-- Rendered in 021 ms -->>


please post HTML for this form


I have paste the button for close the forms....In every form i use it there are no problems. In the last i'm working the button is shown like in this image: it has an anomalous caption and if i click on it nothing happens...




West Wind Web Monitor

Organize folders and files

$
0
0
Organize folders and files
Web Connection
Organize folders and files
Jan. 23, 2013
05:29 am
3P60BRI4KShow this entire thread in new window
Gratar Image based on email address
From:Einar
To:All
A most basic question. I am about to make a clean installation using WC 5.65. Then I like to have the unzipped WC565 files in one folder and my development files in another, like this:
C:\DEV
C:\DEV\WC565
C:\DEV\MyProjx
C:\DEV\MyProjx\web

The default setup will mix my source files with the WC files. That is maybe OK, but with several projects I like to use separate folders for each. But then I must change some settings about path, startup and more. What is best practice?

- Einar

West Wind Web Monitor

Camera Input

$
0
0
Camera Input
HTML, CSS, JavaScript, Flash
Camera Input
Jan. 23, 2013
07:09 am
3P60FCWJHShow this entire thread in new window
Gratar Image based on email address
From:Harvey Mushman
To:All
I'm looking at creating an HTML5 compatible site and would like to be able to include a camera function on a page. I wondering is anyone has done anything like this yet? If yes, can you point me in the direction of any code.

Thanks in advance.

--hm--


--hm--

West Wind Web Monitor

Framed in pages and 3rd party cookies

$
0
0
Framed in pages and 3rd party cookies
Web Connection
Framed in pages and 3rd party cookies
Jan. 23, 2013
11:56 am
3P60PLTRRShow this entire thread in new window
Gratar Image based on email address
From:Chris ODonnell
To:All
I have a two-step "purchase" process that collects information on one page in order to perform a cost calculation before collecting the site visitor's contact information on the 2nd page. I am using sessions.

When these purchase pages are framed in back on to another domain, the process does not work (although periodically it does, due to browser cookie settings i assume). If i uncheck FireFox's "allow 3rd party cookies" option, it does not work. If its checked, it does work.

First, is the default setting in IE and FF to NOT allow 3rd party cookies?

Second, whats a work around?

West Wind Web Monitor

Re: Camera Input

$
0
0
Re: Camera Input
HTML, CSS, JavaScript, Flash
Re: Camera Input
Jan. 23, 2013
01:04 pm
3P60S0EYJShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Harvey Mushman

There's very limited support for this in HTML5 via input tags. AFAIK, they're only supported in some mobile browsers, but definitely NOT on desktop browsers.

There's some more info here:
http://www.html5rocks.com/en/tutorials/getusermedia/intro/

but as you can see there, looks like support's only for mobile browsers.

Interfacing via JavaScript through a URL otherwise would be impossible due to security restrictions, unless the browser natively supports it in some way.

The only other way I know of is using a flash or Silverlight widget to host the camera input. There are several components for this I have heard about but I've never used them...

+++ Rick ---



I'm looking at creating an HTML5 compatible site and would like to be able to include a camera function on a page. I wondering is anyone has done anything like this yet? If yes, can you point me in the direction of any code.

Thanks in advance.

--hm--




Rick Strahl
West Wind Technologies

Making waves on the Web

from Geneva, Switzerland
HTML Help Builder

Re: Framed in pages and 3rd party cookies

$
0
0
Re: Framed in pages and 3rd party cookies
Web Connection
Re: Framed in pages and 3rd party cookies
Jan. 23, 2013
01:07 pm
3P60S55KWShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Chris ODonnell

I think the default is to allow third party cookies in all browsers - it's an option to turn it off, which is meant to basically keep ad sites from tracking you as they display ads.

If third party cookies are not allowed you're out of luck if you're presenting information from another domain in a frame. Your only option is to ask customers to set an exception for your site if they have this option set.

The other option is - don't use cookies, but pass whatever information you need via query string 'license plates' rather than cookies (which is a lot of work but possible).

+++ Rick ---


I have a two-step "purchase" process that collects information on one page in order to perform a cost calculation before collecting the site visitor's contact information on the 2nd page. I am using sessions.

When these purchase pages are framed in back on to another domain, the process does not work (although periodically it does, due to browser cookie settings i assume). If i uncheck FireFox's "allow 3rd party cookies" option, it does not work. If its checked, it does work.

First, is the default setting in IE and FF to NOT allow 3rd party cookies?

Second, whats a work around?


Rick Strahl
West Wind Technologies

Making waves on the Web

from Geneva, Switzerland
HTML Help Builder

Re: Organize folders and files

$
0
0
Re: Organize folders and files
Web Connection
Re: Organize folders and files
Jan. 23, 2013
01:10 pm
3P60S8QX0Show this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Einar

You can definitely use your own folders, but you have to make sure that you reference the Web Connection folders from your application folders. You need to ensure that the path exists to \wconnect\classes and \wconnect. Further some of the Web Connection tools (like the Console) will only run out of the Web Connection folder as they depend on content in subfolders (like templates and scripts etc.).

However, for project building purposes it's perfectly fine to use a custom folder to hold your PJX, main and process files as well as any app depended classes.

+++ Rick ---


A most basic question. I am about to make a clean installation using WC 5.65. Then I like to have the unzipped WC565 files in one folder and my development files in another, like this:
C:\DEV
C:\DEV\WC565
C:\DEV\MyProjx
C:\DEV\MyProjx\web

The default setup will mix my source files with the WC files. That is maybe OK, but with several projects I like to use separate folders for each. But then I must change some settings about path, startup and more. What is best practice?

- Einar


Rick Strahl
West Wind Technologies

Making waves on the Web

from Geneva, Switzerland

Re: XML packet is malformed or otherwise unreadable

$
0
0
Re: XML packet is malformed or otherwise unreadable
Web Connection 5.0
Re: XML packet is malformed or otherwise unreadable
Jan. 23, 2013
01:13 pm
3P60SCFILShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Hermann Strijewski
Hermann,

From what you're posting here tje string looks fine - it doesn't have extended characters. But to be sure you should use STRCONV(cXML,9) to encode any possible extended characters.

Ideally it's best to build up the XML inside of the XMLDOM... You can use wwXML::AddElement() method which will properly encode values. You load an empty document, then call AddElement to add the nodes.

Also you should the content-encoding to UTF-8 and content type to text/xml when sending. So set cContentType explicitly to:

text/xml;charset=utf-8

The error coming back from the server seems to indicate a failure of XML formatting, but it could also be a structural problem - maybe you're missing elements or values - I don't know. You'd have to check with the provider or try to dig up an example that you can check out and trace with Fiddler or in a browser. There may be other things that have to be matched.

+++ Rick ---



Thank you Rick for your help! I'm still stumbling a bit maybe because I don't understand this business around UTF-8 enough.
1. Is there a public-domain web site where I could direct my XML packet and then it will show the results of parsing my packet?
2. Is there some way to turn on UTF-8 for oHTTP, such as oHTTP.AddPostKey(STRCONV(CXML,10))
3. I feel I would be better off actually using your wwSoap masterpieces, and then maybe those will solve the UTF-8 problem automatically. What would be code sample to generate a packet like what I'm trying to do in wwSoap?

To answer your question, the XML I'm sending is generated like this:

CR=CHR(13)+CHR(10) CXML= '<?xml version="1.0" encoding="utf-8" ?>'+CR CXML=CXML+ '<YourMembership>'+CR CXML=CXML+ '<Version>1.95</Version>'+CR CXML=CXML+ '<ApiKey>00000000-0000-0000-0000-0000000000</ApiKey>'+CR CXML=CXML+ '<CallID>002</CallID>'+CR CXML=CXML+ '<SaPasscode>********</SaPasscode>'+CR CXML=CXML+ '<Call Method="Sa.Members.All.GetIDs">'+CR CXML=CXML+ '<Timestamp>2008-01-01 00:00:00</Timestamp>'+CR CXML=CXML+ '</Call>'+CR CXML=CXML+ '</YourMembership>' oHTTP = CREATEOBJECT("wwHttp") oHTTP.HTTPConnect("api.yourmembership.com",,,.T.) oHTTP.nHttpPostMode = 4 && XML oHTTP.AddPostKey(CXML) LCHTML="" LNTEXT=0 lnResult=oHTTP.HTTPGetEx("/",@lcHTML,@lnText)

What I'm getting back from their system is this packet:

<?xmlversion="1.0" encoding="utf-8" ?><YourMembership_Response><ErrCode>902</ErrCode><ExtendedErrorInfo></ExtendedErrorInfo><ErrDesc>XML packet is malformed or otherwise unreadable.</ErrDesc><XmlRequest><unnamed></unnamed></XmlRequest></YourMembership_Response>

Thanks in advance again!

What does the actual XML look like? You have the doc set to utf-8 encoding but is the document actually UTF-8 encided?

You should validate the XML by loading it into an XML dom - that will tell you if there's a problem. IOW, if there are extended characters (or quotes or ampersands >< etc) in the content that will make the XML document fail to validate.

+++ Rick ---



Rick Strahl
West Wind Technologies


from Geneva, Switzerland

Making waves on the Web


CursorToXML

$
0
0
CursorToXML
Web Connection 5.0
CursorToXML
Jan. 23, 2013
02:13 pm
3P60UHOIZShow this entire thread in new window
Gratar Image based on email address
From:Todd Landrum
To:All
Looks like there may be a problem with the XMLToCursor and CursorToXML. I'm doing this:

o = CREATEOBJECT("wwXML") * Take a 1 record table and turn it into XMLSELECT CurTest o.nCreateDataStructure = 1 lXML = o.CursorToXml()* Now turn that XML back into a cursor o.XMLToCursor(lXML, "Import") ?o.cErrorMsg

This returns a "Datatype 'decimal' is not supported" in cErrorMsg. The CurTest has a field with a "Currency" data type. The generated lXML has this in it which the XMLToCursor doesn't like:

<ElementType name="wecost" content="textOnly" model="closed" dt:type="decimal"><AttributeType name="type"/><attribute type="type"default="decimal"/><AttributeType name="size"/><attribute type="size"default="20"/><AttributeType name="precision"/><attribute type="precision"default="4"/></ElementType>

West Wind Web Monitor

Re: CursorToXML

$
0
0
Re: CursorToXML
Web Connection 5.0
Re: CursorToXML
Jan. 23, 2013
02:21 pm
3P60URJMSShow this entire thread in new window
Gratar Image based on email address
From:Todd Landrum
To:Todd Landrum
Changing the field from Currency to a Numeric works fine. That was an acceptable work around for me.

West Wind Web Monitor

.NULL. returned by proxy. Need Header

$
0
0
.NULL. returned by proxy. Need Header
Web Service Proxy Generator
.NULL. returned by proxy. Need Header
Jan. 23, 2013
08:29 pm
3P617X092Show this entire thread in new window
Gratar Image based on email address
From:Steven Black
To:All
Hi Everyone.

I have a web service proxy that's working great. Except for one thing.

The web service I am using has a login service that accepts userName and password and returns an SOAP package that has the subsequent access key in the SOAP header but with empty SOAP body.

Fiddler is telling me everything is working and a SOAP package is coming back as expected: A valid key is in the header.

EXCEPT that the return value from the proxy call to the Login() method is NULL. Of course, the return value in the oService object is NULL too so the Proxy is working.

So the burning question is, how the heck do you capture a just a SOAP header in the absence of a SOAP body?

More info: I need to Extract that key to use with other allied webservices. None of the GetProperty or GetPropertyEx methods seem to work.

There must be a way to hack into the SOAP header when the body's empty. amirite?

The narrative, in code:

loProxy = CREATEOBJECT( "LoginServiceProxy", "V2" ) loBridge= loProxy.oBridge loService = loProxy.oService loBridge.Createinstanceontype( loService, "accessKey","LoginService.LoginHeader" ) && A place for the accessKey to live Result= loproxy.signin("user","password") && Result is NULL ! Fiddler shows the SOAP package's perfect. *--- ...and subsequently this works great Foo=loservice.GetLicenseInfo() && Works! Internally it's used the accessKey I can't seem to extract. ? Foo.Licensee && Returns perfect

How can I get loService to gimme the key?

**--** Steve


Re: .NULL. returned by proxy. Need Header

$
0
0
Re: .NULL. returned by proxy. Need Header
Web Service Proxy Generator
Re: .NULL. returned by proxy. Need Header
Jan. 24, 2013
03:39 am
3P707U8LKShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Steven Black
Hey Steve,

I'm not sure I understand what you need. The method is returning null (which makes sense if there's no body), but returning a response in the SOAP header?

So, would loService.accessKey.LoginKey (or whatever work)? Or maybe:

? loBridge.GetPropertyEx(loService,"accessKey.LoginKey")

Is the SOAP header for input the same as for output (or maybe there's only the output SOAP Header)?

Update
FWIW, I haven't done this myself, but I did a quick search and it seems that the above would be correct. The SoapHeader object property should be set on the return of the SOAP call. I don't think you'd want to pre-set the header if it's an 'output' header that receives a result.

Here's more info:
http://stackoverflow.com/questions/13698829/how-to-access-the-soap-header-in-c-sharp

Since we're using the C# proxy class this should be similar to what you're doing.

+++ Rick ---



Hi Everyone.

I have a web service proxy that's working great. Except for one thing.

The web service I am using has a login service that accepts userName and password and returns an SOAP package that has the subsequent access key in the SOAP header but with empty SOAP body.

Fiddler is telling me everything is working and a SOAP package is coming back as expected: A valid key is in the header.

EXCEPT that the return value from the proxy call to the Login() method is NULL. Of course, the return value in the oService object is NULL too so the Proxy is working.

So the burning question is, how the heck do you capture a just a SOAP header in the absence of a SOAP body?

More info: I need to Extract that key to use with other allied webservices. None of the GetProperty or GetPropertyEx methods seem to work.

There must be a way to hack into the SOAP header when the body's empty. amirite?

The narrative, in code:

loProxy = CREATEOBJECT( "LoginServiceProxy", "V2" ) loBridge= loProxy.oBridge loService = loProxy.oService loBridge.Createinstanceontype( loService, "accessKey","LoginService.LoginHeader" ) && A place for the accessKey to live Result= loproxy.signin("user","password") && Result is NULL ! Fiddler shows the SOAP package's perfect. *--- ...and subsequently this works great Foo=loservice.GetLicenseInfo() && Works! Internally it's used the accessKey I can't seem to extract. ? Foo.Licensee && Returns perfect

How can I get loService to gimme the key?

**--** Steve


Re: CursorToXML

$
0
0
Re: CursorToXML
Web Connection 5.0
Re: CursorToXML
Jan. 24, 2013
07:52 am
3P70GW44LShow this entire thread in new window
Gratar Image based on email address
From:Rick Strahl
To:Todd Landrum
Todd,

There's little reason to use wwXML::CursorToXml() anymore, since CURSORTOXML() and XMLTOCURSOR() (and XMLAdapter) exist natively in VFP.

+++ Rick ---


Looks like there may be a problem with the XMLToCursor and CursorToXML. I'm doing this:

o = CREATEOBJECT("wwXML") * Take a 1 record table and turn it into XMLSELECT CurTest o.nCreateDataStructure = 1 lXML = o.CursorToXml()* Now turn that XML back into a cursor o.XMLToCursor(lXML, "Import") ?o.cErrorMsg

This returns a "Datatype 'decimal' is not supported" in cErrorMsg. The CurTest has a field with a "Currency" data type. The generated lXML has this in it which the XMLToCursor doesn't like:

<ElementType name="wecost" content="textOnly" model="closed" dt:type="decimal"><AttributeType name="type"/><attribute type="type"default="decimal"/><AttributeType name="size"/><attribute type="size"default="20"/><AttributeType name="precision"/><attribute type="precision"default="4"/></ElementType>




Rick Strahl
West Wind Technologies


from Saalfelden, Austria

Making waves on the Web

Viewing all 10393 articles
Browse latest View live