protonix versus nexium generic in usa metformin annostus pharmacy prices list generico de viagra buying cialis legal buy viagra berllino usa buspar problems celebrex 800 mg posologia augmentin bustine doxycycline hyc tabs otc viagra canada drug in uk pharmacy anthem viagra prescription viagra suorituspaineet pfizer zoloft coupon dapoxetine drug information celias viagra uk cialis women use discount brand viagra cialis without perscriptio synthroid 30 mg buspar muscle cramps nolvadex 50mg mim diflucan suspension concentration http://www.bofix.at/index.php/Pharm247-m-b3-555-buspar.php naked viagra use propranolol versus verapamil 10 mg lasix bodybuilding viagra pill price prednisone plaquenil together cialis 5mg prijs harga cialis 80 mg prednisone 7mg 30 mg dosage cialis metformin tabletten teilen propecia average cost cost for cipro ic propranolol 40 mg pharmacy xenical india pharmacy 2 u cialis bactrim tablet size wellbutrin nuspojave purchase on line in india kamagra 100 chewable tabs Complex zoloft versus valium buspar withdrawal benadryl dose diflucan thrush fda canada dapoxetine propranolol hydrochloride 20mg long time side effects legit viagra canada pcos metformin menopause zoloft nausea morning 5mg cialis forum cialis tablet description 10mg cialis dosage access rx viagra cipro causing fever india viagra pills usa cvs prices hydrochlorothiazide sustained release cialis aus thailand viagra australia quick lisinopril flush sweat viagra classification canada prednisone uses chemotherapy buy softtabs viagra buy online us letrozole nolvadex buy drugs like zoloft wellbutrin menopause symptoms lisinopril 4 dollar drug diflucan 100 mg whats lexapro chantix together synthroid dosage 05 mg lisinopril 12.5 mg order without prescription prednisone pemphigus vulgaris zithromax treatment uses bactrim skin tablets alternative viagra online diflucan in india erythromycin thiocyanate buyer vipps pharmacy viagra cialis dapoxetine buy pertussis treatment augmentin cialis pills last where generic lexapro 2012 reviews nolvadex use pct non prescription pharmacy cipro antibiotic nausea ordering uk zoloft plus ritalin generic levitra fake pertussis treatment augmentin nakara propecia us harga salep erythromycin petunjuk pemakaian viagra zoloft cervical mucus take zovirax tablets best place to buy without a prescription lisinopril drug design where to buy without a prescription tab levitra 20 mg zoloft extreme nervousness Healthcare and medicines 40 tablet prednisone directions tetracycline drug card augmentin pill strength buying cialis usa the drug nexium is synthroid crushable cialis price usa nolvadex gyno buy bactrim cost walgreens doxycycline pill acne cialis 20 mg prescription zoloft 50 mg packungsbeilage order cialis women buy viagra boots cialis 5 mg mutuabile cialis 20mg street cipro for virus cheap geneirc viagra 100 xenical kapsule kaufen nolvadex online forum generic periactin buy nhs erythromycin tablets levitra 20mg posologie wellbutrin muscles wellbutrin retardtabletten lasix cause hyponatremia viagra pill price viagra bad pill bactrim cream generic nfl viagra use augmentin 250mg suspension cipro drug label nexium 10mg pret sandoz viagra generico with no rx xenical 120 mg bijwerkingen costo compresse levitra bactrim drug resistance clomid without prescription nexium cause dizziness drugstore com pricing synthroid discount coupons uk pharmacy kamagra delivery uk nausea with cipro where to purchase cialis 50 mg prezzo metformin crushed lexapro price coupons cialis 80 mg information zovirax 200 mg pill doxycycline 500 mg mexico order from india without prescription lexapro medication online levitra pola tablete zoloft buspar metformin forum uk zoloft mg dosage cheap zithromax uk purchase generic malaysia cialis price tablets from buy doxycycline prescription boots
Home Forum Download/Upload Links Search

NetTalk User Group

NetTalk User Group Meeting!
Live Webinar!
Saturday Nov. 16 
7am PST
Click Here To Register!
Home arrow Forum arrow NetTalk E-Mailarrow E-Mail - Ask For Helparrow manually creating a SOAP response
NetTalk Central
April 26, 2015, 09:08:58 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the NetTalk Central Forums!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: manually creating a SOAP response  (Read 593 times)
JPMacDonald
Jr. Member
**
Posts: 86


View Profile Email
« on: May 16, 2012, 12:23:54 PM »

I have been building upon the SOAP web server example and am in a situation where I need to build the SOAP response myself rather than using xFIles and data from a queue, which works quite well by the way. In the example application after populating the queue a call is made to:

Xml.Save(StudentResult)

Which seems to populate the reference field xml.xmlData and xml.xmlDatalen

Armed with that little bit of information I used this code to try and put my SOAP response in play:

   xml.xmlData    &= myXmlString[1: LEN(Clip(myXmlString))]
   xml.xmlDataLen = LEN(Clip(myXmlString))

I can see that xml.xmlData does reference my content but after this next line of code is executed I get a Memory Block Free’d Twice error.

    p_web.ParseHTML(Xml.XmlData,1,Xml.XmlDataLen,Net:NoHeader)

Can anyone help me to get around this hurdle?

Thanks

Parker
Logged
Bruce
Global Moderator
Hero Member
*****
Posts: 7426



View Profile
« Reply #1 on: May 16, 2012, 09:10:32 PM »

Hi Parker,

If you don't want to use the xFiles string, then don't use it. You have a couple simple options;

str   string(16000)

  code
  str = whatever
  p_web.ParseHTML(str,1,len(clip(str)),Net:NoHeader)

This is fine if you're pretty sure the string will be less than the size you declared. (you can make the declaration bigger if you like).

Indeed in your code;
    p_web.ParseHTML(myXmlString,1,LenClip(myXmlString)),Net:NoHeader)


If you must have a dynamic length string then perhaps use StringTheory;

str   StringTheory
  code
  str.SetValue(whatever)
  p_web.ParseHTML(str.GetValue(),1,str.Length(),Net:NoHeader)

The reason it gives the error BTW is because you've not cleared xml.xmlData after using it. ie

  xml.xmlData &= NULL

after the ParseHTML will probably do the trick.

cheers
Bruce



Logged
JPMacDonald
Jr. Member
**
Posts: 86


View Profile Email
« Reply #2 on: May 17, 2012, 03:56:06 AM »

Hey Bruce,

I like xFiles just fine, in fact it is used for 90% of the SOAP responses in this particular application. The one odd-ball is a complicated (for me anyway) nested structure that I needed to return but I don't have enough grey cells to make it work with xFiles.

This statement on its own still causes the Memory Block Free'd Twice error:

p_web.ParseHTML(myXmlString,1,LEN(Clip(myXmlString)),Net:NoHeader)

but putting the xml.xmlData &= NULL after the ParseHtml works just fine.

Thanks for the help and ideas, much appreciated as always.

Regards

Parker
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Login Form

Welcome Guest.






Lost Password?
No account yet? Register
home contact search contact search